Re: [zones-discuss] Solaris 10 zone migration to Solaris 11 Express
I do not have the logs rt now .. We migrated a zone from one server to other .. on the same revision solaris 10 u8 the reason we migrate is to relieve the server of some load when it starts getting crunch on resources. -- 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
On 07/04/2011 11:34, Ketan wrote: Thanks .. i got it working .. zone is attached and booted .. i remember i read that sparse root zone is not supported anymore in Solaris 11 express. But there is one more question/issue i 've been dealing with. Whenever we migrate a solaris 10u8 zone to a solaris10u8 zone it works fine but later on the live upgrade stucks or gives lots of issues on the target system complaining about the newly migrated zone .. is it very common issue or its just we are facing it. ? Just to be clear, you migrated a NGZ from an s10_u8 system to another s10_u8 system? Not sure what you are exactly doing from above. Do you have the Lu failure that you can copy and paste, along with the zone details, ie the FS it's on etc, lufslist from the current BE and the lucreate etc that was ran, plus what rev of 121430/121431 ( sparc/x86 ) Lu patch was installed. ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] Solaris 10 zone migration to Solaris 11 Express
Thanks .. i got it working .. zone is attached and booted .. i remember i read that sparse root zone is not supported anymore in Solaris 11 express. But there is one more question/issue i 've been dealing with. Whenever we migrate a solaris 10u8 zone to a solaris10u8 zone it works fine but later on the live upgrade stucks or gives lots of issues on the target system complaining about the newly migrated zone .. is it very common issue or its just we are facing it. ? -- 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
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
Re: [zones-discuss] Solaris 10 zone migration to Solaris 11 Express
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
Can you provide the contents of the log file? You might find a line starting with HWCAP:. Please provide this info. -Steve On 04/ 6/11 06:22 PM, Ketan wrote: 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 - ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] Solaris 10 zone migration to Solaris 11 Express
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
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
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
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