From owner-freebsd-questions Sun Jun 25 20:40:53 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id UAA20661 for questions-outgoing; Sun, 25 Jun 1995 20:40:53 -0700 Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id UAA20654 for ; Sun, 25 Jun 1995 20:40:44 -0700 Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.9/8.6.9) id NAA15321; Mon, 26 Jun 1995 13:10:05 +0930 From: Michael Smith Message-Id: <199506260340.NAA15321@genesis.atrad.adelaide.edu.au> Subject: Re: Setting up partitions To: Nik.Clayton@brunel.ac.uk (Nik Clayton) Date: Mon, 26 Jun 1995 13:10:04 +0930 (CST) Cc: questions@freebsd.org In-Reply-To: <4170.9506232235@ccws-20.brunel.ac.uk> from "Nik Clayton" at Jun 23, 95 11:35:43 pm Content-Type: text Content-Length: 1927 Sender: questions-owner@freebsd.org Precedence: bulk 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 [[