mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-04 09:18:36 +03:00
tests: support cluster run
needs exclusive activation
This commit is contained in:
parent
3a8bb8d3a4
commit
22be7c4417
@ -71,14 +71,14 @@ lvremove -f $vg/cache_pool
|
|||||||
|
|
||||||
# Bug 1110026
|
# Bug 1110026
|
||||||
# Create origin, then cache_pool and cache
|
# Create origin, then cache_pool and cache
|
||||||
lvcreate -l 2 -n $lv1 $vg
|
lvcreate -aey -l 2 -n $lv1 $vg
|
||||||
lvcreate --type cache -l 1 $vg/$lv1
|
lvcreate --type cache -l 1 $vg/$lv1
|
||||||
#should dmsetup table ${vg}-$lv1 | grep cache # ensure it is loaded in kernel
|
#should dmsetup table ${vg}-$lv1 | grep cache # ensure it is loaded in kernel
|
||||||
lvremove -ff $vg
|
lvremove -ff $vg
|
||||||
|
|
||||||
# Bug 1110026 & Bug 1095843
|
# Bug 1110026 & Bug 1095843
|
||||||
# Create RAID1 origin, then cache_pool and cache
|
# Create RAID1 origin, then cache_pool and cache
|
||||||
lvcreate -l 2 -n $lv1 $vg
|
lvcreate -aey -l 2 -n $lv1 $vg
|
||||||
lvcreate --type cache -l 1 $vg/$lv1
|
lvcreate --type cache -l 1 $vg/$lv1
|
||||||
#should lvs -a $vg/${lv1}_corig_rimage_0 # ensure images are properly renamed
|
#should lvs -a $vg/${lv1}_corig_rimage_0 # ensure images are properly renamed
|
||||||
#should dmsetup table ${vg}-$lv1 | grep cache # ensure it is loaded in kernel
|
#should dmsetup table ${vg}-$lv1 | grep cache # ensure it is loaded in kernel
|
||||||
@ -101,7 +101,7 @@ done
|
|||||||
##############################
|
##############################
|
||||||
|
|
||||||
# Attempt to create smaller cache than origin should fail
|
# Attempt to create smaller cache than origin should fail
|
||||||
lvcreate -l 1 -n $lv1 $vg
|
lvcreate -aey -l 1 -n $lv1 $vg
|
||||||
not lvcreate --type cache -l 2 $vg/$lv1
|
not lvcreate --type cache -l 2 $vg/$lv1
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user