zpool status -e
doesn't show drive being rebuilt
#16979
Labels
Type: Defect
Incorrect behavior (e.g. crash, hang)
zpool status -e
doesn't show drive being rebuilt
#16979
System information
Describe the problem you're observing
zpool status -e
does not display drives being resilveredA drive being resilvered will show
ONLINE
even though it is not fully rebuilt. Using the-e
option tozpool status
should show such drives.Describe how to reproduce the problem
In a pool with a drive that is resilvering, run
zpool status -e
and you will see the drive in question is not shown. In the following example, drive U0 is being resilvered in a 53-drive draid. Both the in-use distributed spare and U0 are hidden from view.By allowing vdevs with vs->vs_scan_processed > 0 to be shown, we can then see all drives participating in the resilver. (Note we should also show drives that have non-zero vs->vs_aux values.)
With the above patch, we now see the following with
zpool status -e
:This is an improvement over a plain
zpool status
because the full pool has 106 vdevs (split into two dRAIDs) and only the resilvering vdevs are shown. However, I believe this is not ready for merging because I would like to not see the other drives participating in the resilver (U2-U104); rather, just the drive that is primarily being rebuilt and the in-use spare that now accompanies it.Include any warning/errors/backtraces from the system logs
N/A
The text was updated successfully, but these errors were encountered: