|
Description
|
The "zpool status" command displays the time of the last scrub/resilver, if it is known.
But this information is not stored persistently: Once the pool is exported/imported or the system rebooted, this information is lost.
Since knowning the time of last scrub/resilver is a useful information (for example it can be used to plan regular scrubs), this should be stored in a pool property.
When implementing this feature, it should support a "-p" flag so scripts can access the time of last scrub programmatically without the need to parse date strings that were made for humans, like the output of "zpool scrub".
While we're at it: Any information that is displayed through "zpool status" should really be accessible as pool properties so they can be properly parsed by scripts. This would include a distinction whether the time refers to a scrub or a resilver operation, the current vdev hierarchy and any read/write checksum error values etc.
|