-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
rhel-9.3.0
-
None
-
Moderate
-
rhel-sst-logical-storage
-
ssg_filesystems_storage_and_HA
-
5
-
False
-
-
None
-
None
-
None
-
None
-
If docs needed, set a value
-
-
x86_64
-
None
Description of problem:
Test scenario:
Recreating PVs/VG with non power of 2 dataalignment and extentsizes
pvcreate --dataalignment 444416k /dev/nvme0n1p1 /dev/nvme1n1p1 /dev/sda /dev/sdc /dev/sdd /dev/sde /dev/sdf1 /dev/sdg /dev/sdh
grant-03.6a2m.lab.eng.bos.redhat.com: vgcreate --physicalextentsize 111104k cache_sanity /dev/nvme0n1p1 /dev/nvme1n1p1 /dev/sda /dev/sdc /dev/sdd /dev/sde /dev/sdf1 /dev/sdg /dev/sdh
WARNING: Devices have inconsistent physical block sizes (512 and 4096).
WARNING: Devices have inconsistent physical block sizes (512 and 4096).
WARNING: Devices have inconsistent physical block sizes (512 and 4096).
WARNING: Devices have inconsistent physical block sizes (512 and 4096).
WARNING: Devices have inconsistent physical block sizes (512 and 4096).
WARNING: Devices have inconsistent physical block sizes (512 and 4096).
WARNING: Devices have inconsistent physical block sizes (512 and 4096).
Adding "slow" and "fast" tags to corresponding pvs
pvchange --addtag slow /dev/sde /dev/sdh
pvchange --addtag fast /dev/sdc /dev/sda
Create origin (slow) volume
lvcreate --yes --type raid1 -m 1 -L 4G -n corigin cache_sanity @slow
Waiting until all mirror|raid volumes become fully syncd...
0/1 mirror(s) are fully synced: ( 55.83% )
1/1 mirror(s) are fully synced: ( 100.00% )
Sleeping 15 sec
lvconvert --yes --raidintegrity y cache_sanity/corigin
Internal error: Unable to create new logical volume with no extents.
Failed to create integrity metadata LV
Failed to add integrity.
conversion to raid+integrity fail for cache origin (slow) volume
[root@grant-03 ~]# vgs
VG #PV #LV #SN Attr VSize VFree
cache_sanity 9 1 0 wz-n 8.87t <8.87t
[root@grant-03 ~]# pvscan
PV /dev/nvme0n1p1 VG cache_sanity lvm2 [2.91 TiB / 2.91 TiB free]
PV /dev/nvme1n1p1 VG cache_sanity lvm2 [2.91 TiB / 2.91 TiB free]
PV /dev/sda VG cache_sanity lvm2 [<446.61 GiB / <446.61 GiB free]
PV /dev/sdc VG cache_sanity lvm2 [<446.61 GiB / <446.61 GiB free]
PV /dev/sdd VG cache_sanity lvm2 [<446.61 GiB / <446.61 GiB free]
PV /dev/sde VG cache_sanity lvm2 [<446.61 GiB / <442.48 GiB free]
PV /dev/sdf1 VG cache_sanity lvm2 [<446.61 GiB / <446.61 GiB free]
PV /dev/sdg VG cache_sanity lvm2 [<446.61 GiB / <446.61 GiB free]
PV /dev/sdh VG cache_sanity lvm2 [<446.61 GiB / <442.48 GiB free]
[root@grant-03 ~]# lvs -a -o +devices,segtype
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices Type
corigin cache_sanity rwi-a-r--- <4.03g 100.00 corigin_rimage_0(0),corigin_rimage_1(0) raid1
[corigin_rimage_0] cache_sanity iwi-aor--- <4.03g /dev/sde(1) linear
[corigin_rimage_1] cache_sanity iwi-aor--- <4.03g /dev/sdh(1) linear
[corigin_rmeta_0] cache_sanity ewi-aor--- 108.50m /dev/sde(0) linear
[corigin_rmeta_1] cache_sanity ewi-aor--- 108.50m /dev/sdh(0) linear
[root@grant-03 ~]# lvconvert --yes --raidintegrity y cache_sanity/corigin
Internal error: Unable to create new logical volume with no extents.
Failed to create integrity metadata LV
Failed to add integrity.
22:14:01.439138 lvconvert[51431] device/dev-io.c:96 /dev/sdf1: using cached size 937699328 sectors
22:14:01.439140 lvconvert[51431] device/dev-io.c:96 /dev/sdg: using cached size 937703088 sectors
22:14:01.439142 lvconvert[51431] device/dev-io.c:96 /dev/sdh: using cached size 937703088 sectors
22:14:01.439146 lvconvert[51431] metadata/vg.c:65 Allocated VG cache_sanity at 0x55761a8bb1d0.
22:14:01.439159 lvconvert[51431] format_text/import_vsn1.c:631 Importing logical volume cache_sanity/corigin.
22:14:01.439162 lvconvert[51431] format_text/import_vsn1.c:631 Importing logical volume cache_sanity/corigin_rimage_0.
22:14:01.439165 lvconvert[51431] format_text/import_vsn1.c:631 Importing logical volume cache_sanity/corigin_rmeta_0.
22:14:01.439168 lvconvert[51431] format_text/import_vsn1.c:631 Importing logical volume cache_sanity/corigin_rimage_1.
22:14:01.439171 lvconvert[51431] format_text/import_vsn1.c:631 Importing logical volume cache_sanity/corigin_rmeta_1.
22:14:01.439175 lvconvert[51431] metadata/lv_manip.c:1329 Stack cache_sanity/corigin:0[0] on LV cache_sanity/corigin_rmeta_0:0.
22:14:01.439182 lvconvert[51431] metadata/lv_manip.c:870 Adding cache_sanity/corigin:0 as an user of cache_sanity/corigin_rmeta_0.
22:14:01.439184 lvconvert[51431] metadata/lv_manip.c:1329 Stack cache_sanity/corigin:0[0] on LV cache_sanity/corigin_rimage_0:0.
22:14:01.439187 lvconvert[51431] metadata/lv_manip.c:870 Adding cache_sanity/corigin:0 as an user of cache_sanity/corigin_rimage_0.
22:14:01.439189 lvconvert[51431] metadata/lv_manip.c:1329 Stack cache_sanity/corigin:0[1] on LV cache_sanity/corigin_rmeta_1:0.
22:14:01.439192 lvconvert[51431] metadata/lv_manip.c:870 Adding cache_sanity/corigin:0 as an user of cache_sanity/corigin_rmeta_1.
22:14:01.439194 lvconvert[51431] metadata/lv_manip.c:1329 Stack cache_sanity/corigin:0[1] on LV cache_sanity/corigin_rimage_1:0.
22:14:01.439197 lvconvert[51431] metadata/lv_manip.c:870 Adding cache_sanity/corigin:0 as an user of cache_sanity/corigin_rimage_1.
22:14:01.439206 lvconvert[51431] toollib.c:3374 Adding cache_sanity/corigin to the list of LVs to be processed.
22:14:01.439210 lvconvert[51431] toollib.c:3449 Processing LV corigin in VG cache_sanity.
22:14:01.439214 lvconvert[51431] activate/dev_manager.c:859 Getting device info for cache_sanity-corigin [LVM-bcEO11EA6AbP32ofmapMRYyEdYkAInYrcFhoTRA3uBCbnqO1KDk0eJNf7BvXEHAf].
22:14:01.439228 lvconvert[51431] device_mapper/ioctl/libdm-iface.c:2097 dm version [ opencount flush ] [2048] (*1)
22:14:01.439235 lvconvert[51431] device_mapper/ioctl/libdm-iface.c:2097 dm info LVM-bcEO11EA6AbP32ofmapMRYyEdYkAInYrcFhoTRA3uBCbnqO1KDk0eJNf7BvXEHAf [ noopencount flush ] [2048] (*1)
22:14:01.439242 lvconvert[51431] metadata/lv_manip.c:773 Generating list of PVs that cache_sanity/corigin_rimage_0 uses:
22:14:01.439245 lvconvert[51431] metadata/lv_manip.c:743 cache_sanity/corigin_rimage_0 uses /dev/sde
22:14:01.439254 lvconvert[51431] metadata/integrity_manip.c:122 Creating integrity metadata LV corigin_rimage_0_imeta with size 100.00 MiB.
22:14:01.439258 lvconvert[51431] metadata/lv_manip.c:9104 Internal error: Unable to create new logical volume with no extents.
22:14:01.439260 lvconvert[51431] metadata/lv_manip.c:9850 <backtrace>
22:14:01.439263 lvconvert[51431] metadata/integrity_manip.c:131 Failed to create integrity metadata LV
22:14:01.439265 lvconvert[51431] metadata/integrity_manip.c:606 <backtrace>
22:14:01.439267 lvconvert[51431] metadata/integrity_manip.c:770 Failed to add integrity.
22:14:01.439271 lvconvert[51431] metadata/pv_manip.c:413 /dev/nvme0n1p1 0: 0 28128: NULL(0:0)
22:14:01.439273 lvconvert[51431] metadata/pv_manip.c:413 /dev/nvme1n1p1 0: 0 28128: NULL(0:0)
22:14:01.439275 lvconvert[51431] metadata/pv_manip.c:413 /dev/sda 0: 0 4215: NULL(0:0)
22:14:01.439278 lvconvert[51431] metadata/pv_manip.c:413 /dev/sdc 0: 0 4215: NULL(0:0)
22:14:01.439280 lvconvert[51431] metadata/pv_manip.c:413 /dev/sdd 0: 0 4215: NULL(0:0)
22:14:01.439282 lvconvert[51431] metadata/pv_manip.c:413 /dev/sde 0: 0 1: corigin_rmeta_0(0:0)
22:14:01.439285 lvconvert[51431] metadata/pv_manip.c:413 /dev/sde 1: 1 38: corigin_rimage_0(0:0)
22:14:01.439287 lvconvert[51431] metadata/pv_manip.c:413 /dev/sde 2: 39 4176: NULL(0:0)
22:14:01.439289 lvconvert[51431] metadata/pv_manip.c:413 /dev/sdf1 0: 0 4215: NULL(0:0)
22:14:01.439292 lvconvert[51431] metadata/pv_manip.c:413 /dev/sdg 0: 0 4215: NULL(0:0)
22:14:01.439294 lvconvert[51431] metadata/pv_manip.c:413 /dev/sdh 0: 0 1: corigin_rmeta_1(0:0)
22:14:01.439296 lvconvert[51431] metadata/pv_manip.c:413 /dev/sdh 1: 1 38: corigin_rimage_1(0:0)
22:14:01.439298 lvconvert[51431] metadata/pv_manip.c:413 /dev/sdh 2: 39 4176: NULL(0:0)
22:14:01.439313 lvconvert[51431] format_text/archiver.c:139 Archiving volume group "cache_sanity" metadata (seqno 12).
22:14:01.441202 lvconvert[51431] mm/memlock.c:608 Unlock: Memlock counters: prioritized:0 locked:0 critical:0 daemon:0 suspended:0
22:14:01.441211 lvconvert[51431] format_text/format-text.c:196 Reading mda header sector from /dev/sda at 4096
22:14:01.441306 lvconvert[51431] metadata/vg.c:65 Allocated VG cache_sanity at 0x55761b1aa040.
22:14:01.441324 lvconvert[51431] format_text/import_vsn1.c:631 Importing logical volume cache_sanity/corigin.
22:14:01.441328 lvconvert[51431] format_text/import_vsn1.c:631 Importing logical volume cache_sanity/corigin_rimage_0.
22:14:01.441331 lvconvert[51431] format_text/import_vsn1.c:631 Importing logical volume cache_sanity/corigin_rmeta_0.
22:14:01.441334 lvconvert[51431] format_text/import_vsn1.c:631 Importing logical volume cache_sanity/corigin_rimage_1.
22:14:01.441337 lvconvert[51431] format_text/import_vsn1.c:631 Importing logical volume cache_sanity/corigin_rmeta_1.
22:14:01.441342 lvconvert[51431] metadata/lv_manip.c:1329 Stack cache_sanity/corigin:0[0] on LV cache_sanity/corigin_rmeta_0:0.
22:14:01.441345 lvconvert[51431] metadata/lv_manip.c:870 Adding cache_sanity/corigin:0 as an user of cache_sanity/corigin_rmeta_0.
22:14:01.441348 lvconvert[51431] metadata/lv_manip.c:1329 Stack cache_sanity/corigin:0[0] on LV cache_sanity/corigin_rimage_0:0.
22:14:01.441350 lvconvert[51431] metadata/lv_manip.c:870 Adding cache_sanity/corigin:0 as an user of cache_sanity/corigin_rimage_0.
22:14:01.441353 lvconvert[51431] metadata/lv_manip.c:1329 Stack cache_sanity/corigin:0[1] on LV cache_sanity/corigin_rmeta_1:0.
22:14:01.441355 lvconvert[51431] metadata/lv_manip.c:870 Adding cache_sanity/corigin:0 as an user of cache_sanity/corigin_rmeta_1.
22:14:01.441358 lvconvert[51431] metadata/lv_manip.c:1329 Stack cache_sanity/corigin:0[1] on LV cache_sanity/corigin_rimage_1:0.
22:14:01.441360 lvconvert[51431] metadata/lv_manip.c:870 Adding cache_sanity/corigin:0 as an user of cache_sanity/corigin_rimage_1.
22:14:01.441378 lvconvert[51431] format_text/format-text.c:663 VG cache_sanity seqno 13 metadata write to /dev/sda mda_start 4096 mda_size 455077888 mda_last 455081983
22:14:01.441381 lvconvert[51431] format_text/format-text.c:372 VG cache_sanity 13 new metadata start align from 48061 to 48128 (+67)
22:14:01.441383 lvconvert[51431] format_text/format-text.c:778 VG cache_sanity 13 metadata area location old start 43520 last 48060 size 4541 wrap 0
22:14:01.441390 lvconvert[51431] format_text/format-text.c:785 VG cache_sanity 13 metadata area location new start 48128 last 52674 size 4547 wrap 0
22:14:01.441392 lvconvert[51431] format_text/format-text.c:871 VG cache_sanity 13 metadata disk location start 52224 size 4547 last 56770
Version-Release number of selected component (if applicable):
kernel-5.14.0-284.11.1.el9_2 BUILT: Wed Apr 12 04:16:55 PM CEST 2023
lvm2-2.03.21-1.el9 BUILT: Fri Apr 21 02:33:33 PM CEST 2023
lvm2-libs-2.03.21-1.el9 BUILT: Fri Apr 21 02:33:33 PM CEST 2023
- external trackers