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

[rhel9.7] mdadm: Grow command fails when updating chunk size

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Blocker Blocker
    • rhel-9.7
    • rhel-9.7
    • mdadm
    • None
    • mdadm-4.4-2.el9
    • Yes
    • Critical
    • rhel-storage-crs
    • ssg_platform_storage
    • 14
    • 17
    • 3
    • QE ack, Dev ack
    • False
    • False
    • Hide

      None

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

      commit bd648e3 ("mdadm: Remove klibc and uclibc support") removes
      macro HAVE_NFTW/HAVE_FTW and uses libc header ftw.h. But it leaves the
      codes in lib.c which let mdadm command call nftw defined in lib.c. It
      needs to remove these codes.

      This problem is introduced by the backport for rhel9.7 (MR is https://gitlab.com/redhat/centos-stream/rpms/mdadm/-/merge_requests/46). And the mdadm version is mdadm-4.4-1.el9. But the package hasn't been released, the test build package can be found at https://kojihub.stream.rdu2.redhat.com/koji/taskinfo?taskID=5686445

      The bug can be reproduced by:
      mdadm -CR /dev/md0 --level raid5 --metadata=1.1 --chunk=32 --raid-disks 3
      --size 10000 /dev/loop1 /dev/loop2 /dev/loop3
      mdadm /dev/md0 --grow --chunk=64
      mdadm: /dev/md0: cannot open component unknown

              fan.fan Fan Fan
              xni@redhat.com Xiao Ni
              Nigel Croxon Nigel Croxon
              Fan Fan Fan Fan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: