Can we recover non-global zone if Global zone is reimaged because of an OS issue and non-global zone OS is running on different pool which is on SAN. For ex: Global is running on rpool -> Internal disk Non-Global zone is running on testpool -> Which is on SAN. Thanks, Ram -- This message posted from opensolaris.org
On Thu, Jul 7, 2011 at 2:08 PM, Ram <Ram.kumar2 at gmail.com> wrote:> Can we recover non-global zone if Global zone is reimaged because of an OS issue > and non-global zone OS is running on different pool which is on SAN.If the NG Zone is on a different zpool, and that zpool was not over-written, then you can easily recover the NG Zone, but that is more a question for the zones-discuss list :-) Once you can see the NG Zone again (zpool import, probably with a -F), then you just recreate the NG Zone using zonecfg but do NOT install it. Once it is created you just attach it with zoneadm (and use the upgrade on attach option, I forget the flag if the OS rev of the Global zone is now newer).> For ex: Global is running on rpool -> Internal disk > Non-Global zone is running on testpool -> Which is on SAN.You are probably OK. What was the old OS version and what is the new OS version ? -- {--------1---------2---------3---------4---------5---------6---------7---------} Paul Kraus -> Senior Systems Architect, Garnet River ( http://www.garnetriver.com/ ) -> Sound Coordinator, Schenectady Light Opera Company ( http://www.sloctheater.org/ ) -> Technical Advisor, RPI Players
Hi Ram, Which Solaris release is this and how was the OS re-imaged? If this is a recent Solaris 10 release and you used Live Upgrade, then the answer is yes. I''m not so sure about zone behavior in the Oracle Solaris 11 Express release. You should just be able to import testpool and boot your zones. Thanks, Cindy On 07/07/11 12:08, Ram wrote:> Can we recover non-global zone if Global zone is reimaged because of an OS issue and non-global zone OS is running on different pool which is on SAN. > > For ex: Global is running on rpool -> Internal disk > Non-Global zone is running on testpool -> Which is on SAN. > > Thanks, > Ram
Hi Cindy, Thanks for the email. We are using Solaris 10 with out Live Upgrade. Tested following in the sandbox environment: 1) We have one non-global zone (TestZone) which is running on Test zpool (SAN) 2) Don?t see zpool or non-global zone after re-image of Global zone. 3) Imported zpool Test Now I am trying to create Non-global zone and it is giving error bash-3.00# zonecfg -z Test Test: No such zone configured Use ''create'' to begin configuring a new zone. zonecfg:Test> create -a /zones/Test invalid path to detached zone Thanks, Ram On Thu, Jul 7, 2011 at 3:14 PM, Cindy Swearingen < cindy.swearingen at oracle.com> wrote:> Hi Ram, > > Which Solaris release is this and how was the OS re-imaged? > > If this is a recent Solaris 10 release and you used Live Upgrade, > then the answer is yes. > > I''m not so sure about zone behavior in the Oracle Solaris 11 > Express release. > > You should just be able to import testpool and boot your zones. > > Thanks, > > Cindy > > On 07/07/11 12:08, Ram wrote: > >> Can we recover non-global zone if Global zone is reimaged because of an OS >> issue and non-global zone OS is running on different pool which is on SAN. >> >> For ex: Global is running on rpool -> Internal disk >> Non-Global zone is running on testpool -> Which is on SAN. >> >> Thanks, >> Ram >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20110707/d92809b9/attachment-0001.html>
It looks like it is looking for SUNWdetached.xml which will create when we deattch the zone but in my case, I didn''t deattach the zone before reimage. Thanks, Ram Sent via BlackBerry from T-Mobile -----Original Message----- From: Ram kumar <ram.kumar2 at gmail.com> Date: Thu, 7 Jul 2011 15:41:17 To: Cindy Swearingen<cindy.swearingen at oracle.com> Cc: <zfs-discuss at opensolaris.org> Subject: Re: [zfs-discuss] Non-Global zone recovery Hi Cindy, Thanks for the email. We are using Solaris 10 with out Live Upgrade. Tested following in the sandbox environment: 1) We have one non-global zone (TestZone) which is running on Test zpool (SAN) 2) Don?t see zpool or non-global zone after re-image of Global zone. 3) Imported zpool Test Now I am trying to create Non-global zone and it is giving error bash-3.00# zonecfg -z Test Test: No such zone configured Use ''create'' to begin configuring a new zone. zonecfg:Test> create -a /zones/Test invalid path to detached zone Thanks, Ram On Thu, Jul 7, 2011 at 3:14 PM, Cindy Swearingen < cindy.swearingen at oracle.com> wrote:> Hi Ram, > > Which Solaris release is this and how was the OS re-imaged? > > If this is a recent Solaris 10 release and you used Live Upgrade, > then the answer is yes. > > I''m not so sure about zone behavior in the Oracle Solaris 11 > Express release. > > You should just be able to import testpool and boot your zones. > > Thanks, > > Cindy > > On 07/07/11 12:08, Ram wrote: > >> Can we recover non-global zone if Global zone is reimaged because of an OS >> issue and non-global zone OS is running on different pool which is on SAN. >> >> For ex: Global is running on rpool -> Internal disk >> Non-Global zone is running on testpool -> Which is on SAN. >> >> Thanks, >> Ram >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20110707/2150defc/attachment.html>
Okay, so which Solaris 10 release is this? It might also depend on how your zones are created. You can review the support zone configurations here: http://download.oracle.com/docs/cd/E18752_01/html/819-5461/ggpdm.html#gigek Using Oracle Solaris Live Upgrade to Migrate or Upgrade a System With Zones (at Least Solaris 10 5/09) Also see Example 5-6 When you import your test pool, do you see your file systems: # zfs list Can you see your zone information: # zoneadm list -v Thanks, Cindy On 07/07/11 13:41, Ram kumar wrote:> Hi Cindy, > > Thanks for the email. > > > We are using Solaris 10 with out Live Upgrade. > > > > > > Tested following in the sandbox environment: > > > > 1) We have one non-global zone (TestZone) which is running on Test > zpool (SAN) > > 2) Don?t see zpool or non-global zone after re-image of Global zone. > > 3) Imported zpool Test > > > > Now I am trying to create Non-global zone and it is giving error > > > > bash-3.00# zonecfg -z Test > > Test: No such zone configured > > Use ''create'' to begin configuring a new zone. > > zonecfg:Test> create -a /zones/Test > > invalid path to detached zone > > Thanks, > Ram > > > > On Thu, Jul 7, 2011 at 3:14 PM, Cindy Swearingen > <cindy.swearingen at oracle.com <mailto:cindy.swearingen at oracle.com>> wrote: > > Hi Ram, > > Which Solaris release is this and how was the OS re-imaged? > > If this is a recent Solaris 10 release and you used Live Upgrade, > then the answer is yes. > > I''m not so sure about zone behavior in the Oracle Solaris 11 > Express release. > > You should just be able to import testpool and boot your zones. > > Thanks, > > Cindy > > On 07/07/11 12:08, Ram wrote: > > Can we recover non-global zone if Global zone is reimaged > because of an OS issue and non-global zone OS is running on > different pool which is on SAN. > > For ex: Global is running on rpool -> Internal disk > Non-Global zone is running on testpool -> Which is on SAN. > > Thanks, > Ram > >
I missed that you''re using s10 *without* Live Upgrade. If so, I don''t know what the resulting zone behavior would be. Cindy On 07/07/11 14:09, Cindy Swearingen wrote:> Okay, so which Solaris 10 release is this? > > It might also depend on how your zones are created. > You can review the support zone configurations here: > > http://download.oracle.com/docs/cd/E18752_01/html/819-5461/ggpdm.html#gigek > > Using Oracle Solaris Live Upgrade to Migrate or Upgrade a System With > Zones (at Least Solaris 10 5/09) > > Also see Example 5-6 > > When you import your test pool, do you see your file systems: > > # zfs list > > Can you see your zone information: > > # zoneadm list -v > > Thanks, > > Cindy > > On 07/07/11 13:41, Ram kumar wrote: >> Hi Cindy, >> >> Thanks for the email. >> >> >> We are using Solaris 10 with out Live Upgrade. >> >> >> >> >> >> Tested following in the sandbox environment: >> >> >> >> 1) We have one non-global zone (TestZone) which is running on >> Test zpool (SAN) >> >> 2) Don?t see zpool or non-global zone after re-image of Global zone. >> >> 3) Imported zpool Test >> >> >> >> Now I am trying to create Non-global zone and it is giving error >> >> >> >> bash-3.00# zonecfg -z Test >> >> Test: No such zone configured >> >> Use ''create'' to begin configuring a new zone. >> >> zonecfg:Test> create -a /zones/Test >> >> invalid path to detached zone >> >> Thanks, >> Ram >> >> >> >> On Thu, Jul 7, 2011 at 3:14 PM, Cindy Swearingen >> <cindy.swearingen at oracle.com <mailto:cindy.swearingen at oracle.com>> wrote: >> >> Hi Ram, >> >> Which Solaris release is this and how was the OS re-imaged? >> >> If this is a recent Solaris 10 release and you used Live Upgrade, >> then the answer is yes. >> >> I''m not so sure about zone behavior in the Oracle Solaris 11 >> Express release. >> >> You should just be able to import testpool and boot your zones. >> >> Thanks, >> >> Cindy >> >> On 07/07/11 12:08, Ram wrote: >> >> Can we recover non-global zone if Global zone is reimaged >> because of an OS issue and non-global zone OS is running on >> different pool which is on SAN. >> >> For ex: Global is running on rpool -> Internal disk >> Non-Global zone is running on testpool -> Which is on SAN. >> >> Thanks, >> Ram >> >> > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
On Thu, Jul 7, 2011 at 4:24 PM, Cindy Swearingen <cindy.swearingen at oracle.com> wrote:> I missed that you''re using s10 *without* Live Upgrade. > > If so, I don''t know what the resulting zone behavior would be.Wouldn''t it be the same as just copying (or moving) a zone root without first detaching it ? I have successfully attached zones in that state (shut down but not detached). In answer to an earlier post, I''m not sure what checks have been added to zonecfg and zoneadm to prevent accidentally over writing a zone. But first you need to make sure that you can see the zoneroot and it''s data. You may have to force an operation since you did not detach the zone. -- {--------1---------2---------3---------4---------5---------6---------7---------} Paul Kraus -> Senior Systems Architect, Garnet River ( http://www.garnetriver.com/ ) -> Sound Coordinator, Schenectady Light Opera Company ( http://www.sloctheater.org/ ) -> Technical Advisor, RPI Players
On Thu, Jul 7, 2011 at 2:41 PM, Ram kumar <ram.kumar2 at gmail.com> wrote:> > Hi Cindy, > > Thanks for the email. > > We are using Solaris 10 with out Live Upgrade. > > Tested following in the sandbox environment: > > 1)????? We have one non-global zone (TestZone) ?which is running on Test zpool (SAN) > > 2)????? Don?t see zpool or non-global zone after re-image of Global zone. > > 3)????? Imported zpool Test > > Now I am trying to create Non-global zone and it is giving error > > bash-3.00# zonecfg -z Test > Test: No such zone configured > Use ''create'' to begin configuring a new zone. > zonecfg:Test> create -a /zones/Test > invalid path to detached zoneIf you use create -a, it requires that SUNWdetached.xml exist as a means for configuring the various properties (e.g. zonepath, brand, etc.) and resources (inherit-pkg-dir, net, fs, device, etc.) for the zone. Since you don''t have the SUNWdetached.xml, you can''t use it. Assuming you have a backup of the system, you could restore a copy of /etc/zones/<zonename.xml> to /etc/zones/restored-<zonename>.xml, then run: zonecfg -z <zonename> create -t restored-<zonename> If that''s not an option or is just too inconvenient, use zonecfg to configure the zone just like you did initially. That is, do not use "create -a", use "create", "create -b", or "create -t <whateverTemplateYouUsed>" followed by whatever property settings and added resources are appropriate. After you get past zonecfg, you should be able to: zoneadm -z <zonename> attach If the package and patch levels don''t match up (the global zone perhaps was installed from a newer update or has newer patches): zoneadm -z <zonename> attach -U or zoneadm -z <zonename> attach -u Since you seem to be doing this in a test environment to prepare for bad things to happen, I''d suggest that you make it a standard practice when you are done configuring a zone to do: zonecfg -z <zonename> export > <zonepath>/zonecfg.export Then if you need to recover the zone using only the things that are on the SAN, you can do: zpool import ... zonecfg -z <zonename> -f <zonepath>/zonecfg.export zoneadm -z <zonename> attach [-u|-U] Any follow-ups should probably go to Oracle Support or zones-discuss. Your problems are not related to zfs. -- Mike Gerdts http://mgerdts.blogspot.com/