beautypg.com

Using hdlm in an luks environment, Using hdlm in an luks environment -183 – HP Hitachi Dynamic Link Manager Software User Manual

Page 255

background image

When using LUKS on an HDLM device, enter the HDLM device's device file

name in the /etc/crypttab file's second field.

Using HDLM in an LUKS Environment

This subsection describes how to migrate LUKS from a SCSI device

environment using LUKS to HDLM devices.

To migrate from /dev/sdh to /dev/sddlmaa:

1

.

Check the HDLM device to be migrated from the SCSI device.
Execute the HDLM-configuration definition utility (dlmcfgmgr) with the -v

parameter specified to check the correspondence between the SCSI

device and the HDLM device.
The following shows an example of executing the dlmcfgmgr utility with

the specified-v parameter:

# dlmcfgmgr -v

HDevName Management Device Host Channel Target Lun

/dev/sddlmaa configured /dev/sdh 1 0 0 0

/dev/sddlmab configured /dev/sdj 1 0 0 1

:

:

KAPL10302-I /sbin/dlmcfgmgr completed normally.

#

HDLM devices are listed in the HDevName column, and SCSI devices are

listed in the Device column.

2

.

Check the /etc/crypttab file's second field.

¢

If a SCSI device is directly specified, change the SCSI device in the /
etc/crypttab file's second field to the corresponding HDLM device

that was checked in step 1, and then go to step 4.
The following shows an example of editing the /etc/crypttab file's

second field:
Before editing:

luks-volume1 /dev/sdh /etc/cryptpassword1

After editing:

luks-volume1 /dev/sddlmaa /etc/cryptpassword1

¢

If the device name is specified in UUID format, go to step 3.

3

.

Execute the following command to check the correspondence between the

UUID and the device name.

# blkid -t UUID="050f9901-3ab8-4556-a091-9c6e4a404f09" -l -o

device

/dev/sdh

#

¢

If you have an HDLM device name as the output, change the UUID to

the HDLM device name in the /etc/crypttab file's second field.

Creating an HDLM Environment

3-183

Hitachi Dynamic Link Manager User Guide for Linux

®

This manual is related to the following products: