Creating and Administering Oracle® Solaris 11.2 Boot Environments

Exit Print View

Updated: July 2014
 
 

How to Clone a Boot Environment

  1. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .

  2. Clone the boot environment.
    # beadm create BeName

    BeName is the name of the new boot environment. This new boot environment is inactive.

      Note the following:

    • BeName cannot be a boot environment name that is already being used.

    • This command clones the active boot environment, unless the –e option is used to specify an inactive boot environment.

    • beadm create does not create a partial boot environment. The command either successfully creates a full boot environment, or the command fails.

  3. (Optional)Use the beadm mount command to mount the new boot environment.
    # beadm mount BeName mount-point

    You might mount the new boot environment, for example, if you want to modify some configuration files inside the new boot environment before rebooting into it.

    The boot environment is mounted but remains inactive. You can upgrade a mounted, inactive boot environment.


    Note -  If the directory for the mount point does not exist, the beadm command creates the directory, then mounts the boot environment on that directory.

    If the boot environment is already mounted, the beadm mount command fails and does not remount the boot environment at the newly specified location.


  4. (Optional)Activate the boot environment.
    # beadm activate BeName

    BeName is the name of the boot environment to be activated.

    On reboot, the newly active boot environment is displayed as the default selection in the x86 GRUB menu or the SPARC boot menu.


    Note - The GRUB menu or boot menu always displays the most recently activated boot environment as the default.