beautypg.com

HP Hitachi Dynamic Link Manager Software User Manual

Page 268

background image

3. Creating an HDLM Environment

244

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

10. Edit the

/etc/mdadm.conf

file to add

auto=yes

to the

ARRAY

line in the

configuration file:


DEVICE /dev/sdo1 /dev/sdh1

This manual is related to the following products: