Re: [zfs-discuss] Non-Global zone recovery

2011-07-07 Thread Mike Gerdts
On Thu, Jul 7, 2011 at 2:41 PM, 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

If 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/ to /etc/zones/restored-.xml, then
run:

zonecfg -z  create -t restored-

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
" followed by whatever property settings and
added resources are appropriate.

After you get past zonecfg, you should be able to:

zoneadm -z  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  attach -U
or
zoneadm -z  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  export >  /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  -f /zonecfg.export
zoneadm -z  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/
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Non-Global zone recovery

2011-07-07 Thread Paul Kraus
On Thu, Jul 7, 2011 at 4:24 PM, Cindy Swearingen
 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
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Non-Global zone recovery

2011-07-07 Thread Cindy Swearingen

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 
mailto:cindy.swearin...@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@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Non-Global zone recovery

2011-07-07 Thread Cindy Swearingen

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 
mailto:cindy.swearin...@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@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Non-Global zone recovery

2011-07-07 Thread ram . kumar2
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 
Date: Thu, 7 Jul 2011 15:41:17 
To: Cindy Swearingen
Cc: 
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.swearin...@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@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Non-Global zone recovery

2011-07-07 Thread Ram kumar
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.swearin...@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@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Non-Global zone recovery

2011-07-07 Thread Cindy Swearingen

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@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Non-Global zone recovery

2011-07-07 Thread Paul Kraus
On Thu, Jul 7, 2011 at 2:08 PM, 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.

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
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


[zfs-discuss] Non-Global zone recovery

2011-07-07 Thread Ram
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
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss