Solaris 10 Installation Guide: Solaris Live Upgrade and Upgrade Planning

Chapter 10 Failure Recovery: Falling Back to the Original Boot Environment (Tasks)

This chapter explains how to recover from an activation failure.

If a failure is detected after upgrading or if the application is not compatible with an upgraded component, fall back to the original boot environment by using one of the following procedures, depending on your platform.

SPARC: Falling Back to the Original Boot Environment (Command-Line Interface)

You can fallback to the original boot environment by using three methods:

ProcedureSPARC: To Fall Back Despite Successful New Boot Environment Activation

Use this procedure when you have successfully activated your new boot environment, but are unhappy with the results.

Steps
  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Type:


    # /sbin/luactivate BE_name
    
    BE_name

    Specifies the name of the boot environment to be activated

  3. Reboot.


    # init 6
    

    The previous working boot environment becomes the active boot environment.

ProcedureSPARC: To Fall Back From a Failed Boot Environment Activation

Steps
  1. At the OK prompt, boot the machine to single-user state from the Solaris Operating System DVD, Solaris Software - 1 CD, the network, or a local disk.


    OK boot device_name -s
    
    device_name

    Specifies the name of devices from where the system can boot, for example /dev/dsk/c0t0d0s0

  2. Type:


    # /sbin/luactivate BE_name
    
    BE_name

    Specifies the name of the boot environment to be activated

  3. At the prompt, type:


    Do you want to fallback to activate boot environment <disk name> 
    (yes or no)? yes
    

    A message displays that the fallback activation is successful.

  4. Reboot.


    # init 6
    

    The previous working boot environment becomes the active boot environment.

ProcedureSPARC: To Fall Back to the Original Boot Environment by Using a DVD, CD, or Net Installation Image

Use this procedure to boot from a DVD, CD, a net installation image or another disk that can be booted. You need to mount the root (/) slice from the last-active boot environment. Then run the luactivate command, which makes the switch. When you reboot, the last-active boot environment is up and running again.

Steps
  1. At the OK prompt, boot the machine to single-user state from the Solaris Operating System DVD, Solaris Software - 1 CD, the network, or a local disk:


    OK boot cdrom -s 
    

    or


    OK boot net -s
    

    or


    OK boot device_name -s
    
    device_name

    Specifies the name of the disk and the slice where a copy of the operating system resides, for example /dev/dsk/c0t0d0s0

  2. If necessary, check the integrity of the root (/) file system for the fallback boot environment.


    # fsck device_name
    
    device_name

    Specifies the location of the root (/) file system on the disk device of the boot environment you want to fall back to. The device name is entered in the form of /dev/dsk/cwtxdysz.

  3. Mount the active boot environment root (/) slice to some directory, such as /mnt:


    # mount device_name /mnt
    
    device_name

    Specifies the location of the root (/) file system on the disk device of the boot environment you want to fall back to. The device name is entered in the form of /dev/dsk/cwtxdysz.

  4. From the active boot environment root (/) slice, type:


    # /mnt/sbin/luactivate
    

    luactivate activates the previous working boot environment and indicates the result.

  5. Unmount /mnt


    # umount  /mnt
    
  6. Reboot.


    # init 6
    

    The previous working boot environment becomes the active boot environment.

x86: Falling Back to the Original Boot Environment

To fall back to the original boot environment, choose the procedure the best fits your circumstances.

Release 

For More Information 

Starting with the Solaris 10 1/06 release

Solaris 10 3/05 release

Procedurex86: To Fall Back Despite Successful New Boot Environment Activation With the GRUB Menu

Steps
  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Reboot the system.


    # init 6
    

    The GRUB menu is displayed. The Solaris OS is the original boot environment. The second_disk boot environment was successfully activated and appears on the GRUB menu. The failsafe entries are for recovery if for some reason the primary entry does not boot.


    GNU GRUB version 0.95 (616K lower / 4127168K upper memory)
    +-------------------------------------------------------------------+
    |Solaris                                                            |
    |Solaris failsafe                                                   |
    |second_disk                                                        |
    |second_disk failsafe                                               |
    +-------------------------------------------------------------------+
    Use the ^ and v keys to select which entry is highlighted. Press
    enter to boot the selected OS, 'e' to edit the commands before
    booting, or 'c' for a command-line.
  3. To boot to the original boot environment, use the arrow key to select the original boot environment and press Return.


Example 10–1 To Fall Back Despite Successful New Boot Environment Activation


# su
# init 6

