beautypg.com

HP Hitachi Dynamic Link Manager Software User Manual

Page 318

background image

# 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.

6

.

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

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

number that is displayed in step 2.
Specify all SCSI devices that correspond to HDLM devices:

# mdadm -C /dev/md0 -lmp -n2 /dev/sdh1 /dev/sdo1

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

size=5238528K mtime=Wed Feb 6 20:02:45 2008

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

level=-1 devices=1 ctime=Wed Feb 6 19:31:04 2008

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

size=5238528K mtime=Wed Feb 6 20:02:45 2008

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

level=-1 devices=1 ctime=Wed Feb 6 19:31:04 2008

Continue creating array? y

mdadm: array /dev/md0 started.

7

.

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/sddlmaa1

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

9cfa6310:6aa9a80b:11ea2102 auto=yes

ARRAY /dev/md0 level=multipath num-devices=2

UUID=8db667ff:e7472a25:3a84b801:025a6a57

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

documentation or use the man command.

8

.

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

unnecessary ARRAY line in that configuration file.
Delete the ARRAY line that includes the same name as the md device

name (md0) created in step 7. In the following example, the underlined

lines are to be deleted.

3-246

Creating an HDLM Environment

Hitachi Dynamic Link Manager User Guide for Linux

®

This manual is related to the following products: