I wanted to close the loop on the mount interaction with ZFS delegated
datasets under lx.

I closed https://smartos.org/bugview/OS-4157 as 'not a bug' with the
following evaluation:

What is happening here is that the way libzfs works, setting the mountpoint
doesn't cause the mount to happen if the dataset wasn't mounted to begin
with. If the dataset is mounted and I set the mountpoint to someplace else,
the dataset will get mounted at the new place

So the problem really is that the dataset was not mounted at it's
mountpoint when the zone booted. In a native zone this mount would happen
when the fs-local SMF svc runs the command '/usr/sbin/zfs mount -va' to
mount all of the ZFS file systems. If you run '/native/usr/sbin/zfs mount
-va' under lx it does mount all of the datasets at their mountpoints. So,
depending on which Linux service manager is being used inside the zone, a
new service (for example, a new rc file) could be created to do the ZFS
mounts at boot time.

Let us know if there are any other issues using ZFS inside an lx zone.

Thanks,
Jerry



-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to