mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
tests: use pvscan after enable_dev in process-each-duplicate-vgnames
instead of vgscan, so that new dev is recognized with hints
This commit is contained in:
parent
30ad845f3d
commit
cbf62b9262
@ -20,20 +20,16 @@ pvcreate "$dev2"
|
|||||||
aux disable_dev "$dev1" "$dev2"
|
aux disable_dev "$dev1" "$dev2"
|
||||||
|
|
||||||
aux enable_dev "$dev1"
|
aux enable_dev "$dev1"
|
||||||
vgscan
|
|
||||||
vgcreate $vg1 "$dev1"
|
vgcreate $vg1 "$dev1"
|
||||||
UUID1=$(vgs --noheading -o vg_uuid $vg1)
|
UUID1=$(vgs --noheading -o vg_uuid $vg1)
|
||||||
aux disable_dev "$dev1"
|
aux disable_dev "$dev1"
|
||||||
|
|
||||||
aux enable_dev "$dev2"
|
aux enable_dev "$dev2"
|
||||||
vgscan
|
|
||||||
vgcreate $vg1 "$dev2"
|
vgcreate $vg1 "$dev2"
|
||||||
UUID2=$(vgs --noheading -o vg_uuid $vg1)
|
UUID2=$(vgs --noheading -o vg_uuid $vg1)
|
||||||
|
|
||||||
aux enable_dev "$dev1"
|
aux enable_dev "$dev1"
|
||||||
# need vgscan after enabling/disabling devs
|
pvscan --cache "$dev1"
|
||||||
# so that the next commands properly see them
|
|
||||||
vgscan
|
|
||||||
pvs "$dev1"
|
pvs "$dev1"
|
||||||
pvs "$dev2"
|
pvs "$dev2"
|
||||||
|
|
||||||
@ -50,11 +46,10 @@ vgs -o+vg_uuid | tee err
|
|||||||
grep $UUID1 err
|
grep $UUID1 err
|
||||||
not grep $UUID2 err
|
not grep $UUID2 err
|
||||||
aux enable_dev "$dev2"
|
aux enable_dev "$dev2"
|
||||||
vgscan
|
pvscan --cache "$dev2"
|
||||||
|
|
||||||
aux disable_dev "$dev1"
|
aux disable_dev "$dev1"
|
||||||
vgs -o+vg_uuid | tee err
|
vgs -o+vg_uuid | tee err
|
||||||
grep $UUID2 err
|
grep $UUID2 err
|
||||||
not grep $UUID1 err
|
not grep $UUID1 err
|
||||||
aux enable_dev "$dev1"
|
aux enable_dev "$dev1"
|
||||||
vgscan
|
|
||||||
|
Loading…
Reference in New Issue
Block a user