Hitachi Dynamic Link Manager Software Users Guide for Linux

Figure 3-12 Device Configuration Where an md Device on a SCSI Device Is
Migrated to an HDLM Device (An Environment that Uses the md Device's
RAID Functionality)
To migrate /dev/md0:
1. Stop all applications that are using the existing md device.
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 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
3-164
Creating an HDLM Environment
Hitachi Dynamic Link Manager (for Linux®) User Guide