[Bug 1030354] [NEW] "device or resource busy" on mdadm create

Alexandre Martani amartani at gmail.com
Sat Jul 28 18:50:29 UTC 2012


Public bug reported:

The issue manifested itself as a random failure during device creation:

$ mdadm --create /dev/md0 --level=0 --chunk 256 --raid-devices=4 /dev/xvdh1 /dev/xvdh2 /dev/xvdh3 /dev/xvdh4
mdadm: Defaulting to version 1.2 metadata
mdadm: ADD_NEW_DISK for /dev/xvdh3 failed: Device or resource busy

The problem can be solved by disabling udev events during device
creation to avoid contention on device handles.

$ udevadm control --stop-exec-queue
$ mdadm --create /dev/md0 --run --level=0 --raid-devices=4 ...
$ udevadm control --start-exec-queue

And we now have consistent reliable device creation.

More details: http://dev.bizo.com/2012/07/mdadm-device-or-resource-busy.html
Note: I am not the author of the post, but I experience the same issue, also using instances on Amazon EC2.

** Affects: mdadm (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to mdadm in Ubuntu.
https://bugs.launchpad.net/bugs/1030354

Title:
  "device or resource busy" on mdadm create

Status in “mdadm” package in Ubuntu:
  New

Bug description:
  The issue manifested itself as a random failure during device
  creation:

  $ mdadm --create /dev/md0 --level=0 --chunk 256 --raid-devices=4 /dev/xvdh1 /dev/xvdh2 /dev/xvdh3 /dev/xvdh4
  mdadm: Defaulting to version 1.2 metadata
  mdadm: ADD_NEW_DISK for /dev/xvdh3 failed: Device or resource busy

  The problem can be solved by disabling udev events during device
  creation to avoid contention on device handles.

  $ udevadm control --stop-exec-queue
  $ mdadm --create /dev/md0 --run --level=0 --raid-devices=4 ...
  $ udevadm control --start-exec-queue

  And we now have consistent reliable device creation.

  More details: http://dev.bizo.com/2012/07/mdadm-device-or-resource-busy.html
  Note: I am not the author of the post, but I experience the same issue, also using instances on Amazon EC2.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/1030354/+subscriptions




More information about the foundations-bugs mailing list