From b81835b5ca2c3ccb31e8c4ce88e62e0a6a7e16fe Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sun, 3 Sep 2023 15:55:26 +0200 Subject: [PATCH] vdo: lvm_import_vdo uses devname from vdoconf.yml VDO is using specific path for some device paths. i.e. for /dev/sda it could be /dev/disk/by-id/scsi-xxxxx. This used to be not a problem before lvm2 started to use snapshot, but now it needs to replace matching device path. So switch to the path naming used in vdoconf.yml file. --- scripts/lvm_import_vdo.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/lvm_import_vdo.sh b/scripts/lvm_import_vdo.sh index f0e93075a..a72c9a104 100755 --- a/scripts/lvm_import_vdo.sh +++ b/scripts/lvm_import_vdo.sh @@ -598,6 +598,7 @@ EOF # Make a backup of the existing VDO yaml configuration file test -e "$VDO_CONFIG" && dry cp -a "$VDO_CONFIG" "${VDO_CONFIG}.backup" + DEVICE=$FOUND case "$DM_UUID" in LVM-*) convert_lv_ "$vdo_logicalSize" ;; *) convert_non_lv_ "$vdo_logicalSize" ;;