Implement degraded status for logical volumes
authorIustin Pop <iustin@google.com>
Tue, 6 Nov 2007 17:01:32 +0000 (17:01 +0000)
committerIustin Pop <iustin@google.com>
Tue, 6 Nov 2007 17:01:32 +0000 (17:01 +0000)
commit9db6dbceb6bca3af641b4b1595a68007a47f2c6f
tree9d7d0a07f1146a457bd4d5544255baac0da8f9df
parent0fbbf897ca1b56c189edf1a9effc9a9a7bdd6052
Implement degraded status for logical volumes

Logical volumes can be 'degraded' in a similar way to mirrored devices,
when their underlying storage has gone away (i.e. after a physical disk
failure and 'vgreduce --removemissing'). If we can detect this, we can
prevent mistaken replaces of disks that would use this LV (or its
parent) as source data.

This patch adds support for computing the degraded attribute and
modifies gnt-instance to warn if the LV is virtual.

Reviewed-by: imsnah
lib/bdev.py
scripts/gnt-instance