mdadm: super0.90 cannot open /dev/sdb1: Device or resource busy mdadm: /dev/sdb1 is not suitable for this array.

mdadm --create /dev/md0 --level 1 --raid-devices 2 /dev/sdb1 missing --metadata=0.90
mdadm: super0.90 cannot open /dev/sdb1: Device or resource busy
mdadm: /dev/sdb1 is not suitable for this array.
mdadm: create aborted

Sometimes running "partprobe" can fix this.  Other times it requires a reboot.

One other manual thing that can be done is the following to fix it (if dm is using and blocking it):

dmsetup table

Then remove the entry that is using /dev/sdb1

dmsetup remove [the device id from above]

If the above doesn't work could it be that you used -f to fail a partition to test or by accident?

md3 : active raid10 sdb3[2](F) sda3[0]
      436343808 blocks 512K chunks 2 far-copies [2/1] [U_]
      bitmap: 4/4 pages [16KB], 65536KB chunk



mdadm: Cannot open /dev/sdb3: Device or resource busy
 

Fix it by removing the device from the mdadm array

mdadm --manage /dev/md3 -r /dev/sdb3
mdadm: hot removed /dev/sdb3 from /dev/md3


Now we can readd it without any error:

mdadm --manage /dev/md3 -a /dev/sdb3
mdadm: re-added /dev/sdb3


Tags:

mdadm, dev, sdb, resource, suitable, array, md, raid, devices, metadata, aborted, quot, partprobe, requires, reboot, manual, dm, blocking, dmsetup, entry,

Latest Articles

  • Linux and Windows Dual Boot Issue NIC Won't work After Booting Windows
  • Cisco CME How To Enable ACD hunt groups
  • How to install gns3 on Linux Ubuntu Mint
  • How to convert audio for Asterisk .wav format
  • Using Cisco CME Router with Asterisk as a dial-peer
  • Cisco CME How To Configure SIP Trunk VOIP
  • Virtualbox host Only Network Error Failed to save host network interface parameter - Cannot change gateway IP of host only network
  • Cisco CME and C7200 Router Testing and Learning Environment on Ubuntu 20+ Setup Tutorial Guide
  • Abusive IP ranges blacklist
  • How to Install Any OS on a Physical Drive from Windows Using VMware Workstation (Linux, Windows, BSD)
  • CDN Cloudflare how to set and preserve the real IP of the client without modifying application code on Apache
  • CentOS 7 fix Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=container error was 14: curl#6 -
  • Ubuntu Debian How To Install Recommended Packages Automatically
  • How to set Linux Ubuntu Redhat Debian Command Line http https socks proxy for yum apt
  • How to resize a pdf without losing much quality in Linux Mint Ubuntu Debian Redhat Solution
  • qemu: could not load PC BIOS 'bios-256k.bin' solution
  • Proxmox How To Custom Partition During Install
  • Hyper-V Linux VM Boots to Black Screen, Storage, NIC Not Found Issues
  • Ubuntu Mint How to Fix Missing/Broken /dev and /dev/pts which causes terminal to immediately close exit and not work
  • How high can a Xeon CPU get?