Creating a new boot environment -112 – HP Hitachi Dynamic Link Manager Software Licenses User Manual
Page 178
Creating a New Boot Environment
1
.
Execute the zpool import command to check the ID of the root pool
(rpool).
# zpool import
pool: rpool
id: 6462316201492788659
state: ONLINE
status: The pool is formatted using an older on-disk version.
action: The pool can be imported using its name or numeric
identifier, though
some features will not be available without an explicit
'zpool upgrade'.
config:
rpool ONLINE
c1t0d0s0 ONLINE
2
.
To import the root pool, execute the zpool import command with the ID
(checked in Step 1) specified.
# zpool import 6462316201492788659
cannot mount 'rpool/export' on '/export': directory is not empty
cannot mount 'rpool/export' on '/export': directory is not empty
cannot mount 'rpool/export/home' on '/export/home': failure
mounting parent dataset
When you import the root pool, a message, similar to the example above,
that indicates that the root pool could not be mounted is output. This
occurs because hdlmpool/export is currently being used. Ignore this
message and proceed to the next step.
If no root pool exists on the local disk on which you want to create a boot
disk, create a root pool. Allocate the entire disk capacity to slice 0 of the
device file on the local disk.
# zpool create -f rpool (slice-0-of-device-file-on-local-disk)
In the following example, the device file on the local disk is c1t0d0
(disk0):
# zpool create -f rpool /dev/dsk/c1t0d0s0
3
.
After the root pool is imported, if the ZFS file system exists in rpool/
export, specify settings so that the ZFS file system is not mounted at the
next startup. rpool/export cannot be mounted at the next startup
because its mount point is the same as the mount point for rpool/
export. For this reason, specify the following so that rpool/export is not
mounted:
# zfs set canmount=off rpool/export
# zfs set canmount=off rpool/export/home
4
.
Execute the beadm create command to create a new boot environment.
# beadm create -p name-of-imported-root-pool-on-local-disk -a
desired-ZFS-boot-disk-environment-name
In the following example, the root pool name is rpool, and the ZFS boot
disk environment name is solaris-2. For the ZFS boot disk environment
name, execute the beadm list command to make sure that the name
does not already exist.
3-112
Creating an HDLM Environment
Hitachi Dynamic Link Manager (for Solaris) User Guide