]> sourceware.org Git - lvm2.git/commit
activation: continue with autoactivation if refresh fails
authorPeter Rajnoha <prajnoha@redhat.com>
Wed, 27 Nov 2013 07:20:02 +0000 (08:20 +0100)
committerPeter Rajnoha <prajnoha@redhat.com>
Wed, 27 Nov 2013 07:20:02 +0000 (08:20 +0100)
commit729b104413e11412866a549ef8a6702f56c4acd1
treec31beaa64325e452bd2f4f13cc39dc098abbe01e
parent8d5cff5b9bb217942c009dca49d0bffb51e85004
activation: continue with autoactivation if refresh fails

If the refresh fails for any reason before autoactivation, let's not
make this a stopper for autoactivation itself - just log the error
message if it appears.

The reason is that in some rare situations, we can still hit the
problem with the suspend call to fail (as already described in
commit d8085edf65006a50608edb821b3d30947abaa838, also
https://bugzilla.redhat.com/show_bug.cgi?id=1027314). The refresh
itself is done for only one reason - to refresh any dm tables
for LVs for which the underlying PVs got unplugged/disconnected
and then plugged/connected back (see also
https://bugzilla.redhat.com/show_bug.cgi?id=954061 for more info).
In this case, the major:minor pair is changed and we need to
update dm tables for LVs accordingly.

Now if refresh fails, the error is still logged, but autoactivation
continues.
tools/pvscan.c
This page took 0.036371 seconds and 5 git commands to generate.