public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
From: mbroz@sourceware.org
To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org
Subject: LVM2/test t-mirror-vgreduce-removemissing.sh
Date: Fri, 19 Sep 2008 16:10:00 -0000 [thread overview]
Message-ID: <20080919161047.10115.qmail@sourceware.org> (raw)
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mbroz@sourceware.org 2008-09-19 16:10:46
Modified files:
test : t-mirror-vgreduce-removemissing.sh
Log message:
Fix vgreduce test, now requires --force flag. (Jaroslav Stava)
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-mirror-vgreduce-removemissing.sh.diff?cvsroot=lvm2&r1=1.1&r2=1.2
--- LVM2/test/t-mirror-vgreduce-removemissing.sh 2008/01/17 18:29:36 1.1
+++ LVM2/test/t-mirror-vgreduce-removemissing.sh 2008/09/19 16:10:46 1.2
@@ -218,7 +218,7 @@
mimages_are_on_ $lv1 $(pv_ 1) $(pv_ 2) &&
mirrorlog_is_on_ $lv1 $(pv_ 3) &&
fail_pv_ $(pv_ 2) &&
- vgreduce --removemissing $vg &&
+ vgreduce --removemissing --force $vg &&
lv_is_linear_ $lv1 &&
lv_is_on_ $lv1 $(pv_ 1)'
test_expect_success "cleanup" \
@@ -238,7 +238,7 @@
mimages_are_on_ $lv1 $(pv_ 1) $(pv_ 2) $(pv_ 3) &&
mirrorlog_is_on_ $lv1 $(pv_ 4) &&
fail_pv_ $(pv_ $index) &&
- vgreduce --removemissing $vg &&
+ vgreduce --removemissing --force $vg &&
lvs -a -o+devices $vg &&
mimages_are_on_ $lv1 $(rest_pvs_ $index 3) &&
mirrorlog_is_on_ $lv1 $(pv_ 4)
@@ -266,7 +266,7 @@
mimages_are_on_ $lv1 $(pv_ 1) $(pv_ 2) $(pv_ 3) &&
mirrorlog_is_on_ $lv1 $(pv_ 4) &&
fail_pv_ $(rest_pvs_ $index 3) &&
- vgreduce --removemissing $vg &&
+ vgreduce --removemissing --force $vg &&
lvs -a -o+devices $vg &&
lv_is_linear_ $lv1 &&
lv_is_on_ $lv1 $(pv_ $index)
@@ -295,7 +295,7 @@
mimages_are_on_ $lv1 $(pv_ 1) $(pv_ 2) $(pv_ 3) $(pv_ 4) &&
mirrorlog_is_on_ $lv1 $(pv_ 5) &&
fail_pv_ $(pv_ $index) &&
- vgreduce --removemissing $vg &&
+ vgreduce --removemissing --force $vg &&
lvs -a -o+devices $vg &&
mimages_are_on_ $lv1 $(rest_pvs_ $index 4) &&
mirrorlog_is_on_ $lv1 $(pv_ 5)
@@ -324,7 +324,7 @@
mimages_are_on_ $lv1 $(pv_ 1) $(pv_ 2) $(pv_ 3) $(pv_ 4) &&
mirrorlog_is_on_ $lv1 $(pv_ 5) &&
fail_pv_ $(rest_pvs_ $index 4) &&
- vgreduce --removemissing $vg &&
+ vgreduce --removemissing --force $vg &&
lvs -a -o+devices $vg &&
(mimages_are_on_ $lv1 $(pv_ $index) || lv_is_on_ $lv1 $(pv_ $index)) &&
! mirrorlog_is_on_ $lv1 $(pv_ 5)
@@ -353,7 +353,7 @@
mimages_are_on_ $lv1 $(pv_ 1) $(pv_ 2) $(pv_ 3) $(pv_ 4) &&
mirrorlog_is_on_ $lv1 $(pv_ 5) &&
fail_pv_ $(pv_ $index) &&
- vgreduce --removemissing $vg &&
+ vgreduce --removemissing --force $vg &&
lvs -a -o+devices $vg &&
mimages_are_on_ $lv1 $(rest_pvs_ $index 4) &&
mirrorlog_is_on_ $lv1 $(pv_ 5)
@@ -382,7 +382,7 @@
mimages_are_on_ $lv1 $(pv_ 1) $(pv_ 2) $(pv_ 3) $(pv_ 4) &&
mirrorlog_is_on_ $lv1 $(pv_ 5) &&
fail_pv_ $(rest_pvs_ $index 4) &&
- vgreduce --removemissing $vg &&
+ vgreduce --removemissing --force $vg &&
lvs -a -o+devices $vg &&
(mimages_are_on_ $lv1 $(pv_ $index) || lv_is_on_ $lv1 $(pv_ $index)) &&
! mirrorlog_is_on_ $lv1 $(pv_ 5)
@@ -406,7 +406,7 @@
mimages_are_on_ $lv1 $(pv_ 1) $(pv_ 2) &&
mirrorlog_is_on_ $lv1 $(pv_ 5) &&
fail_pv_ $(pv_ 5) &&
- vgreduce --removemissing $vg &&
+ vgreduce --removemissing --force $vg &&
mimages_are_on_ $lv1 $(pv_ 1) $(pv_ 2) &&
! mirrorlog_is_on_ $lv1 $(pv_ 5)'
test_expect_success "cleanup" \
@@ -420,7 +420,7 @@
mimages_are_on_ $lv1 $(pv_ 1) $(pv_ 2) $(pv_ 3) &&
mirrorlog_is_on_ $lv1 $(pv_ 5) &&
fail_pv_ $(pv_ 5) &&
- vgreduce --removemissing $vg &&
+ vgreduce --removemissing --force $vg &&
mimages_are_on_ $lv1 $(pv_ 1) $(pv_ 2) $(pv_ 3) &&
! mirrorlog_is_on_ $lv1 $(pv_ 5)'
test_expect_success "cleanup" \
@@ -436,7 +436,7 @@
mimages_are_on_ $lv1 $(pv_ 1) $(pv_ 2) &&
mirrorlog_is_on_ $lv1 $(pv_ 5) &&
fail_pv_ $(pv_ 1) $(pv_ 2) &&
- vgreduce --removemissing $vg &&
+ vgreduce --removemissing --force $vg &&
! lvs $vg/$lv1'
test_expect_success "cleanup" \
"recover_vg_ $(pv_ 1) $(pv_ 2)"
@@ -449,7 +449,7 @@
mimages_are_on_ $lv1 $(pv_ 1) $(pv_ 2) $(pv_ 3) &&
mirrorlog_is_on_ $lv1 $(pv_ 5) &&
fail_pv_ $(pv_ 1) $(pv_ 2) $(pv_ 3) &&
- vgreduce --removemissing $vg &&
+ vgreduce --removemissing --force $vg &&
! lvs $vg/$lv1'
test_expect_success "cleanup" \
"recover_vg_ $(pv_ 1) $(pv_ 2) $(pv_ 3)"
@@ -468,7 +468,7 @@
mirrorlog_is_on_ $lv1 $(pv_ 5) &&
mirrorlog_is_on_ $lv2 $(pv_ 5) &&
fail_pv_ $(pv_ 2) &&
- vgreduce --removemissing $vg &&
+ vgreduce --removemissing --force $vg &&
mimages_are_on_ $lv2 $(pv_ 3) $(pv_ 4) &&
mirrorlog_is_on_ $lv2 $(pv_ 5) &&
lv_is_linear_ $lv1 &&
@@ -488,7 +488,7 @@
mirrorlog_is_on_ $lv2 $(pv_ 5) &&
fail_pv_ $(pv_ 2) &&
fail_pv_ $(pv_ 4) &&
- vgreduce --removemissing $vg &&
+ vgreduce --removemissing --force $vg &&
lv_is_linear_ $lv1 &&
lv_is_on_ $lv1 $(pv_ 1) &&
lv_is_linear_ $lv2 &&
@@ -505,7 +505,7 @@
lvchange -an $vg/$lv1 &&
mimages_are_on_ $lv1 $(pv_ 1) $(pv_ 2) &&
mirrorlog_is_on_ $lv1 $(pv_ 5) &&
- vgreduce --removemissing $vg &&
+ vgreduce --removemissing --force $vg &&
mimages_are_on_ $lv1 $(pv_ 1) $(pv_ 2) &&
mirrorlog_is_on_ $lv1 $(pv_ 5)'
test_expect_success "cleanup" \
next reply other threads:[~2008-09-19 16:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-19 16:10 mbroz [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-03-03 15:46 zkabelac
2010-03-31 3:56 jbrassow
2010-03-25 12:16 agk
2010-03-25 11:42 agk
2008-01-17 18:29 wysochanski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080919161047.10115.qmail@sourceware.org \
--to=mbroz@sourceware.org \
--cc=lvm-devel@redhat.com \
--cc=lvm2-cvs@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).