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

  • Huion and Wacom Tablets How To Install in Linux Mint / Ubuntu and make the stylus work properly
  • ffmpeg how to cut certain parts of video out
  • ffmpeg how to concat and join two video clips
  • mencoder instead of ffmpeg to join or concatenate video files with different audio streams
  • Linux How To Stop Missing Drive from Halting Boot Process in fstab
  • How To Replace Audio Track of Video using ffmpeg
  • qemu-img convert formats vdi vmdk raw qcow2
  • Linux and Windows Dual Boot Crazy Time Issues
  • dynagen / dynamips 100% high CPU usage solution - how to set the idlepc value
  • How To Setup a Cisco CME (Cisco Manager Express) Virtual Router under Linux using dynamips and dynagen
  • Linux Mint Ubuntu Debian CentOS Dual Boot Install Issues
  • Linux Mint Ubuntu Debian Centos RHEL no sound solution
  • Linux Mint/Debian/Ubuntu/Centos Installer black grub screen and blank screen after trying to boot installer or main OS
  • Linux Mint Dual Boot Install Avoid Wiping our your Main C: drive /dev/sda MBR and EFI
  • QEMU-KVM soundhw deprecated how to enable sound in QEMU 4.x series
  • Virtualbox Error Cannot register the hard disk because a hard disk with UUID already exists solution
  • kernel: [549267.368859] mate-terminal[7871]: segfault at 2000000101 ip 00007f5d0a9548f0 sp 00007fff7012c610 error 4 in libgobject-2.0.so.0.4800.2[7f5d0a920000+52000]
  • apcupsd how to setup and monitor APC UPS units
  • How To Password Reset, Recover, Bypass, Remove and Unlock on Windows 10,8,7,Vista,XP,NT,2000,2003,2008,2012,2016,2019 Administrative Login Programs
  • Nvidia Ubuntu Linux Screentearing Video with solution driver