diff options
author | GeLiXin <[email protected]> | 2016-08-09 17:49:51 +0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-08-12 13:46:51 -0700 |
commit | e35c5a8265e791d5856ef24e567cde5879844dc5 (patch) | |
tree | 921ba45da10bbfc0f938ff1da29b458a80a1835d /man/man5 | |
parent | fb390aafc8338c62115e611dbe1917bbe7435eef (diff) |
Fix incorrect pool state after import
Import a raidz pool which has a vdev with a bad label, zpool status
shows the right state of the dev, but the wrong state of the pool.
The pool state should be DEGRADED, not ONLINE.
We examine the label in vdev_validate while in spa_load_impl, the bad
label can be detected but doesn't propagate its state to the parent.
There are other chances to propagate state in the following vdev_load
if we failed to load DTL, but our pool is raidz1 which can tolerate a
faulted disk. So we lost the last chance to correct the pool state.
Propagate the leaf vdev's state to parent if its label was corrupted,
as is done elsewhere in vdev_validate.
Signed-off-by: GeLiXin <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Signed-off-by: Don Brady <[email protected]>
Closes #4948
Diffstat (limited to 'man/man5')
0 files changed, 0 insertions, 0 deletions