![]() |
![]() |
| |||||||
|
# lucreate [-A 'BE_description'] \ -m mountpoint:device[,metadevice]:fs_options [-m...] \ -n BE_name |
When the creation of the new boot environment is complete, it can be upgraded and can be activated (made bootable). See Chapter 36, Upgrading With Solaris Live Upgrade (Tasks).
Example 35-9 Creating a Boot Environment With a Mirror and Specifying Devices (Command Line)
In this example, the mount points for the file systems are specified by using the -m option.
A description, mydescription, is associated with the name another_disk.
lucreate configures a UFS file system for the mount point root (/). A mirror, d10, is created. This mirror is the receptacle for the current boot environment's root (/) file system that is copied to the mirror d10. All data on the mirror d10 is overwritten.
Two slices, c0t0d0s0 and c0t1d0s0, are submirrors, d1 and d2. These two submirrors are added to mirror d10.
The new boot environment is named another_disk.
# lucreate -A 'mydescription' \ -m /:/dev/md/dsk/d10:ufs,mirror \ -m /:/dev/dsk/c0t0d0s0,d1:attach \ -m /:/dev/dsk/c0t1c0s0,d2:attach -n another_disk |
When the creation of the new boot environment is complete, it can be upgraded and can be activated (made bootable). See Chapter 36, Upgrading With Solaris Live Upgrade (Tasks).
Example 35-10 Creating a Boot Environment With a Mirror and Not Specifying a Submirror Name (Command Line)
In this example, the mount points for the file systems are specified by using the -m option.
A description, mydescription, is associated with the name another_disk.
lucreate configures a UFS file system for the mount point root (/). A mirror, d10, is created. This mirror is the receptacle for the current boot environment's root (/) file system that is copied to the mirror d10. All data on the mirror d10 is overwritten.
Two slices, c0t0d0s0 and c0t1d0s0, are specified to be used as submirrors. The submirrors are not specified, but the lucreate command chooses names from a list of available volume names. These two submirrors are attached to mirror d10.
The new boot environment is named another_disk.
# lucreate -A 'mydescription' \ -m /:/dev/md/dsk/d10:ufs,mirror \ -m /:/dev/dsk/c0t0d0s0:attach \ -m /:/dev/dsk/c0t1d0s0:attach -n another_disk |
When the creation of the new boot environment is complete, it can be upgraded and can be activated (made bootable). See Chapter 36, Upgrading With Solaris Live Upgrade (Tasks).
Example 35-11 Creating a Boot Environment and Detaching a Submirror (Command Line)
In this example, the mount points for the file systems are specified by using the -m option.
A description, mydescription, is associated with the name another_disk.
lucreate configures a UFS file system for the mount point root (/). A mirror, d10, is created.
Slice c0t0d0s0 is removed from its current mirror. The slice is specified to be submirror d1 and is added to mirror d10. The contents of the submirror, the root (/) file system, are saved and no copy occurs. Slice c0t1d0s0 is submirror d2 and is added to mirror d10.
The new boot environment is named another_disk.
# lucreate -A 'mydescription' \ -m /:/dev/md/dsk/d10:ufs,mirror \ -m /:/dev/dsk/c0t0d0s0,d1:detach,attach,preserve \ -m /:/dev/dsk/c0t1d0s0,d2:attach -n another_disk |
This example can be abbreviated as in the following example. The physical and logical device names are shortened. The specifiers for the submirrors d1 and d2 are omitted.
# lucreate -A 'mydescription' \ -m /:d10:ufs,mirror \ -m /:c0t0d0s0:detach,attach,preserve \ -m /:c0t1d0s0:attach -n another_disk |
When the creation of the new boot environment is complete, it can be upgraded and can be activated (made bootable). See Chapter 36, Upgrading With Solaris Live Upgrade (Tasks).
Example 35-12 Creating a Boot Environment, Detaching a Submirror, and Saving Its Contents (Command Line)
In this example, the mount points for the file systems are specified by using the -m option.
A description, mydescription, is associated with the name another_disk.
lucreate configures a UFS file system for the mount point root (/). A mirror, d20, is created.
Slice c0t0d0s0 is removed from its current mirror and added to the mirror d20. The name of the submirror is not specified. The contents of the submirror, the root (/) file system, are saved and no copy occurs.
The new boot environment is named another_disk.
# lucreate -A 'mydescription' \ -m /:/dev/md/dsk/d20:ufs,mirror \ -m /:/dev/dsk/c0t0d0s0:detach,attach,preserve \ -n another_disk |
When the creation of the new boot environment is complete, the boot environment can be upgraded and can be activated (made bootable). See Chapter 36, Upgrading With Solaris Live Upgrade (Tasks).
Example 35-13 Creating a Boot Environment With Two Mirrors (Command Line)
In this example, the mount points for the file systems are specified by using the -m option.
A description, mydescription, is associated with the name another_disk.
lucreate configures a UFS file system for the mount point root (/). A mirror, d10, is created. This mirror is the receptacle for the current boot environment's root (/) file system that is copied to the mirror d10. All data on the mirror d10 is overwritten.
Two slices, c0t0d0s0 and c0t1d0s0, are submirrors, d1 and d2. These two submirrors are added to mirror d10.
lucreate configures UFS file system for the mount point /opt. A mirror, d11, is created. This mirror is the receptacle for the current boot environment's /opt file system that is copied to the mirror d11. All data on the mirror d11 is overwritten.
Two slices, c2t0d0s1 and c3t1d0s1, are submirrors, d3 and d4. These two submirrors are added to mirror d11.
The new boot environment is named another_disk.
# lucreate -A 'mydescription' \ -m /:/dev/md/dsk/d10:ufs,mirror \ -m /:/dev/dsk/c0t0d0s0,d1:attach \ -m /:/dev/dsk/c0t1d0s0,d2:attach \ -m /opt:/dev/md/dsk/d11:ufs,mirror \ -m /opt:/dev/dsk/c2t0d0s1,d3:attach \ -m /opt:/dev/dsk/c3t1d0s1,d4:attach -n another_disk |
When the creation of the new boot environment is complete, it can be upgraded and can be activated (made bootable). See Chapter 36, Upgrading With Solaris Live Upgrade (Tasks).
Previous Contents Index Next ![]() |