GNU GRUB version 0.95 (616K lower / 4127168K upper memory)
+-------------------------------------------------------------------+
|Solaris                                                            |
|Solaris  failsafe                                                  |
|second_disk                                                        |
|second_disk failsafe                                               |
+-------------------------------------------------------------------+
Use the ^ and v keys to select which entry is highlighted. Press
enter to boot the selected OS, 'e' to edit the commands before
booting, or 'c' for a command-line.

Select the original boot environment, Solaris.


Procedurex86: To Fall Back From a Failed Boot Environment Activation With the GRUB Menu


Caution – Caution –

For the Solaris 10 3/05 release, the recommended action to fall back if the previous boot environment and new boot environment were on different disks included changing the hard disk boot order in the BIOS. Starting with the Solaris 10 1/06 release, changing the BIOS disk order is unnecessary and is strongly discouraged. Changing the BIOS disk order might invalidate the GRUB menu and cause the boot environment to become unbootable. If the BIOS disk order is changed, reverting the order back to the original settings restores system functionality.


Steps
  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. To display the GRUB menu, reboot the system.


    # init 6
    

    The GRUB menu is displayed.


    GNU GRUB version 0.95 (616K lower / 4127168K upper memory)
    +-------------------------------------------------------------------+
    |Solaris                                                            |
    |Solaris failsafe                                                   |
    |second_disk                                                        |
    |second_disk failsafe                                               |
    +-------------------------------------------------------------------+
    Use the ^ and v keys to select which entry is highlighted. Press
    enter to boot the selected OS, 'e' to edit the commands before
    booting, or 'c' for a command-line.
  3. From the GRUB menu, select the original boot environment. The boot environment must have been created with GRUB software. A boot environment that was created before the Solaris 10 1/06 release is not a GRUB boot environment. If you do not have a bootable GRUB boot environment, then skip to this procedure, x86: To Fall Back From a Failed Boot Environment Activation With the GRUB Menu and the DVD or CD.

  4. Boot to single user mode by editing the Grub menu.

    1. To edit the GRUB main menu, type e.

      The GRUB edit menu is displayed.


      root (hd0,2,a)
      kernel /platform/i86pc/multiboot
      module /platform/i86pc/boot_archive
    2. Select the original boot environment's kernel entry by using the arrow keys.

    3. To edit the boot entry, type e.

      The kernel entry is displayed in the GRUB edit menu.


      grub edit>kernel /boot/multiboot
    4. Type -s and press Enter.

      The following example notes the placement of the -s option.


      grub edit>kernel /boot/multiboot -s
      
    5. To begin the booting process in single user mode, type b.

  5. If necessary, check the integrity of the root (/) file system for the fallback boot environment.


    # fsck mount_ point
    
    mount_point

    A root (/) file system that is known and reliable

  6. Mount the original boot environment root slice to some directory (such as /mnt):


    # mount device_name /mnt
    
    device_name

    Specifies the location of the root (/) file system on the disk device of the boot environment you want to fall back to. The device name is entered in the form of /dev/dsk/cwtxdysz.

  7. From the active boot environment root slice, type:


    # /mnt/sbin/luactivate
    

    luactivate activates the previous working boot environment and indicates the result.

  8. Unmount /mnt.


    # umount /mnt
    
  9. Reboot.


    # init 6
    

    The previous working boot environment becomes the active boot environment.

Procedurex86: To Fall Back From a Failed Boot Environment Activation With the GRUB Menu and the DVD or CD


Caution – Caution –

For the Solaris 10 3/05 release, the recommended action to fall back if the previous boot environment and new boot environment were on different disks included changing the hard disk boot order in the BIOS. Starting with the Solaris 10 1/06 release, changing the BIOS disk order is unnecessary and is strongly discouraged. Changing the BIOS disk order might invalidate the GRUB menu and cause the boot environment to become unbootable. If the BIOS disk order is changed, reverting the order back to the original settings restores system functionality.


