mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Add to vgcreate and vgextend nightly tests.
This commit is contained in:
parent
75b37a1147
commit
1ef6c6b107
@ -144,3 +144,18 @@ do
|
||||
vgremove -f $vg
|
||||
pvremove -f $dev1
|
||||
done
|
||||
|
||||
# vgcreate fails if pv belongs to existing vg
|
||||
vgcreate $vg1 $dev1 $dev2
|
||||
not vgcreate $vg2 $dev2
|
||||
vgremove -f $vg1
|
||||
pvremove -f $dev1 $dev2
|
||||
|
||||
# all PVs exist in the VG after created
|
||||
pvcreate $dev1
|
||||
vgcreate $vg1 $dev1 $dev2 $dev3
|
||||
check_pv_field_ $dev1 vg_name $vg1
|
||||
check_pv_field_ $dev2 vg_name $vg1
|
||||
check_pv_field_ $dev3 vg_name $vg1
|
||||
vgremove -f $vg1
|
||||
pvremove -f $dev1 $dev2 $dev3
|
||||
|
@ -75,3 +75,27 @@ check_pv_field_ $dev1 pe_start $pv_align
|
||||
vgremove -f $vg
|
||||
pvremove -f $dev1
|
||||
|
||||
# vgextend fails if pv belongs to existing vg
|
||||
vgcreate $vg1 $dev1 $dev3
|
||||
vgcreate $vg2 $dev2
|
||||
not vgextend $vg2 $dev3
|
||||
vgremove -f $vg1
|
||||
vgremove -f $vg2
|
||||
pvremove -f $dev1 $dev2 $dev3
|
||||
|
||||
#vgextend fails if vg is not resizeable
|
||||
vgcreate $vg1 $dev1 $dev2
|
||||
vgchange --resizeable n $vg1
|
||||
not vgextend $vg1 $dev3
|
||||
vgremove -f $vg1
|
||||
pvremove -f $dev1 $dev2
|
||||
|
||||
# all PVs exist in the VG after extended
|
||||
pvcreate $dev1
|
||||
vgcreate $vg1 $dev2
|
||||
vgextend $vg1 $dev1 $dev3
|
||||
check_pv_field_ $dev1 vg_name $vg1
|
||||
check_pv_field_ $dev2 vg_name $vg1
|
||||
check_pv_field_ $dev3 vg_name $vg1
|
||||
vgremove -f $vg1
|
||||
pvremove -f $dev1 $dev2 $dev3
|
||||
|
Loading…
Reference in New Issue
Block a user