1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00
lvm2/man
Jonathan Earl Brassow 72e0743621 This patch adds the capability to split off a mirror legs.
It is pretty much the same as reducing the number of
mirror legs, but we just don't delete them afterwards.

The following command line interface is enforced:
  prompt> lvconvert --splitmirror <n> -n <name> <VG>/<LV>
where 'n' is the number of images to split off, and
where 'name' is the name of the newly split off logical volume.

If more than one leg is split off, a new mirror will be the
result.  The newly split off mirror will have a 'core' log.
Example:
[root@bp-01 LVM2]# !lvs
lvs -a -o name,copy_percent,devices
  LV            Copy%  Devices
  lv            100.00 lv_mimage_0(0),lv_mimage_1(0),lv_mimage_2(0),lv_mimage_3(0)
  [lv_mimage_0]        /dev/sdb1(0)
  [lv_mimage_1]        /dev/sdc1(0)
  [lv_mimage_2]        /dev/sdd1(0)
  [lv_mimage_3]        /dev/sde1(0)
  [lv_mlog]            /dev/sdi1(0)
[root@bp-01 LVM2]# lvconvert --splitmirrors 2 --name split vg/lv /dev/sd[ce]1
  Logical volume lv converted.
[root@bp-01 LVM2]# !lvs
lvs -a -o name,copy_percent,devices
  LV               Copy%  Devices
  lv               100.00 lv_mimage_0(0),lv_mimage_2(0)
  [lv_mimage_0]           /dev/sdb1(0)
  [lv_mimage_2]           /dev/sdd1(0)
  [lv_mlog]               /dev/sdi1(0)
  split            100.00 split_mimage_0(0),split_mimage_1(0)
  [split_mimage_0]        /dev/sde1(0)
  [split_mimage_1]        /dev/sdc1(0)

It can be seen that '--splitmirror <n>' is exactly the same
as '--mirrors -<n>' (note the minus sign), except there is the
additional notion to keep the image being detached from the
mirror instead of just throwing it away.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
2010-01-08 22:00:31 +00:00
..
clvmd.8.in Document the -I option to clvmd 2009-07-30 13:32:38 +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 This patch adds the capability to split off a mirror legs. 2010-01-08 22:00:31 +00:00
lvcreate.8.in Update lvcreate/lvconvert man pages to explain PhysicalVolume parameter. 2009-10-26 13:41:13 +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 Update man pages to clarify usage of PE ranges. 2009-08-10 17:23:04 +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 '--noudevsync' -- update relevant man pages 2009-08-04 08:09:52 +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 Update man pages to clarify usage of PE ranges. 2009-08-10 17:23:04 +00:00
lvs.8.in Document --all option in man pages, cleanup {pv|vg|lv}{s|display} man pages. 2009-10-26 14:37:09 +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 Allow for a build directory separate from the source. 2009-10-02 19:10:31 +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