diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2018-03-18 00:30:43 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2018-03-18 00:30:43 +0100 |
commit | 08487a30983bfa4b3c0a7bcd9060657b6c1803ae (patch) | |
tree | a06bbe9407b420903fe2c52568bb063032974aaa | |
parent | e5b40e0488ae85e4adf8736e06a973666ea9280c (diff) | |
download | lvm2-08487a30983bfa4b3c0a7bcd9060657b6c1803ae.tar.gz |
tests: use 4k extents
Use 4K chunks since some older kernels are not capable
to create striped volumes with smaller size.
TODO: lvm2 should detect this ahead and avoid kernel
reporting "Invalid chunk".
-rw-r--r-- | test/shell/lvconvert-snapshot.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/shell/lvconvert-snapshot.sh b/test/shell/lvconvert-snapshot.sh index ecf6b3c8a..f18115dfc 100644 --- a/test/shell/lvconvert-snapshot.sh +++ b/test/shell/lvconvert-snapshot.sh @@ -30,7 +30,6 @@ lvcreate -L1 -s -n $lv3 $vg/$lv2 lvcreate -l1 -n $lv4 $vg lvcreate -L1 -n $lv5 $vg lvcreate -L1 -n $lv6 $vg -lvcreate -L1 -i2 -n $lv7 $vg not lvconvert -s $vg/$lv1 $vg/not_exist @@ -61,6 +60,13 @@ grep "smaller" err lvconvert --yes -s $vg/$lv2 $vg/$lv5 lvconvert --yes --type snapshot $vg/$lv2 $vg/$lv6 +vgremove -f $vg + +# FIXME: older stripe target can't handle 1K chunks +vgcreate -s 4k "$vg" "${DEVICES[@]}" +lvcreate -aey -L1 -n $lv2 $vg +lvcreate -L1 -i2 -n $lv7 $vg + # Striped LV is also supported lvconvert --yes --snapshot $vg/$lv2 $vg/$lv7 |