]> sourceware.org Git - lvm2.git/commit
autoactivation: refresh existing VG before autoactivation
authorPeter Rajnoha <prajnoha@redhat.com>
Wed, 14 Aug 2013 12:04:58 +0000 (14:04 +0200)
committerPeter Rajnoha <prajnoha@redhat.com>
Wed, 14 Aug 2013 12:04:58 +0000 (14:04 +0200)
commit82d83a01ce2cac77fec2e9b763061fbfb5f01ce8
tree63bd946a435b23721e171709ed05f5d0f0ae4e25
parentfcbb34bdccb21f0ed4c8fe990fdc68126f1cbf4f
autoactivation: refresh existing VG before autoactivation

When autoactivating a VG, there could be an existing VG with exactly
the same PV UUIDs. The PVs could be reappeared after previous
loss/disconnect (for example disconnecting and reconnecting iscsi).

Since there's no "autodeactivation" yet, the mappings for the LVs
from the VG were left in the system even if the device was disconnected.
These mappings also hold the major:minor of the underlying device.
So if the device reappears, it is assigned a different major:minor
pair (...and kernel name). We need to cope with this during
autoactivation so any existing mappings are corrected for any changes.
The VG refresh does that (the vgchange --refresh functionality) -
call this before VG autoactivation.

(If the VG does not exist yet, the VG refresh is NOP)
WHATS_NEW
tools/pvscan.c
This page took 0.039375 seconds and 5 git commands to generate.