[zones-discuss] Solaris 10 zone migration to Solaris 11 Express

2011-04-06 Thread Ketan
I was testing of migrating  the solaris10 zone to solaris 11 express zone. I 
used cpio to create the archive with following syntax 

#find db_zone -print | cpio -oP@ | gzip /swdump/ovpidb_zone.cpio.gz 

Then i created a solaris10 brand zone on the Solaris 11 environment and tried 
to attach the zone but i got following error.

***

 zoneadm  -z s10zone1 attach -a /home/vneb/ovpidb_zone.cpio.gz
Log File: /var/tmp/s10zone1.attach_log.oFaavh
Attaching...

ERROR: The image was created with an incompatible libc.so.1 hwcap lofs mount.
   The zone will not boot on this platform.  See the zone's
   documentation for the recommended way to create the archive.


I 'm moving solaris 10u8 zone from M5000 to a Ldom2.0 Solaris11 express
-- 
This message posted from opensolaris.org
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Solaris 10 zone migration to Solaris 11 Express

2011-04-06 Thread Mike Gerdts
On Wed 06 Apr 2011 at 02:33AM, Ketan wrote:
 I was testing of migrating  the solaris10 zone to solaris 11 express zone. I 
 used cpio to create the archive with following syntax 
 
 #find db_zone -print | cpio -oP@ | gzip /swdump/ovpidb_zone.cpio.gz 
 
 Then i created a solaris10 brand zone on the Solaris 11 environment and tried 
 to attach the zone but i got following error.
 
 ***
 
  zoneadm  -z s10zone1 attach -a /home/vneb/ovpidb_zone.cpio.gz
 Log File: /var/tmp/s10zone1.attach_log.oFaavh
 Attaching...
 
 ERROR: The image was created with an incompatible libc.so.1 hwcap lofs mount.
The zone will not boot on this platform.  See the zone's
documentation for the recommended way to create the archive.
 
 
 I 'm moving solaris 10u8 zone from M5000 to a Ldom2.0 Solaris11 express

It sounds like the zone was running when you created the archive.  As a
result, the version of libc that is optimized for the SPARC64 CPU found
in the M5000 was mounted on top of /lib/libc.so.1.  On the T-series box
that you are moving to, the CPU architecture is different and
incompatible with the type of optimization done for the SPARC64 CPU.

It looks like you were following the instructions at
http://download.oracle.com/docs/cd/E19963-01/html/821-1460/gentextid-12093.html#gcglo
but there shut down the zone while creating the archive step seems to
be missing.

-- 
Mike Gerdts
Solaris Core OS / Zones
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Solaris 10 zone migration to Solaris 11 Express

2011-04-06 Thread Steve Lawrence

 Look for unmount on this page:

http://download.oracle.com/docs/cd/E19797-01/817-1592/gjwmp/index.html

On 04/ 6/11 06:18 AM, Mike Gerdts wrote:

On Wed 06 Apr 2011 at 02:33AM, Ketan wrote:

I was testing of migrating  the solaris10 zone to solaris 11 express zone. I 
used cpio to create the archive with following syntax

#find db_zone -print | cpio -oP@ | gzip/swdump/ovpidb_zone.cpio.gz

Then i created a solaris10 brand zone on the Solaris 11 environment and tried 
to attach the zone but i got following error.

***

  zoneadm  -z s10zone1 attach -a /home/vneb/ovpidb_zone.cpio.gz
Log File: /var/tmp/s10zone1.attach_log.oFaavh
Attaching...

ERROR: The image was created with an incompatible libc.so.1 hwcap lofs mount.
The zone will not boot on this platform.  See the zone's
documentation for the recommended way to create the archive.


I 'm moving solaris 10u8 zone from M5000 to a Ldom2.0 Solaris11 express

It sounds like the zone was running when you created the archive.  As a
result, the version of libc that is optimized for the SPARC64 CPU found
in the M5000 was mounted on top of /lib/libc.so.1.  On the T-series box
that you are moving to, the CPU architecture is different and
incompatible with the type of optimization done for the SPARC64 CPU.

