Hi!<br><br>Thanks Stephan, with your hint I managed to get Ubuntu 10.04
installed on the 12TB RAID5, but not without a little interaction during
the install process. I used following setup-storage config:<div class="im"><br><br>----------------------------------------------------------------------<br>
# <type> <mountpoint> <size> <fs type> <mount options> <misc options><br><br>disk_config /dev/sda disklabel:gpt<br></div>primary - 1 - -<div class="im">
<br>primary /boot 200 ext3 defaults<br>
primary swap 4G swap defaults<br></div>primary - 100G- - -<br><br>disk_config lvm<br>vg system /dev/sda4<br>system-rootlv / 20G xfs defaults<br>
system-homelv /home 5G xfs defaults<br>system-tmplv /tmp 10G xfs defaults<br>system-usrlv /usr 10G xfs defaults<br>system-varlv /var 10G xfs defaults<br>
system-optlv /opt 10G xfs defaults<br>system-srvlv /srv 10G xfs defaults<br><br>------------------------------<div id=":k">----------------------------------------<br>
<br>The
first partition for /dev/sda is the bios partition. I don't know how to
set the neccessary flag "bios_grub" for it in this config file. If it's
not set, then grub-pc won't install correctly and the system will not
boot.<br>
<br>A workaround for this problem is to set it manually while installing
with fai. By enabling the FAI_FLAG "creatvt" I can get a shell with
ALT+F2 and run "parted /dev/sda", after fai has finished the task
"partition". Then I enable the flag with "set 1 bios_grub on". After the
installation the new system will boot! The output of gdisk is
following:<div class="im"><br>
<br>----------------------------------------------------------------------<br>GPT fdisk (gdisk) version 0.5.1<br><br>Partition table scan:<br> MBR: protective<br> BSD: not present<br> APM: not present<br> GPT: present<br>
<br>Found valid GPT with protective MBR; using GPT.<br>Disk /dev/sda: 23437369344 sectors, 10.9 TiB<br></div>Disk identifier (GUID): E426DEA8-1CAD-4BC8-A00C-5D79EC8E497C<div class="im"><br>Partition table holds up to 128 entries<br>
First usable sector is 34, last usable sector is 23437369310<br>
Total free space is 4029 sectors (2.0 MiB)<br><br>Number Start (sector) End (sector) Size Code Name<br></div> 1 2048 4095 1024.0 KiB EF02 primary<br> 2 4096 413695 200.0 MiB 0700 primary<br>
3 413696 8802303 4.0 GiB 8200 primary<br> 4 8802304 23437367295 10.9 TiB 8E00 primary<br>----------------------------------------------------------------------<br><br>One other thing to mention:<br>
<br>At first, I tried it with following setup-storage config, because it is our standard partition layout:<div class="im"><br>----------------------------------------------------------------------<br># <type> <mountpoint> <size> <fs type> <mount options> <misc options><br>
<br>disk_config /dev/sda disklabel:gpt<br></div>primary - 1 - -<div class="im"><br>primary /boot 200 ext3 defaults<br>primary swap 4G swap defaults<br>
primary / 20G xfs defaults<br></div>
primary - 100G- - -<br><br>disk_config lvm<br>vg system /dev/sda4<br>system-homelv /home 5G xfs defaults<br>system-tmplv /tmp 10G xfs defaults<br>
system-usrlv /usr 10G xfs defaults<br>system-varlv /var 10G xfs defaults<br>system-optlv /opt 10G xfs defaults<br>system-srvlv /srv 10G xfs defaults<br>
----------------------------------------------------------------------<br>
<br>This should be working as GPT supports more than four primary
partitions, but unfortunately it is not working. The partition task will
abort with something like "Error: only 20G space available for the
logical volumes, but 75G are needed".<br>
<br>It would be great if someone could give me some help for at least
setting the "bios_grub" flag in the setup-storage config, so that I
don't need to set it manually with parted.<br><br>Thanks! <br><br>Regards<br><font color="#888888">
Garb</font></div><br><br><div class="gmail_quote">On Sun, Sep 12, 2010 at 2:26 PM, Stephan Hermann <span dir="ltr"><<a href="mailto:sh@sourcecode.de">sh@sourcecode.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Moins,<br>
<br>
I wonder if grub / grub_pc is able to boot from gpt partitions.<br>
<br>
and the partition "gpt-bios" is not know, you should declare it as<br>
"gpt" in setup-storage disk config, e.g.<br>
<br>
<br>
<br>
disk_config disk1 disklabel:gpt fstabkey:uuid<br>
primary - 0- - -<br>
<br>
<br>
<br>
(this definition is for a drbd device, so you need to configure your fs<br>
etc.)<br>
<br>
Regards,<br>
<font color="#888888"><br>
\sh<br>
</font><div><div></div><div class="h5"><br>
<br>
On Thu, 9 Sep 2010 17:44:46 +0200<br>
Garb Dowle <<a href="mailto:garb.dowle@gmail.com">garb.dowle@gmail.com</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> if I select "gpt-bios" as disklabel in my setup-storage config, then,<br>
> after installation of a Ubuntu 10.04 Server with FAI 3.3.5 it won't<br>
> boot. After the BIOS-Screen, there will be only a blinking cursor on<br>
> a blank screen, and nothing happens.<br>
><br>
> Installing Ubuntu 10.04 with an Installation-CD on that system works<br>
> fine. It recognizes my 12TB RAID-5 and adds a 1MByte BIOS Partition.<br>
> The output of "gdisk -l /dev/sda" on that system shows:<br>
><br>
> ----------------------------------------------------------------------<br>
> GPT fdisk (gdisk) version 0.5.1<br>
><br>
> Partition table scan:<br>
> MBR: protective<br>
> BSD: not present<br>
> APM: not present<br>
> GPT: present<br>
><br>
> Found valid GPT with protective MBR; using GPT.<br>
> Disk /dev/sda: 23437369344 sectors, 10.9 TiB<br>
> Disk identifier (GUID): E206388F-7243-4EDF-BE0A-18E4F038DC38<br>
> Partition table holds up to 128 entries<br>
> First usable sector is 34, last usable sector is 23437369310<br>
> Total free space is 4029 sectors (2.0 MiB)<br>
><br>
> Number Start (sector) End (sector) Size Code Name<br>
> 1 2048 4095 1024.0 KiB EF02<br>
> 2 4096 503807 244.0 MiB 0700<br>
> 3 503808 23437367295 10.9 TiB 8E00<br>
> ----------------------------------------------------------------------<br>
><br>
> I noticed, that setup-storage will add the BIOS Partition for GPT<br>
> always as the last partition. I tried to place it at the beginning of<br>
> the partition table, so that the partition table will look like that<br>
> one generated from the Installer-CD, but I wasn't successful.<br>
><br>
> Does somebody know how I can get this working?<br>
><br>
> Thanks!<br>
<br>
</div></div></blockquote></div><br>