1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
LVM2 mirror repository https://sourceware.org/lvm2/
Go to file
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
autoconf extended configure with --enable-profiling for compiling code with gcov info 2008-06-27 15:35:09 +00:00
daemons Remove empty "repaired" devices if empty in lvconvert. 2010-01-06 13:26:21 +00:00
doc Add activation/udev_rules config option in lvm.conf. 2010-01-07 19:54:21 +00:00
include Allow for a build directory separate from the source. 2009-10-02 19:10:31 +00:00
lib This patch adds the capability to split off a mirror legs. 2010-01-08 22:00:31 +00:00
libdm Add activation/udev_rules config option in lvm.conf. 2010-01-07 19:54:21 +00:00
liblvm Rename pvcreate_params processing functions to better match <object><action>. 2009-11-01 19:51:54 +00:00
man This patch adds the capability to split off a mirror legs. 2010-01-08 22:00:31 +00:00
old-tests Allow for a build directory separate from the source. 2009-10-02 19:10:31 +00:00
po Allow for a build directory separate from the source. 2009-10-02 19:10:31 +00:00
scripts Add a [--poll {y|n}] flag to vgchange and lvchange to control whether 2010-01-05 20:56:51 +00:00
test In lvconvert --repair --use-policies, for the allocate policies, return success 2010-01-08 13:04:10 +00:00
tools This patch adds the capability to split off a mirror legs. 2010-01-08 22:00:31 +00:00
udev Always set environment variables for an LVM2 device in 11-dm-lvm.rules. 2010-01-07 20:01:55 +00:00
configure configure.in: don't set default file owner and group 2009-10-14 04:10:41 +00:00
configure.in configure.in: don't set default file owner and group 2009-10-14 04:10:41 +00:00
COPYING Outline docs 2001-12-31 16:12:40 +00:00
COPYING.LIB Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
INSTALL quick review of docs 2008-11-04 17:49:22 +00:00
make.tmpl.in linking parms missing from o->so conversion. 2009-10-09 15:55:31 +00:00
Makefile.in Allow for a build directory separate from the source. 2009-10-02 19:10:31 +00:00
README quick review of docs 2008-11-04 17:49:22 +00:00
VERSION Post-release. 2009-11-24 19:04:23 +00:00
VERSION_DM Post-release. 2009-11-24 19:04:23 +00:00
WHATS_NEW Change background polldaemon's process name to "(lvm2)". 2010-01-08 21:53:07 +00:00
WHATS_NEW_DM Add activation/udev_rules config option in lvm.conf. 2010-01-07 19:54:21 +00:00

This tree contains the LVM2 and device-mapper tools and libraries.

For more information about LVM2 read the changelog in the WHATS_NEW file.
Installation instructions are in INSTALL.

There is no warranty - see COPYING and COPYING.LIB.

Tarballs are available from:
  ftp://sources.redhat.com/pub/lvm2/

To access the CVS tree use:
  cvs -d :pserver:cvs@sources.redhat.com:/cvs/lvm2 login
  CVS password: cvs
  cvs -d :pserver:cvs@sources.redhat.com:/cvs/lvm2 co LVM2

Mailing list for general discussion related to LVM2:
  linux-lvm@redhat.com
  Subscribe from https://www.redhat.com/mailman/listinfo/linux-lvm

Mailing list for LVM2 development, patches and commits:
  lvm-devel@redhat.com
  Subscribe from https://www.redhat.com/mailman/listinfo/linux-lvm

Mailing list for device-mapper development, including kernel patches
and multipath-tools:
  dm-devel@redhat.com
  Subscribe from https://www.redhat.com/mailman/listinfo/dm-devel