1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

test: Make pvmove0 device removal more robust, in pvmove-restart.sh.

This commit is contained in:
Petr Rockai 2015-02-18 10:17:43 +01:00
parent 10b8d2a4ea
commit 733e3f6f98

View File

@ -39,8 +39,8 @@ wait
# Simulate reboot - forcibly remove related devices
# First take down $lv1 then it's pvmove0
dmsetup ls --exec echo | grep "${vg}-$lv1" | xargs -r dmsetup remove
dmsetup ls --exec echo | grep "${vg}-pvmove0" | xargs -r dmsetup remove
while dmsetup status "$vg-$lv1"; do dmsetup remove "$vg-$lv1" || true; done
while dmsetup status "$vg-pvmove0"; do dmsetup remove "$vg-pvmove0" || true; done
# Check we really have pvmove volume
check lv_attr_bit type $vg/pvmove0 "p"