Re: [zones-discuss] Duplicating zones ??

2010-06-30 Thread Jerry Jelinek

On 06/30/10 04:34, Warren Zeeman wrote:

Hello,

IHAC who wants to duplicate a global zone, as a zone on another server !!!
Does anybody have any thoughts on the easiest way to achieve this ?


We call this p2v (physical to virtual).  Its been in opensolaris
for quite a while now, so if you running a fairly recent build
you already have this.  I blogged about this early in 2009.

http://blogs.sun.com/jerrysblog/entry/zones_p2v

Jerry
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] duplicating zones from one server in one location to another server

2007-04-03 Thread Niclas Sodergard

On 3/29/07, Krzys [EMAIL PROTECTED] wrote:

Great, thank you Jerry

Is there any way to replicate zone from one server to another without actually
bringing down the original zone down? I have a production server that I want to
duplicate and I do not want to bring that zone down but I would like to
duplicate it to another server in entire state...


One way to minimize downtime is to rsync the zone over to the new
location while the zone is running. You then halt the zone, run rsync
again (there shouldn't be many changes) and then you can bring the
zone online on the new host. Downtime is measured in a few minutes
even for zones with a lot of data.

cheers,
Nickus
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] duplicating zones from one server in one location to another server

2007-04-02 Thread Jerry Jelinek

Krzys wrote:
Is there any way to replicate zone from one server to another without 
actually bringing down the original zone down? I have a production 
server that I want to duplicate and I do not want to bring that zone 
down but I would like to duplicate it to another server in entire state...


We do not have any support for doing that directly since the zone
can be in a state of flux.  You would have to try to manage that
manually by checking that whatever is running within the zone is in
a stable state before copying the zonepath or taking a snapshot.  We
also only allow you to detach a zone that is in the installed state
(not the running state) although we just recently putback an enhancement
into nevada that allows you to try to attach a zone that was not
properly detached.  We envisioned that more as a disaster recovery
tool than as something you would use on a regular basis since there
are more opportunities for failure than when you first properly detach
a zone.

Jerry
___
zones-discuss mailing list
zones-discuss@opensolaris.org


[zones-discuss] duplicating zones from one server in one location to another server

2007-03-29 Thread Krzys


Hello folks, I have a question, here is a situation.

I did build a new server environment in one location (TX) and I have setup 
multiple zones and they are on a zfs. My goal is to take zone configuration with 
all zone content that is on zfs and duplicate it on into another server in NYC 
location. What woul dbe the simplest and easiest way to do that in your opinion?


SHould I just export zone configuration and then create it on that different 
server and then take zfs and send/receive over ssh to that other server? Only 
problem with doing this is that even that both servers are Solaris 10 U3 there 
might be slight differences in patch configuration... One server is V245 the 
other that i will be replicating to is V240 (Should be not much differences in 
that setup)


Anyway how does the zone detach / attach works? Never worked with this so I dont 
know and have no idea if that might or might not work, what do you think? Any 
hints how detach / attach works?


Thanks for any help.

Chris
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] duplicating zones from one server in one location to another server

2007-03-29 Thread Jerry Jelinek

Krzys wrote:


Hello folks, I have a question, here is a situation.

I did build a new server environment in one location (TX) and I have 
setup multiple zones and they are on a zfs. My goal is to take zone 
configuration with all zone content that is on zfs and duplicate it on 
into another server in NYC location. What woul dbe the simplest and 
easiest way to do that in your opinion?


SHould I just export zone configuration and then create it on that 
different server and then take zfs and send/receive over ssh to that 
other server? Only problem with doing this is that even that both 
servers are Solaris 10 U3 there might be slight differences in patch 
configuration... One server is V245 the other that i will be replicating 
to is V240 (Should be not much differences in that setup)


Anyway how does the zone detach / attach works? Never worked with this 
so I dont know and have no idea if that might or might not work, what do 
you think? Any hints how detach / attach works?


The zone attach/detach functionality can be used to duplicate a zone
this way.  With this functionality we do not dictate how the data
gets to the other host so you are free to move the data in any way
that you like.  After you move the data and attach the zone to the new
host you can also re-attach it onto the existing host.  By doing it
that way, you have duplicated the zone.

The attach/detach code does expect that you have the same set
of patches on both the source and target for the pkgs that the zone
depends on.  The attach command will automatically tell you if anything
is out of sync.

You can also use the -a flag on 'zonecfg create' to attach the configuration
from the zonepath so there is no need to export the zonecfg.

You can get more info about all of this from the zone docs here:

http://docs.sun.com/app/docs/doc/817-1592/6mhahuork?a=view

Jerry


___
zones-discuss mailing list
zones-discuss@opensolaris.org