It looks like you were following the instructions at
http://download.oracle.com/docs/cd/E19963-01/html/821-1460/gentextid-12093.html#gcglo
but there shut down the zone while creating the archive step seems to
be missing.


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


Re: [zones-discuss] Solaris 10 zone migration to Solaris 11 Express

2011-04-06 Thread Enda O'Connor

Hi
so this is a bug in the s11 docs, as it does need to mention the libc 
bit of the step. I will log a bug.



Enda
On 06/04/2011 17:28, Steve Lawrence wrote:

Look for unmount on this page:

http://download.oracle.com/docs/cd/E19797-01/817-1592/gjwmp/index.html

On 04/ 6/11 06:18 AM, Mike Gerdts wrote:

On Wed 06 Apr 2011 at 02:33AM, Ketan wrote:

I was testing of migrating the solaris10 zone to solaris 11 express
zone. I used cpio to create the archive with following syntax

#find db_zone -print | cpio -oP@ | gzip/swdump/ovpidb_zone.cpio.gz

Then i created a solaris10 brand zone on the Solaris 11 environment
and tried to attach the zone but i got following error.

***


zoneadm -z s10zone1 attach -a /home/vneb/ovpidb_zone.cpio.gz
Log File: /var/tmp/s10zone1.attach_log.oFaavh
Attaching...

ERROR: The image was created with an incompatible libc.so.1 hwcap
lofs mount.
The zone will not boot on this platform. See the zone's
documentation for the recommended way to create the archive.



I 'm moving solaris 10u8 zone from M5000 to a Ldom2.0 Solaris11 express

It sounds like the zone was running when you created the archive. As a
result, the version of libc that is optimized for the SPARC64 CPU found
in the M5000 was mounted on top of /lib/libc.so.1. On the T-series box
that you are moving to, the CPU architecture is different and
incompatible with the type of optimization done for the SPARC64 CPU.

It looks like you were following the instructions at
http://download.oracle.com/docs/cd/E19963-01/html/821-1460/gentextid-12093.html#gcglo

but there shut down the zone while creating the archive step seems to
be missing.


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


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


Re: [zones-discuss] Solaris 10 zone migration to Solaris 11 Express

2011-04-06 Thread Ketan
Hi Steve,

I already checked this link  and i did not see any hwcap libraries mounted 
on M-5K server .. 

root@serverM5K # df -h | grep hw
root@serverM5K #

so could not unmount them .. though my T-5240 has those hwcap 
libraries  mounted  


root@serverT5240#df -h | grep hw
/platform/SUNW,SPARC-Enterprise-T5240/lib/libc_psr/libc_psr_hwcap2.so.1   128G  
 4.2G   124G 4%/platform/sun4v/lib/libc_psr.so.1
/platform/SUNW,SPARC-Enterprise-T5240/lib/sparcv9/libc_psr/libc_psr_hwcap2.so.1 
  128G   4.2G   124G 4%/platform/sun4v/lib/sparcv9/libc_psr.so.1
root@serverT5240#


so had to put it on the forums to check with experts on the same 


- Show quoted text -
-- 
This message posted from opensolaris.org
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Solaris 10 zone migration to Solaris 11 Express

2011-04-06 Thread Ketan
Following is the output from the log file when i try to attach the zone 

 /var/tmp/s10zone1.attach_log.djaOxj
[Wednesday, April  6, 2011 08:49:45 PM CDT] Log File: 
/var/tmp/s10zone1.attach_log.djaOxj
[Wednesday, April  6, 2011 08:49:45 PM CDT] Attaching...
[Wednesday, April  6, 2011 08:49:45 PM CDT] gzipped cpio archive
[Wednesday, April  6, 2011 08:49:46 PM CDT]
[Wednesday, April  6, 2011 08:49:46 PM CDT] Analysing the archive
[Wednesday, April  6, 2011 08:50:49 PM CDT] cd /zones  gzcat 
/home/user1/db_zone.cpio.gz | cpio -idmfE /var/tmp/fs.cpio.NkaWyj
cpio: Cannot mknod() db_zone/dev/cpu/self/cpuid, errno 22, Invalid argument
cpio: Cannot chown() db_zone/dev/cpu/self/cpuid, errno 2, No such file or 
directory
cpio: Unable to reset modification time for cpuid, errno 2, No such file or 
directory
cpio: Cannot chmod() db_zone/dev/cpu/self/cpuid, errno 2, No such file or 
directory
1405280 blocks
4 error(s)
[Wednesday, April  6, 2011 08:52:02 PM CDT] HWCAP: moe: 
/zones/db_zone/root/lib/libc.so.1: open failed: No such file or directory
[Wednesday, April  6, 2011 08:52:02 PM CDT] ERROR: The image was created with 
an incompatible libc.so.1 hwcap lofs mount.
   The zone will not boot on this platform.  See the zone's
   documentation for the recommended way to create the archive.


After steve told me i checked the logs and found that lib files are missing 
from the zone which was being migrated (do not know the reason for it ).. and i 
just copied lib files from /lib to /zones/root/lib/  .. it went lil ahead but 
then it gave
me following error  



tail -f /var/tmp/s10zone1.attach_log.9.aW9j
[Wednesday, April  6, 2011 09:14:56 PM CDT] Log File: 
/var/tmp/s10zone1.attach_log.9.aW9j
[Wednesday, April  6, 2011 09:14:56 PM CDT] Attaching...
[Wednesday, April  6, 2011 09:14:56 PM CDT] gzipped cpio archive
[Wednesday, April  6, 2011 09:14:56 PM CDT]
[Wednesday, April  6, 2011 09:14:56 PM CDT] Analysing the archive
[Wednesday, April  6, 2011 09:16:10 PM CDT] cd /zones  gzcat 
/home/user1/db_zone.cpio.gz | cpio -idmfE /var/tmp/fs.cpio.Daa4.j
cpio: Cannot mknod() db_zone/dev/cpu/self/cpuid, errno 22, Invalid argument
cpio: Cannot chown() db_zone/dev/cpu/self/cpuid, errno 2, No such file or 
directory
cpio: Unable to reset modification time for cpuid, errno 2, No such file or 
directory
cpio: Cannot chmod() db_zone/dev/cpu/self/cpuid, errno 2, No such file or 
directory
1734472 blocks
4 error(s)
[Wednesday, April  6, 2011 09:17:39 PM CDT] Missing sbin/zonename at 
/zones/db_zone/root
[Wednesday, April  6, 2011 09:17:39 PM CDT] Is this a sparse zone image?  The 
image must be whole-root.
[Wednesday, April  6, 2011 09:17:39 PM CDT] Missing usr/bin/chmod at 
/zones/db_zone/root
[Wednesday, April  6, 2011 09:17:39 PM CDT] Is this a sparse zone image?  The 
image must be whole-root.
[Wednesday, April  6, 2011 09:17:39 PM CDT]   Sanity Check: FAILED (see log for 
details).
[Wednesday, April  6, 2011 09:17:39 PM CDT] ERROR: *** Attach FAILED ***

***


so does this means we cannot migrate a sparse root zone to Solaris 11 express 
server ?  or is it i 'm doing something wrong ?
-- 
This message posted from opensolaris.org
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Solaris 10 zone migration to Solaris 11 Express

