Re: How many partitions?
From: Jean-David Beyer (jdbeyer_at_exit109.com)
Date: 05/14/05
- Next message: Marcin Balcerzak: "problems with Gentoo (messages on startup, installing gnuplot, running KDE)"
- Previous message: Michael Heiming: "Re: How many partitions?"
- In reply to: Ben Wylie: "How many partitions?"
- Next in thread: Nico Kadel-Garcia: "Re: How many partitions?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 14 May 2005 12:44:42 -0400
Ben Wylie wrote:
> I am teetering on the edge of setting up a CentOS linux server to run as
> a mail server, web server, ftp server and a caching web proxy as well as
> several other functions.
>
> I'm just formatting the 20gb drive that i am starting it on (i have a
> 200gb drive on the way), and was wondering how many partitions of what
> size people tend to use for this kind of server. I presume you want a
> partition for the main installation and for the programs, a separate one
> for the swap file, one for the web cache (i'll make that significant and
> put it on my new drive) ...
>
> Can anyone advise me on what different partitions are recommended? Is it
> just the swap partition and one for the rest or is it best to divide it
> more? How big should i make the swap partition? Any other advice at this
> stage?
>
This has got to be a FAQ by now. One can get by with one partition, using a
file for swapping. I think that would be a bad idea. Or one could use lots
of partitions as I do, which I think would be a terrible idea for most people.
One of my machines is like this (the other has far fewer partitions):
Disk /dev/sda: 18.3 GB, 18389272576 bytes
255 heads, 63 sectors/track, 2235 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1020 8193118+ 83 Linux
/dev/sda2 1021 1275 2048287+ 82 Linux swap
/dev/sda3 1276 2235 7711200 83 Linux
Disk /dev/sdb: 18.3 GB, 18389272576 bytes
255 heads, 63 sectors/track, 2235 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1020 8193118+ 83 Linux
/dev/sdb2 1021 1275 2048287+ 82 Linux swap
Disk /dev/sdc: 18.3 GB, 18389272576 bytes
255 heads, 63 sectors/track, 2235 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 1020 8193118+ 83 Linux
/dev/sdc2 1021 1275 2048287+ 82 Linux swap
Disk /dev/sdd: 18.3 GB, 18389272576 bytes
255 heads, 63 sectors/track, 2235 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 * 1 255 2048256 82 Linux swap
/dev/sdd2 256 2235 15904350 83 Linux
Disk /dev/hda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 49 393561 83 Linux
/dev/hda2 50 1354 10482412+ 83 Linux
/dev/hda3 1355 1615 2096482+ 83 Linux
/dev/hda4 1616 9964 67063342+ f Win95 Ext'd (LBA)
/dev/hda5 1616 2659 8385898+ 83 Linux
/dev/hda6 2660 3703 8385898+ 83 Linux
/dev/hda7 3704 4225 4192933+ 83 Linux
/dev/hda8 4226 4747 4192933+ 83 Linux
/dev/hda9 4748 5073 2618563+ 83 Linux
/dev/hda10 5074 5196 987966 83 Linux
/dev/hda11 5197 6170 7823623+ 83 Linux
Disk /dev/hdb: 81.9 GB, 81964302336 bytes
16 heads, 63 sectors/track, 158816 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 7938 4000720+ 83 Linux
/dev/hdb2 7939 47622 20000736 83 Linux
Why do you not try:
A swap partition -- often twice the size of your real RAM.
A / partition
A /home partition
A /var partition
A /tmp partition
A /srv partition where you will put sub directories for those servers
Depending on load, you may wish to use multiple SCSI drives so as to reduce
seek contention. No to replies to your query will give you the same layout.
-- .~. Jean-David Beyer Registered Linux User 85642. /V\ PGP-Key: 9A2FC99A Registered Machine 241939. /( )\ Shrewsbury, New Jersey http://counter.li.org ^^-^^ 12:30:00 up 20 days, 6:08, 3 users, load average: 3.07, 3.14, 3.27
- Next message: Marcin Balcerzak: "problems with Gentoo (messages on startup, installing gnuplot, running KDE)"
- Previous message: Michael Heiming: "Re: How many partitions?"
- In reply to: Ben Wylie: "How many partitions?"
- Next in thread: Nico Kadel-Garcia: "Re: How many partitions?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|