mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: set skipping autoactivation
On test system with 'default' filter (aka accept all) test after enabling device can suffer from automatic system activation - so for created LVs setup skipping this automatic activation. This should prevent getting LVs into table with pvscan service.
This commit is contained in:
parent
ada5728c72
commit
38d460ed6e
@ -16,7 +16,7 @@ aux prepare_devs 4
|
||||
# a. 0 local, 1 foreign
|
||||
# setup
|
||||
vgcreate $vg1 "$dev1"
|
||||
lvcreate -n $lv1 -l1 -an $vg1
|
||||
lvcreate -n $lv1 -l1 -ky -an $vg1
|
||||
UUID1=$(vgs --noheading -o vg_uuid $vg1 | xargs)
|
||||
vgchange -y --systemid "other" $vg1
|
||||
|
||||
@ -34,12 +34,12 @@ aux wipefs_a "$dev1"
|
||||
# b. 0 local, 2 foreign
|
||||
# setup
|
||||
vgcreate $vg1 "$dev1"
|
||||
lvcreate -n $lv1 -l1 -an $vg1
|
||||
lvcreate -n $lv1 -l1 -ky -an $vg1
|
||||
UUID1=$(vgs --noheading -o vg_uuid $vg1 | xargs)
|
||||
vgchange -y --systemid "other" $vg1
|
||||
aux disable_dev "$dev1"
|
||||
vgcreate $vg1 "$dev2"
|
||||
lvcreate -n $lv1 -l1 -an $vg1
|
||||
lvcreate -n $lv1 -l1 -ky -an $vg1
|
||||
UUID2=$(vgs --noheading -o vg_uuid $vg1 | xargs)
|
||||
vgchange -y --systemid "other2" $vg1
|
||||
aux enable_dev "$dev1"
|
||||
@ -67,11 +67,11 @@ aux wipefs_a "$dev2"
|
||||
# c. 1 local, 1 foreign
|
||||
# setup
|
||||
vgcreate $vg1 "$dev1"
|
||||
lvcreate -n $lv1 -l1 -an $vg1
|
||||
lvcreate -n $lv1 -l1 -ky -an $vg1
|
||||
UUID1=$(vgs --noheading -o vg_uuid $vg1 | xargs)
|
||||
aux disable_dev "$dev1"
|
||||
vgcreate $vg1 "$dev2"
|
||||
lvcreate -n $lv1 -l1 -an $vg1
|
||||
lvcreate -n $lv1 -l1 -ky -an $vg1
|
||||
UUID2=$(vgs --noheading -o vg_uuid $vg1 | xargs)
|
||||
vgchange -y --systemid "other" $vg1
|
||||
aux enable_dev "$dev1"
|
||||
@ -99,16 +99,16 @@ aux wipefs_a "$dev2"
|
||||
# d. 1 local, 2 foreign
|
||||
# setup
|
||||
vgcreate $vg1 "$dev1"
|
||||
lvcreate -n $lv1 -l1 -an $vg1
|
||||
lvcreate -n $lv1 -l1 -ky -an $vg1
|
||||
UUID1=$(vgs --noheading -o vg_uuid $vg1 | xargs)
|
||||
aux disable_dev "$dev1"
|
||||
vgcreate $vg1 "$dev2"
|
||||
lvcreate -n $lv1 -l1 -an $vg1
|
||||
lvcreate -n $lv1 -l1 -ky -an $vg1
|
||||
UUID2=$(vgs --noheading -o vg_uuid $vg1 | xargs)
|
||||
vgchange -y --systemid "other" $vg1
|
||||
aux disable_dev "$dev2"
|
||||
vgcreate $vg1 "$dev3"
|
||||
lvcreate -n $lv1 -l1 -an $vg1
|
||||
lvcreate -n $lv1 -l1 -ky -an $vg1
|
||||
UUID3=$(vgs --noheading -o vg_uuid $vg1 | xargs)
|
||||
vgchange -y --systemid "other2" $vg1
|
||||
aux enable_dev "$dev1"
|
||||
@ -140,11 +140,11 @@ aux wipefs_a "$dev3"
|
||||
# e. 2 local, 0 foreign
|
||||
# setup
|
||||
vgcreate $vg1 "$dev1"
|
||||
lvcreate -n $lv1 -l1 -an $vg1
|
||||
lvcreate -n $lv1 -l1 -ky -an $vg1
|
||||
UUID1=$(vgs --noheading -o vg_uuid $vg1 | xargs)
|
||||
aux disable_dev "$dev1"
|
||||
vgcreate $vg1 "$dev2"
|
||||
lvcreate -n ${lv1}_b -l1 -an $vg1
|
||||
lvcreate -n ${lv1}_b -l1 -ky -an $vg1
|
||||
UUID2=$(vgs --noheading -o vg_uuid $vg1 | xargs)
|
||||
aux enable_dev "$dev1"
|
||||
|
||||
@ -178,15 +178,15 @@ aux wipefs_a "$dev2"
|
||||
# f. 2 local, 1 foreign
|
||||
# setup
|
||||
vgcreate $vg1 "$dev1"
|
||||
lvcreate -n $lv1 -l1 -an $vg1
|
||||
lvcreate -n $lv1 -l1 -ky -an $vg1
|
||||
UUID1=$(vgs --noheading -o vg_uuid $vg1 | xargs)
|
||||
aux disable_dev "$dev1"
|
||||
vgcreate $vg1 "$dev2"
|
||||
lvcreate -n ${lv1}_b -l1 -an $vg1
|
||||
lvcreate -n ${lv1}_b -l1 -ky -an $vg1
|
||||
UUID2=$(vgs --noheading -o vg_uuid $vg1 | xargs)
|
||||
aux disable_dev "$dev2"
|
||||
vgcreate $vg1 "$dev3"
|
||||
lvcreate -n $lv1 -l1 -an $vg1
|
||||
lvcreate -n $lv1 -l1 -ky -an $vg1
|
||||
UUID3=$(vgs --noheading -o vg_uuid $vg1 | xargs)
|
||||
vgchange -y --systemid "other" $vg1
|
||||
aux enable_dev "$dev1"
|
||||
@ -246,15 +246,15 @@ aux wipefs_a "$dev3"
|
||||
# g. 3 local, 0 foreign
|
||||
# setup
|
||||
vgcreate $vg1 "$dev1"
|
||||
lvcreate -n $lv1 -l1 -an $vg1
|
||||
lvcreate -n $lv1 -l1 -ky -an $vg1
|
||||
UUID1=$(vgs --noheading -o vg_uuid $vg1 | xargs)
|
||||
aux disable_dev "$dev1"
|
||||
vgcreate $vg1 "$dev2"
|
||||
lvcreate -n ${lv1}_b -l1 -an $vg1
|
||||
lvcreate -n ${lv1}_b -l1 -ky -an $vg1
|
||||
UUID2=$(vgs --noheading -o vg_uuid $vg1 | xargs)
|
||||
aux disable_dev "$dev2"
|
||||
vgcreate $vg1 "$dev3"
|
||||
lvcreate -n ${lv1}_c -l1 -an $vg1
|
||||
lvcreate -n ${lv1}_c -l1 -ky -an $vg1
|
||||
UUID3=$(vgs --noheading -o vg_uuid $vg1 | xargs)
|
||||
aux enable_dev "$dev1"
|
||||
aux enable_dev "$dev2"
|
||||
|
Loading…
Reference in New Issue
Block a user