Replicator 100629
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest12 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | Allow the user to not specify a size when creating snapshot.tools/ | +4 | 0 replies | |
| 2/12 | Replicator: check for active replicatortools/ | +1 | 0 replies | |
| 3/12 | Replicator: reserved nameslib/ | +18 | 0 replies | |
| 4/12 | Replicator: add _replicator_in_synclib/ lib/ | +13 | 0 replies | |
| 5/12 | Replicator: improve detection of replicator-devlib/ | +12 | 0 replies | |
| 6/12 | Replicator: lvcreate, lvm man pagesman/ man/ | +68 | 0 replies | |
| 7/12 | Replicator: add new options for replicatorlib/ lib/ tools/ +4 more | +213 | 0 replies | |
| 8/12 | Replicator: lv_manip - create replicatorlib/ | +125 | 0 replies | |
| 9/12 | Replicator: add report for replicator targetslib/ lib/ | +34 | 0 replies | |
| 10/12 | Replicator: replicator_manip changeslib/ | +741 | 0 replies | |
| 11/12 | Replicator: replicator.c changeslib/ | +46 | 0 replies | |
| 12/12 | Replicator: man pages for lvchange.8man/ | +37 | 0 replies |
Reviews trailers per patch
1 of 12 patches has a Reviewed-by or Acked-by.
| Patch | Zdenek Kabelac |
|---|---|
| 1/12 | R-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.
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(-)