Thursday, March 01, 2007

Disk partitioning, note to self

Next time I have to partition a *nix filesystem, I solemnly swear to read this post and adhere to the lessons.

This is what I've done recently, based on how the servers I've inherited were configured:

/ 512MB
/home 2Gb
/usr 2Gb
/boot 250MB
swap 2Gb
/var remaining space on 36GB disk.

The problems...running out of space on /home when I try to put a bunch of new rpms for RedHat that need to be installed. That /opt, which some apps like to use as the default path, is part of / and at a measly 512MB it goes too quickly.

This is what I plan to do next time...

/ 1GB
/home 4GB
/usr 4GB
/boot 500MB
swap 2 -4 GB dep on physical memory
/var less of the 36 GB remaining, but still a lot for mostly log files