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

lvreduce of vdo volume fails with "max bytes and granularity query fails"

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • rhel-9.6
    • rhel-9.6
    • kmod-kvdo
    • None
    • kmod-kvdo-8.2.5.2-147.el9
    • Yes
    • Important
    • rhel-sst-logical-storage
    • ssg_filesystems_storage_and_HA
    • 13
    • 15
    • 3
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None

      While running lvresize_matrix, lvreduce of vdo fails with  '/dev/resize_matrix/resize_lv: max bytes and granularity query fails'.  

      *  Works with kernel-5.14.0-516.el9 and kmod-kvdo-8.2.4.15-142.el9
      
      kmod-kvdo-8.2.4.15-142.el9    BUILT: Mon Oct  7 09:33:22 PM CEST 2024
      kernel-5.14.0-516.el9    BUILT: Tue Oct  8 04:14:48 PM CEST 2024
      lvm2-2.03.27-1.el9    BUILT: Wed Oct  9 12:38:05 PM CEST 2024
      lvm2-libs-2.03.27-1.el9    BUILT: Wed Oct  9 12:38:05 PM CEST 2024
       
      [root@virt-511 ~]# lvcreate --yes --type vdo -n resize_lv  -L 34G resize_matrix -V100G  
          The VDO volume can address 30 GB in 15 data slabs, each 2 GB.
          It can grow to address at most 16 TB of physical storage in 8192 slabs.
          If a larger maximum size might be needed, use bigger slabs.
        Logical volume "resize_lv" created.
      [root@virt-511 ~]# lvchange --yes -ay  resize_matrix/resize_lv
      [root@virt-511 ~]# lvreduce --yes -L -441M resize_matrix/resize_lv
        Rounding size to boundary between physical extents: 440.00 MiB.
        No file system found on /dev/resize_matrix/resize_lv.
        WARNING: /dev/resize_matrix/resize_lv: Discarding 440.00 MiB at offset 106912808960, please wait...
        Size of logical volume resize_matrix/resize_lv changed from 100.00 GiB (25600 extents) to 99.57 GiB (25490 extents).
        Logical volume resize_matrix/resize_lv successfully resized.
      
      
      *  Fails with kernel-5.14.0-522.el9 and kmod-kvdo-8.2.4.15-144.el9
      
      kmod-kvdo-8.2.4.15-144.el9    BUILT: Mon Oct 21 09:24:54 AM EST 2024
      kernel-5.14.0-522.el9    BUILT: Sun Oct 20 08:53:48 AM EST 2024
      lvm2-2.03.27-1.el9    BUILT: Wed Oct  9 05:38:05 AM EST 2024
      lvm2-libs-2.03.27-1.el9    BUILT: Wed Oct  9 05:38:05 AM EST 2024
       
      lvcreate --yes --type vdo -n resize_lv  -L 34G resize_matrix -V100G  
      The VDO volume can address 30 GB in 15 data slabs, each 2 GB.
          It can grow to address at most 16 TB of physical storage in 8192 slabs.
          If a larger maximum size might be needed, use bigger slabs.
        Logical volume "resize_lv" created.
       
      activating LV resize_lv -ay on megatest-04.lab.eng.rdu2.redhat.com
      lvchange --yes -ay  resize_matrix/resize_lv
      Removing space from resize_matrix/resize_lv on megatest-04.lab.eng.rdu2.redhat.com
      lvreduce --yes -L -441M resize_matrix/resize_lv 
       
      [root@megatest-04 ~]# lvreduce --yes -L -441M resize_matrix/resize_lv 
        Rounding size to boundary between physical extents: 440.00 MiB.
        No file system found on /dev/resize_matrix/resize_lv.
        /dev/resize_matrix/resize_lv: max bytes and granularity query fails.
       
       
      10:58:57.861900 lvreduce[101108] metadata/vg.c:59  Allocated VG resize_matrix at 0x55cdecec04b0.
      10:58:57.861913 lvreduce[101108] format_text/import_vsn1.c:632  Importing logical volume resize_matrix/vpool0.
      10:58:57.861919 lvreduce[101108] format_text/import_vsn1.c:632  Importing logical volume resize_matrix/resize_lv.
      10:58:57.861923 lvreduce[101108] format_text/import_vsn1.c:632  Importing logical volume resize_matrix/vpool0_vdata.
      10:58:57.861933 lvreduce[101108] metadata/lv_manip.c:1305  Stack resize_matrix/vpool0:0[0] on LV resize_matrix/vpool0_vdata:0.
      10:58:57.861938 lvreduce[101108] metadata/lv_manip.c:870  Adding resize_matrix/vpool0:0 as an user of resize_matrix/vpool0_vdata.
      10:58:57.861943 lvreduce[101108] metadata/lv_manip.c:1305  Stack resize_matrix/resize_lv:0[0] on LV resize_matrix/vpool0:0.
      10:58:57.861948 lvreduce[101108] metadata/lv_manip.c:870  Adding resize_matrix/resize_lv:0 as an user of resize_matrix/vpool0.
      10:58:57.861959 lvreduce[101108] toollib.c:3522  Adding resize_matrix/resize_lv to the list of LVs to be processed.
      10:58:57.861965 lvreduce[101108] toollib.c:3597  Processing LV resize_lv in VG resize_matrix.
      10:58:57.861979 lvreduce[101108] activate/dev_manager.c:972  Getting device info for resize_matrix-resize_lv [LVM-VELuH2m5xjvQH1Uy1RFrBuHNpb4Hxa3KiKAaRMVtkZ83HJFPiJlExqvTKxxxXl5I].
      10:58:57.861987 lvreduce[101108] device_mapper/ioctl/libdm-iface.c:2065  dm info  LVM-VELuH2m5xjvQH1Uy1RFrBuHNpb4Hxa3KiKAaRMVtkZ83HJFPiJlExqvTKxxxXl5I [ noopencount flush ]   [2048] (*1)
      10:58:57.862010 lvreduce[101108] activate/dev_manager.c:972  Getting device info for resize_matrix-resize_lv [LVM-VELuH2m5xjvQH1Uy1RFrBuHNpb4Hxa3KiKAaRMVtkZ83HJFPiJlExqvTKxxxXl5I].
      10:58:57.862015 lvreduce[101108] device_mapper/ioctl/libdm-iface.c:2065  dm info  LVM-VELuH2m5xjvQH1Uy1RFrBuHNpb4Hxa3KiKAaRMVtkZ83HJFPiJlExqvTKxxxXl5I [ noopencount flush ]   [2048] (*1)
      10:58:57.862027 lvreduce[101108] metadata/lv_manip.c:5233  Rounding size to boundary between physical extents: 440.00 MiB.
      10:58:57.862033 lvreduce[101108] metadata/lv_manip.c:5738  New size for resize_matrix/resize_lv: 25490. Existing logical extents: 25600 / physical extents: 8704.
      10:58:57.862042 lvreduce[101108] activate/dev_manager.c:972  Getting device info for resize_matrix-resize_lv [LVM-VELuH2m5xjvQH1Uy1RFrBuHNpb4Hxa3KiKAaRMVtkZ83HJFPiJlExqvTKxxxXl5I].
      10:58:57.862047 lvreduce[101108] device_mapper/ioctl/libdm-iface.c:2065  dm info  LVM-VELuH2m5xjvQH1Uy1RFrBuHNpb4Hxa3KiKAaRMVtkZ83HJFPiJlExqvTKxxxXl5I [ noopencount flush ]   [2048] (*1)
      10:58:57.864879 lvreduce[101108] device/dev-type.c:972  No file system found on /dev/resize_matrix/resize_lv.
      10:58:57.865106 lvreduce[101108] metadata/lv_manip.c:6425  <backtrace>
      10:58:57.865148 lvreduce[101108] device/dev-type.c:1366  Device /dev/resize_matrix/resize_lv: queue/discard_max_bytes is 0 bytes.
      10:58:57.865154 lvreduce[101108] metadata/lv_manip.c:5768  /dev/resize_matrix/resize_lv: max bytes and granularity query fails.
      10:58:57.865159 lvreduce[101108] metadata/lv_manip.c:7061  <backtrace>
      10:58:57.865163 lvreduce[101108] toollib.c:3603  <backtrace>
      10:58:57.865169 lvreduce[101108] toollib.c:4090  <backtrace>
      10:58:57.865174 lvreduce[101108] mm/memlock.c:615  Unlock: Memlock counters: prioritized:0 locked:0 critical:0 daemon:0 suspended:0
      10:58:57.865191 lvreduce[101108] activate/fs.c:493  Syncing device names
      10:58:57.865203 lvreduce[101108] misc/lvm-flock.c:84  Unlocking /run/lock/lvm/V_resize_matrix
      10:58:57.865210 lvreduce[101108] misc/lvm-flock.c:47  _undo_flock /run/lock/lvm/V_resize_matrix
      10:58:57.865231 lvreduce[101108] metadata/vg.c:74  Freeing VG resize_matrix at 0x55cdecec04b0.
      10:58:57.865237 lvreduce[101108] metadata/vg.c:74  Freeing VG resize_matrix at 0x55cdeceba490.
      10:58:57.865244 lvreduce[101108] device_mapper/libdm-config.c:1083  global/notify_dbus not found in config: defaulting to 1
      10:58:57.865251 lvreduce[101108] cache/lvmcache.c:2592  Destroy lvmcache content
      10:58:57.889783 lvreduce[101108] lvmcmdline.c:3308  Completed: lvreduce -vvvv --yes -L -441M resize_matrix/resize_lv
      10:58:57.889808 lvreduce[101108] cache/lvmcache.c:2592  Destroy lvmcache content
      10:58:57.889822 lvreduce[101108] metadata/vg.c:74  Freeing VG #orphans_lvm2 at 0x55cdecd9d320.
      10:58:57.889874 lvreduce[101108] activate/fs.c:493  Syncing device names
      

              rhn-support-fsuba Filip Suba
              rhn-support-cmackows Chris Mackowski
              Chung Chung Chung Chung
              Filip Suba Filip Suba
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated: