Created
July 28, 2013 03:58
-
-
Save mattconnolly/6097313 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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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