Migrating to the zfs boot disk environment -114 – HP Hitachi Dynamic Link Manager Software Licenses User Manual
Page 180
disk in the pre-migration environment to the ZFS boot disk in the post-
migration environment.
The following is an example:
Before editing
/dev/zvol/dsk/hdlmpool/swap - - swap - no -
After editing
/dev/zvol/dsk/rpool/swap - - swap - no -
3
.
If rpool/dump does not exist as a file system, execute the zfs create
command to create a dump device for the file system in the post-
migration root pool rpool.
The dump device size differs depending on the operating environment.
# zfs create -V 3G rpool/dump
4
.
Execute the dumpadm command to switch to the dump device in the post-
migration ZFS boot disk environment.
# dumpadm -d /dev/zvol/dsk/rpool/dump
5
.
Execute the dumpadm command to confirm that the dump device has
changed to the post-migration rpool/dump.
# dumpadm
Dump content: kernel pages
Dump device: /dev/zvol/dsk/rpool/dump (dedicated)
Savecore directory: /var/crash
Savecore enabled: yes
Save compressed: on
Migrating to the ZFS Boot Disk Environment
This section explains how to migrate data in the hdlmpool/export and
hdlmpool/export/home directories to the ZFS boot disk environment.
Before migrating, back up the data under the rpool/export directory of the
pre-migration local boot disk environment. In the procedure below, steps 1
and 2 indicate the migration procedure for hdlmpool/export. The same steps
are used to migrate hdlmpool/export/home.
It is assumed that the root pool name of the ZFS boot disk environment
before the migration is hdlmpool, and the root pool name of the local boot
disk environment after the migration is rpool in this section.
1
.
Execute the zfs snapshot command to create a snapshot of the
hdlmpool/export directory in the ZFS boot disk environment.
# zfs snapshot -r hdlmpool/[email protected]
2
.
Execute the zfs send and zfs receive commands to copy data under
the /export directory of the created snapshot to hdlmpool, which is the
root pool of the post-migration ZFS boot disk environment. Delete rpool/
export and then replace it with the data in hdlmpool/export. Back up
the data under the rpool/export directory in the pre-migration local boot
disk environment.
3-114
Creating an HDLM Environment
Hitachi Dynamic Link Manager (for Solaris) User Guide