Description of problem: parted can create dos partitions > 2TB but dos partitions can not be larger than 2TB, so when you reboot, your partitions & FS are broken. Version-Release number of selected component (if applicable): How reproducible: I do not have direct access to a >2TB disk so I can't test, but I have seen this done. Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: From what I can figure out, when you create the partition, parted tells the kernel there is a new partition and it's correct details. These details are valid and the partition works. The partition table however is not correct. The partition table can only record partitions up to 2TB in size. When you reboot, the kernel reads the partition table from the disk and gets the partition size wrong, the FS then complains because it is too big for the partition. This may well cause FS corruption, or at least prevent you from accessing your new filesystem. parted should not offer to make a dos partition larger than 2TB. It should instead offer to use GPT partitioning.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
Created attachment 298107 [details] parted-1.6.19-2TB-limit.patch
Will be fixed in parted-1.6.19-20.EL and later.
jn.edu.au, a fix for this bug is available in RHEL4-U7 Beta on RHN. Can you please grab the bits and test this issue. Thanks!
This does not work. There is a mistake in the patch: if (!part->type & PED_PARTITION_METADATA) needs to be if (!(part->type & PED_PARTITION_METADATA)) I will attach the altered patch file
Created attachment 308773 [details] Prevent creating dos partitions > 2TB This is a small bugfix over the previous patch
David, do you agree with comment #11? If so can you commit the correct patch to cvs. Thanks.
Yes, go with the patch in comment #11. (Reassigning this to jgranado, who is the new parted maintainer.)
Bug in RHEL5 447768
The package with the fix in comment #11 will be available in parted-1.6.19-22.EL
jn.edu.au: the package noted in comment#20 is available from http://jlaska.fedorapeople.org/parted-1.6.19-22.EL.i386.rpm. Are you able to confirm that the updated package fixes the reported issue?
parted-1.6.19-22.EL.i386.rpm seems to work as expected. I have only tested msdos label type and on a virtual disk but it correctly imposed the 2TB limit. Relabling as gpt allows creating partitions larger.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2008-0698.html