OpenSolaris

Printable Version Enter a New Search
Bug ID 6878281
Synopsis zpool should store the time of last scrub/resilver and other zpool status info in pool properties.
State 1-Dispatched (Default State)
Category:Subcategory kernel:zfs
Keywords
Reported Against osol_2009.06
Duplicate Of
Introduced In
Commit to Fix
Fixed In
Release Fixed
Related Bugs
Submit Date 2-September-2009
Last Update Date 11-November-2009
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.
Work Around
Write a script that regularly parses "zpool status" output and stores data in the pool's root ZFS filesystem properties.
Comments
N/A