Imported Upstream version 2.02.79
[platform/upstream/device-mapper.git] / test / t-activate-partial.sh
1 # Copyright (C) 2010 Red Hat, Inc. All rights reserved.
2 #
3 # This copyrighted material is made available to anyone wishing to use,
4 # modify, copy, or redistribute it subject to the terms and conditions
5 # of the GNU General Public License v.2.
6 #
7 # You should have received a copy of the GNU General Public License
8 # along with this program; if not, write to the Free Software Foundation,
9 # Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
10
11 . ./test-utils.sh
12
13 aux prepare_vg 3
14
15 lvcreate -m 1 -l 1 -n mirror $vg
16 lvchange -a n $vg/mirror
17 disable_dev $dev1
18
19 not vgreduce --removemissing $vg
20 not lvchange -v -a y $vg/mirror
21 lvchange -v --partial -a y $vg/mirror
22 not lvchange -v --refresh $vg/mirror
23 lvchange -v --refresh --partial $vg/mirror
24
25 # also check that vgchange works
26 vgchange -a n --partial $vg
27 vgchange -a y --partial $vg
28
29 # check vgremove
30 vgremove -f $vg