[OmniOS-discuss] How do I rename a zone (including pool paths)?

John D Groenveld jdg117 at elvis.arl.psu.edu
Fri Jun 19 16:12:26 UTC 2015


In message <558431D3.5050106 at thestephensdomain.com>, Graham Stephens writes:
>Seems a simple question, but I've tried:

Try kludging it via the zone migration recipe.
# zoneadm -z foo detach
# zonecfg -z foo export >/root/bar.zonecfg
... fix zonepath
# zfs set zoned=off zones/foo/ROOT
# zfs rename zones/foo zones/bar
# zfs set zoned=on zones/bar/ROOT
# zfs set mountpoint=/zones/bar zones/bar
# zfs set mountpoint=/zones/bar/root zones/bar/ROOT/zbe-1
# zonecfg -z bar -f /root/bar.zonecfg 
# zoneadm -z bar attach

John
groenveld at acm.org


More information about the OmniOS-discuss mailing list