2 # Copyright (C) 2008 Red Hat, Inc. All rights reserved.
4 # This copyrighted material is made available to anyone wishing to use,
5 # modify, copy, or redistribute it subject to the terms and conditions
6 # of the GNU General Public License v.2.
8 # You should have received a copy of the GNU General Public License
9 # along with this program; if not, write to the Free Software Foundation,
10 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 lvcreate
-m 1 -L 1 -n mirror
$vg
19 lvchange
-a n
$vg/mirror
22 lvchange
--partial -a y
$vg/mirror
24 not vgreduce
-v --removemissing $vg
25 lvconvert
-y -i 1 --repair $vg/mirror
26 vgreduce
--removemissing $vg
31 lvconvert
-y -i 1 --repair $vg/mirror
32 vgreduce
--removemissing $vg
37 lvconvert
-y -i 1 --repair $vg/mirror
38 vgreduce
--removemissing $vg
42 lvcreate
-m 2 -l 1 -n mirror2
$vg $dev1 $dev2 $dev3 $dev4
45 echo 'y' | not lvconvert
-y -i 1 --repair $vg/mirror2