2017-07-02 21:38:32 +02:00
#!/usr/bin/env bash
2010-07-28 12:20:38 +00:00
# Copyright (C) 2010 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
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
2016-01-21 11:49:46 +01:00
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2010-07-28 12:20:38 +00:00
2016-02-22 16:13:42 -06:00
SKIP_WITH_LVMLOCKD = 1
2015-10-27 00:45:37 +01:00
SKIP_WITH_LVMPOLLD = 1
2008-09-29 16:04:57 +00:00
2015-10-27 00:45:37 +01:00
. lib/inittest
2015-05-09 00:59:18 +01:00
2008-09-29 16:04:57 +00:00
aux prepare_vg 3
2013-08-07 15:48:31 -05:00
lvcreate -aey --type mirror -m 1 -l 1 --nosync -n mirror $vg
2008-09-29 16:04:57 +00:00
lvchange -a n $vg /mirror
2012-03-16 13:00:05 +00:00
aux disable_dev " $dev1 "
2008-09-29 16:04:57 +00:00
2009-04-22 17:00:28 +00:00
not vgreduce --removemissing $vg
2013-06-15 11:21:03 +02:00
not lvchange -v -aey $vg /mirror
lvchange -v --partial -aey $vg /mirror
2010-06-03 12:45:05 +00:00
not lvchange -v --refresh $vg /mirror
lvchange -v --refresh --partial $vg /mirror
2009-07-15 05:47:55 +00:00
# also check that vgchange works
vgchange -a n --partial $vg
2013-06-15 11:21:03 +02:00
vgchange -aey --partial $vg
2010-06-30 14:01:39 +00:00
# check vgremove
2014-02-26 23:25:30 +01:00
vgremove -ff $vg