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

[RHEL9] BlockDev can not find MD raid

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • rhel-9.4
    • libblockdev
    • None
    • None
    • None
    • sst_storage_management
    • ssg_filesystems_storage_and_HA
    • 3
    • False
    • Hide

      None

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

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

      case kernel-master/storage/dm-crypt/cryptsetup_libblockdev

      export target_type=lvm_raid_luks

      export crypt_type=io_uring_tests

      make run

      [root@storageqe-37 cryptsetup_libblockdev]# make run 
      chmod a+x ./runtest.sh
      chmod a+x ./luks.py
      ./runtest.sh
      the var target_type is lvm_raid_luks
      the var case_name is 
      /usr/bin/python3
      Running python3 As root: 
      INFO: Service stratisd is running.
      INFO: [2023-12-21 21:01:48] Running: 'lsblk |grep '/tmp/''...[2023-12-21 21:01:48]  INFO: get new_target lvm_raid_luks 
      [2023-12-21 21:01:48]  INFO: we will test case ['run_liburing']  
      INFO: [2023-12-21 21:01:48] Running: 'lsblk'...
      NAME                        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
      sda                           8:0    0 558.9G  0 disk 
      sdb                           8:16   0 745.2G  0 disk 
      sdc                           8:32   0   1.6T  0 disk 
      sdd                           8:48   0   1.1T  0 disk 
      sde                           8:64   0 372.6G  0 disk 
      sde1                        8:65   0   600M  0 part /boot/efi
      sde2                        8:66   0     1G  0 part /boot
      sde3                        8:67   0   371G  0 part 
        rhel_storageqe--37-root 253:0    0    70G  0 lvm  /
        rhel_storageqe--37-swap 253:1    0  15.6G  0 lvm  [SWAP]
        rhel_storageqe--37-home 253:2    0 285.4G  0 lvm  /home
      sdf                           8:80   0   1.8T  0 disk 
      sdg                           8:96   0 119.2G  0 disk
      INFO: [2023-12-21 21:01:48] Running: 'udevadm info -q name --name=/dev/sdg'...
      sdg
      INFO: [2023-12-21 21:01:48] Running: 'udevadm info -q name --name=/dev/sde'...
      sde
      INFO: [2023-12-21 21:01:49] Running: 'udevadm info -q name --name=/dev/sda'...
      sda
      INFO: [2023-12-21 21:01:49] Running: 'udevadm info -q name --name=/dev/sdb'...
      sdb
      INFO: [2023-12-21 21:01:49] Running: 'udevadm info -q name --name=/dev/sdd'...
      sdd
      INFO: [2023-12-21 21:01:49] Running: 'udevadm info -q name --name=/dev/sdc'...
      sdc
      INFO: [2023-12-21 21:01:49] Running: 'udevadm info -q name --name=/dev/sdf'...
      sdf
      INFO: Service multipathd is running.
      DEBUG:(libsan.host.scsi) get_free_disks() - skip sde as it is used for boot
      [2023-12-21 21:01:51]  INFO: free disk ['/dev/sdg', '/dev/sda', '/dev/sdb', '/dev/sdd', '/dev/sdc', '/dev/sdf'] 
      INFO: [2023-12-21 21:01:51] Running: 'lsblk;pvs'...
      NAME                        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
      sda                           8:0    0 558.9G  0 disk 
      sdb                           8:16   0 745.2G  0 disk 
      sdc                           8:32   0   1.6T  0 disk 
      sdd                           8:48   0   1.1T  0 disk 
      sde                           8:64   0 372.6G  0 disk 
      sde1                        8:65   0   600M  0 part /boot/efi
      sde2                        8:66   0     1G  0 part /boot
      sde3                        8:67   0   371G  0 part 
        rhel_storageqe--37-root 253:0    0    70G  0 lvm  /
        rhel_storageqe--37-swap 253:1    0  15.6G  0 lvm  [SWAP]
        rhel_storageqe--37-home 253:2    0 285.4G  0 lvm  /home
      sdf                           8:80   0   1.8T  0 disk 
      sdg                           8:96   0 119.2G  0 disk 
        PV         VG                Fmt  Attr PSize   PFree
        /dev/sde3  rhel_storageqe-37 lvm2 a--  371.02g    0 
        Devices file sys_wwid t10.ATA_DELLBOSS_VD_405583b877380010\0\0\0\0 PVID oCoMv3uEe4vBiCPn4xsxYYUdhwJY7YQH last seen on /dev/sdg3 not found.
        Devices file md_uuid 27187058-5ea9-3f30-a462-6fca80ad06f1 PVID none last seen on /dev/md127 not found.
        Devices file md_uuid bd67e27d-360d-d136-5e4b-c7f425e5ba18 PVID 3JsxKaS4ZKkMneoT8ZaBTJhG5ZTcyW1R last seen on /dev/md127 not found.
        Devices file md_uuid fb1d4a98-ba4a-bb9e-b7ac-fe25b8edfcb3 PVID t0SZXNBYdnyEjnB6APc4jpaH2zPurbt4 last seen on /dev/md127 not found.
        Devices file md_uuid 88b8d674-f73f-ee41-8e25-a88374e1b8e9 PVID YKRqHUIgaesfsUPUjIfhBs8LCS6gXq2t last seen on /dev/md127 not found.
        Devices file md_uuid db44bc49-471c-689b-6336-0c63e415d53c PVID ozoOVEoNXL1kP55VK8LNUlZB9SE5u4Bv last seen on /dev/md127 not found.
      [2023-12-21 21:01:52]  INFO: setup the storage lvm_raid_luks  
      [2023-12-21 21:01:52]  INFO: free disk is ['/dev/sdg', '/dev/sda'] 
      [2023-12-21 21:01:52]  INFO: will crypt device /dev/sdg 
      [2023-12-21 21:02:06]  INFO: will crypt device /dev/sda 
      Sleeping, wait MD resync
      Sleeping, wait MD resync
      Sleeping, wait MD resync
      Sleeping, wait MD resync
      Sleeping, wait MD resync
      Sleeping, wait MD resync
      Sleeping, wait MD resync
      Sleeping, wait MD resync
      Sleeping, wait MD resync
      Sleeping, wait MD resync
      Sleeping, wait MD resync
      Sleeping, wait MD resync
      Sleeping, wait MD resync
      Sleeping, wait MD resync
      Sleeping, wait MD resync
      Sleeping, wait MD resync
      Sleeping, wait MD resync
      Sleeping, wait MD resync
      Sleeping, wait MD resync
      [2023-12-21 21:02:38]  INFO: create MD raid successful with TESTRAID 
      <BlockDev.MDDetailData object at 0x7f94cd5418e0 (BDMDDetailData at 0x562560b328e0)>
      INFO: [2023-12-21 21:02:38] Running: 'lsblk'...
      NAME                        MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
      sda                           8:0    0 558.9G  0 disk  
      tGSA                      253:4    0 558.9G  0 crypt 
        md127                     9:127  0     4G  0 raid1 
      sdb                           8:16   0 745.2G  0 disk  
      sdc                           8:32   0   1.6T  0 disk  
      sdd                           8:48   0   1.1T  0 disk  
      sde                           8:64   0 372.6G  0 disk  
      sde1                        8:65   0   600M  0 part  /boot/efi
      sde2                        8:66   0     1G  0 part  /boot
      sde3                        8:67   0   371G  0 part  
        rhel_storageqe--37-root 253:0    0    70G  0 lvm   /
        rhel_storageqe--37-swap 253:1    0  15.6G  0 lvm   [SWAP]
        rhel_storageqe--37-home 253:2    0 285.4G  0 lvm   /home
      sdf                           8:80   0   1.8T  0 disk  
      sdg                           8:96   0 119.2G  0 disk  
      DQHJ                      253:3    0 119.2G  0 crypt 
        md127                     9:127  0     4G  0 raid1
      INFO: [2023-12-21 21:02:38] Running: 'pvcreate /dev/md/TESTRAID -y '...
        Physical volume "/dev/md/TESTRAID" successfully created.
      Traceback (most recent call last):
        File "/root/kernel-master/storage/dm-crypt/cryptsetup_libblockdev/luks_main.py", line 119, in <module>
          target = obj.make_test_target(i)
        File "/root/kernel-master/storage/dm-crypt/cryptsetup_libblockdev/luks.py", line 1231, in make_test_target
          dev = self.add_lvm_raid_luks(test_disks)
        File "/root/kernel-master/storage/dm-crypt/cryptsetup_libblockdev/luks.py", line 1280, in add_lvm_raid_luks
          dev = self.add_lvm(md_dev, self.vg_name, self.lv_name, size=3)
        File "/root/kernel-master/storage/dm-crypt/cryptsetup_libblockdev/luks.py", line 831, in add_lvm
          vg_info = self.add_lvm_vg(disk, vg_name)
        File "/root/kernel-master/storage/dm-crypt/cryptsetup_libblockdev/luks.py", line 824, in add_lvm_vg
          if not bd.lvm_vgcreate(vg_name, vg_disk, 0, None):
        File "/usr/lib64/python3.9/site-packages/gi/overrides/BlockDev.py", line 535, in lvm_vgcreate
          return _lvm_vgcreate(name, pv_list, pe_size, extra)
      gi.repository.GLib.GError: g-bd-lvm-error-quark: The object with LVM ID '/dev/md/TESTRAID' doesn't exist (1)
      ...finished running python3, exit code=1
      Usage:
        rstrnt-report-result [OPTION?] TASK_PATH RESULT [SCORE] 

       

      Please provide the package NVR for which bug is seen:

      [root@storageqe-37 cryptsetup_libblockdev]# rpm -qa |grep libblockdev
      libblockdev-utils-2.28-10.el9.x86_64
      libblockdev-2.28-10.el9.x86_64
      libblockdev-fs-2.28-10.el9.x86_64
      libblockdev-loop-2.28-10.el9.x86_64
      libblockdev-part-2.28-10.el9.x86_64
      libblockdev-swap-2.28-10.el9.x86_64
      libblockdev-mdraid-2.28-10.el9.x86_64
      libblockdev-crypto-2.28-10.el9.x86_64
      libblockdev-dm-2.28-10.el9.x86_64
      libblockdev-kbd-2.28-10.el9.x86_64
      libblockdev-lvm-2.28-10.el9.x86_64
      libblockdev-mpath-2.28-10.el9.x86_64
      libblockdev-nvdimm-2.28-10.el9.x86_64
      libblockdev-lvm-dbus-2.28-10.el9.x86_64
      libblockdev-nvme-2.28-10.el9.x86_64
      libblockdev-plugins-all-2.28-10.el9.x86_64
      libblockdev-tools-2.28-10.el9.x86_64

       

      5.14.0-399.el9.x86_64

      How reproducible:

      Steps to reproduce

      1.  
      2.  
      3.  

      Expected results

      Actual results

            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:
            2 Start watching this issue

              Created:
              Updated: