]> 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)
commit31f55a07dbf5e0ce93f8448622d43f78ca43d5ce
treee1e6447fb81216feb29c208e5f451fd41de63dcc
parent59d06d4dc76965911d7273e9cab022b414c47b00
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.03984 seconds and 5 git commands to generate.