I was trying to re-install an old server that had been set-up with pre-Etch FAI. Since there was no official GPT support at that time, I made a hook that performed the task.
Here's the output of parted -s /dev/sdb (for the already partitioned disk): (parted) unit chs print free Disk /dev/sdb: 848786,60,41 Sector size (logical/physical): 512B/512B BIOS cylinder,head,sector geometry: 848786,255,63. Each cylinder is 8225kB. Partition Table: gpt Number Start End File system Name Flags 1 0,0,34 848786,60,8 xfs primary (parted) unit B print free Disk /dev/sdb: 6981504466943B Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 17408B 6981504450047B 6981504432640B xfs primary I defined the partition in disk_config: disk_config sdb disklabel:gpt preserve_always:1 primary /storage 1- xfs rw When running the partition task, I get an error: Calling task_partition Partitioning local harddisks using setup-storage Starting setup-storage 1.0.3 Using config file: /var/lib/fai/config/disk_config/HEXE_STORAGE Executing: parted -s /dev/sda unit TiB print Executing: parted -s /dev/sda unit B print free Executing: parted -s /dev/sda unit chs print free Executing: parted -s /dev/sdb unit TiB print Executing: parted -s /dev/sdb unit B print free Executing: parted -s /dev/sdb unit chs print free Executing: vgdisplay --units m -s Executing: mdadm --detail --scan --verbose -c partitions Disk /dev/sdb is too small - at least 6981504467456 bytes are required - apparently some rounding-up is happening somewhere? Back to old style for now... Cheers, Steffen -- Steffen Grunewald * MPI Grav.Phys.(AEI) * Am Mühlenberg 1, D-14476 Potsdam Cluster Admin * http://pandora.aei.mpg.de/merlin/ * http://www.aei.mpg.de/ * e-mail: steffen.grunewald(*)aei.mpg.de * +49-331-567-{fon:7233,fax:7298} No Word/PPT mails - http://www.gnu.org/philosophy/no-word-attachments.html
