HP Hitachi Dynamic Link Manager Software User Manual

Page 266

Advertising
background image

5

.

Specify the settings required for the md device, and then install HDLM.
Perform steps 5 to 12 in

When the MULTIPATH Function Is Not Being Used

for md Devices on page 3-188

.

6

.

Check the correspondence with HDLM device.
Execute the HDLM-configuration definition utility dlmcfgmgr with the -v

parameter specified:

# dlmcfgmgr -v

HDevName Management Device Host Channel Target Lun

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

/dev/sdo 2 0 0 1

KAPL10302-I /sbin/dlmcfgmgr completed normally.

The HDevName and Device columns display HDLM devices and SCSI

devices, respectively.

7

.

Create an md device.
Based on the correspondence between the HDLM devices and SCSI

devices checked in step 6, create an md device.
When you specify a device name, you must also specify the partition

number that is displayed in step 4.

# mdadm -C /dev/md0 -llinear -f -n1 /dev/sddlmaa1

mdadm: /dev/sddlmaa1 appears to contain an ext2fs file system

size=5238528K mtime=Wed Feb 6 19:17:08 2008

mdadm: /dev/sddlmaa1 appears to be part of a raid array:

level=-4 devices=2 ctime=Wed Feb 6 19:16:07 2008

Continue creating array? y

mdadm: array /dev/md0 started.

8

.

Create a configuration file.
Execute the following command to add an md device definition to the

existing configuration file /etc/mdadm.conf:

# mdadm --detail --scan | grep -w "/dev/md0" >> /etc/mdadm.conf

The following example shows the contents of the created configuration

file:
The underlined part indicates the lines added in this step.

# cat /etc/mdadm.conf

DEVICE /dev/sdo1 /dev/sdh1

ARRAY /dev/md0 level=multipath num-devices=2 UUID=6b2ec21b:

06d0f50b:bbf04d32:1e00b09a auto=yes

ARRAY /dev/md0 level=linear num-devices=1 UUID=426a9f1c:

9cfa6310:6aa9a80b:11ea2102

For details about the contents of the configuration file, see the Linux

documentation or use the man command.

9

.

If the configuration file /etc/mdadm.conf has been recreated, delete the

unnecessary ARRAY line in that configuration file.

3-194

Creating an HDLM Environment

Hitachi Dynamic Link Manager User Guide for Linux

®

Advertising
This manual is related to the following products: