PDA

View Full Version : Please recommand a partition scheme



neorder
02-12-2004, 07:00 AM
i'm going to install DA into a 80 G HD, this is going to be my first dedicated server, may i have a good partition scheme? i've read some post here and found:

default partition scheme found from your website:

/boot 40 meg
/dev/shm 2 x memory
/ rest of drive

for a 30G HD, a recommanded partition will be

/usr ~5 Gig or more
/boot ~ 40 Meg
/ 1 Gig or more
swap 2*ram
/var 4-10 Gig or more (used for email and logs)
/home fill the rest


for a 80G HD, a recommanded partition will be

/boot - 100 meg
/var - 10 gig
/ - 10 gig
/home - rest

i notice the comman partitions are boot and var, the rest are optional , so here comes mine:

/boot - 100 meg
/swap or dev/shm 1G
(i don't get why dev/shm? what's the meaning of dev/shm)
/ (blank)
(if i have this, do i need to have home partition? or what is this partition for?)
/ home rest
/var 10G
(i under stand it store email/log/mysql)
/usr 5G
(do i really need a usr partiontion? any difference if i don't have?)

i'm pretty NOT sure about a GOOD partition scheme, lot's confusion here, please help me understand them all, thanks in advance.

ProWebUK
02-12-2004, 07:59 AM
If you dont know whats what and how to change / mount partions etc I advise you to stick with a simple partion structure:

/boot 100 meg
/dev/shm 2 x memory (500 - 1000mb is usually fine)
/ rest of drive

If you *are* going for a more advanced partion setup (for example on /var) then you will either need to set it up with a large amount of space, set your log rotation up to rotate quicker and create less backlogs, or know how to re-size the partion in the case that the contents of the partion excced the space the partion actually has.

With /var the contents amount can vary dramatically based on many things... attacks, login failures, high traffic, many customers with average traffic eWith the basic setup your basically covered and theres about 99.9% chnace you wont need to re-size any partions in the future.

Chris

neorder
02-13-2004, 01:39 AM
the default installation doesn't have /var partition, so if during the server setup, i do have /var partition, will DA use it automatically? or do i have to config DA to use /var such as to store mysql db?

thanks.

DirectAdmin Support
02-13-2004, 09:32 AM
Hello,

Even if you don't have a /var partition, you will still have a /var directory. DA doesn't know the difference. You don't need to set anything.

John