JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Transitioning From Oracle Solaris 10 to Oracle Solaris 11.1     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

1.  Transitioning From Oracle Solaris 10 to an Oracle Solaris 11 Release (Overview)

2.  Transitioning to an Oracle Solaris 11 Installation Method

3.  Managing Devices

4.  Managing Storage Features

5.  Managing File Systems

6.  Managing Software and Boot Environments

Oracle Solaris 11 Package Changes

Oracle Solaris 10 SVR4 and IPS Package Comparison

IPS Installation Package Groups

Displaying Information About Software Packages

Updating the Software on Your Oracle Solaris 11 System

Installing Maintenance Updates on an Oracle Solaris 11 System

How to Configure the Oracle Solaris support Repository

Managing Boot Environments

Tools for Managing Boot Environments

Reviewing the Initial ZFS BE After an Installation

How to Update Your ZFS Boot Environment

7.  Managing Network Configuration

8.  Managing System Configuration

9.  Managing Security

10.  Managing Oracle Solaris Releases in a Virtual Environment

11.  Managing User Accounts and User Environments

12.  Managing Desktop Features

A.  SPARC Automated Installation Scenario

Managing Boot Environments

Previously, you could perform a live upgrade or use the patchadd command to update your BE. In Oracle Solaris 11, the pkg update command is used to update a BE, or you can use the beadm command set to create, display, and remove BEs.

Tools for Managing Boot Environments

In Oracle Solaris 11, the beadm utility replaces the lu set of commands for managing ZFS BEs. In most cases, the pkg update command creates and updates a clone BE, so you boot back to the previous BE, if necessary.

Table 6-3 Comparison of Boot Environment Command Syntax

Oracle Solaris 10 Syntax
Oracle Solaris 11 Syntax
Description
lucreate -n newBE
beadm create newBE
Create a new BE
lustatus
beadm list
Display BE information
luactivate newBE
beadm activate newBE
Activate a BE
ludelete BE
beadm destroy BE
Destroy an inactive BE
luupgrade or patchadd
pkg update
Upgrade or update a BE

See Creating and Administering Oracle Solaris 11.1 Boot Environments and beadm(1M).

The system performs the following actions in most cases:

  1. Creates a clone of the current BE that is a bootable image.

  2. Updates the packages in the clone BE, but does not update any packages in the current BE.

  3. Sets the new BE as the default boot choice the next time the system is booted. The current BE remains as an alternate boot choice.

Use the beadm command to create, rename, mount, unmount, activate, or destroy BEs.

Reviewing the Initial ZFS BE After an Installation

After a system is installed, the following root pool file systems and components are available:

# zfs list -r rpool
NAME                       USED  AVAIL  REFER  MOUNTPOINT
rpool                     13.0G   121G  4.58M  /rpool
rpool/ROOT                6.81G   121G    31K  legacy
rpool/ROOT/solaris        6.81G   121G  4.07G  /
rpool/ROOT/solaris/var     364M   121G   207M  /var
rpool/VARSHARE              50K   121G    50K  /var/share
rpool/dump                4.13G   121G  4.00G  -
rpool/export                63K   121G    32K  /export
rpool/export/home           31K   121G    31K  /export/home
rpool/swap                2.06G   121G  2.00G  -

How to Update Your ZFS Boot Environment

To update a ZFS boot environment, use the pkg update command. A clone or backup BE is created and automatically activated in most cases. The pkg update command displays whether a backup BE or a new BE is created.


Caution

Caution - If you update your BE and also upgrade your root pool version, if one is available for the recent update, you will not be able to boot back to a previous BE, if previous BE is in a lower pool version. Make sure you have tested all the features and you are satisfied with the current release update before upgrading your pool version.

For information about upgrading your pool version, see Upgrading ZFS Storage Pools in Oracle Solaris 11.1 Administration: ZFS File Systems.


  1. Display your existing BE information.
    # beadm list
    BE        Active Mountpoint Space Policy Created          
    --        ------ ---------- ----- ------ -------          
    solaris   NR     /          9.71G static 2013-01-04 12:35 

    In the above output, NR means the BE is active now and will be the active BE on reboot.

  2. Update your BE.
    # pkg update
                    Packages to remove:   117
                   Packages to install:   186
                    Packages to update:   315
               Create boot environment:   Yes
    DOWNLOAD                                  PKGS       FILES    XFER (MB)
    Completed                              618/618 29855/29855  600.7/600.7
    .
    .
    .

    If your existing BE name is solaris, a new BE, solaris-1, is created and automatically activated after the pkg update operation is complete.

  3. Reboot the system to complete the BE activation. Then, confirm your BE status.
    # init 6
    .
    .
    .
    # beadm list
    BE        Active Mountpoint Space  Policy Created          
    --        ------ ---------- -----  ------ -------          
    solaris   -      -          18.19M static 2013-01-04 12:35 
    solaris-1 NR     /          9.82G  static 2013-01-31 13:03 
  4. If an error occurs when booting the new BE, activate and boot to the previous BE.
    # beadm activate solaris
    # init 6

    If the activated BE does not boot, see How to Boot From a Backup BE for Recovery Purposes.