Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
partitioning for a server
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
nielchiano
Veteran
Veteran


Joined: 11 Nov 2003
Posts: 1287
Location: 50N 3E

PostPosted: Fri Feb 06, 2004 4:52 pm    Post subject: partitioning for a server Reply with quote

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
View user's profile Send private message
michaelb
l33t
l33t


Joined: 06 Jun 2002
Posts: 686
Location: Ann Arbor, MI

PostPosted: Fri Feb 06, 2004 5:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
Zuti
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2003
Posts: 123
Location: The Netherlands

PostPosted: Fri Feb 06, 2004 5:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
michaelb
l33t
l33t


Joined: 06 Jun 2002
Posts: 686
Location: Ann Arbor, MI

PostPosted: Fri Feb 06, 2004 5:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
nielchiano
Veteran
Veteran


Joined: 11 Nov 2003
Posts: 1287
Location: 50N 3E

PostPosted: Fri Feb 06, 2004 7:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum