|
![]() |
![]() |
||||
|
Linux - Large Filesystems Support
OverviewThis article covers using large filesystems (larger than 2TB) on Linux. Since fdisk (cfdisk/sfdisk), etc. doesn't support creating partitions larger than 2TB, it's necessary to use GNU Parted to create an EFI GUID Partition. It is recommended that you use LVM2 and JFS although strictly speaking, neither are "necessary." RequirementsAlso, in order to create partitions larger than 2TB on Linux, the kernel needs to support: File Systems Creating EFI GUID PartitionsThe examples below will use
# parted /dev/sda
(parted) mklabel gpt
(parted) mkpart primary 0 -1
(parted) print
FilesystemsWhile it's possible to create 8TB+ EXT3 partitions on the real block device, I recommend that you use JFS (for both speed and storage efficiency) on top of LVM2. My experiences with XFS has been bad enough on Linux that I wouldn't consider using it for anything in production (note that XFS on Linux is not the same as XFS on SGI). The LVM HOWTO can be found at http://tldp.org/HOWTO/LVM-HOWTO. Note that if you don't create the GPT disk label as outlined above, LVM will only recognize up to 2TB. Continuing using the
# pvcreate /dev/sda1
# vgdisplay
Free PE / Size 3262837 / 12.45 TB
Additional NotesPerformance-wise, you may also want to change the default IO scheduler to CFQ or Deadline either via the kernel configuration or via the command-line:
or echo "cfq" > /block/sda/queue/scheduler Although I don't recommend that you use what's below, I am including the info for just to document it. In order to create filesystems larger than 8TB with EXT3 (not recommended), e2fsprogs 1.39+ is needed. Note: Without the mkfs.ext3: Filesystem too large. No more than 2**31-1 blocks
Note: '-m' sets the reserved block to zero. Additionally, you may wish to change the max mount counts or intervals between checks using
|
|||||
| Shane Tzen © 2010 | ||||||
|
![]() |
|||||
| brought to you by the number 1 and the letter V | ||||||