zfs/tests/zfs-tests/tests/functional/cli_root/zpool_import
George Wilson 0936981d86
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 <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: George Wilson <gwilson@delphix.com>
Closes #11716
2021-03-12 15:42:27 -08:00
..
blockfiles Detect and prevent mixed raw and non-raw sends 2019-03-13 11:00:43 -07:00
Makefile.am zpool import cachefile improvements 2021-03-12 15:42:27 -08:00
cleanup.ksh ZTS: Eliminate partitioning in zpool_import setup 2020-01-17 12:41:45 -08:00
import_cachefile_device_added.ksh Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
import_cachefile_device_removed.ksh ZTS: Fix import_cache_device_replaced 2018-08-18 21:16:12 -07:00
import_cachefile_device_replaced.ksh Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
import_cachefile_mirror_attached.ksh ZTS: Fix import_cache_device_replaced 2018-08-18 21:16:12 -07:00
import_cachefile_mirror_detached.ksh ZTS: Fix import_cache_device_replaced 2018-08-18 21:16:12 -07:00
import_cachefile_paths_changed.ksh zpool import cachefile improvements 2021-03-12 15:42:27 -08:00
import_cachefile_shared_device.ksh Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
import_devices_missing.ksh Fix shebangs on import tests 2018-05-11 12:37:44 -07:00
import_paths_changed.ksh Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
import_rewind_config_changed.ksh Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
import_rewind_device_replaced.ksh Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
setup.ksh Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
zpool_import.cfg Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
zpool_import.kshlib Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
zpool_import_001_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zpool_import_002_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zpool_import_003_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zpool_import_004_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zpool_import_005_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zpool_import_006_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zpool_import_007_pos.ksh Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
zpool_import_008_pos.ksh Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
zpool_import_009_neg.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zpool_import_010_pos.ksh Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
zpool_import_011_neg.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zpool_import_012_pos.ksh ZTS: Retry export/destroy when busy in zpool_import_012 2020-05-27 17:18:06 -07:00
zpool_import_013_neg.ksh ZTS: Misc fixes for FreeBSD 2020-02-25 16:23:27 -08:00
zpool_import_014_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zpool_import_015_pos.ksh zpool import -d to specify device path 2018-01-26 10:49:46 -08:00
zpool_import_016_pos.ksh Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
zpool_import_017_pos.ksh Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
zpool_import_all_001_pos.ksh Fix some ZFS Test Suite issues 2017-09-25 10:32:34 -07:00
zpool_import_encrypted.ksh Native Encryption for ZFS on Linux 2017-08-14 10:36:48 -07:00
zpool_import_encrypted_load.ksh Native Encryption for ZFS on Linux 2017-08-14 10:36:48 -07:00
zpool_import_errata3.ksh Better user experience for errata 4 2019-03-14 16:48:30 -07:00
zpool_import_errata4.ksh ZTS: Catalog tunable names for tests in tunables.cfg 2020-01-14 14:57:28 -08:00
zpool_import_features_001_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zpool_import_features_002_neg.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zpool_import_features_003_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zpool_import_missing_001_pos.ksh Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
zpool_import_missing_002_pos.ksh Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
zpool_import_missing_003_pos.ksh Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
zpool_import_rename_001_pos.ksh Fix some ZFS Test Suite issues 2017-09-25 10:32:34 -07:00