[CentOS] mdraid doesn't allow creation: device or resource busy

Gordon Messmer

gordon.messmer at gmail.com
Sat Jul 1 16:27:13 UTC 2017


On 06/29/2017 05:06 PM, adam_kalisz wrote:
>
> Do you have any ideas? What logs/ information should I provide if you
> want to have a look into this. 


Run "vgs" to see if the drives brought up an old volume group. Run "pvs" 
to see if they were imported into the volume group you were already 
using.  Check the content of /proc/mdstat to see if an old RAID array 
was started.

Use "vgchange -a n old_group" to stop an old volume group, and "wipefs 
-a /dev/md42" to delete the LVM2 data on the old volume group's array.  
Use "mdadm --stop md42" to stop the old array, and "wipefs -a 
/dev/sd[cdefgh]1" to delete the dm RAID data on all of those 
partitions.  Use "wipefs -a /dev/sd[cdefgh]" to delete the partition 
table on those drives.




More information about the CentOS mailing list