Skip to content

Instantly share code, notes, and snippets.

@naisanza
Forked from mattconnolly/gist:6097313
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naisanza/66eb80d274de7caa8924 to your computer and use it in GitHub Desktop.
Save naisanza/66eb80d274de7caa8924 to your computer and use it in GitHub Desktop.
Adding a zfs dataset to a SmartOS zone. Seems there's no vmadm api for this, but you can do it with zonecfg:
# vmadm halt <uuid>
# zonecfg -z <uuid>
zonecfg:uuid> add dataset
zonecfg:uuid:dataset> set name=<zfs/path>
zonecfg:uuid:dataset> end
zonecfg:uuid> commit
zonecfg:uuid> exit
# zfs set mountpoint=legacy <zfs/path>
# vmadm boot <uuid>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment