Mimimal set of r/w filesytems for a jail?

Kirk Strauser kirk at strauser.com
Sun Apr 27 14:38:41 PDT 2003


I am running multiple jails on my 4.7-STABLE server, but seriously want to
cut back on redundant file storage.  In my current setup, I have multiple
jail directories, each with a complete FreeBSD installation.  I would like
to migrate to a setup where all jails share one common "base" filesystem
mounted read-only, and have small jail-specific directories for local
read-write access.  My thinking is that, at a minimum, I'd need r/w mounts
for:

  /dev
  /etc
  /home
  /root
  /tmp
  /usr/local
  /var

Is there anything else that should be included?

Second question.  Somehow or another, I'll need to mount those directories
inside the jail.  I've been using NFS mounts to localhost to share
/usr/ports across jails.  Is this still the recommended stable method for
what I'm trying to accomplish?  The union (and null) filesystems look like
they'd be ideal, but the man page warnings are a pretty strong deterrent to
use on a production system.
-- 
Kirk Strauser
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030427/a88e2fe9/attachment.bin


More information about the freebsd-questions mailing list