diff options
author | Heinz Mauelshagen <heinzm@redhat.com> | 2016-08-05 15:54:49 +0200 |
---|---|---|
committer | Heinz Mauelshagen <heinzm@redhat.com> | 2016-08-05 16:01:46 +0200 |
commit | d2c3b23e6dc39565093256c97ff66984e8648bda (patch) | |
tree | 6bd71a8f37bed9a3d74bdf2da49188acffb02d54 /tools/commands.h | |
parent | 91f866f7866eed6eb8ead5a876efcac5a58511da (diff) | |
download | lvm2-d2c3b23e6dc39565093256c97ff66984e8648bda.tar.gz |
lvchange: Allow device specification when requesting a repair
'lvchange --resync LV' or 'lvchange --syncaction repair LV' request the
RAID layout specific parity blocks in raid4/5/6 to be recreated or the
mirrored blocks to be copied again from the master leg/copy for raid1/10,
thus not allowing a rebuild of a particular PV.
Introduce repeatable option '--[raid]rebuild PV' to allow to request
rebuilds of specific PVs in a RaidLV which are known to contain corrupt
data (e.g. rebuild a raid1 master leg).
Add test lvchange-rebuild-raid.sh to test/shell doing rebuild
variations on raid1/10 and 5; add aux function check_status_chars
to support the new test.
- Resolves rhbz1064592
Diffstat (limited to 'tools/commands.h')
-rw-r--r-- | tools/commands.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/commands.h b/tools/commands.h index c34875374..baf89b15f 100644 --- a/tools/commands.h +++ b/tools/commands.h @@ -195,6 +195,7 @@ xx(lvchange, "\t[--activationmode {complete|degraded|partial}" "\t[--addtag <Tag>]\n" "\t[--alloc <AllocationPolicy>]\n" + "\t[--rebuild PhysicalVolume]\n" "\t[-C|--contiguous {y|n}]\n" "\t[--cachemode <CacheMode>]\n" "\t[--cachepolicy <policyname>] [--cachesettings <parameter=value>]\n" @@ -244,10 +245,10 @@ xx(lvchange, ignoreskippedcluster_ARG, major_ARG, metadataprofile_ARG, minor_ARG, monitor_ARG, minrecoveryrate_ARG, maxrecoveryrate_ARG, noudevsync_ARG, partial_ARG, permission_ARG, persistent_ARG, poll_ARG, - raidminrecoveryrate_ARG, raidmaxrecoveryrate_ARG, raidsyncaction_ARG, - raidwritebehind_ARG, raidwritemostly_ARG, readahead_ARG, reportformat_ARG, - resync_ARG, refresh_ARG, select_ARG, setactivationskip_ARG, syncaction_ARG, - sysinit_ARG, test_ARG, writebehind_ARG, writemostly_ARG, zero_ARG) + raidrebuild_ARG, raidminrecoveryrate_ARG, raidmaxrecoveryrate_ARG, + raidsyncaction_ARG, raidwritebehind_ARG, raidwritemostly_ARG, readahead_ARG, + reportformat_ARG, rebuild_ARG, resync_ARG, refresh_ARG, select_ARG, setactivationskip_ARG, + syncaction_ARG, sysinit_ARG, test_ARG, writebehind_ARG, writemostly_ARG, zero_ARG) #define COMMON_OPTS \ "\t[--commandprofile <ProfileName>] [-d|--debug] [-h|-?|--help]\n" \ @@ -259,6 +260,7 @@ xx(lvconvert, "lvconvert " "[-m|--mirrors <Mirrors> [--mirrorlog {disk|core|mirrored}|--corelog]]\n" "\t[--type <SegmentType>]\n" + "\t[--rebuild PhysicalVolume]\n" "\t[--repair [--use-policies]]\n" "\t[--replace PhysicalVolume]\n" "\t[-R|--regionsize <MirrorLogRegionSize>]\n" |