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

[RHEL10] mdadm: raid5 with too big chunk size reshape fails

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • rhel-10.0
    • libblockdev
    • None
    • No
    • Low
    • rhel-sst-storage-management
    • ssg_filesystems_storage_and_HA
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      What is the impact of this issue to you?

      Please provide the package NVR for which the bug is seen:

      How reproducible is this bug?:

      Steps to reproduce

      1.  
      2.  
      3.  

      Expected results

      Actual results

       

      >>> new_dev1 =  "/dev/%s" % o.add_loop()
      /home/bd.1wthqqkk-loop_test
      >>> 
      [2024-11-07 05:16:25]  INFO: setup the storage raid5  
      [2024-11-07 05:16:25]  INFO: free disk is ['/dev/sdb', '/dev/sda', '/dev/sdc', '/dev/sdd'] 
      [2024-11-07 05:16:25]  INFO: raid parameter raid_level raid5,  raid_mem ['/dev/sdb', '/dev/sda', '/dev/sdc'],                    version 1.2,  bitmap None,                     chunk_size 524288                    extra, [BlockDev.ExtraArg (BDExtraArg) instance (0x7f2ab8b5b230)
       opt: --write-journal
       val: /dev/sdd
      , BlockDev.ExtraArg (BDExtraArg) instance (0x7f2ab8b5b290)
       opt: --consistency-policy
       val: journal
      , BlockDev.ExtraArg (BDExtraArg) instance (0x7f2ab8b5b170)
       opt: --write-mostly
       val: 
      ],                     kwrags, {'size': '3G'} 
      [2024-11-07 05:16:27]  INFO: create MD raid successful with TESTRAID 
      BlockDev.MDDetailData (BDMDDetailData) instance (0x7f2ab6a6ff50)
      '/dev/md/TESTRAID'
      >>> 
      >>> o.bd.md_add("/dev/md/TESTRAID", new_dev1 , len(o.raid_mem)   , None)
      True
      >>> 
      >>> o.bd.md_add("/dev/md/TESTRAID", new_dev1 , len(o.raid_mem)+1   , None)
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "/usr/lib64/python3.12/site-packages/gi/overrides/BlockDev.py", line 1037, in md_add
          return _md_add(raid_spec, device, raid_devs, extra)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      gi.repository.GLib.GError: g-bd-utils-exec-error-quark: Process reported exit code 1: mdadm: added /dev/loop0
      mdadm: Cannot set device shape for /dev/md/TESTRAID: Invalid argument
       (0)
      >>> 
       

       

       

      before add

      [root@storageqe-109 libblockdev]# mdadm -D /dev/md/TESTRAID 
      /dev/md/TESTRAID:
                 Version : 1.2
           Creation Time : Thu Nov  7 05:16:25 2024
              Raid Level : raid5
              Array Size : 6291456 (6.00 GiB 6.44 GB)
           Used Dev Size : 3145728 (3.00 GiB 3.22 GB)
            Raid Devices : 3
           Total Devices : 4
             Persistence : Superblock is persistent       Update Time : Thu Nov  7 05:16:41 2024
                   State : clean 
          Active Devices : 3
         Working Devices : 4
          Failed Devices : 0
           Spare Devices : 0            Layout : left-symmetric
              Chunk Size : 512KConsistency Policy : journal              Name : TESTRAID
                    UUID : a8f272c7:9097f38f:941254b8:20365fd0
                  Events : 19    Number   Major   Minor   RaidDevice State
             0       8       16        0      active sync   /dev/sdb
             1       8        0        1      active sync   /dev/sda
             4       8       32        2      active sync   /dev/sdc       
             3       8       48        -      journal   /dev/sdd
       

      after add

      [root@storageqe-109 libblockdev]# mdadm -D /dev/md/TESTRAID 
      /dev/md/TESTRAID:
                 Version : 1.2
           Creation Time : Thu Nov  7 05:16:25 2024
              Raid Level : raid5
              Array Size : 6291456 (6.00 GiB 6.44 GB)
           Used Dev Size : 3145728 (3.00 GiB 3.22 GB)
            Raid Devices : 3
           Total Devices : 5
             Persistence : Superblock is persistent       Update Time : Thu Nov  7 05:17:26 2024
                   State : clean 
          Active Devices : 3
         Working Devices : 5
          Failed Devices : 0
           Spare Devices : 1            Layout : left-symmetric
              Chunk Size : 512KConsistency Policy : journal              Name : TESTRAID
                    UUID : a8f272c7:9097f38f:941254b8:20365fd0
                  Events : 21    Number   Major   Minor   RaidDevice State
             0       8       16        0      active sync   /dev/sdb
             1       8        0        1      active sync   /dev/sda
             4       8       32        2      active sync   /dev/sdc       
             3       8       48        -      journal   /dev/sdd
             5       7        0        -      spare   /dev/loop0
      [root@storageqe-109 libblockdev]#  

              vtrefny@redhat.com Vojtěch Trefný
              guazhang@redhat.com Guangwu Zhang
              Vojtěch Trefný Vojtěch Trefný
              Fan Fan Fan Fan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: