HP XP P9500 Storage User Manual

Page 172

Advertising
background image

Migrating data under the rpool/export directory to a ZFS boot disk

environment

Migrate data under the rpool/export directory to a ZFS boot disk

environment. Before the migration, back up data under the rpool/export

directory located in the local boot disk environment before the migration.

Otherwise, you will not be able to restarte the system in the local boot disk

environment before the migration.

1

.

Execute the zfs snapshot command to create a snap shot of the rpool/
export directory in the local boot disk environment before the migration.

# zfs snapshot -r rpool/[email protected]

2

.

Execute the zfs send and zfs receive commands to copy data under

the /export directory of the snapshot you created to the root pool

(hdlmpool) in the ZFS boot disk environment after the migration.

# zfs send -vRp rpool/[email protected] | zfs receive -uvdF

hdlmpool

3

.

Execute the zfs list command to make sure the data is copied to the

root pool (hdlmpool) in the ZFS boot disk environment after the

migration.

# zfs list -r hdlmpool

Make sure the /export directory and the /export/home directory are

displayed.

4

.

Execute the zfs destroy command to delete data under the rpool/
export directory before the migration.
If the rpool/export directory exists before the migration, the rpool/
export directory that existed before the migration is mounted first when

the system is restarted, and mounting the hdlmpool/export directory

after the migration might fail.

# zfs destroy -f -r rpool/export

5

.

Execute the zfs list command to make sure data under the rpool/
export directory before the migration is deleted.

# zfs list -r rpool

6

.

Execute the init command and restart the host.

# init 6

Do not use the reboot command to restart the host.

7

.

Execute the beadm list command to make sure the system is booted

from the migrated boot device (hdlmboot).
Make sure NR is shown in the Active column of the hdlmboot row for the

migrated boot device.

# beadm list

BE Active Mountpoint Space Policy Created

3-106

Creating an HDLM Environment

Hitachi Dynamic Link Manager User Guide for Solaris

®

Advertising
This manual is related to the following products: