Support for partitions >2 TBs
I’m trying to create an XFS partition >TB. However after formatting I can see only 2TB:
~# parted /dev/sdc
GNU Parted 2.1
Using /dev/sdc
Welcome to GNU Parted! Type ‘help’ to view a list of commands.
(parted) print
Model: DELL MD3000i (scsi)
Disk /dev/sdc: 3608GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 3608GB 3608GB
~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/sdc1 2.0T 70.0M 2.0T 0% /media/iscsi
After formatting parted is no longer able to recognize the partition table:
~# parted /dev/sdc
GNU Parted 2.1
Using /dev/sdc
Welcome to GNU Parted! Type ‘help’ to view a list of commands.
(parted) print
Error: /dev/sdc: unrecognised disk label
The same happens with EXT2/3.
http://xfs.org/index.php/XFS\_FAQ\#Q:*Why\_does\_my*.3E\_2TB\_XFS\_partition\_disappear\_when\_I\_reboot\_.3F
shows that it needs CONFIG_LBD=y and CONFIG_EFI_PARTITION=y.
LARGE_BLOCK_DEVICE is enabled while EFI_PARTITION is not.
(from redmine: issue id 361, created on 2010-06-16, closed on 2010-06-16)
- Changesets:
- Revision 6b19453e on 2010-06-16T07:44:20Z:
main/linux-grsec: enable EFI
ref #361
- Revision c164e429 on 2010-06-16T10:05:05Z:
main/linux-vserver: enable EFI support
ref #361
- Revision 501127d1 on 2010-06-16T11:23:38Z:
main/linux-grsec: enable EFI
fixes #361
(cherry picked from commit 6b19453ed2db40f0d9f976385abbc96e72704977)
- Revision 654fafea on 2010-06-16T11:24:05Z:
main/linux-vserver: enable EFI support
ref #361
(cherry picked from commit c164e429b41680759e1947fa9548e20e1985e469)