1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Better version of failing 'should' test

where the naming is left completely on lvm.
(Commited code has been different version of test).
So here it should be able to figure out new free name and create a new LV.
This commit is contained in:
Zdenek Kabelac 2011-07-18 12:12:41 +00:00
parent 8e97096fa2
commit 80869133f2

View File

@ -71,7 +71,7 @@ done
dd if="$dev1" of=backup_i bs=256K count=1 dd if="$dev1" of=backup_i bs=256K count=1
dd if="$dev2" of=backup_j bs=256K count=1 dd if="$dev2" of=backup_j bs=256K count=1
lvcreate -l1 -n $lv1 $vg $dev1 lvcreate -l1 $vg $dev1
dd if=backup_j of="$dev2" bs=256K count=1 dd if=backup_j of="$dev2" bs=256K count=1
dd if=backup_i of="$dev1" bs=256K count=1 dd if=backup_i of="$dev1" bs=256K count=1
@ -94,4 +94,4 @@ vgreduce --removemissing --force $vg
# device-mapper: create ioctl failed: Device or resource busy # device-mapper: create ioctl failed: Device or resource busy
# Failed to activate new LV. # Failed to activate new LV.
should lvcreate -l1 -n $lv1 $vg $dev1 should lvcreate -l1 $vg $dev1