Date: Tue, 29 Dec 2009 18:31:39 +0100 From: Roland Smith <rsmith@xs4all.nl> To: Kaya Saman <SamanKaya@netscape.net> Cc: Frank Shute <frank@shute.org.uk>, freebsd-questions@freebsd.org Subject: Re: New user - small file server questions and quick GUI question Message-ID: <20091229173139.GA33613@slackbox.xs4all.nl> In-Reply-To: <4B3A3045.3050907@netscape.net> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
--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+--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091229173139.GA33613>