1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 11:55:55 +03:00
lvm2/man
Mike Snitzer 234b12480e lvconvert --merge @tag support
Switch lvconvert's --merge code over to using process_each_lv().  Doing
so adds support for a single 'lvconvert --merge' to start merging
multiple LVs (which includes @tag expansion).

Add 'lvconvert --merge @tag' testing to test/t-snapshot-merge.sh

Adjust man/lvconvert.8.in to reflect these expanded capabilities.

The lvconvert.c implementation requires rereading the VG each iteration
of process_each_lv().  Otherwise a stale VG instance associated with
the LV passed to lvconvert_single_merge() would result in stale VG
metadata being written back out to disk.  This overwrote new metadata
that was written when a previous snapshot LV finished merging (via
lvconvert_poll).  This is only an issue when merging multiple LVs that
share the same VG (a single VG is typical for most LVM configurations on
system disks).

In the end this new support is very useful for performing a "system
rollback" that requires multiple snapshot LVs be merged to their
respective origin LV.

The yum-utils 'fs-snapshot' plugin tags all snapshot LVs that it creates
with a common 'snapshot_tag' that is unique to the yum transaction.
Rolling back a yum transaction, that created LVM snapshots with the tag
'yum_20100129133223', is as simple as:
  lvconvert --merge @yum_20100129133223

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
2010-02-05 22:44:37 +00:00
..
clvmd.8.in Document the -I option to clvmd 2009-07-30 13:32:38 +00:00
cmirrord.8.in a little more information for the cmirrord man page 2010-01-22 21:48:17 +00:00
dmsetup.8.in Add --noudevrules option for dmsetup to disable /dev node management by udev. 2010-01-07 19:45:12 +00:00
fsadm.8.in Fix typo fsdam -> fsadm (closes bug 552721) 2010-01-07 09:42:51 +00:00
lvchange.8.in . update documentation for --poll in the vgchange and lvchange man pages 2010-01-06 19:08:58 +00:00
lvconvert.8.in lvconvert --merge @tag support 2010-02-05 22:44:37 +00:00
lvcreate.8.in Add %ORIGIN support to lv{create,extend,reduce,resize} --extents option 2010-02-03 03:58:08 +00:00
lvdisplay.8.in Document --all option in man pages, cleanup {pv|vg|lv}{s|display} man pages. 2009-10-26 14:37:09 +00:00
lvextend.8.in Add %ORIGIN support to lv{create,extend,reduce,resize} --extents option 2010-02-03 03:58:08 +00:00
lvm.8.in Update lvm and vgs man pages to clarify 'partial' is a VG missing PVs. 2009-09-14 19:42:13 +00:00
lvm.conf.5.in pre-release cleanup 2009-09-15 13:49:10 +00:00
lvmchange.8.in Generate man pages from templates and include version. (romster) 2008-10-08 12:50:13 +00:00
lvmdiskscan.8.in Make man pages consistent with either-or options (use "|" everywhere). 2008-11-12 15:01:35 +00:00
lvmdump.8.in Generate man pages from templates and include version. (romster) 2008-10-08 12:50:13 +00:00
lvreduce.8.in Add %ORIGIN support to lv{create,extend,reduce,resize} --extents option 2010-02-03 03:58:08 +00:00
lvremove.8.in '--noudevsync' -- update relevant man pages 2009-08-04 08:09:52 +00:00
lvrename.8.in '--noudevsync' -- update relevant man pages 2009-08-04 08:09:52 +00:00
lvresize.8.in Add %ORIGIN support to lv{create,extend,reduce,resize} --extents option 2010-02-03 03:58:08 +00:00
lvs.8.in Report merging snapshot as 'S' instead of 's': 2010-01-13 01:48:38 +00:00
lvscan.8.in Document --all option in man pages, cleanup {pv|vg|lv}{s|display} man pages. 2009-10-26 14:37:09 +00:00
Makefile.in And more fixes for cmirror build. 2010-01-19 02:04:33 +00:00
pvchange.8.in Make man pages consistent with either-or options (use "|" everywhere). 2008-11-12 15:01:35 +00:00
pvck.8.in Generate man pages from templates and include version. (romster) 2008-10-08 12:50:13 +00:00
pvcreate.8.in Add --pvmetadatacopies as a synonym for --metadatacopies in various commands. 2009-10-05 20:55:56 +00:00
pvdisplay.8.in Document --all option in man pages, cleanup {pv|vg|lv}{s|display} man pages. 2009-10-26 14:37:09 +00:00
pvmove.8.in '--noudevsync' -- update relevant man pages 2009-08-04 08:09:52 +00:00
pvremove.8.in Generate man pages from templates and include version. (romster) 2008-10-08 12:50:13 +00:00
pvresize.8.in Generate man pages from templates and include version. (romster) 2008-10-08 12:50:13 +00:00
pvs.8.in Document --all option in man pages, cleanup {pv|vg|lv}{s|display} man pages. 2009-10-26 14:37:09 +00:00
pvscan.8.in Generate man pages from templates and include version. (romster) 2008-10-08 12:50:13 +00:00
vgcfgbackup.8.in Generate man pages from templates and include version. (romster) 2008-10-08 12:50:13 +00:00
vgcfgrestore.8.in Generate man pages from templates and include version. (romster) 2008-10-08 12:50:13 +00:00
vgchange.8.in . update documentation for --poll in the vgchange and lvchange man pages 2010-01-06 19:08:58 +00:00
vgck.8.in Make man pages consistent with either-or options (use "|" everywhere). 2008-11-12 15:01:35 +00:00
vgconvert.8.in Add --pvmetadatacopies as a synonym for --metadatacopies in various commands. 2009-10-05 20:55:56 +00:00
vgcreate.8.in Minor fix to vgcreate/vgextend man pages for PHYSICAL DEVICE OPTIONS. 2009-10-26 02:36:29 +00:00
vgdisplay.8.in Document --all option in man pages, cleanup {pv|vg|lv}{s|display} man pages. 2009-10-26 14:37:09 +00:00
vgexport.8.in Make man pages consistent with either-or options (use "|" everywhere). 2008-11-12 15:01:35 +00:00
vgextend.8.in Remove old, and now incorrect, vgextend man page description of pvcreate options. 2009-11-03 15:58:02 +00:00
vgimport.8.in Make man pages consistent with either-or options (use "|" everywhere). 2008-11-12 15:01:35 +00:00
vgimportclone.8.in Add vgimportclone and install it and the man page by default. 2009-05-14 16:46:12 +00:00
vgmerge.8.in Make man pages consistent with either-or options (use "|" everywhere). 2008-11-12 15:01:35 +00:00
vgmknodes.8.in Update vgchange and vgmknodes man pages to include --refresh. 2009-02-25 13:17:40 +00:00
vgreduce.8.in Make man pages consistent with either-or options (use "|" everywhere). 2008-11-12 15:01:35 +00:00
vgremove.8.in '--noudevsync' -- update relevant man pages 2009-08-04 08:09:52 +00:00
vgrename.8.in Make man pages consistent with either-or options (use "|" everywhere). 2008-11-12 15:01:35 +00:00
vgs.8.in Document --all option in man pages, cleanup {pv|vg|lv}{s|display} man pages. 2009-10-26 14:37:09 +00:00
vgscan.8.in Make man pages consistent with either-or options (use "|" everywhere). 2008-11-12 15:01:35 +00:00
vgsplit.8.in Refactor vgsplit - reorder _vgsplit_from and _vgsplit_to based on flag. 2009-09-02 21:27:22 +00:00