I'm just putting together a machine with eight 2TB disks.
I will be using Raid 6 (12TB of usable capacity) on top of them, but I'm not sure whether I should make LVM on top of the RAID, or what filesystem to use.
What filesystems can be resized when used inside LVM?
Best Answer
With lvm on top of a raid device you are flexible to create multiple virtual devices (and filesystems) on it. And you are flexible to change the size of those devices.
If you are 100% sure that you don't need that and you only need one big filesystem, then you can directly create the filesystem on your raid device. One layer of indirection and complexity is removed in that case.
To choose a filesystem, the most important points are:
That means one is usually conservative when it comes to filesystems.
Using these criteria you have basically 3 choices on Linux (as of 2011-06:
On big devices I use xfs because a
mkfs.xfs
is way faster.All of these filesystems can be resized.
Update:
I did a small benchmark on a 3 TB device (using 4k blocksize in all filesystems):
(The speed/mem-up is against ext3)
(System: Debian 6.0 amd64, mkfs.ext 1.41.12, mkfs.xfs 3.1.4, WD SATA drive, hdparm -t about 120 MB/s buffered disk reads)
That means mkfsing a ext[34] filesystem is up to 54 times slower than mkfsing a xfs one. Approximating this to a 12 TB creating a ext fs would really take about an hour (xfs only about a minute).