Re: [zones-discuss] Newbie: Just upgraded from 2008.11 to 2009.06 and zone

2009-06-15 Thread Ian
 the UID is not your problem.  the problem is that
 uninstalled is not a
 valid zone state.  (sorry, i just checked my sent
 emails and i did
 indeed tell you to set the state to uninstalled, my
 bad.)  the proper
 state is configured.
 
Aha !   That's suberb: thank you.  Everything is back up and running again on 
that zone, so I'll go and play with all the others.

And I'll remember not to use -F on the attach in future :)

Thanks,
-- 
Ian.
-- 
This message posted from opensolaris.org
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Newbie: Just upgraded from 2008.11 to 2009.06 and zone

2009-06-14 Thread Edward Pilatowicz
On Sat, Jun 13, 2009 at 02:25:16PM -0700, Ian wrote:
 
  this error seems to indicate that the zone state in
  /etc/zones/index is
  invalid.  (normally people shouldn't edit this file
  for exactly this
  reason.  ;)  what are the contents of this file?
 
 I've attached the full file to this post, but the line for the zone I'm 
 trying right now reads:

 web:uninstalled:/space/zones/web:1707fafd-4a25-69f6-91e4-92af2073dca4

 Is there somewhere that the UUID gets generated from that I can check for 
 consistency ?


the UID is not your problem.  the problem is that uninstalled is not a
valid zone state.  (sorry, i just checked my sent emails and i did
indeed tell you to set the state to uninstalled, my bad.)  the proper
state is configured.

  you need to specify a zfs dataset name, not a
  filesystem path.  on my
  laptop i would specifly something like:
  -d rpool/export/zones/z2/ROOT/zbe
 
 Aha - thanks.  That was the second one I tried, just for the record:

 # zoneadm -z web attach -u -d space/zones/web/ROOT/zbe
 zoneadm: web: could not get state: No such zone configured

 Thanks,
 --
 Ian.
 --
 This message posted from opensolaris.org
 ___
 zones-discuss mailing list
 zones-discuss@opensolaris.org
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Newbie: Just upgraded from 2008.11 to 2009.06 and zone

2009-06-12 Thread Ian
Hi ed,

 hm.  detach is failing because attach never marked
 any zone dataset as
 active.  could you file a bug against detach to make
 it more robust in
 the face of failiures?
 
Sure.

 to work around this problem you might just want to
 edit /etc/zones/index
 and change the zone state to uninstalled.  (this
 will essentially undo
 the attach -F you did earlier.)  then you can do an
 attach -u to
 properly attach the zone.
 
Unfortunately, this doesn't seem to fix things.  If I change the 'installed' to 
'uninstalled' then I get:

# zoneadm -z web detach
zoneadm: web: could not get state: No such zone configured

Is there any other information I can offer to help get around this ?

Thanks,
-- 
Ian.
-- 
This message posted from opensolaris.org
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Newbie: Just upgraded from 2008.11 to 2009.06 and zone

2009-06-12 Thread Edward Pilatowicz
On Fri, Jun 12, 2009 at 01:03:17PM -0700, Ian wrote:
 Hi ed,

  hm.  detach is failing because attach never marked
  any zone dataset as
  active.  could you file a bug against detach to make
  it more robust in
  the face of failiures?
 
 Sure.

  to work around this problem you might just want to
  edit /etc/zones/index
  and change the zone state to uninstalled.  (this
  will essentially undo
  the attach -F you did earlier.)  then you can do an
  attach -u to
  properly attach the zone.
 
 Unfortunately, this doesn't seem to fix things.  If I change the 'installed' 
 to 'uninstalled' then I get:

 # zoneadm -z web detach
 zoneadm: web: could not get state: No such zone configured

 Is there any other information I can offer to help get around this ?


once you've changed the state to uninstalled, you don't need to do a
detach.  just do:
zoneadm -z zone attach -u -d zbe_dataset

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


Re: [zones-discuss] Newbie: Just upgraded from 2008.11 to 2009.06 and zone

2009-06-12 Thread Ian
 once you've changed the state to uninstalled, you
 don't need to do a
 detach.  just do:
   zoneadm -z lt;zonegt; attach -u -d lt;zbe_datasetgt;
 
Unfortunately, it doesn't like that either:

# zoneadm -z web attach -u -d /space/zones/web/ROOT/zbe
zoneadm: web: could not get state: No such zone configured

I tried a selection of paths and ZFS pool names, just in case.  Same result.
-- 
This message posted from opensolaris.org
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Newbie: Just upgraded from 2008.11 to 2009.06 and zone

2009-06-12 Thread Edward Pilatowicz
On Fri, Jun 12, 2009 at 01:50:16PM -0700, Ian wrote:
  once you've changed the state to uninstalled, you
  don't need to do a
  detach.  just do:
  zoneadm -z lt;zonegt; attach -u -d lt;zbe_datasetgt;
 
 Unfortunately, it doesn't like that either:

 # zoneadm -z web attach -u -d /space/zones/web/ROOT/zbe
 zoneadm: web: could not get state: No such zone configured


this error seems to indicate that the zone state in /etc/zones/index is
invalid.  (normally people shouldn't edit this file for exactly this
reason.  ;)  what are the contents of this file?

 I tried a selection of paths and ZFS pool names, just in case.  Same result.

you need to specify a zfs dataset name, not a filesystem path.  on my
laptop i would specifly something like:
-d rpool/export/zones/z2/ROOT/zbe

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