Hiya, I observed that zone datasets are mounted even though no zones are 

this strikes me like a bug ? aren't they supposed to be mounted only when the 
zone boots ?

example from build 130:

osoldev.root./export/home/batschul.=> zoneadm list -cp

looks whats actually mounted right now:

osoldev.batschul./export/home/batschul.=> mount -v|grep zone
tank/zones on /tank/zones type zfs 
read/write/setuid/devices/nonbmand/exec/xattr/atime/dev=21000e on Fri Jan 22 
09:02:17 2010
tank/zones/zone2 on /tank/zones/zone2 type zfs 
read/write/setuid/devices/nonbmand/exec/xattr/atime/dev=21000f on Fri Jan 22 
09:02:17 2010
tank/zones/zone2/ROOT/zbe on /tank/zones/zone2/root type zfs 
read/write/setuid/devices/nonbmand/exec/xattr/atime/dev=210010 on Fri Jan 22 
09:02:22 2010

df confirms:

osoldev.root./export/home/batschul.=> df -lkah
Filesystem             size   used  avail capacity  Mounted on

tank/zones/zone2       228G    24K   203G     1%    /tank/zones/zone2
                       228G   511M   203G     1%    /tank/zones/zone2/root

osoldev.root./export/home/batschul.=> zfs list -t all
NAME                                             USED  AVAIL  REFER  MOUNTPOINT

tank/zones/zone2                                 511M   203G    24K  
tank/zones/zone2/ROOT                            511M   203G    21K  legacy
tank/zones/zone2/ROOT/zbe                        511M   203G   511M  legacy

inspecting the 'canmount' zfs property gives a hint:

osoldev.root./export/home/batschul.=> zfs get canmount tank/zones/zone2
tank/zones/zone2  canmount  on        default
osoldev.root./export/home/batschul.=> zfs get canmount tank/zones/zone2/ROOT
NAME                   PROPERTY  VALUE     SOURCE
tank/zones/zone2/ROOT  canmount  on        default
osoldev.root./export/home/batschul.=> zfs get canmount tank/zones/zone2/ROOT/zbe
NAME                       PROPERTY  VALUE     SOURCE
tank/zones/zone2/ROOT/zbe  canmount  noauto    local

so the 'zonepath' dataset has 'canmount=on' and is thus mounted
by zfs mount -a, shouldn't that be 'canmount=noauto' ?

the 'zonepath/ROOT' dataset has the same.

even more interesting is that the 'zonepath/ROOT/zbe' apparently
has the proper 'canmount=noauto' - yet it is mounted as well after boot.

am I missing something obvious ?


zones-discuss mailing list

Reply via email to