Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-100004

[RHEL10.2] Cannot remove disk from array with mdadm 4.4

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-10.2
    • CentOS Stream 10
    • mdadm
    • None
    • Yes
    • None
    • rhel-storage-crs
    • 5
    • 7
    • None
    • QE ack, Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      After the recent update to mdadm v4.4 our test suite (libblockdev package) started failing when trying to remove a disk from existing RAID 1 array. This happens randomly and is probably a race condition as we try to remove the disk immediately after creating the array.

      Steps to reproduce:
      sudo mdadm --create --run test --level=raid1 --raid-devices=2 /dev/sda /dev/sdb
      sudo mdadm --incremental --fail sda -v

      The --incremental --fail command fails with:
      mdadm: failed to write 'read-auto' to '/sys/block/md127/md//array_state' (Device or resource busy)
      mdadm: Cannot remove member device sda from md127.

              xni@redhat.com Xiao Ni
              vtrefny@redhat.com Vojtěch Trefný
              Nigel Croxon Nigel Croxon
              Fan Fan Fan Fan
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: