All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/12] Replicator 100629
@ 2010-06-29 16:26 Zdenek Kabelac
  2010-06-29 16:26 ` [PATCH 01/12] Allow the user to not specify a size when creating snapshot Zdenek Kabelac
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Zdenek Kabelac @ 2010-06-29 16:26 UTC (permalink / raw)
  To: lvm-devel

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(-)



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-06-29 16:26 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-29 16:26 [PATCH 00/12] Replicator 100629 Zdenek Kabelac
2010-06-29 16:26 ` [PATCH 01/12] Allow the user to not specify a size when creating snapshot Zdenek Kabelac
2010-06-29 16:26 ` [PATCH 02/12] Replicator: check for active replicator Zdenek Kabelac
2010-06-29 16:26 ` [PATCH 03/12] Replicator: reserved names Zdenek Kabelac
2010-06-29 16:26 ` [PATCH 04/12] Replicator: add _replicator_in_sync Zdenek Kabelac
2010-06-29 16:26 ` [PATCH 05/12] Replicator: improve detection of replicator-dev Zdenek Kabelac
2010-06-29 16:26 ` [PATCH 06/12] Replicator: lvcreate, lvm man pages Zdenek Kabelac
2010-06-29 16:26 ` [PATCH 07/12] Replicator: add new options for replicator Zdenek Kabelac
2010-06-29 16:26 ` [PATCH 08/12] Replicator: lv_manip - create replicator Zdenek Kabelac
2010-06-29 16:26 ` [PATCH 09/12] Replicator: add report for replicator targets Zdenek Kabelac
2010-06-29 16:26 ` [PATCH 10/12] Replicator: replicator_manip changes Zdenek Kabelac
2010-06-29 16:26 ` [PATCH 11/12] Replicator: replicator.c changes Zdenek Kabelac
2010-06-29 16:26 ` [PATCH 12/12] Replicator: man pages for lvchange.8 Zdenek Kabelac

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.