Unable to create md device with targetcli shared disk

Solution Verified - Updated -

Issue

  • When attempting to create a mdadm array using a disk that is shared by targetcli, the following error is observed:
# mdadm --create /dev/md0 --metadata=1.0 --force --run --level=1 --chunk=256 --raid-devices=2 /dev/mapper/mpathcrk missing
mdadm: super1.x cannot open /dev/mapper/mpathcrk: Device or resource busy
mdadm: /dev/mapper/mpathcrk is not suitable for this array.
mdadm: create aborted
  • The issue is not observed in RHEL 6.

Environment

  • Red Hat Enterprise Linux 7
  • targetcli

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content