|
|||
1. Introduction to Boot Environments 2. Using beadm Utility (Tasks) Listing Existing Boot Environments and Snapshots Taking a Snapshot of a Boot Environment Changing the Default Boot Environment Mounting and Updating an Inactive Boot Environment |
Creating a Boot EnvironmentIf you want to create a backup of an existing boot environment, for example, prior to modifying the original boot environment, you can use the beadm command to create and mount a new boot environment that is a clone of your active boot environment. This clone is inactive and displays as an alternate in the GRUB menu for x86 systems or the boot menu for SPARC systems on reboot. The SPARC boot menu is located at /rpool/boot/menu.lst. Note - When you create a new boot environment, the process first automatically takes a snapshot of the original boot environment, then the process makes a new clone that is derived from this snapshot. Both the new snapshot and the new clone are retained by the system. How to Create a Boot Environment
Example 2-3 Creating a New, Cloned Boot Environment with Datasets (BE2)The following example illustrates the datasets in a newly created boot environment. Type the following command. $ beadm create BE2 The original boot environment in this example is BE1. The new boot environment, BE2, contains separate datasets cloned from BE1. If BE1 contains separate datasets for traditional file systems, such as /var or /opt, then those datasets are also cloned. rpool/ROOT/BE1 rpool/ROOT/BE1/usr rpool/ROOT/BE1/var rpool/ROOT/BE1/opt rpool/ROOT/BE2 rpool/ROOT/BE2/usr rpool/ROOT/BE2/var rpool/ROOT/BE2/opt rpool in this example is the name of the storage pool. The pool already exists on the system, previously set up by the initial installation or upgrade. ROOT is a special dataset that was also created previously by the initial installation or upgrade. ROOT is reserved exclusively for use by boot environment roots. Example 2-4 Creating a New Boot Environment With Shared DatasetsThe following example illustrates a newly-created boot environment that has shared datasets. Shared datasets are user-defined files, such as /export, that contain the same mount point in both the active and inactive boot environments. Shared datasets are located outside the root dataset area of each boot environment. Type the following command. $ beadm create BE2 The shared datasets, rpool/export and rpool/export/home, are not cloned when the boot environment is cloned. The shared datasets are located outside the rpool/ROOT/<BE> datasets and are referenced at their original locations by the cloned boot environment. The original boot environment, BE1 and datasets are as follows: rpool/ROOT/BE1 rpool/ROOT/BE1/usr rpool/ROOT/BE1/var rpool/ROOT/BE1/opt rpool/export rpool/export/home The cloned boot environment, BE2, has new root datasets, but the original shared datasets, rpool/export and rpool/export/home, are unchanged. rpool/ROOT/BE2 rpool/ROOT/BE2/usr rpool/ROOT/BE2/var rpool/ROOT/BE2/opt rpool/export rpool/export/home How to Create a Boot Environment From an Inactive Boot EnvironmentBy default, a new boot environment is created from the active boot environment. However, you can use the beadm create command to create a new boot environment that is based on an existing, inactive boot environment.
|
||
|