1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-17 06:04:23 +03:00

test: fix/enhance lvcreate-large-raid*.sh

Multi-step extend to even larger raid10 LV lvcreate-large-raid.sh.

Comment fixes.
This commit is contained in:
Heinz Mauelshagen 2016-08-09 18:16:01 +02:00
parent 48e14390c1
commit bb9789f2b3
2 changed files with 16 additions and 8 deletions

View File

@ -109,4 +109,5 @@ lvremove -ff $vg1
# bz837927 END
vgremove -ff $vg1
vgremove -ff $vg

View File

@ -1,5 +1,5 @@
#!/bin/sh
# Copyright (C) 2012 Red Hat, Inc. All rights reserved.
# Copyright (C) 2012,2016 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
@ -22,24 +22,31 @@ aux have_raid 1 3 0 || skip
aux prepare_vg 5
lvcreate --type snapshot -s -l 20%FREE -n $lv1 $vg --virtualsize 256T
lvcreate --type snapshot -s -l 20%FREE -n $lv2 $vg --virtualsize 256T
lvcreate --type snapshot -s -l 20%FREE -n $lv3 $vg --virtualsize 256T
lvcreate --type snapshot -s -l 20%FREE -n $lv4 $vg --virtualsize 256T
lvcreate --type snapshot -s -l 20%FREE -n $lv5 $vg --virtualsize 256T
# Fake ~2.5PiB volume group $vg1 via snapshot LVs
for device in "$lv1" "$lv2" "$lv3" "$lv4" "$lv5"
do
lvcreate --type snapshot -s -l 20%FREE -n $device $vg --virtualsize 520T
done
aux extend_filter_LVMTEST
pvcreate "$DM_DEV_DIR"/$vg/$lv[12345]
vgcreate $vg1 "$DM_DEV_DIR"/$vg/$lv[12345]
#
# Create large RAID LVs
# Create and extend large RAID10 LV
#
# We need '--nosync' or our virtual devices won't work
lvcreate --type raid10 -m 1 -i 2 -L 200T -n $lv1 $vg1 --nosync
check lv_field $vg1/$lv1 size "200.00t"
vgremove -ff $vg1
lvextend -L +200T $vg1/$lv1
check lv_field $vg1/$lv1 size "400.00t"
lvextend -L +100T $vg1/$lv1
check lv_field $vg1/$lv1 size "500.00t"
lvextend -L 1P $vg1/$lv1
check lv_field $vg1/$lv1 size "1.00p"
vgremove -ff $vg1
vgremove -ff $vg