3. Creating an HDLM Environment
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: <none>
Make sure that
If
md0 : active
5.
If you have already used a configuration file (
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
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
238
and that SCSI devices are displayed.
md0 : active
is not displayed, activate the md device.
and
, specify the SCSI devices displayed in step 4.
sdi1
), back up that
/etc/mdadm.conf