[OmniOS-discuss] lofs filesystem not seen inside zone
    Michael Mounteney 
    gate03 at landcroft.co.uk
       
    Sun Jun 30 10:09:33 UTC 2013
    
    
  
Hello, my zones setup appears to be inconsistent and inexplicable
(polite word for wrong) in its treatment of filesystems imported into
zones.
The system has a rpool/home ZFS which is just a container for five
'child' volumes, thus:
    root at mundo:~# zfs list | grep -w home
    rpool/home                  46.3G   134G    37K  /home
    rpool/home/business          288M   134G   288M  /home/business
    rpool/home/common           11.6G   134G  11.6G  /home/common
    rpool/home/installs         40.1M   134G  40.1M  /home/installs
    rpool/home/mounty           33.4G   134G  33.4G  /home/mounty
    rpool/home/sheila           1009M   134G  1009M  /home/sheila
What does work correctly is importing /home into a zone:
    root at mundo:~# zonecfg -z person export
    ...
    add fs
    set dir=/home
    set special=/home
    set type=lofs
    end
    ...
and that makes all five 'child' volumes appear at /home in the zone.
But what doesn't is importing the 'child' volumes directly, it appears:
    root at mundo:~# zonecfg -z zamba export
    ...
    add fs
    set dir=/home/common
    set special=/home/common
    set type=lofs
    end
    add fs
    set dir=/home/sheila
    set special=/home/sheila
    set type=lofs
    end
    ...
but the two volumes are not seen:
    root at mundo:~# zlogin zamba
    [Connected to zone 'zamba' pts/3]
    Last login: Sun Jun 30 02:23:32 on pts/3
    OmniOS 5.11	omnios-8d266aa	2013.05.04
    root at zamba:~# ls -la /home
    total 2
    dr-xr-xr-x  1 root root  1 Jun 30 02:12 .
    drwxr-xr-x 19 root root 21 Jun 16 08:35 ..
Even more wierdly, from the global zone it seems that they ARE present:
    root at zamba:~# shutdown -g0 -i5 -y
    Shutdown started.    Sun Jun 30 10:07:41 UTC 2013
    Changing to init state 5 - please wait
    Broadcast Message from root (pts/3) on zamba Sun Jun 30 10:07:41...
    THE SYSTEM zamba IS BEING SHUT DOWN NOW ! ! !
    Log off now or risk your files being damaged
    root at zamba:~# 
    [Connection to zone 'zamba' pts/3 closed]
    root at mundo:/# ls -l /zone/zamba/root/home/
    total 3
    drwxr-xr-x 2 root root 2 Jun 30 20:06 common
    drwxr-xr-x 2 root root 2 Jun 30 20:06 sheila
Any idea why ?  Thanks in expectation.
Michael.
    
    
More information about the OmniOS-discuss
mailing list