HP Hitachi Dynamic Link Manager Software User Manual
Page 332
3. Creating an HDLM Environment
308
# cat /proc/mdstat
Personalities : [linear]
unused devices:
Make sure that
md0 : active
is not displayed.
5.
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.
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
: