Skip to content

Add a function to return last scrub date for a pool. #18078

@SimonGreenaway

Description

@SimonGreenaway

Describe the feature you would like to see added to OpenZFS

Add 'zpool get lastscrub mypool' to return the last scrub timestamp in a suitable format.

This will allow incremental scrubs for versions >=2.4.0 by retrieving the last scrub date and starting an incremental scrub. It should also be possible to add a 'zpool autoscrub mypool' that scrubs from the last scrub date to the current time.

How will this feature improve OpenZFS?

Incremental scrubs will improving scrub times on large or slow datasets, this feature request would make it easier to use.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: FeatureFeature request or new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions