1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 03:27:58 +03:00
lvm2/lib
Jonathan Earl Brassow d0191bf9f4 Fix for bug 612291: dm devices of split off mirror images are not removed
DM devices were not handled properly on nodes in a cluster that were not
where the splitmirrors command was issued.  This was happening because
suspend_lv/resume_lv were being used in a place where activate_lv should
have been used.

When the suspend/resume are issued on (effectively) new LVs, their
'resource' (UUID) is not located in the lv_hash.  Thus, both operations
turn into no-ops.  You can see this from the output of clvmd from one
of the remote nodes:
<snip>
do_suspend_lv, lock not already held
<snip>
do_resume_lv, lock not already held

'activate_lv' enjoins the other nodes in the cluster to process the lock
and activate the new LV.  clvmd output from remote node as follows:
do_lock_lv: resource 'zMseY7CBuO3Ty09vXlplPAHzD0Y0CovjrTdv0R1VcwggMwPdYhutHErRcwm5Nd2S', cmd = 0x19 LCK_LV_ACTIVATE (READ|LV|NONBLOCK), flags = 0x84 (DMEVENTD_MONITOR ), memlock = 1
sync_lock: 'zMseY7CBuO3Ty09vXlplPAHzD0Y0CovjrTdv0R1VcwggMwPdYhutHErRcwm5Nd2S' mode:1 flags=1
sync_lock: returning lkid 27b0001

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Reviewed-by: Petr Rockai <prockai@redhat.com>
2010-08-16 18:02:14 +00:00
..
activate Never scan internal LVM devices. 2010-08-09 14:05:16 +00:00
cache Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
commands Recognise and give preference to md device partitions (blkext major). 2010-08-11 12:14:23 +00:00
config Change default alignment of pe_start to 1MB. 2010-08-12 04:11:48 +00:00
datastruct Remove unnecessary / duplicate dm_list macros and functions. 2009-11-25 20:44:07 +00:00
device Recognise and give preference to md device partitions (blkext major). 2010-08-11 12:14:23 +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 Recognise and give preference to md device partitions (blkext major). 2010-08-11 12:14:23 +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 Avoid changing aligned pe_start as a side-effect of very verbose logging. 2010-08-03 18:19:42 +00:00
freeseg
label Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
locking Use void parameter for function definition. 2010-08-03 13:06:35 +00:00
log Various cleanups following recent commits. 2010-06-21 15:56:57 +00:00
metadata Fix for bug 612291: dm devices of split off mirror images are not removed 2010-08-16 18:02:14 +00:00
mirror Reduce severity of the "mirror transient status" log message (this was never 2010-08-04 15:55:03 +00:00
misc Recognise and give preference to md device partitions (blkext major). 2010-08-11 12:14:23 +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