1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib
Jonathan Earl Brassow cbd41292a4 Taka's fix for handling failure of all mirrored log devices and
all but one mirror leg.

<patch header>
To handle a double failure of a mirrored log, Jon's two patches are
commited, however, lvconvert command can't still handle an error
when mirror leg and mirrored log got failure at the same time.

  [Patch]: Handle both devices of a mirrored log failing (bug 607347)
  posted: https://www.redhat.com/archives/lvm-devel/2010-July/msg00009.html
  commit: https://www.redhat.com/archives/lvm-devel/2010-July/msg00027.html

  [Patch]: Handle both devices of a mirrored log failing (bug 607347) -
           additional fix
  posted: https://www.redhat.com/archives/lvm-devel/2010-July/msg00093.html
  commit: https://www.redhat.com/archives/lvm-devel/2010-July/msg00101.html

In the second patch, the target type of mirrored log is replaced with
error target when remove_log is set to 1, but this procedure should be
also used in other cases such as the number of mirror leg is 1. This
patch relocates the procedure to the main path.

In addition, I added following three changes.

- Removed tmp_orphan_lvs handling procedure
  It seems that _delete_lv() can handle detached_log_lv properly
  without adding mirror legs in mirrored log to tmp_orphan_lvs.
  Therefore, I removed the procedure.

- Removed vg_write()/vg_commit()
  Metadata is saved by vg_write()/vg_commit() just after detached_log_lv
  is handled. Therefore, I removed vg_write()/vg_commit().

- With Jon's second patch, we think that we don't have to call
  remove_mirror_log() in _lv_update_mirrored_log() because will be
  handled remove_mirror_images() in _lvconvert_mirrors_repaire().
</patch header>

Signed-off-by: Takahiro Yasui <takahiro.yasui@hds.com>
Reviewed-by: Petr Rockai <prockai@redhat.com>
Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
2010-08-02 21:07:40 +00:00
..
activate Addendum for previous patch - show VG/LV name everywhere so the messages 2010-07-12 12:38:35 +00:00
cache Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
commands remove unneeded header 2010-07-02 10:25:16 +00:00
config Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
datastruct Remove unnecessary / duplicate dm_list macros and functions. 2009-11-25 20:44:07 +00:00
device Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
display Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
error Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
filters Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
format1 Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
format_pool Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
format_text Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
freeseg Fix reporting of LV fields alongside unallocated PV segments. 2008-06-25 16:52:27 +00:00
label Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
locking Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
log Various cleanups following recent commits. 2010-06-21 15:56:57 +00:00
metadata Taka's fix for handling failure of all mirrored log devices and 2010-08-02 21:07:40 +00:00
mirror Building without the '--enable-cmirrord' option means that 2010-07-21 15:21:24 +00:00
misc Change clvmd to communicate with lvm via a socket in /var/run/lvm. (mbroz) 2010-07-28 13:55:42 +00:00
mm Fix format string from patch apply mistake 2010-07-08 14:47:46 +00:00
replicator Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
report Clarify help text for vg_mda_count. 2010-07-21 19:44:25 +00:00
snapshot Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
striped Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
unknown Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
uuid Use log_error macro consistently throughout in place of log_err. 2009-07-15 20:02:46 +00:00
zero Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
Makefile.in Replicator: base lvm2 support 2010-05-21 12:36:30 +00:00