Sync usage with man page.
[netbsd-mini2440.git] / external / gpl2 / lvm2 / dist / test / t-vgsplit-stacked.sh
blob46cb1053c4a962c3c717af9c6a0a60010764f363
1 . ./test-utils.sh
3 prepare_lvmconf '[ "a/dev\/mirror/", "a/dev\/mapper\/.*$/", "r/.*/" ]'
4 aux prepare_devs 3
6 pvcreate $devs
7 vgcreate $vg1 $dev1 $dev2
8 lvcreate -n $lv1 -l 100%FREE $vg1
10 #top VG
11 pvcreate $G_dev_/$vg1/$lv1
12 vgcreate $vg $G_dev_/$vg1/$lv1 $dev3
14 vgchange -a n $vg
15 vgchange -a n $vg1
17 # this should fail but not segfault, RHBZ 481793.
18 not vgsplit $vg $vg1 $dev3