]> sourceware.org Git - lvm2.git/commit
Fix convert polling to ignore LV with different UUID.
authorMilan Broz <mbroz@redhat.com>
Mon, 1 Jun 2009 14:43:27 +0000 (14:43 +0000)
committerMilan Broz <mbroz@redhat.com>
Mon, 1 Jun 2009 14:43:27 +0000 (14:43 +0000)
commit8189910b5a57168f41118ff0a76b1faccecf479a
treee1e6447fb81216feb29c208e5f451fd41de63dcc
parentde317b8e01c227dfbf50c66e736606383801dfd2
Fix convert polling to ignore LV with different UUID.

When mirror convert polling is started (mainly as backgound process,
in lvchange -a y or in lvconvert itself) it tries to read VG
and LV identified by its name.

Unfortunatelly, the VG can have already different LV under the same name,
and various more or less funny things can happen (note that
_finish_lvconvert_mirror suspends the volume for example).

(the typical example is our testing script which continuously recreates
LVs under the same name in the same VG.)

This patch adds optional uuid parameter which helps to properly
select the monitoring object. For lvconvert polling it is set to LV UUID
and both _get_lvconvert_vg and _get_lvconvert_lv uses it to read proper VG/LV.

(In the pvmove case it is NULL, here we poll for physical volume name).
WHATS_NEW
lib/metadata/metadata-exported.h
lib/metadata/mirror.c
test/t-mirror-lvconvert.sh
tools/lvchange.c
tools/lvconvert.c
tools/polldaemon.c
tools/polldaemon.h
tools/pvmove.c
tools/tools.h
This page took 0.037678 seconds and 5 git commands to generate.