Re: [zones-discuss] duplicating zones from one server in one location to another server
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
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
Re: [zones-discuss] duplicating zones from one server in one location to another server
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... Thanks. Chris On Thu, 29 Mar 2007, Jerry Jelinek wrote: 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 !DSPAM:122,460bceeb12914371292! ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] duplicating zones from one server in one location to another server
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