2011-04-06 Thread Mike Gerdts
On Wed 06 Apr 2011 at 08:11PM, Ketan wrote:
 Following is the output from the log file when i try to attach the zone 
 
  /var/tmp/s10zone1.attach_log.djaOxj
 [Wednesday, April  6, 2011 08:49:45 PM CDT] Log File: 
 /var/tmp/s10zone1.attach_log.djaOxj
 [Wednesday, April  6, 2011 08:49:45 PM CDT] Attaching...
 [Wednesday, April  6, 2011 08:49:45 PM CDT] gzipped cpio archive
 [Wednesday, April  6, 2011 08:49:46 PM CDT]
 [Wednesday, April  6, 2011 08:49:46 PM CDT] Analysing the archive
 [Wednesday, April  6, 2011 08:50:49 PM CDT] cd /zones  gzcat 
 /home/user1/db_zone.cpio.gz | cpio -idmfE /var/tmp/fs.cpio.NkaWyj
 cpio: Cannot mknod() db_zone/dev/cpu/self/cpuid, errno 22, Invalid argument
 cpio: Cannot chown() db_zone/dev/cpu/self/cpuid, errno 2, No such file or 
 directory
 cpio: Unable to reset modification time for cpuid, errno 2, No such file or 
 directory
 cpio: Cannot chmod() db_zone/dev/cpu/self/cpuid, errno 2, No such file or 
 directory
 1405280 blocks
 4 error(s)
 [Wednesday, April  6, 2011 08:52:02 PM CDT] HWCAP: moe: 
 /zones/db_zone/root/lib/libc.so.1: open failed: No such file or directory
 [Wednesday, April  6, 2011 08:52:02 PM CDT] ERROR: The image was created with 
 an incompatible libc.so.1 hwcap lofs mount.
The zone will not boot on this platform.  See the zone's
documentation for the recommended way to create the archive.

Ahhh... it looks like you should have gotten the sparse zone error
message instead of the incompatible libc message.  I've created:

7034572 zone install and attach from archive should do sparse check before libc 
check

 After steve told me i checked the logs and found that lib files are missing 
 from the zone which was being migrated (do not know the reason for it ).. and 
 i just copied lib files from /lib to /zones/root/lib/  .. it went lil ahead 
 but then it gave
 me following error  

Yikes!

 [Wednesday, April  6, 2011 09:17:39 PM CDT] Missing sbin/zonename at 
 /zones/db_zone/root
 [Wednesday, April  6, 2011 09:17:39 PM CDT] Is this a sparse zone image?  The 
 image must be whole-root.
 [Wednesday, April  6, 2011 09:17:39 PM CDT] Missing usr/bin/chmod at 
 /zones/db_zone/root
 [Wednesday, April  6, 2011 09:17:39 PM CDT] Is this a sparse zone image?  The 
 image must be whole-root.

That's the sparse zone error message I was expecting.

 [Wednesday, April  6, 2011 09:17:39 PM CDT]   Sanity Check: FAILED (see log 
 for details).
 [Wednesday, April  6, 2011 09:17:39 PM CDT] ERROR: *** Attach FAILED ***
 
 ***
 
 
 so does this means we cannot migrate a sparse root zone to Solaris 11 express 
 server ?  or is it i 'm doing something wrong ?

You can, but in order to do so, you need to be sure that the things that
are not included in a sparse zone get included in the archive.  This
will cause the archive to be a lot larger and the zone will not be a
sparse root zone on Solaris 11.

To create the archive

zoneadm -z db_zone ready
cd $db_zone_zonepath/..
find db_zone -print | cpio -oP@ | gzip  /swdump/db_zone.cpio.gz
zoneadm -z db_zone halt

This is mentioned on page 377 of System Administration Guilde: Oracle
Solaris Zones, Oracle Solaris 10 Containers, and Resource Management:

http://download.oracle.com/docs/cd/E19963-01/pdf/821-1460.pdf

It is also at:

http://download.oracle.com/docs/cd/E19963-01/html/821-1460/gjowt.html

However, this does not appear in the examples.  I completely missed it
when I was reading the HTML version, but felt it stood out relatively
well in the PDF version.

-- 
Mike Gerdts
Solaris Core OS / Zones
___
zones-discuss mailing list
zones-discuss@opensolaris.org