xref: /freebsd/sys/contrib/openzfs/man/man8/zpool-import.8 (revision 61145dc2b94f12f6a47344fb9aac702321880e43)
1*61145dc2SMartin Matuska.\" SPDX-License-Identifier: CDDL-1.0
2eda14cbcSMatt Macy.\"
3eda14cbcSMatt Macy.\" CDDL HEADER START
4eda14cbcSMatt Macy.\"
5eda14cbcSMatt Macy.\" The contents of this file are subject to the terms of the
6eda14cbcSMatt Macy.\" Common Development and Distribution License (the "License").
7eda14cbcSMatt Macy.\" You may not use this file except in compliance with the License.
8eda14cbcSMatt Macy.\"
9eda14cbcSMatt Macy.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10271171e0SMartin Matuska.\" or https://opensource.org/licenses/CDDL-1.0.
11eda14cbcSMatt Macy.\" See the License for the specific language governing permissions
12eda14cbcSMatt Macy.\" and limitations under the License.
13eda14cbcSMatt Macy.\"
14eda14cbcSMatt Macy.\" When distributing Covered Code, include this CDDL HEADER in each
15eda14cbcSMatt Macy.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16eda14cbcSMatt Macy.\" If applicable, add the following below this CDDL HEADER, with the
17eda14cbcSMatt Macy.\" fields enclosed by brackets "[]" replaced with your own identifying
18eda14cbcSMatt Macy.\" information: Portions Copyright [yyyy] [name of copyright owner]
19eda14cbcSMatt Macy.\"
20eda14cbcSMatt Macy.\" CDDL HEADER END
21eda14cbcSMatt Macy.\"
22eda14cbcSMatt Macy.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
23eda14cbcSMatt Macy.\" Copyright (c) 2012, 2018 by Delphix. All rights reserved.
24eda14cbcSMatt Macy.\" Copyright (c) 2012 Cyril Plisko. All Rights Reserved.
25eda14cbcSMatt Macy.\" Copyright (c) 2017 Datto Inc.
26eda14cbcSMatt Macy.\" Copyright (c) 2018 George Melikov. All Rights Reserved.
27eda14cbcSMatt Macy.\" Copyright 2017 Nexenta Systems, Inc.
28eda14cbcSMatt Macy.\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved.
29eda14cbcSMatt Macy.\"
30da5137abSMartin Matuska.Dd March 16, 2022
31eda14cbcSMatt Macy.Dt ZPOOL-IMPORT 8
32eda14cbcSMatt Macy.Os
3316038816SMartin Matuska.
34eda14cbcSMatt Macy.Sh NAME
357877fdebSMatt Macy.Nm zpool-import
3616038816SMartin Matuska.Nd import ZFS storage pools or list available pools
37eda14cbcSMatt Macy.Sh SYNOPSIS
387877fdebSMatt Macy.Nm zpool
39eda14cbcSMatt Macy.Cm import
40eda14cbcSMatt Macy.Op Fl D
4116038816SMartin Matuska.Oo Fl d Ar dir Ns | Ns Ar device Oc Ns …
427877fdebSMatt Macy.Nm zpool
43eda14cbcSMatt Macy.Cm import
44eda14cbcSMatt Macy.Fl a
45eda14cbcSMatt Macy.Op Fl DflmN
4616038816SMartin Matuska.Op Fl F Op Fl nTX
47eda14cbcSMatt Macy.Op Fl -rewind-to-checkpoint
4816038816SMartin Matuska.Op Fl c Ar cachefile Ns | Ns Fl d Ar dir Ns | Ns Ar device
49eda14cbcSMatt Macy.Op Fl o Ar mntopts
5016038816SMartin Matuska.Oo Fl o Ar property Ns = Ns Ar value Oc Ns …
51eda14cbcSMatt Macy.Op Fl R Ar root
527877fdebSMatt Macy.Nm zpool
53eda14cbcSMatt Macy.Cm import
5416038816SMartin Matuska.Op Fl Dflmt
5516038816SMartin Matuska.Op Fl F Op Fl nTX
56eda14cbcSMatt Macy.Op Fl -rewind-to-checkpoint
5716038816SMartin Matuska.Op Fl c Ar cachefile Ns | Ns Fl d Ar dir Ns | Ns Ar device
58eda14cbcSMatt Macy.Op Fl o Ar mntopts
5916038816SMartin Matuska.Oo Fl o Ar property Ns = Ns Ar value Oc Ns …
60eda14cbcSMatt Macy.Op Fl R Ar root
61eda14cbcSMatt Macy.Op Fl s
62eda14cbcSMatt Macy.Ar pool Ns | Ns Ar id
6316038816SMartin Matuska.Op Ar newpool
6416038816SMartin Matuska.
65eda14cbcSMatt Macy.Sh DESCRIPTION
66eda14cbcSMatt Macy.Bl -tag -width Ds
67eda14cbcSMatt Macy.It Xo
687877fdebSMatt Macy.Nm zpool
69eda14cbcSMatt Macy.Cm import
70eda14cbcSMatt Macy.Op Fl D
7116038816SMartin Matuska.Oo Fl d Ar dir Ns | Ns Ar device Oc Ns …
72eda14cbcSMatt Macy.Xc
73eda14cbcSMatt MacyLists pools available to import.
74eda14cbcSMatt MacyIf the
75716fd348SMartin Matuska.Fl d
76716fd348SMartin Matuskaor
77eda14cbcSMatt Macy.Fl c
78eda14cbcSMatt Macyoptions are not specified, this command searches for devices using libblkid
7916038816SMartin Matuskaon Linux and geom on
8016038816SMartin Matuska.Fx .
81eda14cbcSMatt MacyThe
82eda14cbcSMatt Macy.Fl d
83eda14cbcSMatt Macyoption can be specified multiple times, and all directories are searched.
84eda14cbcSMatt MacyIf the device appears to be part of an exported pool, this command displays a
85eda14cbcSMatt Macysummary of the pool with the name of the pool, a numeric identifier, as well as
86eda14cbcSMatt Macythe vdev layout and current health of the device for each device or file.
87eda14cbcSMatt MacyDestroyed pools, pools that were previously destroyed with the
88eda14cbcSMatt Macy.Nm zpool Cm destroy
89eda14cbcSMatt Macycommand, are not listed unless the
90eda14cbcSMatt Macy.Fl D
91eda14cbcSMatt Macyoption is specified.
92eda14cbcSMatt Macy.Pp
93eda14cbcSMatt MacyThe numeric identifier is unique, and can be used instead of the pool name when
94eda14cbcSMatt Macymultiple exported pools of the same name are available.
95eda14cbcSMatt Macy.Bl -tag -width Ds
96eda14cbcSMatt Macy.It Fl c Ar cachefile
97eda14cbcSMatt MacyReads configuration from the given
98eda14cbcSMatt Macy.Ar cachefile
99eda14cbcSMatt Macythat was created with the
100eda14cbcSMatt Macy.Sy cachefile
101eda14cbcSMatt Macypool property.
102eda14cbcSMatt MacyThis
103eda14cbcSMatt Macy.Ar cachefile
104eda14cbcSMatt Macyis used instead of searching for devices.
105eda14cbcSMatt Macy.It Fl d Ar dir Ns | Ns Ar device
106eda14cbcSMatt MacyUses
107eda14cbcSMatt Macy.Ar device
108eda14cbcSMatt Macyor searches for devices or files in
109eda14cbcSMatt Macy.Ar dir .
110eda14cbcSMatt MacyThe
111eda14cbcSMatt Macy.Fl d
112eda14cbcSMatt Macyoption can be specified multiple times.
113eda14cbcSMatt Macy.It Fl D
114eda14cbcSMatt MacyLists destroyed pools only.
115eda14cbcSMatt Macy.El
116eda14cbcSMatt Macy.It Xo
1177877fdebSMatt Macy.Nm zpool
118eda14cbcSMatt Macy.Cm import
119eda14cbcSMatt Macy.Fl a
120eda14cbcSMatt Macy.Op Fl DflmN
12116038816SMartin Matuska.Op Fl F Op Fl nTX
12216038816SMartin Matuska.Op Fl c Ar cachefile Ns | Ns Fl d Ar dir Ns | Ns Ar device
123eda14cbcSMatt Macy.Op Fl o Ar mntopts
12416038816SMartin Matuska.Oo Fl o Ar property Ns = Ns Ar value Oc Ns …
125eda14cbcSMatt Macy.Op Fl R Ar root
126eda14cbcSMatt Macy.Op Fl s
127eda14cbcSMatt Macy.Xc
128eda14cbcSMatt MacyImports all pools found in the search directories.
129eda14cbcSMatt MacyIdentical to the previous command, except that all pools with a sufficient
130eda14cbcSMatt Macynumber of devices available are imported.
131eda14cbcSMatt MacyDestroyed pools, pools that were previously destroyed with the
132eda14cbcSMatt Macy.Nm zpool Cm destroy
133eda14cbcSMatt Macycommand, will not be imported unless the
134eda14cbcSMatt Macy.Fl D
135eda14cbcSMatt Macyoption is specified.
136eda14cbcSMatt Macy.Bl -tag -width Ds
137eda14cbcSMatt Macy.It Fl a
138eda14cbcSMatt MacySearches for and imports all pools found.
139eda14cbcSMatt Macy.It Fl c Ar cachefile
140eda14cbcSMatt MacyReads configuration from the given
141eda14cbcSMatt Macy.Ar cachefile
142eda14cbcSMatt Macythat was created with the
143eda14cbcSMatt Macy.Sy cachefile
144eda14cbcSMatt Macypool property.
145eda14cbcSMatt MacyThis
146eda14cbcSMatt Macy.Ar cachefile
147eda14cbcSMatt Macyis used instead of searching for devices.
148eda14cbcSMatt Macy.It Fl d Ar dir Ns | Ns Ar device
149eda14cbcSMatt MacyUses
150eda14cbcSMatt Macy.Ar device
151eda14cbcSMatt Macyor searches for devices or files in
152eda14cbcSMatt Macy.Ar dir .
153eda14cbcSMatt MacyThe
154eda14cbcSMatt Macy.Fl d
155eda14cbcSMatt Macyoption can be specified multiple times.
156eda14cbcSMatt MacyThis option is incompatible with the
157eda14cbcSMatt Macy.Fl c
158eda14cbcSMatt Macyoption.
159eda14cbcSMatt Macy.It Fl D
160eda14cbcSMatt MacyImports destroyed pools only.
161eda14cbcSMatt MacyThe
162eda14cbcSMatt Macy.Fl f
163eda14cbcSMatt Macyoption is also required.
164eda14cbcSMatt Macy.It Fl f
165eda14cbcSMatt MacyForces import, even if the pool appears to be potentially active.
166eda14cbcSMatt Macy.It Fl F
167eda14cbcSMatt MacyRecovery mode for a non-importable pool.
168eda14cbcSMatt MacyAttempt to return the pool to an importable state by discarding the last few
169eda14cbcSMatt Macytransactions.
170eda14cbcSMatt MacyNot all damaged pools can be recovered by using this option.
171eda14cbcSMatt MacyIf successful, the data from the discarded transactions is irretrievably lost.
172eda14cbcSMatt MacyThis option is ignored if the pool is importable or already imported.
173eda14cbcSMatt Macy.It Fl l
174eda14cbcSMatt MacyIndicates that this command will request encryption keys for all encrypted
17516038816SMartin Matuskadatasets it attempts to mount as it is bringing the pool online.
17616038816SMartin MatuskaNote that if any datasets have a
177eda14cbcSMatt Macy.Sy keylocation
178eda14cbcSMatt Macyof
179eda14cbcSMatt Macy.Sy prompt
18016038816SMartin Matuskathis command will block waiting for the keys to be entered.
18116038816SMartin MatuskaWithout this flag
182eda14cbcSMatt Macyencrypted datasets will be left unavailable until the keys are loaded.
183eda14cbcSMatt Macy.It Fl m
184eda14cbcSMatt MacyAllows a pool to import when there is a missing log device.
185eda14cbcSMatt MacyRecent transactions can be lost because the log device will be discarded.
186eda14cbcSMatt Macy.It Fl n
187eda14cbcSMatt MacyUsed with the
188eda14cbcSMatt Macy.Fl F
189eda14cbcSMatt Macyrecovery option.
190eda14cbcSMatt MacyDetermines whether a non-importable pool can be made importable again, but does
191eda14cbcSMatt Macynot actually perform the pool recovery.
192eda14cbcSMatt MacyFor more details about pool recovery mode, see the
193eda14cbcSMatt Macy.Fl F
194eda14cbcSMatt Macyoption, above.
195eda14cbcSMatt Macy.It Fl N
196eda14cbcSMatt MacyImport the pool without mounting any file systems.
197eda14cbcSMatt Macy.It Fl o Ar mntopts
198eda14cbcSMatt MacyComma-separated list of mount options to use when mounting datasets within the
199eda14cbcSMatt Macypool.
200eda14cbcSMatt MacySee
201eda14cbcSMatt Macy.Xr zfs 8
202eda14cbcSMatt Macyfor a description of dataset properties and mount options.
203eda14cbcSMatt Macy.It Fl o Ar property Ns = Ns Ar value
204eda14cbcSMatt MacySets the specified property on the imported pool.
205eda14cbcSMatt MacySee the
2063ff01b23SMartin Matuska.Xr zpoolprops 7
207eda14cbcSMatt Macymanual page for more information on the available pool properties.
208eda14cbcSMatt Macy.It Fl R Ar root
209eda14cbcSMatt MacySets the
210eda14cbcSMatt Macy.Sy cachefile
211eda14cbcSMatt Macyproperty to
212eda14cbcSMatt Macy.Sy none
213eda14cbcSMatt Macyand the
214eda14cbcSMatt Macy.Sy altroot
215eda14cbcSMatt Macyproperty to
216eda14cbcSMatt Macy.Ar root .
217eda14cbcSMatt Macy.It Fl -rewind-to-checkpoint
218eda14cbcSMatt MacyRewinds pool to the checkpointed state.
219eda14cbcSMatt MacyOnce the pool is imported with this flag there is no way to undo the rewind.
220eda14cbcSMatt MacyAll changes and data that were written after the checkpoint are lost!
221eda14cbcSMatt MacyThe only exception is when the
222eda14cbcSMatt Macy.Sy readonly
223eda14cbcSMatt Macymounting option is enabled.
224eda14cbcSMatt MacyIn this case, the checkpointed state of the pool is opened and an
225eda14cbcSMatt Macyadministrator can see how the pool would look like if they were
226eda14cbcSMatt Macyto fully rewind.
227eda14cbcSMatt Macy.It Fl s
228eda14cbcSMatt MacyScan using the default search path, the libblkid cache will not be
22916038816SMartin Matuskaconsulted.
23016038816SMartin MatuskaA custom search path may be specified by setting the
23116038816SMartin Matuska.Sy ZPOOL_IMPORT_PATH
23216038816SMartin Matuskaenvironment variable.
233eda14cbcSMatt Macy.It Fl X
234eda14cbcSMatt MacyUsed with the
235eda14cbcSMatt Macy.Fl F
23616038816SMartin Matuskarecovery option.
23716038816SMartin MatuskaDetermines whether extreme measures to find a valid txg should take place.
23816038816SMartin MatuskaThis allows the pool to
239eda14cbcSMatt Macybe rolled back to a txg which is no longer guaranteed to be consistent.
24016038816SMartin MatuskaPools imported at an inconsistent txg may contain uncorrectable checksum errors.
24116038816SMartin MatuskaFor more details about pool recovery mode, see the
242eda14cbcSMatt Macy.Fl F
24316038816SMartin Matuskaoption, above.
24416038816SMartin MatuskaWARNING: This option can be extremely hazardous to the
245eda14cbcSMatt Macyhealth of your pool and should only be used as a last resort.
246eda14cbcSMatt Macy.It Fl T
24716038816SMartin MatuskaSpecify the txg to use for rollback.
24816038816SMartin MatuskaImplies
249eda14cbcSMatt Macy.Fl FX .
250eda14cbcSMatt MacyFor more details
251eda14cbcSMatt Macyabout pool recovery mode, see the
252eda14cbcSMatt Macy.Fl X
25316038816SMartin Matuskaoption, above.
25416038816SMartin MatuskaWARNING: This option can be extremely hazardous to the
255eda14cbcSMatt Macyhealth of your pool and should only be used as a last resort.
256eda14cbcSMatt Macy.El
257eda14cbcSMatt Macy.It Xo
2587877fdebSMatt Macy.Nm zpool
259eda14cbcSMatt Macy.Cm import
26016038816SMartin Matuska.Op Fl Dflmt
26116038816SMartin Matuska.Op Fl F Op Fl nTX
26216038816SMartin Matuska.Op Fl c Ar cachefile Ns | Ns Fl d Ar dir Ns | Ns Ar device
263eda14cbcSMatt Macy.Op Fl o Ar mntopts
26416038816SMartin Matuska.Oo Fl o Ar property Ns = Ns Ar value Oc Ns …
265eda14cbcSMatt Macy.Op Fl R Ar root
266eda14cbcSMatt Macy.Op Fl s
267eda14cbcSMatt Macy.Ar pool Ns | Ns Ar id
268eda14cbcSMatt Macy.Op Ar newpool
269eda14cbcSMatt Macy.Xc
270eda14cbcSMatt MacyImports a specific pool.
271eda14cbcSMatt MacyA pool can be identified by its name or the numeric identifier.
272eda14cbcSMatt MacyIf
273eda14cbcSMatt Macy.Ar newpool
274eda14cbcSMatt Macyis specified, the pool is imported using the name
275eda14cbcSMatt Macy.Ar newpool .
276eda14cbcSMatt MacyOtherwise, it is imported with the same name as its exported name.
277eda14cbcSMatt Macy.Pp
278eda14cbcSMatt MacyIf a device is removed from a system without running
279eda14cbcSMatt Macy.Nm zpool Cm export
280eda14cbcSMatt Macyfirst, the device appears as potentially active.
281eda14cbcSMatt MacyIt cannot be determined if this was a failed export, or whether the device is
282eda14cbcSMatt Macyreally in use from another host.
283eda14cbcSMatt MacyTo import a pool in this state, the
284eda14cbcSMatt Macy.Fl f
285eda14cbcSMatt Macyoption is required.
286eda14cbcSMatt Macy.Bl -tag -width Ds
287eda14cbcSMatt Macy.It Fl c Ar cachefile
288eda14cbcSMatt MacyReads configuration from the given
289eda14cbcSMatt Macy.Ar cachefile
290eda14cbcSMatt Macythat was created with the
291eda14cbcSMatt Macy.Sy cachefile
292eda14cbcSMatt Macypool property.
293eda14cbcSMatt MacyThis
294eda14cbcSMatt Macy.Ar cachefile
295eda14cbcSMatt Macyis used instead of searching for devices.
296eda14cbcSMatt Macy.It Fl d Ar dir Ns | Ns Ar device
297eda14cbcSMatt MacyUses
298eda14cbcSMatt Macy.Ar device
299eda14cbcSMatt Macyor searches for devices or files in
300eda14cbcSMatt Macy.Ar dir .
301eda14cbcSMatt MacyThe
302eda14cbcSMatt Macy.Fl d
303eda14cbcSMatt Macyoption can be specified multiple times.
304eda14cbcSMatt MacyThis option is incompatible with the
305eda14cbcSMatt Macy.Fl c
306eda14cbcSMatt Macyoption.
307eda14cbcSMatt Macy.It Fl D
308eda14cbcSMatt MacyImports destroyed pool.
309eda14cbcSMatt MacyThe
310eda14cbcSMatt Macy.Fl f
311eda14cbcSMatt Macyoption is also required.
312eda14cbcSMatt Macy.It Fl f
313eda14cbcSMatt MacyForces import, even if the pool appears to be potentially active.
314eda14cbcSMatt Macy.It Fl F
315eda14cbcSMatt MacyRecovery mode for a non-importable pool.
316eda14cbcSMatt MacyAttempt to return the pool to an importable state by discarding the last few
317eda14cbcSMatt Macytransactions.
318eda14cbcSMatt MacyNot all damaged pools can be recovered by using this option.
319eda14cbcSMatt MacyIf successful, the data from the discarded transactions is irretrievably lost.
320eda14cbcSMatt MacyThis option is ignored if the pool is importable or already imported.
321eda14cbcSMatt Macy.It Fl l
322eda14cbcSMatt MacyIndicates that this command will request encryption keys for all encrypted
32316038816SMartin Matuskadatasets it attempts to mount as it is bringing the pool online.
32416038816SMartin MatuskaNote that if any datasets have a
325eda14cbcSMatt Macy.Sy keylocation
326eda14cbcSMatt Macyof
327eda14cbcSMatt Macy.Sy prompt
32816038816SMartin Matuskathis command will block waiting for the keys to be entered.
32916038816SMartin MatuskaWithout this flag
330eda14cbcSMatt Macyencrypted datasets will be left unavailable until the keys are loaded.
331eda14cbcSMatt Macy.It Fl m
332eda14cbcSMatt MacyAllows a pool to import when there is a missing log device.
333eda14cbcSMatt MacyRecent transactions can be lost because the log device will be discarded.
334eda14cbcSMatt Macy.It Fl n
335eda14cbcSMatt MacyUsed with the
336eda14cbcSMatt Macy.Fl F
337eda14cbcSMatt Macyrecovery option.
338eda14cbcSMatt MacyDetermines whether a non-importable pool can be made importable again, but does
339eda14cbcSMatt Macynot actually perform the pool recovery.
340eda14cbcSMatt MacyFor more details about pool recovery mode, see the
341eda14cbcSMatt Macy.Fl F
342eda14cbcSMatt Macyoption, above.
343eda14cbcSMatt Macy.It Fl o Ar mntopts
344eda14cbcSMatt MacyComma-separated list of mount options to use when mounting datasets within the
345eda14cbcSMatt Macypool.
346eda14cbcSMatt MacySee
347eda14cbcSMatt Macy.Xr zfs 8
348eda14cbcSMatt Macyfor a description of dataset properties and mount options.
349eda14cbcSMatt Macy.It Fl o Ar property Ns = Ns Ar value
350eda14cbcSMatt MacySets the specified property on the imported pool.
351eda14cbcSMatt MacySee the
3523ff01b23SMartin Matuska.Xr zpoolprops 7
353eda14cbcSMatt Macymanual page for more information on the available pool properties.
354eda14cbcSMatt Macy.It Fl R Ar root
355eda14cbcSMatt MacySets the
356eda14cbcSMatt Macy.Sy cachefile
357eda14cbcSMatt Macyproperty to
358eda14cbcSMatt Macy.Sy none
359eda14cbcSMatt Macyand the
360eda14cbcSMatt Macy.Sy altroot
361eda14cbcSMatt Macyproperty to
362eda14cbcSMatt Macy.Ar root .
363eda14cbcSMatt Macy.It Fl s
364eda14cbcSMatt MacyScan using the default search path, the libblkid cache will not be
36516038816SMartin Matuskaconsulted.
36616038816SMartin MatuskaA custom search path may be specified by setting the
36716038816SMartin Matuska.Sy ZPOOL_IMPORT_PATH
36816038816SMartin Matuskaenvironment variable.
369eda14cbcSMatt Macy.It Fl X
370eda14cbcSMatt MacyUsed with the
371eda14cbcSMatt Macy.Fl F
37216038816SMartin Matuskarecovery option.
37316038816SMartin MatuskaDetermines whether extreme measures to find a valid txg should take place.
37416038816SMartin MatuskaThis allows the pool to
375eda14cbcSMatt Macybe rolled back to a txg which is no longer guaranteed to be consistent.
376eda14cbcSMatt MacyPools imported at an inconsistent txg may contain uncorrectable
37716038816SMartin Matuskachecksum errors.
37816038816SMartin MatuskaFor more details about pool recovery mode, see the
379eda14cbcSMatt Macy.Fl F
38016038816SMartin Matuskaoption, above.
38116038816SMartin MatuskaWARNING: This option can be extremely hazardous to the
382eda14cbcSMatt Macyhealth of your pool and should only be used as a last resort.
383eda14cbcSMatt Macy.It Fl T
38416038816SMartin MatuskaSpecify the txg to use for rollback.
38516038816SMartin MatuskaImplies
386eda14cbcSMatt Macy.Fl FX .
387eda14cbcSMatt MacyFor more details
388eda14cbcSMatt Macyabout pool recovery mode, see the
389eda14cbcSMatt Macy.Fl X
39016038816SMartin Matuskaoption, above.
391c03c5b1cSMartin Matuska.Em WARNING :
392c03c5b1cSMartin MatuskaThis option can be extremely hazardous to the
393eda14cbcSMatt Macyhealth of your pool and should only be used as a last resort.
394eda14cbcSMatt Macy.It Fl t
395eda14cbcSMatt MacyUsed with
396c03c5b1cSMartin Matuska.Ar newpool .
397eda14cbcSMatt MacySpecifies that
398c03c5b1cSMartin Matuska.Ar newpool
39916038816SMartin Matuskais temporary.
40016038816SMartin MatuskaTemporary pool names last until export.
40116038816SMartin MatuskaEnsures that the original pool name will be used
40216038816SMartin Matuskain all label updates and therefore is retained upon export.
40316038816SMartin MatuskaWill also set
40416038816SMartin Matuska.Fl o Sy cachefile Ns = Ns Sy none
40516038816SMartin Matuskawhen not explicitly specified.
406eda14cbcSMatt Macy.El
407eda14cbcSMatt Macy.El
40816038816SMartin Matuska.
409da5137abSMartin Matuska.Sh EXAMPLES
410da5137abSMartin Matuska.\" These are, respectively, examples 9 from zpool.8
411da5137abSMartin Matuska.\" Make sure to update them bidirectionally
412da5137abSMartin Matuska.Ss Example 9 : No Importing a ZFS Storage Pool
413da5137abSMartin MatuskaThe following command displays available pools, and then imports the pool
414da5137abSMartin Matuska.Ar tank
415da5137abSMartin Matuskafor use on the system.
416da5137abSMartin MatuskaThe results from this command are similar to the following:
417da5137abSMartin Matuska.Bd -literal -compact -offset Ds
418da5137abSMartin Matuska.No # Nm zpool Cm import
419da5137abSMartin Matuska  pool: tank
420da5137abSMartin Matuska    id: 15451357997522795478
421da5137abSMartin Matuska state: ONLINE
422da5137abSMartin Matuskaaction: The pool can be imported using its name or numeric identifier.
423da5137abSMartin Matuskaconfig:
424da5137abSMartin Matuska
425da5137abSMartin Matuska        tank        ONLINE
426da5137abSMartin Matuska          mirror    ONLINE
427da5137abSMartin Matuska            sda     ONLINE
428da5137abSMartin Matuska            sdb     ONLINE
429da5137abSMartin Matuska
430da5137abSMartin Matuska.No # Nm zpool Cm import Ar tank
431da5137abSMartin Matuska.Ed
432da5137abSMartin Matuska.
433eda14cbcSMatt Macy.Sh SEE ALSO
434eda14cbcSMatt Macy.Xr zpool-export 8 ,
435eda14cbcSMatt Macy.Xr zpool-list 8 ,
436eda14cbcSMatt Macy.Xr zpool-status 8
437