Solaris Live Upgrade 2.0 Guide

Creating a Boot Environment Overview

Solaris Live Upgrade distinguishes between two file system types: critical file systems and shareable file systems. Critical file systems are required by the Solaris operating environment and are separate mount points in the vfstab of the active and inactive boot environments. Examples are root (/) /usr, /var or /opt. These file systems are always copied from the source to the inactive boot environment. Shareable file systems are user-defined files such as /export that contain the same mount point in the vfstab in both the active and inactive boot environments. Therefore, updating shared files in the active boot environment also updates data in the inactive boot environment. Shareable file systems are shared by default, but you can specify a destination slice and then the file systems are copied.

Swap is a special case of a shareable file system. Like a shareable file system, all files are shared by default. But, like a critical file system, you can split and merge swap slices. You do this by using the character user interface or at the command line by using lucreate with the -m option. A limitation to splitting and merging swap slices is that the swap slice cannot be in use by any boot environment except the current boot environment or if the -s option is used, the source boot environment. The boot environment creation fails if the swap slice is being used by any other boot environment whether the slice contains a swap, ufs, or any other file system. A swap slice is not required. For procedures on reconfiguring swap, see the procedure, “To Create a Boot Environment (Character Interface)” Step 9, or To Create a Boot Environment and Reconfigure Swap (Command-Line Interface).

Creating an inactive boot environment entails copying critical file systems to another slice. First you identify an unused slice where the critical file systems can be copied. If a slice is not available or a slice does not meet the minimum requirements, you need to format a new slice. For the procedure on formatting a slice from menus, see the procedure, “To Create a Boot Environment (Character Interface),” Step 6.

After the slice is defined, you can reconfigure the file systems on the new boot environment before the file systems are copied into the directories. You reconfigure file systems by splitting and merging them, which provides a simple way of editing the vfstab to connect and disconnect file system directories. You can merge file systems into their parent directories by specifying the same mount point or you can split file systems from their parent directories by specifying different mount points. For procedures on splitting and merging file systems, see the procedure, “To Create a Boot Environment (Character Interface)” Step 7 or Step 8 or To Create a Boot Environment and Split File Systems (Command-Line Interface) or To Create a Boot Environment and Merge File Systems (Command-Line Interface).


Note –

When you create file systems for a boot environment, the rules are identical to the rules for creating file systems for the Solaris operating environment. 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—an invalid division of root (/).


After file systems are configured on the inactive boot environment, you begin the automatic copy. Critical file systems are copied to the designated directories. Shareable file systems are not copied, but are shared (unless you have designated some file systems to be copied). When the file systems are copied from the active to the inactive boot environment, the files are directed to the newly defined directories. Files are synchronized (in a limited way) and the active boot environment is not changed in any way.

Figure 1–1 shows critical file systems that have been copied to a new boot environment. The root (/) file system, as well as any file systems such as /usr, /var, or /opt are copied. File systems such as /export/home are shared by the active and inactive boot environments. For procedures on creating a new boot environment, see Creating a New Boot Environment.

Figure 1–1 Creating an Inactive Boot Environment

Graphic