[OpenIndiana-discuss] Moving zone
Grüninger, Andreas (LGL Extern)
Andreas.Grueninger at lgl.bwl.de
Thu Oct 15 09:21:09 UTC 2015
Send largetank/zones/zonegate back to rpool/zones/zonegate with zfs send/receive.
Try to boot the zone. If this works good for you.
Then at first make backups.
Never used zoneadm -z ... move.
Obviously it doesn't make snapshost with option '-r'.
I copied this from my scripts to move zones under Solaris 11.2.
Normally I copy zones between systems so uninstall and delete is not necessary.
ZONE=???
zoneadm -z ${ZONE} halt
zoneadm -z ${ZONE} detach
zfs snapshot -r rpool/export/zones/${ZONE}@1
zonecfg -z ${ZONE} export > {ZONE}.zonecfg ## SOLARIS!
zfs send -R rpool/export/zones/${ZONE}@1|zfs recv anotherpool/${ZONE2}
zoneadm -z ${ZONE} uninstall -F
zoneadm -z ${ZONE} delete -F
zonecfg -z ${ZONE} create -a / anotherpool /${ZONE}
zoneadm -z ${ZONE} attach
Good luck
Andreas
-----Ursprüngliche Nachricht-----
Von: the outsider [mailto:openindiana at out-side.nl]
Gesendet: Mittwoch, 14. Oktober 2015 21:31
An: Discussion list for OpenIndiana
Betreff: [OpenIndiana-discuss] Moving zone
I tried to move a zone from the basic rpool ZFS system to a larger ZFS system on the same machine.
(The name of my zone is "zonegate", the large ZFS system is called largetank
)
Since there are many different "manuals" on the internet and I tried one which told to do "zoneadm -z zonegate move.
But this resulted in a partially moved zone. Which states:
ZFS list
rpool/zones/zonegate 9.90G 19.9G 33K
/largetank/zones/zonegate
rpool/zones/zonegate/ROOT 9.90G 19.9G 31K legacy
rpool/zones/zonegate/ROOT/zbe 9.90G 19.9G 3.11G legacy
rpool/zones/zonegate/ROOT/zbe-1 85.5K 19.9G 1.96G legacy
So i messed up bigtime.
And this zone is very important for its data, so I can't afford to make mistakes.
What is the best thing to do?
_______________________________________________
openindiana-discuss mailing list
openindiana-discuss at openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss
More information about the openindiana-discuss
mailing list