From owner-freebsd-questions@FreeBSD.ORG Tue Dec 29 17:31:42 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B78FE10656A3 for ; Tue, 29 Dec 2009 17:31:42 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr11.xs4all.nl (smtp-vbr11.xs4all.nl [194.109.24.31]) by mx1.freebsd.org (Postfix) with ESMTP id 62AED8FC22 for ; Tue, 29 Dec 2009 17:31:42 +0000 (UTC) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr11.xs4all.nl (8.13.8/8.13.8) with ESMTP id nBTHVdX9021604; Tue, 29 Dec 2009 18:31:40 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id BCED2BA7A; Tue, 29 Dec 2009 18:31:39 +0100 (CET) Date: Tue, 29 Dec 2009 18:31:39 +0100 From: Roland Smith To: Kaya Saman Message-ID: <20091229173139.GA33613@slackbox.xs4all.nl> References: <4B3927EB.4030802@optiplex-networks.com> <6201873e0912281420n590b173dtac94f9936cca6e3@mail.gmail.com> <4B393463.5060504@netscape.net> <6201873e0912281504j552d6351mf64d8e566d54bcef@mail.gmail.com> <20091229142310.GD90870@Alex1.lan> <4B3A1E1A.1040506@netscape.net> <20091229162711.GA38738@orange.esperance-linux.co.uk> <4B3A3045.3050907@netscape.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mYCpIKhGyMATD0i+" Content-Disposition: inline In-Reply-To: <4B3A3045.3050907@netscape.net> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: Frank Shute , freebsd-questions@freebsd.org Subject: Re: New user - small file server questions and quick GUI question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Dec 2009 17:31:42 -0000 --mYCpIKhGyMATD0i+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 29, 2009 at 06:37:25PM +0200, Kaya Saman wrote: > [...] > > > > What is not unusual is to symlink /home e.g: > > > > # ln -s /usr/home /home > > > > ditto for /tmp. i.e you remove all the stuff that uses up space from > > the root partition. > > > > So the only slices you need are /, /usr, /var and swap. > > > > How I'd slice up the disk: > > > > 2GB for / > > 2GB for swap > > 2GB for /var > > 34GB for /usr > > =20 >=20 > Ah so BSD is slightly different from Linux in the fact that it needs to= =20 > have /var and /usr filesystems separate?? It doesn't _need_ to have separate filesystems. It is just convenient. If y= ou want to stick everything (apart from swap) on a single / partition, you can= do so. If that is wise is another thing. :-) If your server will never hold mu= ch data (e.g. just a router/firewall) it would probably be fine. It depends on the use you want to put the machine to, and if/where you expe= ct to store a lot of stuff. For my desktop I tend to put /home on a separate partition because that is where most of my data is.=20 For a server I would put the big directories where the data is stored on separate partitions. E.g. the DocumentRoot for your Apache webserver. Or whereever the place is where an SQL server stores its data. > The /home partition then is very similar to Solaris in that /export/home= =20 > is considered the user directory. Means BSD stores /home in /usr/home?? If you don't make a separate /home partition, sysinstall will indeed default to making /home a symlink to /usr/home, AFAIK. For my desktop, with around 450 ports installed, I have the following lay-o= ut; Filesystem Size Used Avail Capacity Mounted on /dev/ad4s1a 484M 93M 353M 21% / /dev/ad4s1g.eli 373G 168G 175G 49% /home /dev/ad4s1e 48G 198K 45G 0% /tmp /dev/ad4s1f 19G 5.8G 12G 32% /usr /dev/ad4s1d 1.9G 226M 1.6G 12% /var For swap space (/dev/ad4s1b), I reserved 2x the size of the RAM. The 'Used' column should give you an idea of the minimum space needed for different filesystems. Keep in mind that disk space is relatively cheap, and it is much better to have lots of free space then to run out of space! This division makes it easy to use dump(8) for backup purposes of /, /usr a= nd /var. I do this so it is easy to restore(8) to a functioning system, and k= eep the size of the dumps reasonably small, although /usr is getting prtty big. Maybe next time I will split off /usr/local (for ports) into a separate filesystem. For big filesystems dump(8) takes a long time and needs a lot of space. I prefer to back those up with rsync(1). Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --mYCpIKhGyMATD0i+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAks6PPsACgkQEnfvsMMhpyWEfwCfWzvknTmBDj+0AAZ8xxtRHdlC HP4AoKerWmn49j8ymHkHFutsGVtN2OzO =nEHJ -----END PGP SIGNATURE----- --mYCpIKhGyMATD0i+--