I always only sticked with ext3, but since it was now again advised in the workaround.org ISPmail tutorial, I am curious about XFS again:
1. Does XFS make any sense, when it comes down to a lot of small files (like /var/vmail with all the emails in maildir format)?
2. Anybody tried XFS on a netbook with an Atom N270, 1 or 2 GB RAM and a sloppy 16GB SSD?
BTW Nowadays I always only use the filesystem on top of LVM, which often sits on top of a luks-encrypted partition, which is either on a Software- or Hardware-RAID1. Does that have any influence? Wasn't it a typical recommendation in the past, NOT to use XFS on a Software-RAID?
For me, it's either ext3 or XFS for a general purpose filesystem, what's good for your server, should also be good for your workstation / laptop / netbook. Can it?
EDIT: Just played around a little, with the following conclusions:
- Still no "barriers" on LVM ("Disabling barriers, not supported by the underlying device")
- It is still not possible to change the log size after fs creation ("~# xfs_growfs -L 16384
MOUNTPOINT" -> "xfs_growfs: log growth not supported yet")
The first issue seems to be bad, because it was mentioned, that with "nobarriers" there is a larger dataloss to be expected in case of unclean shutdown / power-off, the second issue is bad, if you use a distro-installer on which you can not edit the filesystem creation options (I was thinking of the Debian Installer). Something like "not supported yet" does not really represent such an old and mature filesystem as a stable and production-ready one...
EDIT2: Did some read-up in the XFS FAQ on xfs.org, and found some interesting info concerning disk write cache and the barrier/nobarrier mountoption:
- If you have a single drive, it's good to leave barriers & disk write cache on.
- If you have a hardware-raid-controller with battery backed controller cache and cache in write back mode, it is advised to use the nobarrier mountoption, and to disable the individual disks' write caches.
Now what should one do concerning the barrier/nobarrier and disk write cache options, if using
- a Software-RAID1?
- LVM on top of a Software-RAID1?
- LVM on top of a luks-encrypted Software-RAID1?
- LVM on a Hardware-RAID1 with battery backed controller cache and cache in write back mode?
- LVM on top of a luks-encrypted Hardware-RAID1 with battery backed controller cache and cache in write back mode?
As mentioned, XFS on top of LVM leads to disables barriers anyway, so are you supposed to disable disks' write caches in every case, where nobarrier is used?
It even gets more confusing, if virtualization is used, which makes me believe, that one better & safer sticks with good old ext3 instead...
