Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disk Partitioning guideline

Status
Not open for further replies.

umeman

Technical User
Oct 2, 2001
59
US
I know a lot of ADMINS have a problem of a partition/slice
becoming 100% full.

Does anyone have a good guideline for the paritioning
say an 9 or 18 gb drive. Problems are mainly with /, /var,
/opt

I know one guideline - the swap partition should be 2 times the size of your physical memory

Any comments appreciated

Thanks
Umeman
 
Besides the recommended minimum by SUN, There are no rule of thumb that I know off.
It depends on what you intend to do with that box.
If yoy plan to install a lot of softs in /usr then make / big enough to contain the softs.
If you box is a print server or mail server, you will need /var to be big enough.
If the box is a /home server then again make / big enough.


If the workstation is a standalone, here is what I do :
/ = 40 %
/var = 20 %
/export = 20 %

and I would keep 20 % free for resizing purposes..
Note that I put /usr, /home, /opt in the root /.

These are my preferences and every sysadmin has its own preferences, which means that what I do may not be the best for you.

 
I put /, /var, /opt, swap, /usr and /export/home on separate partitions. If home, var or usr fill up, it won't crater root. On an 18 Gb drive, I have:
/ 1.6Gb
/usr 2Gb
/var 4Gb
/swap 4Gb
/opt 2Gb
/export/home 2Gb

This is on a E420 4x4.
 
Again, layout depends on what you intend to do with the server.
For general purposes, your layout looks OK, the only thing is I may put 3 Gigs in /usr and 3 Gigs in /var.
One thing for sure, you have plenty of room for / since you have all separate partitions.
 
If your setting up a server, go with the layout nsew45 gave.
If you put /export/home in the / filesystem, ANY user whos home directory is /export/home/xx can fill up the root filesystem and stop the show.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top