Re: How many partitions?

From: Jean-David Beyer (jdbeyer_at_exit109.com)
Date: 05/14/05


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


Relevant Pages

  • Atapi ZIP 100, still no worky worky
    ... Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel ... Device Boot Start End Blocks Id System ... 255 heads, 63 sectors/track, 9729 cylinders ...
    (alt.os.linux.suse)
  • Re: Rebuilding SBS Server 2003 SP2
    ... issues with exchange system manager because the SSL server name ... figured a rebuild was the perfect time to investigate these (chuck more RAM ... lot with re-installs but havent a clue with partition sizes with SBS, ...
    (microsoft.public.windows.server.sbs)
  • Software Raid for clones
    ... Personally I inherited this E6750 ASUS motherboard and wanted thought I'd build a nice server for general use. ... I added 4 SATA 250 Gb disc drives and after reading about the horrors & failures of the cheapie Raid controllers, I decided to try Linux software raid. ... I got a message from every MD partition that there were not ... Disk partitions and LVM limits ...
    (RedHat)
  • Re: SBS2003 Partitioning
    ... sell a server to a customer to maximise billing hours. ... I realise that capacity is all down to the business that you are selling to ... just makes our experiences different. ... If the partition is on the same set of spindles then I could care ...
    (microsoft.public.windows.server.sbs)
  • Re: Is it possible to redirect the default user shares?
    ... The server is a rack mounted HP ProLiant ML 350 G4 and the integrated NIC ... I understand most people thatr design a server around W2k3 SBS Premium start ... OS partition and only a single additional partition if the underlying drive ... RAID1+RAID5) it may be worthwhile putting the shadowcopies from one array on ...
    (microsoft.public.windows.server.sbs)