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

[libblockdev] Devices have inconsistent logical block sizes (512 and 4096)

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

      Please provide the package NVR for which bug is seen:

      How reproducible:

      Steps to reproduce

      1.  
      2.  
      3.  

      Expected results

      Actual results

       

      [2024-01-11 06:59:42]  INFO: free disk ['/dev/sda', '/dev/nvme3n1', '/dev/nvme2n1', '/dev/nvme1n1', '/dev/nvme4n1'] 
      INFO: [2024-01-11 06:59:42] Running: 'lsblk;pvs'...
      NAME                        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
      sda                           8:0    0 223.6G  0 disk 
      nvme1n1                     259:0    0 894.3G  0 disk 
      nvme2n1                     259:1    0 894.3G  0 disk 
      nvme4n1                     259:2    0 894.3G  0 disk 
      nvme0n1                     259:3    0 894.3G  0 disk 
      nvme0n1p1                 259:4    0   600M  0 part /boot/efi
      nvme0n1p2                 259:5    0     1G  0 part /boot
      nvme0n1p3                 259:6    0 892.7G  0 part 
        rhel_storageqe--70-root 253:0    0    70G  0 lvm  /
        rhel_storageqe--70-swap 253:1    0   7.6G  0 lvm  [SWAP]
        rhel_storageqe--70-home 253:2    0   815G  0 lvm  /home
      nvme3n1                     259:7    0 894.3G  0 disk 
        PV             VG                Fmt  Attr PSize   PFree
        /dev/nvme0n1p3 rhel_storageqe-70 lvm2 a--  892.66g    0
      [2024-01-11 06:59:42]  INFO: setup the storage dmraid  
      [2024-01-11 06:59:42]  INFO: free disk is ['/dev/sda', '/dev/nvme3n1'] 
      INFO: [2024-01-11 06:59:42] Running: 'pvcreate /dev/sda /dev/nvme3n1 -y '...
        Physical volume "/dev/sda" successfully created.
        Physical volume "/dev/nvme3n1" successfully created.
      Traceback (most recent call last):
        File "/mnt/tests/gitlab.cee.redhat.com/kernel-qe/kernel/-/archive/master/kernel-master.tar.gz/storage/dm-crypt/cryptsetup_libblockdev/luks_main.py", line 118, in <module>
          target = obj.make_test_target(i)
        File "/mnt/tests/gitlab.cee.redhat.com/kernel-qe/kernel/-/archive/master/kernel-master.tar.gz/storage/dm-crypt/cryptsetup_libblockdev/luks.py", line 1143, in make_test_target
          dev = self.add_dmraid(test_disk, self.vg_name, self.lv_name, size=3, raid_level="raid1")
        File "/mnt/tests/gitlab.cee.redhat.com/kernel-qe/kernel/-/archive/master/kernel-master.tar.gz/storage/dm-crypt/cryptsetup_libblockdev/luks.py", line 863, in add_dmraid
          vg_info = self.add_lvm_vg(disk, vg_name)
        File "/mnt/tests/gitlab.cee.redhat.com/kernel-qe/kernel/-/archive/master/kernel-master.tar.gz/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-io-error-quark: Failed to call the 'VgCreate' method on the '/com/redhat/lvmdbus1/Manager' object: GDBus.Error:org.freedesktop.DBus.Python.dbus.exceptions.DBusException: ('com.redhat.lvmdbus1.Manager', 'Exit code 5, stderr = Devices have inconsistent logical block sizes (512 and 4096).') (36) 

       

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

              Created:
              Updated:
              Resolved: