Comment 0 for bug 107326

Revision history for this message
Bernhard J. M. GrĂ¼n (bernhard-gruen) wrote :

Binary package hint: parted

The ubuntu parted that is on the feisty installation cds has a bug when creating gpt labels (at least on large disk arrays). We tried to create a gpt label and one XFS partition on a 10,5 TB RAID6-Array.
Notice: Exactly the same procedure worked on grml 0.9. So it is a bug on the ubuntu side for sure.
Also the grml-version of parted shows the following warning when we print the partition table (print command):
Warning: /dev/sdc contains GPT signatures, indicating that it has a GPT table. However, it does not have a valid fake msdos partition table, as it should. (and so on)
So it seems parted is not able to create correct gpt labels.

Here is the way we can reproduce that error:
parted /dev/sdc mklabel gpt
parted /dev/sdc rm 1
parted /dev/sdc mkpart primary 0 10500G
mkfs.xfs -f /dev/sdc1
mount /dev/sdc1 /mnt/sdc1
df -h [size should be 9.6T]
umount /mnt/sdc1
hdparm -z /dev/sdc[a restart of the system does the same!]
mount /dev/sdc1 /mnt/sdc1

Then you should see the following error on ubuntu. With grml it works correctly:
I/O error in filesystem ("sdc1") meta-data dev sdc1 block 0x4c65c46ff ("xfs_read_buf") error 5 buf count 2
mount: /dev/sdc1: can't read superblock

Also notice: You'll lose all your data on that partition because of that error! grml uses the same parted version 1.7.1(but without some ubuntu patches)