Solaris 9 Installation Guide

To Create a Boot Environment for a Flash Archive (Command-Line Interface)

The lucreate command creates a boot environment that is based on the file systems in the active boot environment. The lucreate command with the -s - option creates an empty boot environment very quickly that could be used to install a Flash archive.

  1. Log in as superuser.

  2. Create the empty boot environment.

    # lucreate -A 'BE_name' -s - \
    -m mountpoint:device:fs_type -n BE_name

    -A 'BE_description'

    (Optional) Enables the creation of a boot environment description that is associated with the boot environment name (BE_name). The description can be any length and can contain any characters. 

    -s -

    Specifies that an empty boot environment be created. 

    -m mountpoint:device:fs_type [-m...]

    Specifies the file systems' configuration of the new boot environment. The file systems that are specified as arguments to -m can be on the same disk or they can be spread across multiple disks. Use this option as many times as needed to create the number of file systems that are needed.

    • mountpoint can be any valid mount point or (hyphen), indicating a swap partition.

    • device field can be one of the following:

      • The name of a disk device, of the form /dev/dsk/cnumdnumtnumsnum

      • The name of a Solaris Volume Manager metadevice, of the form /dev/md/dsk/dnum

      • The name of a Veritas Volume Manager volume, of the form /dev/vx/dsk/volume_name

      • The keyword merged, indicating that the file system at the specified mount point is to be merged with its parent

    • fs_type field can be one of the following:

      • ufs, which indicates a UFS file system.

      • vxfs, which indicates a Veritas file system.

      • swap, which indicates a swap file system. The swap mount point must be a (hyphen).

    -n BE_name

    The name of the boot environment to be created. BE_name must be unique on the system.

    Example 32–8 Creating a Boot Environment for a Flash Archive (Command-Line Interface)

    In this example, a boot environment is created but contains no file systems. A description, Solaris 9 test Jan. 2001, is associated with the new boot environment that is named second_disk.

    # lucreate -A 'Solaris 9 test Jan 2001' -s - \
    -m /:/dev/dsk/c0t4d0s0:ufs  -n second_disk

    When creation of the empty boot environment is complete, a flash archive can be installed and can be activated (made bootable). See Chapter 33, Upgrading With Solaris Live Upgrade (Tasks).