Date: Wed, 22 Aug 2007 21:51:35 -0500 From: "Andrew Gould" <andrewlylegould@gmail.com> To: "Brad Waite" <freebsd@wcubed.net> Cc: freebsd-questions@freebsd.org Subject: Re: /var or /usr for data? Message-ID: <d356c5630708221951y5cfff9d0n94eb6093c0a145ca@mail.gmail.com> In-Reply-To: <56712.67.176.75.179.1187816225.squirrel@webmail.wcubed.net> References: <56712.67.176.75.179.1187816225.squirrel@webmail.wcubed.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 8/22/07, Brad Waite <freebsd@wcubed.net> wrote: > > It would appear that the "proper" allocation of filesystems on FreeBSD is > to put all data in /usr. I'm used to this and have been doing it for > years. > > However, there's a few issues that keep coming up. A lot of the ports use > /var for data dirs. MySQL, Qmail, dspam are a few that I've had issues > with. > > Is there a canonical place to put data files on a modern FreeBSD server? > Figuring out the sizes for each partition is an exercise in frustration > when I don't know how big /var or /usr are going to grow. > > For now, I've changed the default config files for MySQL and dspam to use > /usr/local for data dirs, but is this the "right" thing to do? > > I used to put everything on /, but that created problems when I couldn't > fsck the single large partition and I had to boot from CD to fix things. > That's an issue when the server's not in the same state. > > A Solaris associate of mine is of the opinion that /usr should be able to > be mounted RO for security purposes. If /var was the default for all > add-ons and data, I could see that, but that wouldn't work the ways things > are now. > > I usually move the data directories (/usr/home, /usr/local/pgsql, /var/db/mysql, etc) to a separate, hard drive mounted at /data and create symbolic links back at the default locations. If you run out of space, you can move the data to a larger hard drive and either adjust the links or have the new drive mount at /data (or wherever you choose). I hope this helps. Andrew
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d356c5630708221951y5cfff9d0n94eb6093c0a145ca>