Steps
  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Insert the Solaris Operating System for x86 Platforms DVD or Solaris Software for x86 Platforms - 1 CD.

  3. Boot from the DVD or CD.


    # init 6
    

    The GRUB menu is displayed.


    GNU GRUB version 0.95 (616K lower / 4127168K upper memory)
    +-------------------------------------------------------------------+
    |Solaris                                                            |
    |Solaris failsafe                                                   |
    +-------------------------------------------------------------------+
    Use the ^ and v keys to select which entry is highlighted. Press
    enter to boot the selected OS, 'e' to edit the commands before
    booting, or 'c' for a command-line.
  4. Boot to single user mode by editing the Grub menu.

    1. To edit the GRUB main menu, type e.

      The GRUB edit menu is displayed.


      root (hd0,2,a)
      kernel /platform/i86pc/multiboot
      module /platform/i86pc/boot_archive
    2. Select the original boot environment's kernel entry by using the arrow keys.

    3. To edit the boot entry, type e.

      The kernel entry is displayed in an editor.


      grub edit>kernel /boot/multiboot
    4. Type -s and press Enter.

      The following example notes the placement of the -s option.


      grub edit>kernel /boot/multiboot -s
      
    5. To begin the booting process in single user mode, type b.

  5. If necessary, check the integrity of the root (/) file system for the fallback boot environment.


    # fsck mount_ point
    
    mount_point

    A root (/) file system that is known and reliable

  6. Mount the original boot environment root slice to some directory (such as /mnt):


    # mount device_name /mnt
    
    device_name

    Specifies the location of the root (/) file system on the disk device of the boot environment you want to fall back to. The device name is entered in the form of /dev/dsk/cwtxdysz.

  7. From the active boot environment root slice, type:


    # /mnt/sbin/luactivate
    Do you want to fallback to activate boot environment c0t4d0s0
    (yes or no)? yes
    

    luactivate activates the previous working boot environment and indicates the result.

  8. Unmount /mnt.


    # umount device_name
    
    device_name

    Specifies the location of the root (/) file system on the disk device of the boot environment you want to fall back to. The device name is entered in the form of /dev/dsk/cwtxdysz.

  9. Reboot.


    # init 6
    

    The previous working boot environment becomes the active boot environment.

Procedurex86: To Fall Back Despite Successful New Boot Environment Activation

Steps
  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Type:


    # /sbin/luactivate BE_name
    
    BE_name

    Specifies the name of the boot environment to be activated

  3. Reboot.


    # init 6
    

    The previous working boot environment becomes the active boot environment.

Procedurex86: To Fall Back With Boot Environments on Different Disks

Steps
  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Reboot the machine and enter the appropriate BIOS menus.

    • If your boot devices are SCSI, refer to documentation on your SCSI controller on how to enter the SCSI BIOS.

    • If the boot devices are maintained by the system BIOS, refer to system BIOS documentation on how to enter the system BIOS.

  3. Follow the appropriate BIOS documentation to change the boot device back to the original boot environment's boot device if different.

  4. Save the BIOS changes.

  5. Exit BIOS to begin the boot process.

  6. Type b -s to boot the machine to single-user state.

  7. Type:


    # /sbin/luactivate
    
  8. Reboot.


    # init 6
    

Procedurex86: To Fall Back With Boot Environments on the Same Disk

Steps
  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Decide how to boot the system.

    • If you boot from the Solaris Operating System DVD or the Solaris Software - 1 CD, insert the disc. Your system's BIOS must support booting from a DVD or CD.

    • If you boot from the network, use Preboot Execution Environment (PXE) network boot. The system must support PXE. Enable the system to use PXE by using the system's BIOS setup tool or the network adapter's configuration setup Tool.

    • If you boot from a diskette, insert Solaris 10 3/05 Device Configuration Assistant diskette into the system's diskette drive.


      x86 only –

      You can copy the Device Configuration Assistant software to a diskette from the Solaris Operating System for x86 Platforms DVD or Solaris Software for x86 Platforms - 2 CD by using the procedure described in x86: (Optional) To Update the Boot Diskette Before Activating.


    Follow the directions onscreen until the Current Boot Parameters menu is displayed.

  3. Type b -s to boot the machine to single-user state.

  4. If necessary, check the integrity of the root (/) file system for the fallback boot environment.


    # fsck mount_ point
    
    mount_point

    A root (/) file system that is known and reliable

  5. Mount the active boot environment root slice to some directory (such as /mnt):


    # mount device_name /mnt
    
    device_name

    Specifies the location of the root (/) file system on the disk device of the boot environment you want to fall back to. The device name is entered in the form of /dev/dsk/cwtxdysz.

  6. From the active boot environment root slice, type:


    # /mnt/sbin/luactivate
    

    luactivate activates the previous working boot environment and indicates the result.

  7. Unmount /mnt/sbin.


    # umount device_name
    
    device_name

    Specifies the location of the root (/) file system on the disk device of the boot environment you want to fall back to. The device name is entered in the form of /dev/dsk/cwtxdysz.

  8. Reboot.


    # init 6
    

    The previous working boot environment becomes the active boot environment.