2 Replies Latest reply on Sep 11, 2018 7:31 AM by user12991478

    Error while install solaris 10 zone under solaris 11 GZ

    Tsky_Sysadmin

      Hi All,

       

      As we are facing some error during the solaris 10 ( branded zone ) installing in Solaris 11 ( GZ ).

      Can some one help us.

       

      root@prodsos4062:~# less /zones/newzone/root/var/log/zones/zoneadm.20180608T194946Z.newzone.attach

      [Fri Jun  8 19:49:46 GMT 2018] ==== Starting: /usr/lib/brand/solaris10/attach newzone /zones/newzone -a /var/flar/newzone.cpio.gz ====

      [Fri Jun  8 19:49:46 GMT 2018] Progress being logged to /var/log/zones/zoneadm.20180608T194946Z.newzone.attach

      [Fri Jun  8 19:49:46 GMT 2018] Pinning datasets under newzone-rpool

      [Fri Jun  8 19:49:46 GMT 2018] Pinning newzone-rpool

      [Fri Jun  8 19:49:46 GMT 2018] Log File: /var/log/zones/zoneadm.20180608T194946Z.newzone.attach

      [Fri Jun  8 19:49:46 GMT 2018] cpio archive

      [Fri Jun  8 19:49:46 GMT 2018] Creating active_ds newzone-rpool/rpool/ROOT/zbe-0

      [Fri Jun  8 19:49:46 GMT 2018] Mounting boot environment in newzone-rpool/rpool/ROOT/zbe-0 at /zones/newzone/root (including child datasets)

      [Fri Jun  8 19:49:46 GMT 2018] Preparing to mount newzone-rpool/rpool/ROOT/zbe-0 at /zones/newzone/root

      [Fri Jun  8 19:49:46 GMT 2018] Mounting newzone-rpool/rpool/ROOT/zbe-0 at /zones/newzone/root/ with ZFS temporary mount

      [Fri Jun  8 19:49:46 GMT 2018]     Installing: This may take several minutes...

      [Fri Jun  8 19:49:46 GMT 2018] Analysing the archive

      [Fri Jun  8 19:53:37 GMT 2018] cd "/zones" && gzcat "/var/flar/newzone.cpio.gz" | cpio -idmP@/fE /var/tmp/fs.cpio.5WJxsb

      cpio: Cannot mknod() "newzone/dev/cpu/self/cpuid", errno 22, Invalid argument

      cpio: Cannot chown() "newzone/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() "newzone/dev/cpu/self/cpuid", errno 2, No such file or directory

      cpio: Cannot link "newzone/dev/.devfsadm_synch_door" and "newzone/root/dev/.devfsadm_synch_door", errno 18, Cross-device link

      cpio: Cannot mknod() "newzone/root/dev/cpu/self/cpuid", errno 22, Invalid argument

      cpio: Cannot chown() "newzone/root/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() "newzone/root/dev/cpu/self/cpuid", errno 2, No such file or directory

      49733092 blocks

      9 error(s)

      [Fri Jun  8 19:58:55 GMT 2018] Pinning datasets under newzone-rpool

      [Fri Jun  8 19:58:56 GMT 2018] Pinning newzone-rpool

      [Fri Jun  8 19:58:56 GMT 2018] Pinning newzone-rpool/rpool

      [Fri Jun  8 19:58:56 GMT 2018] Pinning newzone-rpool/rpool/ROOT

      [Fri Jun  8 19:58:56 GMT 2018] Pinning newzone-rpool/rpool/ROOT/zbe-0

      [Fri Jun  8 19:58:56 GMT 2018] Pinning newzone-rpool/rpool/export

      [Fri Jun  8 19:58:56 GMT 2018] Pinning newzone-rpool/rpool/export/home

      [Fri Jun  8 19:58:56 GMT 2018] Mounting boot environment in newzone-rpool/rpool/ROOT/zbe-0 at /zones/newzone/root (including child datasets)

      [Fri Jun  8 19:58:56 GMT 2018] Preparing to mount newzone-rpool/rpool/ROOT/zbe-0 at /zones/newzone/root

      [Fri Jun  8 19:58:56 GMT 2018] The image patch level is downrev for running in a solaris10 branded zone.

      (patchlist 127127-11 125095-15 138287-07 800111-04 800120-08 800151-15 800200-15 800233-25)

      [Fri Jun  8 19:58:56 GMT 2018] ERROR:   Sanity Check: FAILED (see log for details).

      [Fri Jun  8 19:58:56 GMT 2018] Destroying datasets under newzone-rpool that are not pinned

      [Fri Jun  8 19:58:56 GMT 2018] Unpinning datasets under newzone-rpool

      [Fri Jun  8 19:58:56 GMT 2018] Unpinning newzone-rpool

      [Fri Jun  8 19:58:56 GMT 2018] Unpinning newzone-rpool/rpool

      [Fri Jun  8 19:58:56 GMT 2018] Unpinning newzone-rpool/rpool/ROOT

      [Fri Jun  8 19:58:56 GMT 2018] Unpinning newzone-rpool/rpool/ROOT/zbe-0

      [Fri Jun  8 19:58:56 GMT 2018] Unpinning newzone-rpool/rpool/export

      [Fri Jun  8 19:58:56 GMT 2018] Unpinning newzone-rpool/rpool/export/home

      [Fri Jun  8 19:58:56 GMT 2018] Result: Attach Failed.

      [Fri Jun  8 19:58:56 GMT 2018] Exiting with exit code 254

      [Fri Jun  8 19:58:56 GMT 2018] ==== Completed: /usr/lib/brand/solaris10/attach newzone /zones/newzone -a /var/flar/newzone.cpio.gz 

       

      Gopi R

        • 1. Re: Error while install solaris 10 zone under solaris 11 GZ
          Marcel Hofstetter JomaSoft

          Hi

          To install a branded zone you need a higher patchlevel of your source.

           

          [Fri Jun  8 19:58:56 GMT 2018] The image patch level is downrev for running in a solaris10 branded zone.

          (patchlist 127127-11 125095-15 138287-07 800111-04 800120-08 800151-15 800200-15 800233-25)


          You are at Kernel Patch Update 5.

          -bash-4.4$ patchadm -c show |grep 127127-11

             127127-11  SAFE_MODE      sparc     2008-04-25   2016-11-22 06:18:50  kernel patch (U5)

           

          You need to install Patches to a Minimum of Update 9.


          -bash-4.4$ patchadm -c show |grep  142909-17

             142909-17  SAFE_MODE      sparc     2010-09-07   2012-03-20 19:00:48  kernel patch (U9)


          best regards,

          Marcel

          • 2. Re: Error while install solaris 10 zone under solaris 11 GZ
            user12991478

            Hi !

            I met this case and solved it.

             

            In this case, CPIO file has a 'cpuid' device link file.
            crw-r--r--   1 root     sys      238, 262143 Sep  4 01:50 cpuid


            I was removed device link file from CPIO data.


            gzcat /zones/zone.cpio.gz |cpio -idmf ; find <zone folder name> -print | cpio -oP@ | gzip > /zones/zone.cpio2.gz


            Error reported in gzcat process.
            But no problem!

            Error message means 'device file removed'.


            New created CPIO data can install with zoneadm.

            If you need some device link file,You can re-create device file on new server.

             

            Please check 'add device' on zonecfg document .

             

             

             

             

            best regards,

             

            Masashi Shiga

            System Platform Solution Unit

             

            Fujitsu Limited.