Re: [OpenIndiana-discuss] Moving zone

2015-10-15 Thread LGL Extern
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:openindi...@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.9G33K
/largetank/zones/zonegate

rpool/zones/zonegate/ROOT 9.90G  19.9G31K  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@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Moving zone

2015-10-15 Thread Nikola M

On 10/14/15 09:31 PM, the outsider wrote:

I tried to move a zone from the basic rpool ZFS system to a larger ZFS
system on the same machine.
...


What is the best thing to do?


Best thing to do is to always have snapshots of your datasets ready for 
any occasion.
And snapshots don't replace data replications. And replications do not 
replace backups.


See if you also have previous Boot Environment (beadm) that includes 
your zone's previous state.
You can post what Openindiana you are using and to where you are moving 
the zone. (So the testing could be done to recreate your case).


in case you don't find anything described, you can always make snapshots 
now to make sure you don't loose anything on both sides and start with 
rsync manually if anything else fails (or Gnome commander if wanting GUI).


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Moving zone

2015-10-14 Thread Jonathan Adams
I remember moving a zone in a terrible hacky way in the past ...

run a "zoneadm -z  detach", move the zfs the old fashioned way (zfs
send/receive) zonecfg -z  and change the location, then zfs attach it
back in again.

not sure how to (un)do what you've done though ...

Jon

On 14 October 2015 at 20:31, the outsider  wrote:

> 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.9G33K
> /largetank/zones/zonegate
>
> rpool/zones/zonegate/ROOT 9.90G  19.9G31K  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@openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] Moving zone

2015-10-14 Thread the outsider
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.9G33K
/largetank/zones/zonegate

rpool/zones/zonegate/ROOT 9.90G  19.9G31K  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@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss