master - test: Make pvmove0 device removal more robust, in pvmove-restart.sh.
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=733e3f6f983d26c346c5426915abfd9594e85a49 Commit: 733e3f6f983d26c346c5426915abfd9594e85a49 Parent: 10b8d2a4ea538c21cf991fd608de47a9c18f85f4 Author: Petr Rockai <[email protected]> AuthorDate: Wed Feb 18 10:17:43 2015 +0100 Committer: Petr Rockai <[email protected]> CommitterDate: Wed Feb 18 10:21:06 2015 +0100
test: Make pvmove0 device removal more robust, in pvmove-restart.sh.
--- test/shell/pvmove-restart.sh | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
test/shell/pvmove-restart.sh +2 -2
@@ -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"