All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zdenek Kabelac <zkabelac@redhat.com>
To: lvm-devel@redhat.com
Subject: [PATCH 00/22] Replicator 100707
Date: Wed,  7 Jul 2010 14:34:34 +0200	[thread overview]
Message-ID: <cover.1278505885.git.zkabelac@redhat.com> (raw)

This patchset enhances lvm with replicator metadata construction.
It 'should not' influence other commands.

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

lvchange --site Berlin --replicator my/rep  -ay
== lvchange --site Berlin my/L1  -ay
== lvchange --site Berlin my/rep  -ay


Zdenek Kabelac (22):
  Add units to passed parameters data & timeout     Use size
  Allow the user to not specify a size when creating snapshot.
  Skip check missing rem.VGs for non-activate locks
  Replicator: check for active replicator
  Replicator: add reserved names
  Replicator: man page update for lvm
  Replicator: add _replicator_in_sync
  Replicator: add report for replicator targets
  Replicator: improve detection of replicator-dev
  Replicator: new defaults
  Replicator: metadata update
  Replicator: replicator_manip changes
  Replicator: replicator.c changes
  Replicator: add new command option read functions
  Replicator: new args
  Replicator: read site_params
  Replicator: lv_manip - create replicator
  Replicator: lvcreate implementation
  Replicator: man page update for lvcreate
  Replicator: lvchange implementation
  Replicator: man page update for lvchange
  Replicator: lvremove implementation

 lib/config/defaults.h            |    9 +
 lib/locking/locking.h            |    2 +-
 lib/metadata/lv_manip.c          |  126 ++++-
 lib/metadata/merge.c             |   18 +-
 lib/metadata/metadata-exported.h |   59 ++-
 lib/metadata/replicator_manip.c  | 1211 +++++++++++++++++++++++++++++++-------
 lib/misc/lvm-globals.c           |   11 +
 lib/misc/lvm-globals.h           |    2 +
 lib/misc/lvm-string.c            |   18 +
 lib/replicator/replicator.c      |  178 ++----
 lib/report/columns.h             |    2 +
 lib/report/report.c              |   32 +
 libdm/libdm-deptree.c            |    4 +-
 man/lvchange.8.in                |   31 +
 man/lvcreate.8.in                |   76 +++
 man/lvm.8.in                     |    3 +-
 tools/args.h                     |   10 +
 tools/commands.h                 |   18 +-
 tools/lvchange.c                 |  195 ++++++-
 tools/lvcreate.c                 |  137 +++++-
 tools/lvmcmdline.c               |   24 +
 tools/lvremove.c                 |   19 +-
 tools/toollib.c                  |  111 ++++
 tools/toollib.h                  |    3 +
 tools/tools.h                    |    2 +
 tools/vgchange.c                 |    2 +-
 26 files changed, 1942 insertions(+), 361 deletions(-)



             reply	other threads:[~2010-07-07 12:34 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-07 12:34 Zdenek Kabelac [this message]
2010-07-07 12:34 ` [PATCH 01/22] Add units to passed parameters data & timeout Use size Zdenek Kabelac
2010-07-07 12:34 ` [PATCH 02/22] Allow the user to not specify a size when creating snapshot Zdenek Kabelac
2010-07-07 12:34 ` [PATCH 03/22] Skip check missing rem.VGs for non-activate locks Zdenek Kabelac
2010-07-07 12:34 ` [PATCH 04/22] Replicator: check for active replicator Zdenek Kabelac
2010-07-07 12:34 ` [PATCH 05/22] Replicator: add reserved names Zdenek Kabelac
2010-07-07 12:34 ` [PATCH 06/22] Replicator: man page update for lvm Zdenek Kabelac
2010-07-07 12:34 ` [PATCH 07/22] Replicator: add _replicator_in_sync Zdenek Kabelac
2010-07-07 12:34 ` [PATCH 08/22] Replicator: add report for replicator targets Zdenek Kabelac
2010-07-07 12:34 ` [PATCH 09/22] Replicator: improve detection of replicator-dev Zdenek Kabelac
2010-07-07 12:34 ` [PATCH 10/22] Replicator: new defaults Zdenek Kabelac
2010-07-07 12:34 ` [PATCH 11/22] Replicator: metadata update Zdenek Kabelac
2010-07-07 12:34 ` [PATCH 12/22] Replicator: replicator_manip changes Zdenek Kabelac
2010-07-07 12:34 ` [PATCH 13/22] Replicator: replicator.c changes Zdenek Kabelac
2010-07-07 12:34 ` [PATCH 14/22] Replicator: add new command option read functions Zdenek Kabelac
2010-07-07 12:34 ` [PATCH 15/22] Replicator: new args Zdenek Kabelac
2010-07-07 12:34 ` [PATCH 16/22] Replicator: read site_params Zdenek Kabelac
2010-07-07 12:34 ` [PATCH 17/22] Replicator: lv_manip - create replicator Zdenek Kabelac
2010-07-07 12:34 ` [PATCH 18/22] Replicator: lvcreate implementation Zdenek Kabelac
2010-07-07 12:34 ` [PATCH 19/22] Replicator: man page update for lvcreate Zdenek Kabelac
2010-07-07 12:34 ` [PATCH 20/22] Replicator: lvchange implementation Zdenek Kabelac
2010-07-07 12:34 ` [PATCH 21/22] Replicator: man page update for lvchange Zdenek Kabelac
2010-07-07 12:34 ` [PATCH 22/22] Replicator: lvremove implementation Zdenek Kabelac

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1278505885.git.zkabelac@redhat.com \
    --to=zkabelac@redhat.com \
    --cc=lvm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.