beautypg.com

HP Hitachi Dynamic Link Manager Software User Manual

Page 262

background image

3. Creating an HDLM Environment

238

2.

If necessary, back up the application data residing on the md device.

3.

If file systems have been mounted on the md device, unmount them.

4.

Check the status of the md device.
Execute the following command to check the configuration of the md device:


# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sdh1[0] sdi1[1]
5238528 blocks [2/2] [UU]

unused devices:

Make sure that

md0 : active

and that SCSI devices are displayed.

If

md0 : active

is not displayed, activate the md device.

5.

If you have already used a configuration file (

/etc/mdadm.conf

), back up that

file.
Execute the following command to back up that configuration file:


# cp -pr /etc/mdadm.conf /etc/mdadm.conf.backup

6.

Execute the following command to create a configuration file:
Even if a configuration file had already been used in step 5, you still need to create

a configuration file so that the md device will be managed by HDLM.


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

For

sdh1

and

sdi1

, specify the SCSI devices displayed in step 4.

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/sdh1 /dev/sdi1
DEVICE /dev/sdf1 /dev/sdg1 /dev/sdh1 /dev/sdi1
ARRAY /dev/md0 level=raid1 num-devices=2
UUID=e39a6b15:32e48a5d:ca05f4db:25bc8af9
ARRAY /dev/md0 level=linear num-devices=1
UUID=426a9f1c:9cfa6310:6aa9a80b:11ea2102

This manual is related to the following products: