Lvm – Optimal UNIX File System Partition + Setup Strategy

filesystemshard drivelvmpartitionraid

When partitioning a new system disk(s) for UNIX, what is your prefered strategy for both desktop and/or servers?

Please include disk partition layout, file system format(s) and options, mount points, RAID level(s), LVM groups and volumes, encryption, and any other relevant settings.

Best Answer

I'm a fan of LVM for this kind of problems. You just need some space for /boot (i use about 100MB). Combined with filesystems which can dynamically grow and shrink (or at least grow) you never have to think about to small partitions again.

On my desktop I use an LVM with XFS as filesystem for all partitions. I create as small as possible and let them grow as I need more space.