-
Bug
-
Resolution: Done-Errata
-
Normal
-
rhel-10.0
-
None
-
lvm2-2.03.28-4.el10
-
No
-
Moderate
-
rhel-storage-lvm
-
ssg_filesystems_storage_and_HA
-
23
-
24
-
1
-
Dev ack
-
False
-
False
-
-
None
-
None
-
Pass
-
Automated
-
-
x86_64
-
None
The pooldatavdo lvconvert command is creating dummy volumes that need to be manually cleaned up instead of first checking for an in use filesystem and then existing right away.
# The lvconvert cmd should look more like an open volume deactivate attempt. Just a warning and then an error code. [root@virt-485 ~]# lvremove VG/lvol0 Logical volume VG/lvol0 contains a filesystem in use. [root@virt-485 ~]# echo $? 5 kernel-5.14.0-490.el9 BUILT: Fri Aug 2 10:42:23 PM CEST 2024 lvm2-2.03.24-2.el9 BUILT: Wed Aug 7 09:41:45 PM CEST 2024 lvm2-libs-2.03.24-2.el9 BUILT: Wed Aug 7 09:41:45 PM CEST 2024 [root@virt-485 ~]# lvcreate --type striped -i 2 -L 25G VG [root@virt-485 ~]# mkfs.xfs /dev/VG/lvol0 [root@virt-485 ~]# mount /dev/VG/lvol0 /mnt/lvol0 [root@virt-485 ~]# lvconvert --type thin-pool --pooldatavdo y VG/lvol0 Thin pool volume with chunk size 64.00 KiB can address at most <15.88 TiB of data. WARNING: Converting VG/lvol0 to thin pool's data volume with metadata wiping. THIS WILL DESTROY CONTENT OF LOGICAL VOLUME (filesystem etc.) Do you really want to convert VG/lvol0? [y/n]: y Logical volume VG/lvol0 contains a filesystem in use. Aborting. Failed to deactivate logical volume VG/lvol0. [root@virt-485 ~]# echo $? 5 [root@virt-485 ~]# lvs -a -o +devices LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices lvol0 VG -wi-ao---- 25.00g /dev/sda(0),/dev/sdb(0) lvol1 VG -wi------- 28.00m /dev/sda(3207) pool_metadata0 VG -wi-a----- 28.00m /dev/sda(3200)
- clones
-
RHEL-53866 when converting LV to thin-pool with VDO for thin-data backing, lvconvert should first check for filesystem in use
-
- Closed
-
- links to
-
RHBA-2024:138748 lvm2 bug fix and enhancement update