All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zdenek Kabelac <zkabelac@redhat.com>
To: lvm-devel@redhat.com
Subject: [PATCH 00/25] Replicator 100808
Date: Sun,  8 Aug 2010 10:57:12 +0200	[thread overview]
Message-ID: <cover.1281256234.git.zkabelac@redhat.com> (raw)

This patchset enhances lvm with replicator metadata construction.

This version contains changes from Prague discussion.

Replicated-dev has been changed to replicated
(kernel driver though is still replicated-dev).
Sitemode has been renamed to sitepolicy.
Size and Extents are not needed when site argument is given.
Updated logic for specifying vg for lvcreate command.

Not yet finished:
HA LVM usage for activation of replicator.
Removal of replicator devices could be better.


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 --replicated -L10M -n L1 my/rep
lvcreate --replicated -L20M -n L2 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 (25):
  Update libdm for replicator
  SEG_REPLICATED dm-deptree
  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/ed targets
  Replicator: improve detection of replicated segment
  Replicator: new defaults
  Replicator: metadata update
  Replicator: segtype.h - replicated
  Replicator: replicator_manip changes
  Replicator: replicator.c changes
  Replicator: add new command option read functions
  Replicator: new args
  Replicator: update of dev_manager.c
  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
  Replicator: initial simple replicator testcase

 lib/activate/dev_manager.c       |   38 +-
 lib/config/defaults.h            |    9 +
 lib/locking/locking.h            |    2 +-
 lib/metadata/lv_manip.c          |  124 ++++
 lib/metadata/merge.c             |   22 +-
 lib/metadata/metadata-exported.h |   83 ++-
 lib/metadata/replicator_manip.c  | 1262 +++++++++++++++++++++++++++++++-------
 lib/metadata/segtype.h           |    4 +-
 lib/misc/lvm-globals.c           |   11 +
 lib/misc/lvm-globals.h           |    2 +
 lib/misc/lvm-string.c            |   18 +
 lib/replicator/replicator.c      |  363 +++++-------
 lib/report/columns.h             |    2 +
 lib/report/report.c              |   32 +
 libdm/libdevmapper.h             |   32 +-
 libdm/libdm-deptree.c            |   88 ++--
 man/lvchange.8.in                |   31 +
 man/lvcreate.8.in                |   75 +++
 man/lvm.8.in                     |    3 +-
 test/t-replicator-usage.sh       |   47 ++
 tools/args.h                     |   10 +
 tools/commands.h                 |   20 +-
 tools/lvchange.c                 |  195 ++++++-
 tools/lvcreate.c                 |  138 ++++-
 tools/lvmcmdline.c               |   71 +++
 tools/lvremove.c                 |   18 +-
 tools/toollib.c                  |  103 +++-
 tools/toollib.h                  |    3 +
 tools/tools.h                    |    3 +
 tools/vgchange.c                 |    6 +-
 30 files changed, 2245 insertions(+), 570 deletions(-)
 create mode 100755 test/t-replicator-usage.sh

--
1.7.2.1



             reply	other threads:[~2010-08-08  8:57 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-08  8:57 Zdenek Kabelac [this message]
2010-08-08  8:57 ` [PATCH 01/25] Update libdm for replicator Zdenek Kabelac
2010-08-08  8:57 ` [PATCH 02/25] SEG_REPLICATED dm-deptree Zdenek Kabelac
2010-08-08  8:57 ` [PATCH 03/25] Skip check missing rem.VGs for non-activate locks Zdenek Kabelac
2010-08-08  8:57 ` [PATCH 04/25] Replicator: check for active replicator Zdenek Kabelac
2010-08-08  8:57 ` [PATCH 05/25] Replicator: add reserved names Zdenek Kabelac
2010-08-08  8:57 ` [PATCH 06/25] Replicator: man page update for lvm Zdenek Kabelac
2010-08-08  8:57 ` [PATCH 07/25] Replicator: add _replicator_in_sync Zdenek Kabelac
2010-08-08  8:57 ` [PATCH 08/25] Replicator: add report for replicator/ed targets Zdenek Kabelac
2010-08-08  8:57 ` [PATCH 09/25] Replicator: improve detection of replicated segment Zdenek Kabelac
2010-08-08  8:57 ` [PATCH 10/25] Replicator: new defaults Zdenek Kabelac
2010-08-08  8:57 ` [PATCH 11/25] Replicator: metadata update Zdenek Kabelac
2010-08-08  8:57 ` [PATCH 12/25] Replicator: segtype.h - replicated Zdenek Kabelac
2010-08-08  8:57 ` [PATCH 13/25] Replicator: replicator_manip changes Zdenek Kabelac
2010-08-08  8:57 ` [PATCH 14/25] Replicator: replicator.c changes Zdenek Kabelac
2010-08-08  8:57 ` [PATCH 15/25] Replicator: add new command option read functions Zdenek Kabelac
2010-08-08  8:57 ` [PATCH 16/25] Replicator: new args Zdenek Kabelac
2010-08-08  8:57 ` [PATCH 17/25] Replicator: update of dev_manager.c Zdenek Kabelac
2010-08-08  8:57 ` [PATCH 18/25] Replicator: read site_params Zdenek Kabelac
2010-08-08  8:57 ` [PATCH 19/25] Replicator: lv_manip - create replicator Zdenek Kabelac
2010-08-08  8:57 ` [PATCH 20/25] Replicator: lvcreate implementation Zdenek Kabelac
2010-08-08  8:57 ` [PATCH 21/25] Replicator: man page update for lvcreate Zdenek Kabelac
2010-08-08  8:57 ` [PATCH 22/25] Replicator: lvchange implementation Zdenek Kabelac
2010-08-08  8:57 ` [PATCH 23/25] Replicator: man page update for lvchange Zdenek Kabelac
2010-08-08  8:57 ` [PATCH 24/25] Replicator: lvremove implementation Zdenek Kabelac
2010-08-08  8:57 ` [PATCH 25/25] Replicator: initial simple replicator testcase 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.1281256234.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.