All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] [PATCH LVM2] add --regionsize option to lvconvert
@ 2006-10-06 21:54 Jun'ichi Nomura
  0 siblings, 0 replies; only message in thread
From: Jun'ichi Nomura @ 2006-10-06 21:54 UTC (permalink / raw)
  To: linux-lvm, Alasdair Kergon, Jonathan Brassow

[-- Attachment #1: Type: text/plain, Size: 509 bytes --]

Hi,

For mirrored LV, you can set region size at creation.
However, you can't if you convert linear LV to mirrored LV.

Implementation is already there but the parser isn't set to
accept the parameter.
Attached patch enables it.

Region size conversion of existing mirror isn't implemented yet
and lvconvert rejects such request.

diffstat:
 man/lvconvert.8  |    6 +++++-
 tools/commands.h |    3 ++-
 2 files changed, 7 insertions(+), 2 deletions(-)

Thanks,
-- 
Jun'ichi Nomura, NEC Corporation of America

[-- Attachment #2: 03.2-lvconvert-regionsize-fix.patch --]
[-- Type: text/x-patch, Size: 1813 bytes --]

diff -X dontdiff -urp LVM2.02.alloclogspace/man/lvconvert.8 LVM2.03.regionsizefix/man/lvconvert.8
--- LVM2.02.alloclogspace/man/lvconvert.8	2006-08-18 18:27:01.000000000 -0400
+++ LVM2.03.regionsizefix/man/lvconvert.8	2006-10-06 21:09:07.000000000 -0400
@@ -3,7 +3,7 @@
 lvconvert \- convert a logical volume between linear and mirror
 .SH SYNOPSIS
 .B lvconvert
-[\-m/\-\-mirrors Mirrors [\-\-corelog]]
+[\-m/\-\-mirrors Mirrors [\-\-corelog] [\-R/\-\-regionsize MirrorLogRegionSize]]
 [\-A/\-\-alloc AllocationPolicy]
 [\-h/\-?/\-\-help]
 [\-v/\-\-verbose]
@@ -28,6 +28,10 @@ mirror from using a disk-based (persiste
 an in-memory log.  You may only specify this option
 when the \-\-mirror argument is the same degree of
 the mirror you are changing.
+.TP
+.I \-R, \-\-regionsize MirrorLogRegionSize
+A mirror is divided into regions of this size (in MB), and the mirror log
+uses this granularity to track which regions are in sync.
 .SH Examples
 "lvconvert -m1 vg00/lvol1"
 .br
diff -X dontdiff -urp LVM2.02.alloclogspace/tools/commands.h LVM2.03.regionsizefix/tools/commands.h
--- LVM2.02.alloclogspace/tools/commands.h	2006-10-05 19:45:16.000000000 -0400
+++ LVM2.03.regionsizefix/tools/commands.h	2006-10-06 21:06:16.000000000 -0400
@@ -83,6 +83,7 @@ xx(lvconvert,
    "Change logical volume layout",
    "lvconvert "
    "[-m|--mirrors Mirrors [--corelog]]\n"
+   "\t[-R|--regionsize MirrorLogRegionSize]\n"
    "\t[--alloc AllocationPolicy]\n"
    "\t[-d|--debug]\n"
    "\t[-h|-?|--help]\n"
@@ -100,7 +101,7 @@ xx(lvconvert,
    "\t[--version]" "\n"
    "\tOriginalLogicalVolume[Path] SnapshotLogicalVolume[Path]\n",
 
-   alloc_ARG, chunksize_ARG, mirrors_ARG, corelog_ARG,
+   alloc_ARG, chunksize_ARG, mirrors_ARG, corelog_ARG, regionsize_ARG,
    snapshot_ARG, test_ARG, zero_ARG)
 
 xx(lvcreate,

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-06 21:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-06 21:54 [linux-lvm] [PATCH LVM2] add --regionsize option to lvconvert Jun'ichi Nomura

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.