zpool-import
import ZFS storage pools or list available pools
- Provided by: zfsutils-linux (Version: 2.4.1-1ubuntu5)
- Source: zfs-linux
- Report a bug
import ZFS storage pools or list available pools
zpool |
import [-D]
[-d
dir|device]… |
zpool |
import -a
[-DflmN] [-F
[-nTX]]
[--rewind-to-checkpoint]
[-c
cachefile|-d
dir|device]
[-o mntopts]
[-o
property=value]…
[-R root] |
zpool |
import [-Dflmt]
[-F [-nTX]]
[--rewind-to-checkpoint]
[-c
cachefile|-d
dir|device]
[-o mntopts]
[-o
property=value]…
[-R root]
[-s]
pool|id
[newpool] |
zpool import
[-D] [-d
dir|device]…-d or
-c options are not specified, this command
searches for devices using libblkid on Linux and geom on
FreeBSD. The -d option can
be specified multiple times, and all directories are searched. If the
device appears to be part of an exported pool, this command displays a
summary of the pool with the name of the pool, a numeric identifier, as
well as the vdev layout and current health of the device for each device
or file. Destroyed pools, pools that were previously destroyed with the
zpool destroy command, are
not listed unless the -D option is specified.
The numeric identifier is unique, and can be used instead of the pool name when multiple exported pools of the same name are available.
-c
cachefile-d
dir|device-d option can
be specified multiple times.-Dzpool import
-a [-DflmN]
[-F [-nTX]]
[-c
cachefile|-d
dir|device]
[-o mntopts]
[-o
property=value]…
[-R root]
[-s]zpool
destroy command, will not be imported unless the
-D option is specified.
-a-c
cachefile-d
dir|device-d option can
be specified multiple times. This option is incompatible with the
-c option.-D-f option is
also required.-f-F-l-m-n-F recovery option. Determines
whether a non-importable pool can be made importable again, but does
not actually perform the pool recovery. For more details about pool
recovery mode, see the -F option, above.-N-o
mntopts-o
property=value-R
root--rewind-to-checkpoint-s-X-F recovery option. Determines
whether extreme measures to find a valid txg should take place. This
allows the pool to be rolled back to a txg which is no longer
guaranteed to be consistent. Pools imported at an inconsistent txg may
contain uncorrectable checksum errors. For more details about pool
recovery mode, see the -F option, above.
WARNING: This option can be extremely hazardous to the health of your
pool and should only be used as a last resort.-T-FX. For more details about pool recovery
mode, see the -X option, above. WARNING: This
option can be extremely hazardous to the health of your pool and
should only be used as a last resort.zpool import
[-Dflmt] [-F
[-nTX]] [-c
cachefile|-d
dir|device]
[-o mntopts]
[-o
property=value]…
[-R root]
[-s]
pool|id
[newpool]If a device is removed from a system without running
zpool export first, the
device appears as potentially active. It cannot be determined if this
was a failed export, or whether the device is really in use from another
host. To import a pool in this state, the -f
option is required.
-c
cachefile-d
dir|device-d option can
be specified multiple times. This option is incompatible with the
-c option.-D-f option is also
required.-f-F-l-m-n-F recovery option. Determines
whether a non-importable pool can be made importable again, but does
not actually perform the pool recovery. For more details about pool
recovery mode, see the -F option, above.-o
mntopts-o
property=value-R
root-s-X-F recovery option. Determines
whether extreme measures to find a valid txg should take place. This
allows the pool to be rolled back to a txg which is no longer
guaranteed to be consistent. Pools imported at an inconsistent txg may
contain uncorrectable checksum errors. For more details about pool
recovery mode, see the -F option, above.
WARNING: This option can be extremely hazardous to the health of your
pool and should only be used as a last resort.-T-FX. For more details about pool recovery
mode, see the -X option, above.
WARNING:
This option can be extremely hazardous to the health of your pool and
should only be used as a last resort.-t-o
cachefile=none when not explicitly
specified.The following command displays available pools, and then imports the pool tank for use on the system. The results from this command are similar to the following:
#zpoolimportpool: tank id: 15451357997522795478 state: ONLINE action: The pool can be imported using its name or numeric identifier. config: tank ONLINE mirror ONLINE sda ONLINE sdb ONLINE #zpoolimporttank