To remove them and release undelying block devices one should erase metadata signatures.
Discover all software RAID devices supported on your system, eg:
- Code: Select all
# dmraid -r
/dev/dm-46: hpt45x, "hpt45x_chidjhaiaa-0", striped, ok, 320172928 sectors, data@ 0
/dev/dm-50: hpt45x, "hpt45x_chidjhaiaa-0", striped, ok, 320172928 sectors, data@ 0
/dev/dm-54: hpt45x, "hpt45x_chidjhaiaa-1", striped, ok, 320172928 sectors, data@ 0
/dev/dm-58: hpt45x, "hpt45x_chidjhaiaa-1", striped, ok, 320172928 sectors, data@ 0
If {-E| --erase_metadata} is added to {-r| --raid_devices} the RAID metadata on the devices gets conditionally erased:
- Code: Select all
# dmraid -rE
Do you really want to erase "hpt45x" ondisk metadata on /dev/sdb ? [y/n] :y
...
...
And then remove logical devices which use device-mapper driver:
- Code: Select all
# dmsetup remove /dev/mapper/hpt45x_chidjhaiaa-0
...
...