View previous topic :: View next topic |
Author |
Message |
nielchiano Veteran
Joined: 11 Nov 2003 Posts: 1287 Location: 50N 3E
|
Posted: Fri Feb 06, 2004 4:52 pm Post subject: partitioning for a server |
|
|
Hi,
I want to setup a nice server. (pure console, no X or whatever...)
I have an 8GB drive (IDE) on it.
How should I partition it? Partition the whole disk? leave some free space? I tought of this:
hda1 32MB /boot
hda2 1GB swap
(hda3 extended)
hda5 2GB /
hda6 2GB /usr
hda7 2GB /var
hda8 1.9GB /tmp
(/home is on hdb, so that doesn't matter) |
|
Back to top |
|
|
michaelb l33t
Joined: 06 Jun 2002 Posts: 686 Location: Ann Arbor, MI
|
Posted: Fri Feb 06, 2004 5:20 pm Post subject: |
|
|
Well, depending on what kind of server you plan on running, 2GB for /var might be a little tight. If space on hdb isn't an issue, you might want to consider moving /usr over there too, and then giving all 4GB to /var. _________________ Behold, The power of SEARCH! |
|
Back to top |
|
|
Zuti Tux's lil' helper
Joined: 09 Jul 2003 Posts: 123 Location: The Netherlands
|
Posted: Fri Feb 06, 2004 5:45 pm Post subject: |
|
|
I agree with michaelb.
Your /tmp and especially / are too big and you could use more space in /var.
Personally I dont see a point in /boot (u will never need 32 MB) and you will probrably have max. 2 kernels.
My suggestion:
hda1 500MB /
hda2 1GB swap (2x RAM)
--
hda5 3GB /usr
hda6 3GB /var
hda7 500MB /tmp
Size of /var and /usr depend on what kind of server you are running.
Webserver -> bigger /usr
Mailserver -> bigger /var
Goodluck |
|
Back to top |
|
|
michaelb l33t
Joined: 06 Jun 2002 Posts: 686 Location: Ann Arbor, MI
|
Posted: Fri Feb 06, 2004 5:48 pm Post subject: |
|
|
Well I like having /boot on its own partiton to help protect the kernel. How big it needs to be varies on what you are compiling into the kernel, and how many different kernels you plan on having, but putting them on their own partition is a good idea as far as I'm concerned.
Don't forget also that portage makes extensive use of /var, and it can get full pretty fast. _________________ Behold, The power of SEARCH! |
|
Back to top |
|
|
nielchiano Veteran
Joined: 11 Nov 2003 Posts: 1287 Location: 50N 3E
|
Posted: Fri Feb 06, 2004 7:14 pm Post subject: |
|
|
michaelb wrote: | Well I like having /boot on its own partiton to help protect the kernel. How big it needs to be varies on what you are compiling into the kernel, and how many different kernels you plan on having, but putting them on their own partition is a good idea as far as I'm concerned. |
that's the reason why I planned it: don't mount it at all, or mount it ro... so I can't accidentialy delete boot-stuff (grub etc)
It'll be an all-around small server. Mail (for max 5 users), web (very low usage, to share our photos with the family); file server (huge /home,etc) DNS, ...
So I will keep the boot, but make it as small as possible... maybe 16MB or something:
hda1 16MB /boot
hda2 1GB swap (=4xRAM, I have 256MB)
hda5 500MB /
hda6 3GB /usr
hda7 3GB /var
hda8 rest /tmp |
|
Back to top |
|
|
|