Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A collection of patches for pool recovery #4186

Closed
wants to merge 2 commits into from

Commits on Sep 12, 2016

  1. Allow -F to regenerate missing vdev labels

    The per-vdev nvlist configuration information can be automatically
    regenerated given a valid zpool.cache file.  Extend the existing
    '-F' recovery option to add this behavior for missing or corrupt
    labels.
    
    Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
    behlendorf committed Sep 12, 2016
    Configuration menu
    Copy the full SHA
    edf6d84 View commit details
    Browse the repository at this point in the history
  2. Allow rollback to arbitrary txg

    This patch will disable the logic which prevents you from rolling
    back to an arbitrary txg.  Normally a txg which is older than the
    last label update cannot be used for import.  There is no way to
    know that the given txg is consistent with the current configuration.
    This should only be used as a last resort for pool recovery when
    you encounter the following failure mode.
    
    $ zpool import -o readonly=on -T 123456 tank
    cannot import 'tank': one or more devices is currently unavailable
    
    Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
    Issue openzfs#2452
    behlendorf committed Sep 12, 2016
    Configuration menu
    Copy the full SHA
    27ea1e7 View commit details
    Browse the repository at this point in the history