Skip to content

Replicator 100629

Zdenek Kabelac lvm-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12Allow the user to not specify a size when creating snapshot.tools/lvcreate.c+4 -00 replies
2/12Replicator: check for active replicatortools/vgchange.c+1 -10 replies
3/12Replicator: reserved nameslib/misc/lvm-string.c+18 -00 replies
4/12Replicator: add _replicator_in_synclib/misc/lvm-globals.c lib/misc/lvm-globals.h+13 -00 replies
5/12Replicator: improve detection of replicator-devlib/metadata/merge.c+12 -60 replies
6/12Replicator: lvcreate, lvm man pagesman/lvcreate.8.in man/lvm.8.in+68 -10 replies
7/12Replicator: add new options for replicatorlib/config/defaults.h lib/metadata/metadata-exported.h tools/args.h +4 more+213 -110 replies
8/12Replicator: lv_manip - create replicatorlib/metadata/lv_manip.c+125 -10 replies
9/12Replicator: add report for replicator targetslib/report/columns.h lib/report/report.c+34 -00 replies
10/12Replicator: replicator_manip changeslib/metadata/replicator_manip.c+741 -650 replies
11/12Replicator: replicator.c changeslib/replicator/replicator.c+46 -780 replies
12/12Replicator: man pages for lvchange.8man/lvchange.8.in+37 -00 replies

Reviews trailers per patch

1 of 12 patches has a Reviewed-by or Acked-by.

PatchZdenek Kabelac
1/12R-b
2/12
3/12
4/12
5/12
6/12
7/12
8/12
9/12
10/12
11/12
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/12] Replicator 100629

This patchset enhances lvm with replicator metadata construction. It should not influence other commands thus should be safe to insert to source tree.

At this moment patch doesn't contain lvchange (not yet cleaned) Idea is to enable replicator with

lvchange --site Berlin --replicator my/rep -ay
or
lvchange --site Berlin my/L1 -ay
(still undecided??)

Use case example:

# build remote devices
vgcreate vg_ny /dev/loop1
vgcreate vg_paris /dev/loop2

lvcreate -L10M -n L1 vg_ny
lvcreate -L10M -n L1 vg_paris
lvcreate -L20M -n L2 vg_ny
lvcreate -L20M -n L2 vg_paris

# build local replicator
vgcreate my /dev/loop0
lvcreate --replicator rep -L20M my

lvcreate --site Berlin --replicator my/rep
lvcreate --site NY --remotevg vg_ny --replicator my/rep lvcreate --site Paris --remotevg vg_paris --replicator my/rep

lvcreate --replicatordev -L10M -n L1 --replicator my/rep lvcreate --replicatordev -L20M -n L2 --replicator my/rep

lvcreate --replicator rep -L20M my || exit 1 lvcreate --replicatordev -L10M -n L1 --replicator my/rep

lvremove my/L1

Note: after removing 'L1' LV 'L1_rimage' and '_slog' devices are left in VG Ideally user should use own 'VG'
and for removal just run:

vgremove my

Zdenek Kabelac (12):
Allow the user to not specify a size when creating snapshot.
Replicator: check for active replicator
Replicator: reserved names
Replicator: add _replicator_in_sync
Replicator: improve detection of replicator-dev
Replicator: lvcreate, lvm man pages
Replicator: add new options for replicator
Replicator: lv_manip - create replicator
Replicator: add report for replicator targets
Replicator: replicator_manip changes
Replicator: replicator.c changes
Replicator: man pages for lvchange.8

 lib/config/defaults.h            |    8 +
 lib/metadata/lv_manip.c          |  126 ++++++-
 lib/metadata/merge.c             |   18 +-
 lib/metadata/metadata-exported.h |   46 ++-
 lib/metadata/replicator_manip.c  |  806 +++++++++++++++++++++++++++++++++++---
 lib/misc/lvm-globals.c           |   11 +
 lib/misc/lvm-globals.h           |    2 +
 lib/misc/lvm-string.c            |   18 +
 lib/replicator/replicator.c      |  124 +++----
 lib/report/columns.h             |    2 +
 lib/report/report.c              |   32 ++
 man/lvchange.8.in                |   37 ++
 man/lvcreate.8.in                |   66 +++
 man/lvm.8.in                     |    3 +-
 tools/args.h                     |   10 +
 tools/commands.h                 |   15 +
 tools/lvcreate.c                 |  138 +++++++-
 tools/lvmcmdline.c               |   10 +
 tools/tools.h                    |    1 +
 tools/vgchange.c                 |    2 +-
 20 files changed, 1312 insertions(+), 163 deletions(-)