beautypg.com

HP XP P9500 Storage User Manual

Page 232

background image

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.
Delete the ARRAY line that includes the same name as the md device

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

lines are to be deleted.

# cat /etc/mdadm.conf

3-164

Creating an HDLM Environment

Hitachi Dynamic Link Manager User Guide (for Linux(R))

This manual is related to the following products: