Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / gpl2 / lvm2 / dist / test / t-snapshots-of-mirrors.sh
blob0457da7148c613b0360b0d401567f4751746676b
1 . ./test-utils.sh
3 prepare_vg 4
5 # Create snapshot of a mirror origin
6 lvcreate -m 1 -L 10M -n lv $vg
7 lvcreate -s $vg/lv -L 10M -n snap
9 # Down-convert (mirror -> linear) under a snapshot
10 lvconvert -m0 $vg/lv
12 # Up-convert (linear -> mirror)
13 lvconvert -m2 $vg/lv
15 # Down-convert (mirror -> mirror)
16 lvconvert -m1 $vg/lv
18 # Up-convert (mirror -> mirror) -- Not supported!
19 not lvconvert -m2 $vg/lv
21 # Log conversion (disk -> core)
22 lvconvert --mirrorlog core $vg/lv
24 # Log conversion (core -> redundant) -- Not available yet!
25 not lvconvert --mirrorlog redundant $vg/lv
27 # Log conversion (redundant -> core) -- Not available yet!
28 # Note: Uncomment this command when the above works
29 # not lvconvert --mirrorlog core $vg/lv
31 # Log conversion (core -> disk)
32 lvconvert --mirrorlog disk $vg/lv
34 # Clean-up
35 lvremove -ff $vg