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