Thilo Stallherm wrote:
> Hi all,
> 
> is it possible to add a ZFS to a running Zone without having to reboot
> the Zone?

I was able to do it.

# zfs create tank/foo
# zfs set mountpoint=legacy tank/foo
# zfs set zoned=on tank/foo

Create the mountpoint in the zone, mount it into the running zone

# mkdir /zones/zone1/root/foo
# mount -F zfs tank/foo /zones/zone1/root/foo

I don't see it in my global zone:
# df -k
Filesystem            kbytes    used   avail capacity  Mounted on
tank                   94208      28   93416     1%    /tank

But it's in my non-global zone:
[EMAIL PROTECTED]> df -k
Filesystem            kbytes    used   avail capacity  Mounted on
tank/foo               93441      24   93416     1%    /foo

Since you haven't presented the dataset to the zone, you need to umount 
from the global zone.

[EMAIL PROTECTED]> zfs list
no datasets available

This won't work:
umount /zones1/zone/root/foo
umount: warning: /zones1/zone/root/foo not in mnttab
umount: /zones1/zone/root/foo no such file or directory

But this works:
# umount tank/foo

CT


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

Reply via email to