mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
tests: checking mirror_remove_missing
FIXME: Seems like conversion of log is not supported in clustered VG and needs to be fixed.
This commit is contained in:
parent
f919a255b7
commit
b57b4db889
@ -51,10 +51,15 @@ check mirror $vg 2way
|
|||||||
aux enable_dev "$dev1" "$dev2"
|
aux enable_dev "$dev1" "$dev2"
|
||||||
vgremove -ff $vg
|
vgremove -ff $vg
|
||||||
|
|
||||||
|
# FIXME - exclusive activation for mirrors should work here
|
||||||
|
# conversion of inactive cluster logs is also unsupported
|
||||||
|
test -e LOCAL_CLVMD && exit 0
|
||||||
|
|
||||||
|
|
||||||
# Test repair of inactive mirror with log failure
|
# Test repair of inactive mirror with log failure
|
||||||
# Replacement should fail, but convert should succeed (switch to corelog)
|
# Replacement should fail, but convert should succeed (switch to corelog)
|
||||||
vgcreate $vg "$dev1" "$dev2" "$dev3" "$dev4"
|
vgcreate $vg "$dev1" "$dev2" "$dev3" "$dev4"
|
||||||
lvcreate -aey --type mirror -m 2 --ignoremonitoring --nosync -l 2 -n mirror2 $vg "$dev1" "$dev2" "$dev3" "$dev4":0
|
lvcreate -aey --type mirror -m 2 --ignoremonitoring -l 2 -n mirror2 $vg "$dev1" "$dev2" "$dev3" "$dev4":0
|
||||||
vgchange -a n $vg
|
vgchange -a n $vg
|
||||||
pvremove -ff -y "$dev4"
|
pvremove -ff -y "$dev4"
|
||||||
lvconvert -y --repair $vg/mirror2
|
lvconvert -y --repair $vg/mirror2
|
||||||
@ -62,9 +67,6 @@ check mirror $vg mirror2
|
|||||||
vgs $vg
|
vgs $vg
|
||||||
vgremove -ff $vg
|
vgremove -ff $vg
|
||||||
|
|
||||||
# FIXME - exclusive activation for mirrors should work here
|
|
||||||
test -e LOCAL_CLVMD && exit 0
|
|
||||||
|
|
||||||
if kernel_at_least 3 0 0; then
|
if kernel_at_least 3 0 0; then
|
||||||
# 2-way, mirrored log
|
# 2-way, mirrored log
|
||||||
# Double log failure, full replace
|
# Double log failure, full replace
|
||||||
|
Loading…
Reference in New Issue
Block a user