Solaris 10 11/06 Installation Guide: Solaris Live Upgrade and Upgrade Planning

ProcedureTo Create a Boot Environment (Character User Interface)

  1. From the main menu, select Create.

    The system displays the Create a Boot Environment submenu.

  2. Type the name of the active boot environment (if necessary) and the new boot environment and confirm. You are only required to type the name of the active boot environment the first time you create a boot environment.

    The boot environment name can be no longer than 30 characters, can contain only alphanumeric characters, and can contain no multibyte characters.

    Name of Current Boot Environment:    solaris8
    Name of New Boot Environment:   solaris10 
  3. To save your changes, press F3.

    The configuration menu appears.

    Figure 4–3 Solaris Live Upgrade Configuration Menu

    The context describes the screen capture.

    The configuration menu contains the following parts:

    • The original boot environment is located at the top of the screen. The boot environment to be created is at the bottom.

    • The Device field contains the following information.

      • The name of a disk device of the form /dev/dsk/cwtxdysz.

      • 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 area for selecting a critical file system is blank until you select a critical file system. The critical file systems such as /usr, /var, or /opt can be split or merged with the root (/) file system.

      • Shareable file systems such as /export or swap are displayed in the Device field. These file systems contain the same mount point in both the source and target boot environments. Swap is shared by default, but you can also split and merge (add and remove) swap slices.

        For an overview of critical and shareable file systems, see File System Types.

    • The FS_Type field enables you to change file system type. The file system type can be one of the following:

      • vxfs, which indicates a Veritas file system

      • swap, which indicates a swap file system

      • ufs, which indicates a UFS file system

  4. (Optional) The following tasks can be done at any time:

    • To print the information onscreen to an ASCII file, press F5.

    • To scroll through the file system list, press Control-X.

      You can then switch between the file systems of the active and new boot environment and scroll.

    • To exit the Configuration menu at any time, press F6.

      • If you are in the Configuration menu, changes are not saved and file systems are not altered.

      • If you are in a Configuration submenu, you return to the Configuration menu.

  5. Select an available slice by pressing F2.

    The Choices menu displays available slices on the system for the field where the cursor is placed. The menu displays a device field and a file system FS_Type field.

    1. Use the arrow keys to place the cursor in a field to select a slice or file system type.

      • When you place your cursor in the Device field, all free slices are displayed. For the root (/) file system, the Choices menu only displays free slices that meet the root (/) file system limitations. See Guidelines for Selecting a Slice for the root (/) File System.

      • When you place your cursor in the FS_Type field, all available file system types are displayed.

      • Slices in bold can be selected for the current file system. The size of the slice is estimated by adding the size of the file system plus 30 percent to accommodate an upgrade.

      • Slices not in bold are too small to support the given file system. To reslice a disk, see Step 6.

    2. Press Return to choose a slice.

      The slice appears in the Device field or the file system type changes in the FS_Type field.

  6. (Optional) If available slices do not meet the minimum requirements, to reslice any available disks, press F4.

    The Solaris Live Upgrade Slice Configuration menu appears.

    The format(1M) command runs, which enables you to create new slices. Follow the screen to create a new slice.

    To navigate through this menu, use the arrow keys to move between the Device field and FS_Type field. The Size (Mbytes) field is automatically completed as the devices are selected.

    1. To free a device, press Control-D.

      The slice is now available and appears on the Choices menu.

    2. To return to the Configuration menu, press F3.

  7. (Optional) Splitting critical file systems puts the file systems on separate mount points. To split a file system, do the following:

    (To merge file systems, see Step 8).

    1. Select the file system to split.

      You can split or exclude file systems such as /usr, /var, or /opt from their parent directory.

      Note –

      When creating file systems for a boot environment, the rules are identical to the rules for creating file systems for the Solaris OS. Solaris Live Upgrade cannot prevent you from making invalid configurations on critical file systems. For example, you could enter a lucreate command that would create separate file systems for root (/) and /kernel, which is an invalid division of the root (/) file system.

    2. Press F8.

    3. Type the file system name for the new boot environment, for example:

      Enter the directory that will be a separate file system 
      on the new boot environment: /opt

      When the new file system is verified, a new line is added to the screen.

    4. To return to the Configuration menu, press F3.

      The Configuration menu is displayed.

  8. (Optional) Merging puts the file systems on the same mount point. To merge a file system into its parent directory:

    (To split file systems, see Step 7.)

    1. Select the file system to merge.

      You can merge file systems such as /usr, /var, or /opt into their parent directory.

    2. Press F9.

      The file systems that will be combined are displayed, for example:

      /opt will be merged into /. 
    3. Press Return.

    4. To return to the Configuration menu, press F3.

      The Configuration menu is displayed.

  9. (Optional) Decide if you want to add or remove swap slices.

    • If you want to split a swap slice and put swap on a new slice, continue with Step 10.

    • If you want to remove a swap slice, continue with Step 11.

  10. (Optional) To split a swap slice, do the following:

    1. In the Device field, select the swap slice that you want to split.

    2. Press F8.

    3. At the prompt, type:

      Enter the directory that will be a separate filesystem on 
      the new BE: swap
    4. Press F2 Choice.

      The Choice menu lists the available slices for swap.

    5. Select the slice to put swap on.

      The slice appears in the Device field and you have a new slice for swap.

  11. (Optional) To remove a swap slice, do the following:

    1. In the Device field, select the swap slice that you are removing.

    2. Press F9.

    3. At the prompt, type y.

      Slice /dev/dsk/c0t4d0s0 will not be swap partition. 
      Please confirm? [y, n]: y

      The swap slice no longer exists.

  12. Decide if you want to create the boot environment now or schedule the creation for later:

    • Press F3 to create the new boot environment now.

      The configuration is saved and you exit the configuration screen. The file systems are copied, the boot environment is made bootable, and an inactive boot environment is created.

      Creating a boot environment might take an hour or more, depending on your system configuration. The Solaris Live Upgrade main menu is then displayed.

    • If you want to schedule the creation for a later time, type y, then the start time, and an email address, as in this example.

      Do you want to schedule the copy? y
      Enter the time in 'at' format to schedule create: 8:15 PM
      Enter the address to which the copy log should be mailed:

      You are notified of the completion by email.

      For information about time formats, see the at(1) man page.

      You can schedule only one job at a time.

    After the creation is complete, the inactive boot environment is ready to be upgraded. See Chapter 5, Upgrading With Solaris Live Upgrade (Tasks).