|
|
04bcc6 |
From a9b36a2e6388f4b046af2f9de4f062e28e87015d Mon Sep 17 00:00:00 2001
|
|
|
04bcc6 |
From: Heinz Mauelshagen <heinzm@redhat.com>
|
|
|
04bcc6 |
Date: Mon, 8 Jul 2019 19:07:18 +0200
|
|
|
04bcc6 |
Subject: [PATCH 1/2] lvconvert: allow --stripes/--stripesize in 'mirror'
|
|
|
04bcc6 |
conversions
|
|
|
04bcc6 |
|
|
|
04bcc6 |
This allows the creation of a striped mirror leg(s) during upconvert
|
|
|
04bcc6 |
by adding lvconvert command line options --stripes/--stripesize
|
|
|
04bcc6 |
for 'mirror' to tools/command-lines.in.
|
|
|
04bcc6 |
|
|
|
04bcc6 |
In case multiple mirror legs are being added, all will have the
|
|
|
04bcc6 |
same requested striped layout.
|
|
|
04bcc6 |
|
|
|
04bcc6 |
Resolves: rhbz1720705
|
|
|
04bcc6 |
(cherry picked from commit e3c8cebd87f9bd7591529f3d65783cc6f1fd3f92)
|
|
|
04bcc6 |
---
|
|
|
04bcc6 |
tools/command-lines.in | 4 +---
|
|
|
04bcc6 |
1 file changed, 1 insertion(+), 3 deletions(-)
|
|
|
04bcc6 |
|
|
|
04bcc6 |
diff --git a/tools/command-lines.in b/tools/command-lines.in
|
|
|
04bcc6 |
index a8c06ba..b4a9896 100644
|
|
|
04bcc6 |
--- a/tools/command-lines.in
|
|
|
04bcc6 |
+++ b/tools/command-lines.in
|
|
|
04bcc6 |
@@ -334,13 +334,11 @@ DESC: Convert LV to striped.
|
|
|
04bcc6 |
RULE: all not lv_is_locked lv_is_pvmove
|
|
|
04bcc6 |
|
|
|
04bcc6 |
lvconvert --type mirror LV
|
|
|
04bcc6 |
-OO: --mirrors SNumber, --regionsize RegionSize, --interval Number, --mirrorlog MirrorLog, OO_LVCONVERT
|
|
|
04bcc6 |
+OO: --mirrors SNumber, --stripes_long Number, --stripesize SizeKB, --regionsize RegionSize, --interval Number, --mirrorlog MirrorLog, OO_LVCONVERT
|
|
|
04bcc6 |
OP: PV ...
|
|
|
04bcc6 |
ID: lvconvert_raid_types
|
|
|
04bcc6 |
DESC: Convert LV to type mirror (also see type raid1),
|
|
|
04bcc6 |
-DESC: (also see lvconvert --mirrors).
|
|
|
04bcc6 |
RULE: all not lv_is_locked lv_is_pvmove
|
|
|
04bcc6 |
-FLAGS: SECONDARY_SYNTAX
|
|
|
04bcc6 |
|
|
|
04bcc6 |
# When LV is already raid, this changes the raid layout
|
|
|
04bcc6 |
# (changing layout of raid0 and raid1 not allowed.)
|
|
|
04bcc6 |
--
|
|
|
04bcc6 |
1.8.3.1
|
|
|
04bcc6 |
|