Managing an MD Device

Stopping the MD Device

Stopping the MD Device

After you create an MD device, it begins to run. You need to stop the device and add the configuration into the raid.conf file. To stop the MD device, run the following command:

# mdadm -S <md_device name>

When you stop this device, all resources that were previously occupied by this device are released. Also, the entry of this device is removed from the /proc/mdstat file.

Example A-1 Stopping the MD Device /dev/md0

To stop the MD device /dev/md0, run the following command:

[root@dlhct1 dev]# mdadm -S /dev/md0

Once you stop the device, the entry is removed from the /proc/mdstat file. Following is an example of what the file contents will look like:

[root@dlhct1 dev]# cat /proc/mdstat

Personalities : [raid1]

unused devices: <none>

NOTE

This command and the other commands described subsequently are

 

listed as they may be used during cluster development and during some

 

recovery operations.

 

 

Appendix A

99

Page 99
Image 99
HP serviceguard t2808-90006 manual Example A-1 Stopping the MD Device /dev/md0