![]() |
![]() |
| ||||||||||||||||||||
|
# lucreate [-A 'BE_description'] -s source_BE_name -m mountpoint:device[,metadevice]:fs_options -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 source_BE_name | Specifies the source boot environment for the new boot environment. The source would not be the active boot environment. |
| -m mountpoint:device[,metadevice]:fs_options [-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.
|
| -n BE_name | The name of the boot environment to be created. BE_name must be unique on the system. |
Example 35-7 Creating a Boot Environment From a Different Source (Command-Line Interface)
In this example, a boot environment is created based on the root (/) file system in the source boot environment named third_disk. Third_disk is not the active boot environment. A description, mydescription, is associated with the new boot environment named second_disk.
# lucreate -A 'mydescription' -s third_disk \ -m /:/dev/dsk/c0t4d0s0:ufs -n second_disk |
When creation of the new boot environment is complete, it can be upgraded and activated (made bootable). See Chapter 36, Upgrading With Solaris Live Upgrade (Tasks).
To Create an Empty Boot Environment for a Solaris Flash Archive (Command-Line Interface)The lucreate command creates a boot environment that is based on the file systems in the active boot environment. When using the lucreate command with the -s - option, lucreate quickly creates an empty boot environment. The slices are reserved for the file systems specified, but no file systems are copied. The boot environment is named, but not actually created until installed with a Solaris Flash archive. When the empty boot environment is installed with an archive, file systems are installed on the reserved slices.
Log in as superuser.
Create the empty boot environment.
# lucreate -A 'BE_name' -s - \ -m mountpoint:device[,metadevice]:fs_options -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[,metadevice]:fs_options [-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.
|
| -n BE_name | The name of the boot environment to be created. BE_name must be unique on the system. |
Example 35-8 Creating an Empty Boot Environment for a Solaris Flash Archive (Command-Line Interface)
In this example, a boot environment is created but contains no file systems. A description, mydescription, is associated with the new boot environment that is named second_disk.
# lucreate -A 'mydescription' -s - \ -m /:/dev/dsk/c0t1d0s0: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 36, Upgrading With Solaris Live Upgrade (Tasks).
For an example of creating and populating an empty boot environment, see Example of Creating an Empty Boot Environment and Installing a Solaris Flash Archive (Command-Line Interface).
Figure 35-4 shows the creation of an empty boot environment.
Figure 35-4 Creating an Empty Boot Environment
Previous Contents Index Next ![]() |