3 Replies Latest reply on Oct 24, 2009 4:40 PM by 807557

    Live Upgrade - luactivate seems to work, but old environment boots.

    807557
      Hi,

      I am having a problem with Live Upgrade on a T2000.

      I have created the BE1 and BE2 environments.
      When I check them with 'lufslist BE1' and BE2 they both look correct.
      When I run 'luactivate BE2' it seems to run correctly and set the boot environemnt the BE2.

      When I reboot with 'init 6' it boots onto BE1 without showing any problems or errors.

      I have successfully configured this on another system (a T5240) and am at a loss as to why this does not work.

      Please help,

      Thanks, IainP
        • 1. Re: Live Upgrade - luactivate seems to work, but old environment boots.
          807557
          Output shown below;
          crsundr01 / # lustatus
          Boot Environment           Is       Active Active    Can    Copy
          Name                       Complete Now    On Reboot Delete Status
          -------------------------- -------- ------ --------- ------ ----------
          BE1                        yes      yes    yes       no     -
          BE2                        yes      no     no        yes    -
          crsundr01 / #
          crsundr01 / # luactivate BE2
          
          
          **********************************************************************
          
          The target boot environment has been activated. It will be used when you
          reboot. NOTE: You MUST NOT USE the reboot, halt, or uadmin commands. You
          MUST USE either the init or the shutdown command when you reboot. If you
          do not use either init or shutdown, the system will not boot using the
          target BE.
          
          **********************************************************************
          
          In case of a failure while booting to the target BE, the following process
          needs to be followed to fallback to the currently working boot environment:
          
          1. Enter the PROM monitor (ok prompt).
          
          2. Boot the machine to Single User mode using a different boot device
          (like the Solaris Install CD or Network). Examples:
          
               At the PROM monitor (ok prompt):
               For boot to Solaris CD:  boot cdrom -s
               For boot to network:     boot net -s
          
          3. Mount the Current boot environment root slice to some directory (like
          /mnt). You can use the following command to mount:
          
               mount -Fufs /dev/dsk/c0t0d0s0 /mnt
          
          4. Run <luactivate> utility with out any arguments from the current boot
          environment root slice, as shown below:
          
               /mnt/sbin/luactivate
          
          5. luactivate, activates the previous working boot environment and
          indicates the result.
          
          6. Exit Single User mode and reboot the machine.
          
          **********************************************************************
          
          Modifying boot archive service
          Activation of boot environment <BE2> successful.
          crsundr01 / #
          crsundr01 / # lufslist BE1
                         boot environment name: BE1
                         This boot environment is currently active.
          
          Filesystem              fstype    device size Mounted on          Mount Options
          ----------------------- -------- ------------ ------------------- --------------
          /dev/dsk/c0t0d0s1       swap      21475622912 -                   -
          /dev/dsk/c0t0d0s0       ufs       21475622912 /                   -
          
                         zone <crdev01> within boot environment <BE1>
          files/crdev01shared     zfs                 ? /files              -
          
                         zone <croradr01> within boot environment <BE1>
          files/croradr01shared   zfs                 ? /files2             -
          crsundr01 / #
          crsundr01 / # lufslist BE2
                         boot environment name: BE2
                         This boot environment will be active on next system boot.
          
          Filesystem              fstype    device size Mounted on          Mount Options
          ----------------------- -------- ------------ ------------------- --------------
          /dev/dsk/c0t0d0s7       swap       8583118848 -                   -
          /dev/dsk/c0t0d0s5       ufs       21475622912 /                   -
          
                         zone <crdev01> within boot environment <BE2>
          files/crdev01shared     zfs                 ? /files              -
          
                         zone <croradr01> within boot environment <BE2>
          files/croradr01shared   zfs                 ? /files2             -
          crsundr01 / #
          crsundr01 / #
          crsundr01 / # init 6
          Oct  5 14:54:20 crsundr01 tictimed[1421]: [tictimed]: stopping on SIGTERM or SIGPWR.
          crsundr01 / # svc.startd: The system is coming down.  Please wait.
          svc.startd: 104 system services are now being stopped.
          Oct  5 14:55:02 crsundr01 syslogd: going down on signal 15
          svc.startd: The system is down.
          syncing file systems... done
          rebooting...
          
          SC Alert: Host System has Reset
          
          SC Alert: Host system has shut down.
          cpu cpu cpu cpu cpu cpu cpu cpu cpu cpu cpu cpu cpu cpu cpu cpu cpu cpu cpu cpu cpu cpu cpu cpu Device: pci
          
          <snip>
          
          Probing I/O buses
          
          
          Sun Fire T200, No Keyboard
          Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
          OpenBoot 4.20.4, 8184 MB memory available, Serial #71042580.
          Ethernet address 0:14:4f:3c:6:14, Host ID: 843c0614.
          
          
          
          Rebooting with command: boot
          Boot device: disk  File and args:
          ufs-file-system
          Loading: /platform/SUNW,Sun-Fire-T200/boot_archive
          Loading: /platform/sun4v/boot_archive
          ramdisk-root hsfs-file-system
          Loading: /platform/SUNW,Sun-Fire-T200/kernel/sparcv9/unix
          Loading: /platform/sun4v/kernel/sparcv9/unix
          SunOS Release 5.10 Version Generic_141414-10 64-bit
          Copyright 1983-2009 Sun Microsystems, Inc.  All rights reserved.
          Use is subject to license terms.
          os-io NOTICE: Disabling watchdog as watchdog services are not available
          
          Hostname: crsundr01
          /pci@7c0/pci@0/pci@1/pci@0,2/scsi@2 (mpt1):
                  got external SCSI bus reset.
          /pci@7c0/pci@0/pci@1/pci@0,2/scsi@2 (mpt1):
                  got external SCSI bus reset.
          Oct  5 14:59:07 in.mpathd[189]: No test address configured on interface e1000g2; disabling probe-based failure detection on it
          Oct  5 14:59:08 in.mpathd[189]: No test address configured on interface e1000g0; disabling probe-based failure detection on it
          Reading ZFS config: done.
          Mounting ZFS filesystems: (3/3)
          
          crsundr01 console login: root
          Password:
          Oct  5 14:59:43 crsundr01 login: ROOT LOGIN /dev/console
          Last login: Mon Oct  5 14:38:24 on console
          Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
          crsundr01 / #
          crsundr01 / # lustatus
          Boot Environment           Is       Active Active    Can    Copy
          Name                       Complete Now    On Reboot Delete Status
          -------------------------- -------- ------ --------- ------ ----------
          BE1                        yes      yes    yes       no     -
          BE2                        yes      no     no        yes    -
          crsundr01 / #

          Edited by: IainP on Oct 5, 2009 7:01 AM
          • 2. Re: Live Upgrade - luactivate seems to work, but old environment boots.
            807557
            I managed to find the solution to this rather strange problem. It was not booting due to an OBP setting on the T2000.

            The diag-switch must be set to false, otherwise the system will not boot on the new environment.
            crsundr01 / # eeprom diag-switch?
            diag-switch?=false
            Worked perfectly after that.
            • 3. Re: Live Upgrade - luactivate seems to work, but old environment boots.
              807557
              LainP I had the same issue and have been scratching my head why I couldn't boot off my new BE. After I changed the eeprom setting it worked perfectly, thanks for sharing this fix. Now I'm off to figure out why luupgrade won't upgrade my new BE.