Wandering Thoughts archives


How I split up my workstation's disk space

There's a lot of different ways to partition disks and split out filesystems. Mine isn't necessarily the best one, it's just what I use, partly because I am cautious and conservative.

My workstation has two disks, partitioned identically and generally mirrored. I split the filesystems up like so:

  • /boot is a separate and non-mirrored filesystem. I have a /boot2 on the second disk which I synchronize by hand every so often (usually not, to be honest, which is a bad habit).

  • there are two swap partitions, one on each disk. I don't bother mirroring swap; it's too much work for what I get out of it.

  • /, /usr, and /var are each in separate mirrored partitions. (I still make them separate filesystems, which may be pointless these days.)

  • all the rest of the disk space is in a single mirrored partition, which is used for a single LVM logical volume.
  • all other filesystems are in that logical volume (and are thus sitting on LVM over RAID-1, which seems to perform well enough).

Keeping the system partitions outside of LVM means that I can boot even if something goes wrong with LVM (which it sometimes does). I put my other data into LVM because LVM is a lot more convenient.

If I was doing this today, I would have two mirrored partitions for /, /usr, and /var, with the goal of using the second set to make operating system upgrades less alarming by always having a fully bootable and functional version of the old system sitting around. I figure that on modern disks, 40 to 50 GB is a cheap price to pay for such an insurance policy and well worth it.

(Of course, I don't know if this works in practice or if it would horribly confuse Fedora's install/upgrade stuff, although since there is a disk upgrade and a Fedora upgrade in my near future, I'm probably going to get to find out. And in credit where credit is due department, this was inspired by what little I know of Sun's 'live upgrade' stuff.)

My only current observation on filesystem sizes is that /var needs to be much bigger than I thought it would be. My next /var will be at least 10 GB and may go all the way to 20 GB. (Disk space is cheap and running out is painful, which is one drawback to not having system filesystems in LVM.)

linux/WorkstationPartitioning written at 23:44:53; Add Comment

Page tools: See As Normal.
Login: Password:
Atom Syndication: Recent Pages, Recent Comments.

This dinky wiki is brought to you by the Insane Hackers Guild, Python sub-branch.