Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jun 1995 13:10:04 +0930 (CST)
From:      Michael Smith <msmith@atrad.adelaide.edu.au>
To:        Nik.Clayton@brunel.ac.uk (Nik Clayton)
Cc:        questions@freebsd.org
Subject:   Re: Setting up partitions
Message-ID:  <199506260340.NAA15321@genesis.atrad.adelaide.edu.au>
In-Reply-To: <4170.9506232235@ccws-20.brunel.ac.uk> from "Nik Clayton" at Jun 23, 95 11:35:43 pm

next in thread | previous in thread | raw e-mail | index | archive | help
Nik Clayton stands accused of saying:
> I'm about (in the next week or so) to set up a FreeBSD box. A Pentium
> with 16Mb RAM and initially 1Gb of SCSI HD.
...
> However, within the next four months it should become a major WWW
> server, needing to support upwards of 10,000 hits a day. At this point
> i'll be upgrading the memory to at least 32Mb, and probably adding extra
> disk partitions.
> 
> Has anyone got any pointers to a 'good' partitioning scheme for this? I
> was planning on roughly 25Mb for '/', at least 64Mb for 'swap', 150Mb
> for '/home' and the rest for '/usr' (maybe subdividing '/usr' and
> '/usr/src' into two seperate partitions.

Don't do that.  Use a combined root/usr of between 200 and 400M, depending
on whether you're planning on installing _all_ of the sources, or just
the kernel source.  Go for 2.5*RAM, or ~80M of swap, and then
mount the rest of the disk somewhere anonymous and extensible.  
Some people use /export/* (a la SunOS), some use /NFS/*, I usually
just use /localN.

Then symlink into this arrangement; ie. /home becomes a symlink into
/local0/home, /usr/local becomes a symlink into /local0/usrlocal etc.

This keeps all of the OS code in one partition, and gives maximum 
flexibility when it comes to moving things around.

> How easy is it to change the slice information once a disk has got info
> on it? If, say, I wanted to increase the swap space from 64 to 128? Or
> do I have to back everything up, re-slice and then restore?

Not easy at all.  Better to add another disk and swap on it 8)

-- 
]] Mike Smith, Software Engineer        msmith@atrad.adelaide.edu.au    [[
]] Genesis Software                     genesis@atrad.adelaide.edu.au   [[
]] High-speed data acquisition and                                      [[
]] realtime instrument control          (ph/fax) +61-8-267-3039         [[
]] My car has "demand start" - Terry Lambert                            [[



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199506260340.NAA15321>