20080504

ZFS dataset inside a non-global zone

To achieve the usage of global ZFS dataset inside a non-global zone you have to set the zoned attribute to on. It could be done during the dataset creation (zfs create -o zoned=on DATASET) or after the creation process:

zfs set zoned=on DATASET


Without this option the zone startup process will fail, ex.

sunflower [/]# zoneadm -z samba boot
zoneadm: zone 'samba': These file-systems are mounted on subdirectories of /export/zones/samba/root:
zoneadm: zone 'samba': /export/zones/samba/root/export/vol1
zoneadm: zone 'samba': call to zoneadmd failed

No comments: