Re: Jumpstart and zpool version mismatch
Chris Gibson <[email protected]> Sat, 19 Jan 2013 13:29:38 -0500
| Newsgroups | gmane.os.solaris.managers |
|---|---|
| Message-ID | <[email protected]> |
Well I spent about 5 hours trying to find out how to do what I wanted. Can not find a good and easy repeatable process. So now I am trying to get patch 124630-51 into my mini root of the Solaris10u9 miniroot. I have tried following : http://www.seedsofgenius.net/solaris/modify-a-solaris-jumpstart-miniroot-for-fun-and-profit http://www.oracle.com/technetwork/systems/articles/patchmini-jsp-137348.html http://docs.oracle.com/cd/E19253-01/821-0439/netinstall-patch/index.html But I always receive the following error during the patchadd process. [root@a70sjmpstart1:/nfs/home/a-xbh2]# patchadd -C /nfs/home/a-xbh2/miniroot /nfs/home/a-xbh2/124630-51 Checking installed patches... Executing prepatch script... Patch 124630-51 failed to install due to a failure produced by pkgadd. See /nfs/home/a-xbh2/miniroot/var/sadm/patch/124630-51/log for details Patchadd is terminating. [root@a70sjmpstart1:/nfs/home/a-xbh2]# cat /nfs/home/a-xbh2/miniroot/var/sadm/patch/124630-51/log This appears to be an attempt to install the same architecture and version of a package which is already installed. This installation will attempt to overwrite this package. /nfs/home/a-xbh2/124630-51/SUNWadmap/install/checkinstall: /nfs/home/a-xbh2/124630-51/SUNWadmap/install/checkinstall: cannot open pkgadd: ERROR: checkinstall script did not complete successfully Dryrun complete. No changes were made to the system. [root@a70sjmpstart1:/nfs/home/a-xbh2]# ls -al /nfs/home/a-xbh2/124630-51/SUNWadmap/install/checkinstall -rwxrwxrwx 1 root root 7369 Feb 1 2011 /nfs/home/a-xbh2/124630-51/SUNWadmap/install/checkinstall -------- Original Message -------- Subject: Jumpstart and zpool version mismatch Date: Fri, 18 Jan 2013 21:13:08 -0500 From: Chris Gibson <[email protected]> To: [email protected] I have a jumpstart server with Solaris 10u10 boot media, it also has the patches installed for Flash Archive version 3.0. SUNWjet version 4.7 JETzfs version 1.0.3 I have a flar created from a T5120 with 142909-17 kernel patch on Solaris 10u9, zpool version is 22, zfs version is 4. I am trying to restore the flar onto a T4-1. Everything goes fine until the reboot and I receive the following: SPARC T4-1, Keyboard Present Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved. OpenBoot 4.34.0, 15872 MB memory available, Serial #101626696. Ethernet address 0:10:e0:e:b3:48, Host ID: 860eb348. Boot device: /pci@400/pci@1/pci@0/pci@4/scsi@0/disk@w5000cca025e12891,0:a File and args: WARNING: unrecognized token: pause WARNING: unrecognized token: cbcond WARNING: unrecognized token: aes WARNING: unrecognized token: des WARNING: unrecognized token: kasumi WARNING: unrecognized token: camellia WARNING: unrecognized token: md5 WARNING: unrecognized token: sha1 WARNING: unrecognized token: sha256 WARNING: unrecognized token: sha512 WARNING: unrecognized token: mpmul WARNING: unrecognized token: mont WARNING: unrecognized token: crc32c SunOS Release 5.10 Version Generic_142909-17 64-bit Copyright (c) 1983, 2010, Oracle and/or its affiliates. All rights reserved. NOTICE: zfs_parse_bootfs: error 48 Cannot mount root on rpool/59 fstype zfs panic[cpu0]/thread=180e000: vfs_mountroot: cannot mount root 000000000180b950 genunix:vfs_mountroot+370 (18e4800, 190dc00, 0, 1299000, 18e8400, 6) %l0-3: 00000300078de008 00000000018dc1b8 0000000001144400 000000000193ec00 %l4-7: 0000000000000600 0000000000000200 0000000000000800 0000000000000200 000000000180ba10 genunix:main+ec (183fa10, 0, 18886c0, 10b5000, 0, 1) %l0-3: 000000000180c000 000000000180c000 0000000070002000 0000000000000000 %l4-7: 0000000001890c00 0000000000000000 000000000180c000 0000000000000001 skipping system dump - no dump device configured rebooting.. I boot into failsafe and it finds the rpool and auto imports it. From there I run "zpool upgrade" and it says the zpool version 29. I run "chroot /a /bin/ksh" and then run "zpool upgrade" and it says that the system is running at zpool version 22 and can not import the rpool. Now I believe the reason is during the jumpstart install when it creates the rpool it just does it blindly and does not take into account the version of the zpool the flar can support. I would think this would be part of the make_client when creating the client from the template. I have poked around the SUNWjet/Product/zfs and SUNWjet/Client/hostname/directories, didn't see to much there but kind of in a hurry. So the last test, I started the jumpstart install process, broke out of the installer, created the zpool with the -o version, verified with zpool upgrade, then ran suninstall but it seems it recreated the rpool. I thought I saw code in JETzfs that is supposed to do an import if it exists. Any help would be greatly appreciated. I need to be able to have the Solaris 10u10 as the jumpstart media and support flash archive versions 3.0. I also need it to be able to support from zpool versions 22-29 atleast. I haven't found another server yet with a lower zpool version than 22. Also I am not able to patch the server up to be able to support zpool version 29 prior to creating the flar, nor do I want to apply the patch after the jumpstart install. Thanks, Chris