Re: mounts: nullfs and unionfs

2008-05-16 Thread Philip M. Gollucci

Philip M. Gollucci wrote:

FWIW: the unionfs seems very stable atm the moment.

$ df -h
Filesystem  SizeUsed   Avail Capacity  Mounted 
/dev/ar0s1h  24G 12G 11G52%/usr/home
:/usr/home/jails/base 49G 36G 11G77% 
/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 ([EMAIL PROTECTED])
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-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


mounts: nullfs and unionfs

2008-05-16 Thread Philip M. Gollucci

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 ([EMAIL PROTECTED])
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-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"