diff options
author | George Wilson <[email protected]> | 2021-03-12 17:42:27 -0600 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-12 15:42:27 -0800 |
commit | 0936981d8698f0f05db69bb8efeb67fe5f810d2f (patch) | |
tree | 253d656a172ed0ecb4f76d2dd10fc749762c9871 /tests/runfiles/common.run | |
parent | b8fa03efbc721ee98ad9d5e0bf9ce6f72f2a8eb2 (diff) |
zpool import cachefile improvements
Importing a pool using the cachefile is ideal to reduce the time
required to import a pool. However, if the devices associated with
a pool in the cachefile have changed, then the import would fail.
This can easily be corrected by doing a normal import which would
then read the pool configuration from the labels.
The goal of this change is make importing using a cachefile more
resilient and auto-correcting. This is accomplished by having
the cachefile import logic automatically fallback to reading the
labels of the devices similar to a normal import. The main difference
between the fallback logic and a normal import is that the cachefile
import logic will only look at the device directories that were
originally used when the cachefile was populated. Additionally,
the fallback logic will always import by guid to ensure that only
the pools in the cachefile would be imported.
External-issue: DLPX-71980
Reviewed-by: Matthew Ahrens <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: George Wilson <[email protected]>
Closes #11716
Diffstat (limited to 'tests/runfiles/common.run')
-rw-r--r-- | tests/runfiles/common.run | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/runfiles/common.run b/tests/runfiles/common.run index fcb0fa6cd..895a5eeba 100644 --- a/tests/runfiles/common.run +++ b/tests/runfiles/common.run @@ -398,6 +398,7 @@ tests = ['zpool_import_001_pos', 'zpool_import_002_pos', 'import_cachefile_device_replaced', 'import_cachefile_mirror_attached', 'import_cachefile_mirror_detached', + 'import_cachefile_paths_changed', 'import_cachefile_shared_device', 'import_devices_missing', 'import_paths_changed', |