Miles Benson wrote:
Thanks for getting back.

Anyway, I've done some more digging.  It seems to be related to having 
delegated a dataset to a zone.

I have two zones 'basezone' and 'paulzone'.  Forget the fact that I used the 
example of basezone above for a moment.

basezone has no delegated dataset and when you zlogin you can do

r...@muttley:~# zlogin basezone
[Connected to zone 'basezone' pts/2]
Last login: Mon Sep 28 19:29:31 on pts/2
Sun Microsystems Inc.   SunOS 5.11      snv_111b        November 2008
r...@basezone:~# zfs list
NAME                           USED  AVAIL  REFER  MOUNTPOINT
tank                          93.8G  2.57T  53.6K  /tank
tank/zones                    1.12G  2.57T  41.1K  /tank/zones
tank/zones/basezone            314M  2.57T  37.5K  /tank/zones/basezone
tank/zones/basezone/ROOT       314M  2.57T  34.0K  legacy
tank/zones/basezone/ROOT/zbe   314M  2.57T   309M  legacy
r...@basezone:~# touch /tank/zones/foobar
touch: cannot create /tank/zones/foobar: No such file or directory
r...@basezone:~#

so all's well and good.

paulzone on the other hand was cloned from basezone and then I created a new 
filesystem /tank/zones/pauldata and delegated it:

r...@muttley:~# zonecfg -z paulzone info
zonename: paulzone
zonepath: /tank/zones/paulzone
brand: ipkg
autoboot: true
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
hostid:
net:
        address: 192.168.246.249/29
        physical: e1000g0
        defrouter: 192.168.246.254
dataset:
        name: tank/zones/pauldata
r...@muttley:~#

so if we zlogin to that zone...

r...@muttley:~# zlogin paulzone
[Connected to zone 'paulzone' pts/2]
Last login: Mon Sep 28 19:30:10 on pts/2
Sun Microsystems Inc.   SunOS 5.11      snv_111b        November 2008
r...@oberon:~# zfs list
NAME                                USED  AVAIL  REFER  MOUNTPOINT
tank                               93.8G  2.57T  53.6K  /tank
tank/zones                         1.12G  2.57T  41.1K  /tank/zones
tank/zones/pauldata                 390M  19.6G   390M  /tank/zones/pauldata
tank/zones/pauldata/svnrepository   105K  19.6G   105K  
/tank/zones/pauldata/svnrepository
tank/zones/paulzone                 404M  4.61G  37.5K  /tank/zones/paulzone
tank/zones/paulzone/ROOT            404M  4.61G  34.0K  legacy
tank/zones/paulzone/ROOT/zbe        404M  4.61G   701M  legacy
r...@oberon:~# touch /tank/zones/foobar
r...@oberon:~# ls -l /tank/zones/foobar
-rw-r--r--   1 root     root           0 Sep 28 19:38 /tank/zones/foobar
r...@oberon:~#

not so good.

It looks like you are doing all of this in the nonglobal zone.
You can certainly create files in any directory in the
path /tank/zones/foobar within the zone, but that doesn't
mean you are doing anything to the global zone.  Within
the global zone, can you see /tank/zones/foobar?  Can you
create files in the global zone in /tank/zones that are
then visible within the nonglobal zone?  I cannot.

Thanks,
Jerry

_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to