Solaris Live Upgrade 2.0 Guide

To Create a Boot Environment for the First Time (Command-Line Interface)


Note –

If you run lucreate without the -m option, the Configuration menu is displayed. The Configuration menu enables you to customize the new boot environment by redirecting files onto new mount points.


  1. Log in as superuser.

  2. To create the new boot environment, type:


    # lucreate -c BE_name -m mountpoint:device:fs_type \
     -n BE_name
    

    -c BE_name

    Assigns the name BE_name to the current boot environment. This option is required only when the first boot environment is created. If you run lucreate for the first time and you omit -c, you are prompted to name the current boot environment. If you use the -c option following the first boot environment creation, you receive an error message.

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

    Specifies the vfstab information for 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.

    • 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/cnumtnumdnumsnum.

      • 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

    -n BE_name

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


    Example 3–1 Creating a Boot Environment (Command Line)

    In this example, the active boot environment is named first_disk. The mount points for the file systems are noted. The new boot environment is named second_disk. Swap, in the new boot environment second_disk, is automatically shared from the source, first_disk.


    # lucreate -c first_disk -m /:/dev/dsk/c0t4d0s0:ufs \
    -m /usr:/dev/dsk/c0t4d0s1:ufs -n second_disk
    

    When creation of the new boot environment is complete, it can be upgraded and activated (made bootable).