Re: [zones-discuss] failed to move zones in os2009.06 (attach failed)

2010-07-16 Thread Gerard Henry
searching in the official docs, i.e. http://opensolaris.com, i went to the 
following url:
http://wikis.sun.com/display/OpenSolarisInfo200906/Isolating+Your+Development+Work

that gives strange urls:
http://hub.opensolaris.org/bin/view/Community+Group+zones/flar_zones
but flar doesn't exist in opensolaris

http://www.solarisinternals.com/wiki/index.php/Zones_Best_Practices
that talk about ufsdump, or cpio while other docs state about pax to save zones!

i'm very confused. Does it mean that deploying zones in opensolaris is a bad 
choice? (i guess that's why i receive no reply from my post)
-- 
This message posted from opensolaris.org
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] failed to move zones in os2009.06 (attach failed)

2010-07-16 Thread Steve Lawrence

Did you try:

 # zoneadm attach -z  bibcmi4 -d rpool/zones/bibcmi4/ROOT/zbe-2

-d is an ipkg specific option.

-Steve L.

Gerard Henry wrote:
hello all, 
i need to move zones from serv1 to serv2. Every server is os2009.06 b111b

On serv1, i have, after detach:

serv1 # zfs list -r rpool/zones/bibcmi4
NAME USED  AVAIL  REFER  MOUNTPOINT
rpool/zones/bibcmi4 1.46G  8.43G38K  /zones/bibcmi4
rpool/zones/bibcmi4/ROOT1.46G  8.43G18K  legacy
rpool/zones/bibcmi4/ROOT/zbe1.33M  8.43G   828M  legacy
rpool/zones/bibcmi4/ROOT/zbe-2  1.45G  8.43G   877M  /zones/bibcmi4/root

following this post:
http://mail.opensolaris.org/pipermail/zones-discuss/2010-February/006060.html

i send the snapshots on serv2, and i have:
serv2 # zfs list -r rpool/zones/bibcmi4
NAME USED  AVAIL  REFER  MOUNTPOINT
rpool/zones/bibcmi4 1.29G  45.9G38K  /zones/bibcmi4
rpool/zones/bibcmi4/ROOT1.29G  45.9G19K  legacy
rpool/zones/bibcmi4/ROOT/zbe 494M  45.9G   494M  legacy
rpool/zones/bibcmi4/ROOT/zbe-2   825M  45.9G   825M  /zones/bibcmi4/root

(the last line was legacy, and i set the mountpoint manually)
i did a zonecfg, with create -a

but now, it fails to attach:
serv2 # zoneadm -z bibcmi4 attach 
ERROR: The -a, -d or -r option is required when there is no active root dataset.


i found another thread related to this message:
http://opensolaris.org/jive/thread.jspa?messageID=439124

but unfortunately, it doesn't help. 
The option doesn't exist in zoneadm, so i don't understand what's happen.

The official docs http://docs.sun.com/app/docs/doc/817-1592/zone?a=view doesn't 
take this case into account (zonepaths on zfs).

I need to move zones before upgrading to b134, 


thanks in advance for help,

gerard
  

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