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

Launchpad Bug Tracker 1030354 at bugs.launchpad.net
Wed Aug 8 08:27:52 UTC 2012


Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: mdadm (Ubuntu)
       Status: New => Confirmed

-- 
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:
  Confirmed

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