mounts: nullfs and unionfs

0 views
Skip to first unread message

Philip M. Gollucci

unread,
May 16, 2008, 3:15:13 AM5/16/08
to ques...@freebsd.org
Hi Guys,

$ cd /usr/src
$ export D=/jails/src
$ export H=/jails/tld/domain/host
$ export B=/jails/base
$ sudo mkdir -p $D $H B
$ sudo make installworld DESTDIR=$D
$ sudo make distribution DESTDIR=$D
$ sudo rsync -vrlHpEogXtD $D $B
$ cd $B
$ ln -s usr/home
$ cd $B/usr/home
$ mkdir pgollucci

[/etc/fstab]
/dev/ar0s1h /usr/home ufs rw 2 2
/usr/home/pgollucci $H/usr/home/pgollucci nullfs ro 0 0
$B $H unionfs rw,below 0 0
[--end--]


So the unionfs [1] mounts work fine; however, I can't see the nullfs
mount in the upper layer. I tried doing a layered unionfs mount, and
that didn't work either. I'm guessing this is a known issue. Are there
plans to solve it ?

The only work around I can think of (which does work) is to nullfs mount
in the upper layer instead of the lower one. The only problem is that
multiples my mounts substantially. For example it would be nice to mount
/root/bin, /usr/src, /usr/ports, /usr/home/X (or just /usr/home), devfs
in each $H.

For the record, I know about ezjail, other tools, and other docs on
sharing read only areas with a base (/s). I'm interested in solving it
this particular way, if only to learn more.

[1]
http://www.freebsd.org/news/status/report-2008-01-2008-03.html#UnionFS-Improvements
my 8.0-current is new enough to have all these patches in it.

FWIW: the unionfs seems very stable atm the moment.


--
------------------------------------------------------------------------
Philip M. Gollucci (phi...@ridecharge.com)
o:703.549.2050x206
Senior System Admin - Riderway, Inc.
http://riderway.com / http://ridecharge.com
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching

_______________________________________________
freebsd-...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

Philip M. Gollucci

unread,
May 16, 2008, 3:33:34 AM5/16/08
to ques...@freebsd.org
Philip M. Gollucci wrote:
> FWIW: the unionfs seems very stable atm the moment.
$ df -h
Filesystem Size Used Avail Capacity Mounted
/dev/ar0s1h 24G 12G 11G 52% /usr/home
<below>:/usr/home/jails/base 49G 36G 11G 77%
/usr/home/jails/net/p6m7g8/builder/zeus

Shouldn't the size for the unionfs fs be the same ? I don't see how it
can be bigger than the HD.

In this particular case, its a RAID-1 (hardware based) of 2x20GB disks.

--
------------------------------------------------------------------------
Philip M. Gollucci (phi...@ridecharge.com)
o:703.549.2050x206
Senior System Admin - Riderway, Inc.
http://riderway.com / http://ridecharge.com
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C

Work like you don't need the money,
love like you'll never get hurt,

and dance like nobody's watching.

Reply all
Reply to author
Forward
0 new messages