1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 20:25:52 +03:00
LVM2 mirror repository https://sourceware.org/lvm2/
Go to file
Milan Broz f72a06ccf7 Remove newly created log volume if initial deactivation fails.
If there is problem deactivate LV and
_init_mirror_log is called with remove_on_failure = 1,
remove the newly created log LV from metadata.

(This can happen if there is active device with the same name
but different UUID.)

The main reason for this "workaround" patch is to
 - do not keep _mlog volume in metadata, so user can repeat the action
 - print better error message describing the real problem

# lvcreate -m 2 -n lv1 -l 1 --nosync vg_bar
  WARNING: New mirror won't be synchronised. Don't read what you didn't write!
  /dev/vg_bar/lv1_mlog: not found: device not cleared
  Aborting. Failed to wipe mirror log.
  Error locking on node bar-01: Input/output error
  Unable to deactivate mirror log LV. Manual intervention required.
  Failed to create mirror log.

# lvcreate -m 2 -n lv1 -l 1 --nosync vg_bar
  WARNING: New mirror won't be synchronised. Don't read what you didn't write!
  Aborting. Unable to deactivate mirror log.
  Failed to initialise mirror log.
2009-12-09 18:09:52 +00:00
autoconf extended configure with --enable-profiling for compiling code with gcov info 2008-06-27 15:35:09 +00:00
daemons Log failure type and recognise type 'F' (flush) in dmeventd mirror plugin. 2009-11-25 15:59:07 +00:00
doc Optionally abort on internal errors (and leverage this option in the 2009-11-30 17:17:11 +00:00
include Allow for a build directory separate from the source. 2009-10-02 19:10:31 +00:00
lib Remove newly created log volume if initial deactivation fails. 2009-12-09 18:09:52 +00:00
libdm minor whitespace indentation 2009-12-03 09:58:30 +00:00
liblvm Rename pvcreate_params processing functions to better match <object><action>. 2009-11-01 19:51:54 +00:00
man . 2009-11-06 01:40:59 +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 Use locking_type 3 (compiled in cluster locking) in lvmconf. 2009-11-27 14:32:16 +00:00
test Add tests to check for readahead value in lvcreate. 2009-12-03 01:48:05 +00:00
tools Fix activated/deactivated log_verbose message 2009-12-07 19:32:28 +00:00
udev Disable udev rules on change event with DISK_RO=1. 2009-12-07 12:03:47 +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 Remove newly created log volume if initial deactivation fails. 2009-12-09 18:09:52 +00:00
WHATS_NEW_DM Disable udev rules on change event with DISK_RO=1. 2009-12-07 12:03:47 +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