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

[RHEL10] mdadm: Insufficient head-space for reshape on /dev/xxx

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • rhel-10.0
    • libblockdev
    • None
    • No
    • None
    • 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

       

      [2024-11-07 08:02:36]  INFO: setup the storage raid10  
      [2024-11-07 08:02:36]  INFO: free disk is ['/dev/sdb', '/dev/sda', '/dev/sdc', '/dev/sdd'] 
      [2024-11-07 08:02:36]  INFO: raid parameter 
      raid_level raid10,  
      raid_mem ['/dev/sdb', '/dev/sda', '/dev/sdc', '/dev/sdd'],                    version 1.0,  
      bitmap internal,                     
      chunk_size 524288                    
      extra, [BlockDev.ExtraArg (BDExtraArg) instance (0x7fc6bcc54bf0)
       opt: --bitmap-chunk
       val: 32M
      
      , BlockDev.ExtraArg (BDExtraArg) instance (0x7fc6bcc54b90)
       opt: --consistency-policy
       val: bitmap
      
      , BlockDev.ExtraArg (BDExtraArg) instance (0x7fc6bcc54a70)
       opt: --write-mostly
       val: 
      
      ],
      
      kwrags, {'size': '3G'}
       
      Sleeping, wait MD resync 
      
      
      [2024-11-07 08:03:16]  INFO: ######### we start test the case raid_add_remove for raid10 deivce /dev/md/TESTRAID now ############ 
      /home/bd.0ucs8y_v-loop_test
      Traceback (most recent call last):
        File "/home/libblockdev/luks_main.py", line 180, in <module>
          getattr(obj, c)(target)
        File "/home/libblockdev/md/raid.py", line 90, in raid_add_remove
          succ = bd.md_add(device, new_dev1 , num+1, None)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        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: Insufficient head-space for reshape on /dev/sdc
       (0)
      
      
      after add the device 
      
      [root@storageqe-109 libblockdev]# mdadm -D /dev/md/TESTRAID 
      /dev/md/TESTRAID:
                 Version : 1.0
           Creation Time : Thu Nov  7 08:02:36 2024
              Raid Level : raid10
              Array Size : 6291456 (6.00 GiB 6.44 GB)
           Used Dev Size : 3145728 (3.00 GiB 3.22 GB)
            Raid Devices : 4
           Total Devices : 5
             Persistence : Superblock is persistent
      
           Intent Bitmap : Internal
      
             Update Time : Thu Nov  7 08:03:16 2024
                   State : clean 
          Active Devices : 4
         Working Devices : 5
          Failed Devices : 0
           Spare Devices : 1
      
                  Layout : near=2
              Chunk Size : 512K
      
      Consistency Policy : bitmap
      
                    Name : TESTRAID
                    UUID : 80358945:c3003d6b:ada73277:dfb0f57b
                  Events : 25
      
          Number   Major   Minor   RaidDevice State
             0       8       16        0      active sync set-A   /dev/sdb
             1       8        0        1      active sync set-B   /dev/sda
             2       8       32        2      active sync set-A   /dev/sdc
             3       8       48        3      active sync set-B   /dev/sdd
      
             4       7        0        -      spare   /dev/loop0
      [root@storageqe-109 libblockdev]#  

      when I create MD with libblockdev api and do some md add testing and hit the  errors,

      I'm not sure if it's related with MD or libblockdev

      or the action is not supported,  please help to confirm ,  md_add calls mdadm --raid-devices=X --grow <array> --add <device>

       

       

      looks Version : 1.2 don't hit, but need more time to confirm.

       

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

                Created:
                Updated:
                Resolved: