Illumos #3306, #3321
[zfs.git] / man / man8 / zpool.8
1 '\" te
2 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
3 .\" Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
4 .\" Copyright (c) 2012 by Delphix. All Rights Reserved.
5 .\" Copyright (c) 2012 Cyril Plisko. All Rights Reserved.
6 .\" The contents of this file are subject to the terms of the Common Development
7 .\" and Distribution License (the "License"). You may not use this file except
8 .\" in compliance with the License. You can obtain a copy of the license at
9 .\" usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
10 .\"
11 .\" See the License for the specific language governing permissions and
12 .\" limitations under the License. When distributing Covered Code, include this
13 .\" CDDL HEADER in each file and include the License file at
14 .\" usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this
15 .\" CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your
16 .\" own identifying information:
17 .\" Portions Copyright [yyyy] [name of copyright owner]
18 .TH zpool 8 "14 December 2012" "ZFS pool 28, filesystem 5" "System Administration Commands"
19 .SH NAME
20 zpool \- configures ZFS storage pools
21 .SH SYNOPSIS
22 .LP
23 .nf
24 \fBzpool\fR [\fB-?\fR]
25 .fi
26
27 .LP
28 .nf
29 \fBzpool add\fR [\fB-fn\fR] [\fB-o\fR \fIproperty=value\fR] \fIpool\fR \fIvdev\fR ...
30 .fi
31
32 .LP
33 .nf
34 \fBzpool attach\fR [\fB-f\fR] [\fB-o\fR \fIproperty=value\fR] \fIpool\fR \fIdevice\fR \fInew_device\fR
35 .fi
36
37 .LP
38 .nf
39 \fBzpool clear\fR \fIpool\fR [\fIdevice\fR]
40 .fi
41
42 .LP
43 .nf
44 \fBzpool create\fR [\fB-fnd\fR] [\fB-o\fR \fIproperty=value\fR] ... [\fB-O\fR \fIfile-system-property=value\fR]
45      ... [\fB-m\fR \fImountpoint\fR] [\fB-R\fR \fIroot\fR] \fIpool\fR \fIvdev\fR ...
46 .fi
47
48 .LP
49 .nf
50 \fBzpool destroy\fR [\fB-f\fR] \fIpool\fR
51 .fi
52
53 .LP
54 .nf
55 \fBzpool detach\fR \fIpool\fR \fIdevice\fR
56 .fi
57
58 .LP
59 .nf
60 \fBzpool export\fR [\fB-f\fR] \fIpool\fR ...
61 .fi
62
63 .LP
64 .nf
65 \fBzpool get\fR "\fIall\fR" | \fIproperty\fR[,...] \fIpool\fR ...
66 .fi
67
68 .LP
69 .nf
70 \fBzpool history\fR [\fB-il\fR] [\fIpool\fR] ...
71 .fi
72
73 .LP
74 .nf
75 \fBzpool import\fR [\fB-d\fR \fIdir\fR] [\fB-D\fR]
76 .fi
77
78 .LP
79 .nf
80 \fBzpool import\fR [\fB-o \fImntopts\fR\fR] [\fB-o\fR \fIproperty=value\fR] ... [\fB-d\fR \fIdir\fR | \fB-c\fR \fIcachefile\fR]
81      [\fB-D\fR] [\fB-f\fR] [\fB-m\fR] [\fB-N\fR] [\fB-R\fR \fIroot\fR] [\fB-F\fR [\fB-n\fR]] \fB-a\fR
82 .fi
83
84 .LP
85 .nf
86 \fBzpool import\fR [\fB-o \fImntopts\fR\fR] [\fB-o\fR \fIproperty=value\fR] ... [\fB-d\fR \fIdir\fR | \fB-c\fR \fIcachefile\fR]
87      [\fB-D\fR] [\fB-f\fR] [\fB-m\fR] [\fB-R\fR \fIroot\fR] [\fB-F\fR [\fB-n\fR]] \fIpool\fR |\fIid\fR [\fInewpool\fR]
88 .fi
89
90 .LP
91 .nf
92 \fBzpool iostat\fR [\fB-T\fR u | d ] [\fB-v\fR] [\fIpool\fR] ... [\fIinterval\fR[\fIcount\fR]]
93 .fi
94
95 .LP
96 .nf
97 \fBzpool list\fR [\fB-Hv\fR] [\fB-o\fR \fIproperty\fR[,...]] [\fIpool\fR] ...
98 .fi
99
100 .LP
101 .nf
102 \fBzpool offline\fR [\fB-t\fR] \fIpool\fR \fIdevice\fR ...
103 .fi
104
105 .LP
106 .nf
107 \fBzpool online\fR \fIpool\fR \fIdevice\fR ...
108 .fi
109
110 .LP
111 .nf
112 \fBzpool reguid\fR \fIpool\fR
113 .fi
114
115 .LP
116 .nf
117 \fBzpool reopen\fR \fIpool\fR
118 .fi
119
120 .LP
121 .nf
122 \fBzpool remove\fR \fIpool\fR \fIdevice\fR ...
123 .fi
124
125 .LP
126 .nf
127 \fBzpool replace\fR [\fB-f\fR] \fIpool\fR \fIdevice\fR [\fInew_device\fR]
128 .fi
129
130 .LP
131 .nf
132 \fBzpool scrub\fR [\fB-s\fR] \fIpool\fR ...
133 .fi
134
135 .LP
136 .nf
137 \fBzpool set\fR \fIproperty\fR=\fIvalue\fR \fIpool\fR
138 .fi
139
140 .LP
141 .nf
142 \fBzpool status\fR [\fB-xv\fR] [\fIpool\fR] ...
143 .fi
144
145 .LP
146 .nf
147 \fBzpool upgrade\fR 
148 .fi
149
150 .LP
151 .nf
152 \fBzpool upgrade\fR \fB-v\fR
153 .fi
154
155 .LP
156 .nf
157 \fBzpool upgrade\fR [\fB-V\fR \fIversion\fR] \fB-a\fR | \fIpool\fR ...
158 .fi
159
160 .SH DESCRIPTION
161 .sp
162 .LP
163 The \fBzpool\fR command configures \fBZFS\fR storage pools. A storage pool is a collection of devices that provides physical storage and data replication for \fBZFS\fR datasets.
164 .sp
165 .LP
166 All datasets within a storage pool share the same space. See \fBzfs\fR(8) for information on managing datasets.
167 .SS "Virtual Devices (\fBvdev\fRs)"
168 .sp
169 .LP
170 A "virtual device" describes a single device or a collection of devices organized according to certain performance and fault characteristics. The following virtual devices are supported:
171 .sp
172 .ne 2
173 .mk
174 .na
175 \fB\fBdisk\fR\fR
176 .ad
177 .RS 10n
178 .rt  
179 A block device, typically located under \fB/dev\fR. \fBZFS\fR can use individual partitions, though the recommended mode of operation is to use whole disks. A disk can be specified by a full path, or it can be a shorthand name (the relative portion of the path under "/dev"). For example, "sda" is equivalent to "/dev/sda". A whole disk can be specified by omitting the partition designation. When given a whole disk, \fBZFS\fR automatically labels the disk, if necessary.
180 .RE
181
182 .sp
183 .ne 2
184 .mk
185 .na
186 \fB\fBfile\fR\fR
187 .ad
188 .RS 10n
189 .rt  
190 A regular file. The use of files as a backing store is strongly discouraged. It is designed primarily for experimental purposes, as the fault tolerance of a file is only as good as the file system of which it is a part. A file must be specified by a full path.
191 .RE
192
193 .sp
194 .ne 2
195 .mk
196 .na
197 \fB\fBmirror\fR\fR
198 .ad
199 .RS 10n
200 .rt  
201 A mirror of two or more devices. Data is replicated in an identical fashion across all components of a mirror. A mirror with \fIN\fR disks of size \fIX\fR can hold \fIX\fR bytes and can withstand (\fIN-1\fR) devices failing before data integrity is compromised.
202 .RE
203
204 .sp
205 .ne 2
206 .mk
207 .na
208 \fB\fBraidz\fR\fR
209 .ad
210 .br
211 .na
212 \fB\fBraidz1\fR\fR
213 .ad
214 .br
215 .na
216 \fB\fBraidz2\fR\fR
217 .ad
218 .br
219 .na
220 \fB\fBraidz3\fR\fR
221 .ad
222 .RS 10n
223 .rt  
224 A variation on \fBRAID-5\fR that allows for better distribution of parity and eliminates the "\fBRAID-5\fR write hole" (in which data and parity become inconsistent after a power loss). Data and parity is striped across all disks within a \fBraidz\fR group.
225 .sp
226 A \fBraidz\fR group can have single-, double- , or triple parity, meaning that the \fBraidz\fR group can sustain one, two, or three failures, respectively, without losing any data. The \fBraidz1\fR \fBvdev\fR type specifies a single-parity \fBraidz\fR group; the \fBraidz2\fR \fBvdev\fR type specifies a double-parity \fBraidz\fR group; and the \fBraidz3\fR \fBvdev\fR type specifies a triple-parity \fBraidz\fR group. The \fBraidz\fR \fBvdev\fR type is an alias for \fBraidz1\fR.
227 .sp
228 A \fBraidz\fR group with \fIN\fR disks of size \fIX\fR with \fIP\fR parity disks can hold approximately (\fIN-P\fR)*\fIX\fR bytes and can withstand \fIP\fR device(s) failing before data integrity is compromised. The minimum number of devices in a \fBraidz\fR group is one more than the number of parity disks. The recommended number is between 3 and 9 to help increase performance.
229 .RE
230
231 .sp
232 .ne 2
233 .mk
234 .na
235 \fB\fBspare\fR\fR
236 .ad
237 .RS 10n
238 .rt  
239 A special pseudo-\fBvdev\fR which keeps track of available hot spares for a pool. For more information, see the "Hot Spares" section.
240 .RE
241
242 .sp
243 .ne 2
244 .mk
245 .na
246 \fB\fBlog\fR\fR
247 .ad
248 .RS 10n
249 .rt  
250 A separate-intent log device. If more than one log device is specified, then writes are load-balanced between devices. Log devices can be mirrored. However, \fBraidz\fR \fBvdev\fR types are not supported for the intent log. For more information, see the "Intent Log" section.
251 .RE
252
253 .sp
254 .ne 2
255 .mk
256 .na
257 \fB\fBcache\fR\fR
258 .ad
259 .RS 10n
260 .rt  
261 A device used to cache storage pool data. A cache device cannot be configured as a mirror or \fBraidz\fR group. For more information, see the "Cache Devices" section.
262 .RE
263
264 .sp
265 .LP
266 Virtual devices cannot be nested, so a mirror or \fBraidz\fR virtual device can only contain files or disks. Mirrors of mirrors (or other combinations) are not allowed.
267 .sp
268 .LP
269 A pool can have any number of virtual devices at the top of the configuration (known as "root vdevs"). Data is dynamically distributed across all top-level devices to balance data among devices. As new virtual devices are added, \fBZFS\fR automatically places data on the newly available devices.
270 .sp
271 .LP
272 Virtual devices are specified one at a time on the command line, separated by whitespace. The keywords "mirror" and "raidz" are used to distinguish where a group ends and another begins. For example, the following creates two root vdevs, each a mirror of two disks:
273 .sp
274 .in +2
275 .nf
276 # \fBzpool create mypool mirror sda sdb mirror sdc sdd\fR
277 .fi
278 .in -2
279 .sp
280
281 .SS "Device Failure and Recovery"
282 .sp
283 .LP
284 \fBZFS\fR supports a rich set of mechanisms for handling device failure and data corruption. All metadata and data is checksummed, and \fBZFS\fR automatically repairs bad data from a good copy when corruption is detected.
285 .sp
286 .LP
287 In order to take advantage of these features, a pool must make use of some form of redundancy, using either mirrored or \fBraidz\fR groups. While \fBZFS\fR supports running in a non-redundant configuration, where each root vdev is simply a disk or file, this is strongly discouraged. A single case of bit corruption can render some or all of your data unavailable.
288 .sp
289 .LP
290 A pool's health status is described by one of three states: online, degraded, or faulted. An online pool has all devices operating normally. A degraded pool is one in which one or more devices have failed, but the data is still available due to a redundant configuration. A faulted pool has corrupted metadata, or one or more faulted devices, and insufficient replicas to continue functioning. 
291 .sp
292 .LP
293 The health of the top-level vdev, such as mirror or \fBraidz\fR device, is potentially impacted by the state of its associated vdevs, or component devices. A top-level vdev or component device is in one of the following states:
294 .sp
295 .ne 2
296 .mk
297 .na
298 \fB\fBDEGRADED\fR\fR
299 .ad
300 .RS 12n
301 .rt  
302 One or more top-level vdevs is in the degraded state because one or more component devices are offline. Sufficient replicas exist to continue functioning.
303 .sp
304 One or more component devices is in the degraded or faulted state, but sufficient replicas exist to continue functioning. The underlying conditions are as follows:
305 .RS +4
306 .TP
307 .ie t \(bu
308 .el o
309 The number of checksum errors exceeds acceptable levels and the device is degraded as an indication that something may be wrong. \fBZFS\fR continues to use the device as necessary.
310 .RE
311 .RS +4
312 .TP
313 .ie t \(bu
314 .el o
315 The number of I/O errors exceeds acceptable levels. The device could not be marked as faulted because there are insufficient replicas to continue functioning.
316 .RE
317 .RE
318
319 .sp
320 .ne 2
321 .mk
322 .na
323 \fB\fBFAULTED\fR\fR
324 .ad
325 .RS 12n
326 .rt  
327 One or more top-level vdevs is in the faulted state because one or more component devices are offline. Insufficient replicas exist to continue functioning. 
328 .sp
329 One or more component devices is in the faulted state, and insufficient replicas exist to continue functioning. The underlying conditions are as follows:
330 .RS +4
331 .TP
332 .ie t \(bu
333 .el o
334 The device could be opened, but the contents did not match expected values. 
335 .RE
336 .RS +4
337 .TP
338 .ie t \(bu
339 .el o
340 The number of I/O errors exceeds acceptable levels and the device is faulted to prevent further use of the device.
341 .RE
342 .RE
343
344 .sp
345 .ne 2
346 .mk
347 .na
348 \fB\fBOFFLINE\fR\fR
349 .ad
350 .RS 12n
351 .rt  
352 The device was explicitly taken offline by the "\fBzpool offline\fR" command.
353 .RE
354
355 .sp
356 .ne 2
357 .mk
358 .na
359 \fB\fBONLINE\fR\fR
360 .ad
361 .RS 12n
362 .rt  
363 The device is online and functioning.
364 .RE
365
366 .sp
367 .ne 2
368 .mk
369 .na
370 \fB\fBREMOVED\fR\fR
371 .ad
372 .RS 12n
373 .rt  
374 The device was physically removed while the system was running. Device removal detection is hardware-dependent and may not be supported on all platforms.
375 .RE
376
377 .sp
378 .ne 2
379 .mk
380 .na
381 \fB\fBUNAVAIL\fR\fR
382 .ad
383 .RS 12n
384 .rt  
385 The device could not be opened. If a pool is imported when a device was unavailable, then the device will be identified by a unique identifier instead of its path since the path was never correct in the first place.
386 .RE
387
388 .sp
389 .LP
390 If a device is removed and later re-attached to the system, \fBZFS\fR attempts to put the device online automatically. Device attach detection is hardware-dependent and might not be supported on all platforms.
391 .SS "Hot Spares"
392 .sp
393 .LP
394 \fBZFS\fR allows devices to be associated with pools as "hot spares". These devices are not actively used in the pool, but when an active device fails, it is automatically replaced by a hot spare. To create a pool with hot spares, specify a "spare" \fBvdev\fR with any number of devices. For example, 
395 .sp
396 .in +2
397 .nf
398 # zpool create pool mirror sda sdb spare sdc sdd
399 .fi
400 .in -2
401 .sp
402
403 .sp
404 .LP
405 Spares can be shared across multiple pools, and can be added with the "\fBzpool add\fR" command and removed with the "\fBzpool remove\fR" command. Once a spare replacement is initiated, a new "spare" \fBvdev\fR is created within the configuration that will remain there until the original device is replaced. At this point, the hot spare becomes available again.
406 .sp
407 .LP
408 If a pool has a shared spare that is currently being used, the pool can not be exported since other pools may use this shared spare, which may lead to potential data corruption.
409 .sp
410 .LP
411 An in-progress spare replacement can be cancelled by detaching the hot spare. If the original faulted device is detached, then the hot spare assumes its place in the configuration, and is removed from the spare list of all active pools.
412 .sp
413 .LP
414 Spares cannot replace log devices.
415 .SS "Intent Log"
416 .sp
417 .LP
418 The \fBZFS\fR Intent Log (\fBZIL\fR) satisfies \fBPOSIX\fR requirements for synchronous transactions. For instance, databases often require their transactions to be on stable storage devices when returning from a system call. \fBNFS\fR and other applications can also use \fBfsync\fR() to ensure data stability. By default, the intent log is allocated from blocks within the main pool. However, it might be possible to get better performance using separate intent log devices such as \fBNVRAM\fR or a dedicated disk. For example:
419 .sp
420 .in +2
421 .nf
422 \fB# zpool create pool sda sdb log sdc\fR
423 .fi
424 .in -2
425 .sp
426
427 .sp
428 .LP
429 Multiple log devices can also be specified, and they can be mirrored. See the EXAMPLES section for an example of mirroring multiple log devices.
430 .sp
431 .LP
432 Log devices can be added, replaced, attached, detached, and imported and exported as part of the larger pool. Mirrored log devices can be removed by specifying the top-level mirror for the log.
433 .SS "Cache Devices"
434 .sp
435 .LP
436 Devices can be added to a storage pool as "cache devices." These devices provide an additional layer of caching between main memory and disk. For read-heavy workloads, where the working set size is much larger than what can be cached in main memory, using cache devices allow much more of this working set to be served from low latency media. Using cache devices provides the greatest performance improvement for random read-workloads of mostly static content.
437 .sp
438 .LP
439 To create a pool with cache devices, specify a "cache" \fBvdev\fR with any number of devices. For example:
440 .sp
441 .in +2
442 .nf
443 \fB# zpool create pool sda sdb cache sdc sdd\fR
444 .fi
445 .in -2
446 .sp
447
448 .sp
449 .LP
450 Cache devices cannot be mirrored or part of a \fBraidz\fR configuration. If a read error is encountered on a cache device, that read \fBI/O\fR is reissued to the original storage pool device, which might be part of a mirrored or \fBraidz\fR configuration.
451 .sp
452 .LP
453 The content of the cache devices is considered volatile, as is the case with other system caches.
454 .SS "Properties"
455 .sp
456 .LP
457 Each pool has several properties associated with it. Some properties are read-only statistics while others are configurable and change the behavior of the pool. The following are read-only properties:
458 .sp
459 .ne 2
460 .mk
461 .na
462 \fB\fBavailable\fR\fR
463 .ad
464 .RS 20n
465 .rt  
466 Amount of storage available within the pool. This property can also be referred to by its shortened column name, "avail".
467 .RE
468
469 .sp
470 .ne 2
471 .mk
472 .na
473 \fB\fBcapacity\fR\fR
474 .ad
475 .RS 20n
476 .rt  
477 Percentage of pool space used. This property can also be referred to by its shortened column name, "cap".
478 .RE
479
480 .sp
481 .ne 2
482 .mk
483 .na
484 \fB\fBexpandsize\fR\fR
485 .ad
486 .RS 20n
487 Amount of uninitialized space within the pool or device that can be used to
488 increase the total capacity of the pool.  Uninitialized space consists of
489 any space on an EFI labeled vdev which has not been brought online
490 (i.e. zpool online -e).  This space occurs when a LUN is dynamically expanded.
491 .RE
492
493 .sp
494 .ne 2
495 .na
496 \fB\fBfree\fR\fR
497 .ad
498 .RS 20n
499 The amount of free space available in the pool.
500 .RE
501
502 .sp
503 .ne 2
504 .na
505 \fB\fBfreeing\fR\fR
506 .ad
507 .RS 20n
508 After a file system or snapshot is destroyed, the space it was using is
509 returned to the pool asynchronously. \fB\fBfreeing\fR\fR is the amount of
510 space remaining to be reclaimed. Over time \fB\fBfreeing\fR\fR will decrease
511 while \fB\fBfree\fR\fR increases.
512 .RE
513
514 .sp
515 .ne 2
516 .na
517 \fB\fBhealth\fR\fR
518 .ad
519 .RS 20n
520 .rt  
521 The current health of the pool. Health can be "\fBONLINE\fR", "\fBDEGRADED\fR", "\fBFAULTED\fR", " \fBOFFLINE\fR", "\fBREMOVED\fR", or "\fBUNAVAIL\fR".
522 .RE
523
524 .sp
525 .ne 2
526 .mk
527 .na
528 \fB\fBguid\fR\fR
529 .ad
530 .RS 20n
531 .rt  
532 A unique identifier for the pool.
533 .RE
534
535 .sp
536 .ne 2
537 .mk
538 .na
539 \fB\fBsize\fR\fR
540 .ad
541 .RS 20n
542 .rt  
543 Total size of the storage pool.
544 .RE
545
546 .sp
547 .ne 2
548 .na
549 \fB\fBunsupported@\fR\fIfeature_guid\fR\fR
550 .ad
551 .RS 20n
552 Information about unsupported features that are enabled on the pool. See
553 \fBzpool-features\fR(5) for details.
554 .RE
555
556 .sp
557 .ne 2
558 .mk
559 .na
560 \fB\fBused\fR\fR
561 .ad
562 .RS 20n
563 .rt  
564 Amount of storage space used within the pool.
565 .RE
566
567 .sp
568 .LP
569 The space usage properties report actual physical space available to the storage pool. The physical space can be different from the total amount of space that any contained datasets can actually use. The amount of space used in a \fBraidz\fR configuration depends on the characteristics of the data being written. In addition, \fBZFS\fR reserves some space for internal accounting that the \fBzfs\fR(8) command takes into account, but the \fBzpool\fR command does not. For non-full pools of a reasonable size, these effects should be invisible. For small pools, or pools that are close to being completely full, these discrepancies may become more noticeable.
570
571 .sp
572 .LP
573 The following property can be set at creation time:
574 .sp
575 .ne 2
576 .mk
577 .na
578 \fB\fBashift\fR\fR
579 .ad
580 .sp .6
581 .RS 4n
582 Pool sector size exponent, to the power of 2 (internally referred to as "ashift"). I/O operations will be aligned to the specified size boundaries. Additionally, the minimum (disk) write size will be set to the specified size, so this represents a space vs. performance trade-off. The typical case for setting this property is when performance is important and the underlying disks use 4KiB sectors but report 512B sectors to the OS (for compatibility reasons); in that case, set \fBashift=12\fR (which is 1<<12 = 4096).
583 .LP
584 For optimal performance, the pool sector size should be greater than or equal to the sector size of the underlying disks. Since the property cannot be changed after pool creation, if in a given pool, you \fIever\fR want to use drives that \fIreport\fR 4KiB sectors, you must set \fBashift=12\fR at pool creation time.
585 .RE
586
587 .sp
588 .LP
589 The following property can be set at creation time and import time:
590 .sp
591 .ne 2
592 .mk
593 .na
594 \fB\fBaltroot\fR\fR
595 .ad
596 .sp .6
597 .RS 4n
598 Alternate root directory. If set, this directory is prepended to any mount points within the pool. This can be used when examining an unknown pool where the mount points cannot be trusted, or in an alternate boot environment, where the typical paths are not valid. \fBaltroot\fR is not a persistent property. It is valid only while the system is up. Setting \fBaltroot\fR defaults to using \fBcachefile\fR=none, though this may be overridden using an explicit setting.
599 .RE
600
601 .sp
602 .LP
603 The following properties can be set at creation time and import time, and later changed with the \fBzpool set\fR command:
604 .sp
605 .ne 2
606 .mk
607 .na
608 \fB\fBautoexpand\fR=\fBon\fR | \fBoff\fR\fR
609 .ad
610 .sp .6
611 .RS 4n
612 Controls automatic pool expansion when the underlying LUN is grown. If set to \fBon\fR, the pool will be resized according to the size of the expanded device. If the device is part of a mirror or \fBraidz\fR then all devices within that mirror/\fBraidz\fR group must be expanded before the new space is made available to the pool. The default behavior is \fBoff\fR. This property can also be referred to by its shortened column name, \fBexpand\fR.
613 .RE
614
615 .sp
616 .ne 2
617 .mk
618 .na
619 \fB\fBautoreplace\fR=\fBon\fR | \fBoff\fR\fR
620 .ad
621 .sp .6
622 .RS 4n
623 Controls automatic device replacement. If set to "\fBoff\fR", device replacement must be initiated by the administrator by using the "\fBzpool replace\fR" command. If set to "\fBon\fR", any new device, found in the same physical location as a device that previously belonged to the pool, is automatically formatted and replaced. The default behavior is "\fBoff\fR". This property can also be referred to by its shortened column name, "replace".
624 .RE
625
626 .sp
627 .ne 2
628 .mk
629 .na
630 \fB\fBbootfs\fR=\fIpool\fR/\fIdataset\fR\fR
631 .ad
632 .sp .6
633 .RS 4n
634 Identifies the default bootable dataset for the root pool. This property is expected to be set mainly by the installation and upgrade programs.
635 .RE
636
637 .sp
638 .ne 2
639 .mk
640 .na
641 \fB\fBcachefile\fR=\fIpath\fR | \fBnone\fR\fR
642 .ad
643 .sp .6
644 .RS 4n
645 Controls the location of where the pool configuration is cached. Discovering all pools on system startup requires a cached copy of the configuration data that is stored on the root file system. All pools in this cache are automatically imported when the system boots. Some environments, such as install and clustering, need to cache this information in a different location so that pools are not automatically imported. Setting this property caches the pool configuration in a different location that can later be imported with "\fBzpool import -c\fR". Setting it to the special value "\fBnone\fR" creates a temporary pool that is never cached, and the special value \fB\&''\fR (empty string) uses the default location. 
646 .sp
647 Multiple pools can share the same cache file. Because the kernel destroys and recreates this file when pools are added and removed, care should be taken when attempting to access this file. When the last pool using a \fBcachefile\fR is exported or destroyed, the file is removed.
648 .RE
649
650 .sp
651 .ne 2
652 .mk
653 .na
654 \fB\fBcomment\fR=\fB\fItext\fR\fR
655 .ad
656 .sp .6
657 .RS 4n
658 A text string consisting of printable ASCII characters that will be stored such that it is available even if the pool becomes faulted.  An administrator can provide additional information about a pool using this property.
659 .RE
660
661 .sp
662 .ne 2
663 .mk
664 .na
665 \fB\fBdelegation\fR=\fBon\fR | \fBoff\fR\fR
666 .ad
667 .sp .6
668 .RS 4n
669 Controls whether a non-privileged user is granted access based on the dataset permissions defined on the dataset. See \fBzfs\fR(8) for more information on \fBZFS\fR delegated administration.
670 .RE
671
672 .sp
673 .ne 2
674 .mk
675 .na
676 \fB\fBfailmode\fR=\fBwait\fR | \fBcontinue\fR | \fBpanic\fR\fR
677 .ad
678 .sp .6
679 .RS 4n
680 Controls the system behavior in the event of catastrophic pool failure. This condition is typically a result of a loss of connectivity to the underlying storage device(s) or a failure of all devices within the pool. The behavior of such an event is determined as follows:
681 .sp
682 .ne 2
683 .mk
684 .na
685 \fB\fBwait\fR\fR
686 .ad
687 .RS 12n
688 .rt  
689 Blocks all \fBI/O\fR access until the device connectivity is recovered and the errors are cleared. This is the default behavior.
690 .RE
691
692 .sp
693 .ne 2
694 .mk
695 .na
696 \fB\fBcontinue\fR\fR
697 .ad
698 .RS 12n
699 .rt  
700 Returns \fBEIO\fR to any new write \fBI/O\fR requests but allows reads to any of the remaining healthy devices. Any write requests that have yet to be committed to disk would be blocked.
701 .RE
702
703 .sp
704 .ne 2
705 .mk
706 .na
707 \fB\fBpanic\fR\fR
708 .ad
709 .RS 12n
710 .rt  
711 Prints out a message to the console and generates a system crash dump.
712 .RE
713
714 .RE
715
716 .sp
717 .ne 2
718 .na
719 \fB\fBfeature@\fR\fIfeature_name\fR=\fBenabled\fR\fR
720 .ad
721 .RS 4n
722 The value of this property is the current state of \fIfeature_name\fR. The
723 only valid value when setting this property is \fBenabled\fR which moves
724 \fIfeature_name\fR to the enabled state. See \fBzpool-features\fR(5) for
725 details on feature states.
726 .RE
727
728 .sp
729 .ne 2
730 .mk
731 .na
732 \fB\fBlistsnaps\fR=on | off\fR
733 .ad
734 .sp .6
735 .RS 4n
736 Controls whether information about snapshots associated with this pool is output when "\fBzfs list\fR" is run without the \fB-t\fR option. The default value is "off".
737 .RE
738
739 .sp
740 .ne 2
741 .mk
742 .na
743 \fB\fBversion\fR=\fIversion\fR\fR
744 .ad
745 .sp .6
746 .RS 4n
747 The current on-disk version of the pool. This can be increased, but never decreased. The preferred method of updating pools is with the "\fBzpool upgrade\fR" command, though this property can be used when a specific version is needed for backwards compatibility. Once feature flags are enabled on a pool this property will no longer have a value.
748 .RE
749
750 .SS "Subcommands"
751 .sp
752 .LP
753 All subcommands that modify state are logged persistently to the pool in their original form.
754 .sp
755 .LP
756 The \fBzpool\fR command provides subcommands to create and destroy storage pools, add capacity to storage pools, and provide information about the storage pools. The following subcommands are supported:
757 .sp
758 .ne 2
759 .mk
760 .na
761 \fB\fBzpool\fR \fB-?\fR\fR
762 .ad
763 .sp .6
764 .RS 4n
765 Displays a help message.
766 .RE
767
768 .sp
769 .ne 2
770 .mk
771 .na
772 \fB\fBzpool add\fR [\fB-fn\fR] [\fB-o\fR \fIproperty=value\fR] \fIpool\fR \fIvdev\fR ...\fR
773 .ad
774 .sp .6
775 .RS 4n
776 Adds the specified virtual devices to the given pool. The \fIvdev\fR specification is described in the "Virtual Devices" section. The behavior of the \fB-f\fR option, and the device checks performed are described in the "zpool create" subcommand.
777 .sp
778 .ne 2
779 .mk
780 .na
781 \fB\fB-f\fR\fR
782 .ad
783 .RS 6n
784 .rt  
785 Forces use of \fBvdev\fRs, even if they appear in use or specify a conflicting replication level. Not all devices can be overridden in this manner.
786 .RE
787
788 .sp
789 .ne 2
790 .mk
791 .na
792 \fB\fB-n\fR\fR
793 .ad
794 .RS 6n
795 .rt  
796 Displays the configuration that would be used without actually adding the \fBvdev\fRs. The actual pool creation can still fail due to insufficient privileges or device sharing.
797 .RE
798
799 .sp
800 .ne 2
801 .mk
802 .na
803 \fB\fB-o\fR \fIproperty=value\fR
804 .ad
805 .sp .6
806 .RS 4n
807 Sets the given pool properties. See the "Properties" section for a list of valid properties that can be set. The only property supported at the moment is "ashift".
808 .RE
809
810 Do not add a disk that is currently configured as a quorum device to a zpool. After a disk is in the pool, that disk can then be configured as a quorum device.
811 .RE
812
813 .sp
814 .ne 2
815 .mk
816 .na
817 \fB\fBzpool attach\fR [\fB-f\fR] [\fB-o\fR \fIproperty=value\fR] \fIpool\fR \fIdevice\fR \fInew_device\fR\fR
818 .ad
819 .sp .6
820 .RS 4n
821 Attaches \fInew_device\fR to an existing \fBzpool\fR device. The existing device cannot be part of a \fBraidz\fR configuration. If \fIdevice\fR is not currently part of a mirrored configuration, \fIdevice\fR automatically transforms into a two-way mirror of \fIdevice\fR and \fInew_device\fR. If \fIdevice\fR is part of a two-way mirror, attaching \fInew_device\fR creates a three-way mirror, and so on. In either case, \fInew_device\fR begins to resilver immediately.
822 .sp
823 .ne 2
824 .mk
825 .na
826 \fB\fB-f\fR\fR
827 .ad
828 .RS 6n
829 .rt  
830 Forces use of \fInew_device\fR, even if its appears to be in use. Not all devices can be overridden in this manner.
831 .RE
832
833 .sp
834 .ne 2
835 .mk
836 .na
837 \fB\fB-o\fR \fIproperty=value\fR
838 .ad
839 .sp .6
840 .RS 4n
841 Sets the given pool properties. See the "Properties" section for a list of valid properties that can be set. The only property supported at the moment is "ashift".
842 .RE
843
844 .RE
845
846 .sp
847 .ne 2
848 .mk
849 .na
850 \fB\fBzpool clear\fR \fIpool\fR [\fIdevice\fR] ...\fR
851 .ad
852 .sp .6
853 .RS 4n
854 Clears device errors in a pool. If no arguments are specified, all device errors within the pool are cleared. If one or more devices is specified, only those errors associated with the specified device or devices are cleared.
855 .RE
856
857 .sp
858 .ne 2
859 .mk
860 .na
861 \fB\fBzpool create\fR [\fB-fnd\fR] [\fB-o\fR \fIproperty=value\fR] ... [\fB-O\fR \fIfile-system-property=value\fR] ... [\fB-m\fR \fImountpoint\fR] [\fB-R\fR \fIroot\fR] \fIpool\fR \fIvdev\fR ...\fR
862 .ad
863 .sp .6
864 .RS 4n
865 Creates a new storage pool containing the virtual devices specified on the command line. The pool name must begin with a letter, and can only contain alphanumeric characters as well as underscore ("_"), dash ("-"), period ("."), colon (":"), and space (" "). The pool names "mirror", "raidz", "spare" and "log" are reserved, as are names beginning with the pattern "c[0-9]". The \fBvdev\fR specification is described in the "Virtual Devices" section.
866 .sp
867 The command verifies that each device specified is accessible and not currently in use by another subsystem. There are some uses, such as being currently mounted, or specified as the dedicated dump device, that prevents a device from ever being used by \fBZFS\fR. Other uses, such as having a preexisting \fBUFS\fR file system, can be overridden with the \fB-f\fR option.
868 .sp
869 The command also checks that the replication strategy for the pool is consistent. An attempt to combine redundant and non-redundant storage in a single pool, or to mix disks and files, results in an error unless \fB-f\fR is specified. The use of differently sized devices within a single \fBraidz\fR or mirror group is also flagged as an error unless \fB-f\fR is specified.
870 .sp
871 Unless the \fB-R\fR option is specified, the default mount point is "/\fIpool\fR". The mount point must not exist or must be empty, or else the root dataset cannot be mounted. This can be overridden with the \fB-m\fR option.
872 .sp
873 By default all supported features are enabled on the new pool unless the \fB-d\fR option is specified.
874 .sp
875 .ne 2
876 .mk
877 .na
878 \fB\fB-f\fR\fR
879 .ad
880 .sp .6
881 .RS 4n
882 Forces use of \fBvdev\fRs, even if they appear in use or specify a conflicting replication level. Not all devices can be overridden in this manner.
883 .RE
884
885 .sp
886 .ne 2
887 .mk
888 .na
889 \fB\fB-n\fR\fR
890 .ad
891 .sp .6
892 .RS 4n
893 Displays the configuration that would be used without actually creating the pool. The actual pool creation can still fail due to insufficient privileges or device sharing.
894 .RE
895
896 .sp
897 .ne 2
898 .mk
899 .na
900 \fB\fB-d\fR\fR
901 .ad
902 .sp .6
903 .RS 4n
904 Do not enable any features on the new pool. Individual features can be enabled by setting their corresponding properties to \fBenabled\fR with the \fB-o\fR option. See \fBzpool-features\fR(5) for details about feature properties.
905 .RE
906
907 .sp
908 .ne 2
909 .na
910 \fB\fB-o\fR \fIproperty=value\fR [\fB-o\fR \fIproperty=value\fR] ...\fR
911 .ad
912 .sp .6
913 .RS 4n
914 Sets the given pool properties. See the "Properties" section for a list of valid properties that can be set.
915 .RE
916
917 .sp
918 .ne 2
919 .mk
920 .na
921 \fB\fB-O\fR \fIfile-system-property=value\fR\fR
922 .ad
923 .br
924 .na
925 \fB[\fB-O\fR \fIfile-system-property=value\fR] ...\fR
926 .ad
927 .sp .6
928 .RS 4n
929 Sets the given file system properties in the root file system of the pool. See the "Properties" section of \fBzfs\fR(8) for a list of valid properties that can be set.
930 .RE
931
932 .sp
933 .ne 2
934 .mk
935 .na
936 \fB\fB-R\fR \fIroot\fR\fR
937 .ad
938 .sp .6
939 .RS 4n
940 Equivalent to "-o cachefile=none,altroot=\fIroot\fR"
941 .RE
942
943 .sp
944 .ne 2
945 .mk
946 .na
947 \fB\fB-m\fR \fImountpoint\fR\fR
948 .ad
949 .sp .6
950 .RS 4n
951 Sets the mount point for the root dataset. The default mount point is "/\fIpool\fR" or "\fBaltroot\fR/\fIpool\fR" if \fBaltroot\fR is specified. The mount point must be an absolute path, "\fBlegacy\fR", or "\fBnone\fR". For more information on dataset mount points, see \fBzfs\fR(8).
952 .RE
953
954 .RE
955
956 .sp
957 .ne 2
958 .mk
959 .na
960 \fB\fBzpool destroy\fR [\fB-f\fR] \fIpool\fR\fR
961 .ad
962 .sp .6
963 .RS 4n
964 Destroys the given pool, freeing up any devices for other use. This command tries to unmount any active datasets before destroying the pool.
965 .sp
966 .ne 2
967 .mk
968 .na
969 \fB\fB-f\fR\fR
970 .ad
971 .RS 6n
972 .rt  
973 Forces any active datasets contained within the pool to be unmounted.
974 .RE
975
976 .RE
977
978 .sp
979 .ne 2
980 .mk
981 .na
982 \fB\fBzpool detach\fR \fIpool\fR \fIdevice\fR\fR
983 .ad
984 .sp .6
985 .RS 4n
986 Detaches \fIdevice\fR from a mirror. The operation is refused if there are no other valid replicas of the data.
987 .RE
988
989 .sp
990 .ne 2
991 .mk
992 .na
993 \fB\fBzpool export\fR [\fB-f\fR] \fIpool\fR ...\fR
994 .ad
995 .sp .6
996 .RS 4n
997 Exports the given pools from the system. All devices are marked as exported, but are still considered in use by other subsystems. The devices can be moved between systems (even those of different endianness) and imported as long as a sufficient number of devices are present.
998 .sp
999 Before exporting the pool, all datasets within the pool are unmounted. A pool can not be exported if it has a shared spare that is currently being used.
1000 .sp
1001 For pools to be portable, you must give the \fBzpool\fR command whole disks, not just partitions, so that \fBZFS\fR can label the disks with portable \fBEFI\fR labels. Otherwise, disk drivers on platforms of different endianness will not recognize the disks.
1002 .sp
1003 .ne 2
1004 .mk
1005 .na
1006 \fB\fB-f\fR\fR
1007 .ad
1008 .RS 6n
1009 .rt  
1010 Forcefully unmount all datasets, using the "\fBunmount -f\fR" command.
1011 .sp
1012 This command will forcefully export the pool even if it has a shared spare that is currently being used. This may lead to potential data corruption.
1013 .RE
1014
1015 .RE
1016
1017 .sp
1018 .ne 2
1019 .mk
1020 .na
1021 \fB\fBzpool get\fR "\fIall\fR" | \fIproperty\fR[,...] \fIpool\fR ...\fR
1022 .ad
1023 .sp .6
1024 .RS 4n
1025 Retrieves the given list of properties (or all properties if "\fBall\fR" is used) for the specified storage pool(s). These properties are displayed with the following fields:
1026 .sp
1027 .in +2
1028 .nf
1029        name          Name of storage pool
1030         property      Property name
1031         value         Property value
1032         source        Property source, either 'default' or 'local'.
1033 .fi
1034 .in -2
1035 .sp
1036
1037 See the "Properties" section for more information on the available pool properties.
1038 .RE
1039
1040 .sp
1041 .ne 2
1042 .mk
1043 .na
1044 \fB\fBzpool history\fR [\fB-il\fR] [\fIpool\fR] ...\fR
1045 .ad
1046 .sp .6
1047 .RS 4n
1048 Displays the command history of the specified pools or all pools if no pool is specified.
1049 .sp
1050 .ne 2
1051 .mk
1052 .na
1053 \fB\fB-i\fR\fR
1054 .ad
1055 .RS 6n
1056 .rt  
1057 Displays internally logged \fBZFS\fR events in addition to user initiated events.
1058 .RE
1059
1060 .sp
1061 .ne 2
1062 .mk
1063 .na
1064 \fB\fB-l\fR\fR
1065 .ad
1066 .RS 6n
1067 .rt  
1068 Displays log records in long format, which in addition to standard format includes, the user name, the hostname, and the zone in which the operation was performed.
1069 .RE
1070
1071 .RE
1072
1073 .sp
1074 .ne 2
1075 .mk
1076 .na
1077 \fB\fBzpool import\fR [\fB-d\fR \fIdir\fR | \fB-c\fR \fIcachefile\fR] [\fB-D\fR]\fR
1078 .ad
1079 .sp .6
1080 .RS 4n
1081 Lists pools available to import. If the \fB-d\fR option is not specified, this command searches for devices in "/dev". The \fB-d\fR 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 \fIvdev\fR layout and current health of the device for each device or file. Destroyed pools, pools that were previously destroyed with the "\fBzpool destroy\fR" command, are not listed unless the \fB-D\fR option is specified. 
1082 .sp
1083 The numeric identifier is unique, and can be used instead of the pool name when multiple exported pools of the same name are available.
1084 .sp
1085 .ne 2
1086 .mk
1087 .na
1088 \fB\fB-c\fR \fIcachefile\fR\fR
1089 .ad
1090 .RS 16n
1091 .rt  
1092 Reads configuration from the given \fBcachefile\fR that was created with the "\fBcachefile\fR" pool property. This \fBcachefile\fR is used instead of searching for devices.
1093 .RE
1094
1095 .sp
1096 .ne 2
1097 .mk
1098 .na
1099 \fB\fB-d\fR \fIdir\fR\fR
1100 .ad
1101 .RS 16n
1102 .rt  
1103 Searches for devices or files in \fIdir\fR. The \fB-d\fR option can be specified multiple times. 
1104 .RE
1105
1106 .sp
1107 .ne 2
1108 .mk
1109 .na
1110 \fB\fB-D\fR\fR
1111 .ad
1112 .RS 16n
1113 .rt  
1114 Lists destroyed pools only.
1115 .RE
1116
1117 .RE
1118
1119 .sp
1120 .ne 2
1121 .mk
1122 .na
1123 \fB\fBzpool import\fR [\fB-o\fR \fImntopts\fR] [ \fB-o\fR \fIproperty\fR=\fIvalue\fR] ... [\fB-d\fR \fIdir\fR | \fB-c\fR \fIcachefile\fR] [\fB-D\fR] [\fB-f\fR] [\fB-m\fR] [\fB-N\fR] [\fB-R\fR \fIroot\fR] [\fB-F\fR [\fB-n\fR]] \fB-a\fR\fR
1124 .ad
1125 .sp .6
1126 .RS 4n
1127 Imports all pools found in the search directories. Identical to the previous command, except that all pools with a sufficient number of devices available are imported. Destroyed pools, pools that were previously destroyed with the "\fBzpool destroy\fR" command, will not be imported unless the \fB-D\fR option is specified.
1128 .sp
1129 .ne 2
1130 .mk
1131 .na
1132 \fB\fB-o\fR \fImntopts\fR\fR
1133 .ad
1134 .RS 21n
1135 .rt  
1136 Comma-separated list of mount options to use when mounting datasets within the pool. See \fBzfs\fR(8) for a description of dataset properties and mount options.
1137 .RE
1138
1139 .sp
1140 .ne 2
1141 .mk
1142 .na
1143 \fB\fB-o\fR \fIproperty=value\fR\fR
1144 .ad
1145 .RS 21n
1146 .rt  
1147 Sets the specified property on the imported pool. See the "Properties" section for more information on the available pool properties.
1148 .RE
1149
1150 .sp
1151 .ne 2
1152 .mk
1153 .na
1154 \fB\fB-c\fR \fIcachefile\fR\fR
1155 .ad
1156 .RS 21n
1157 .rt  
1158 Reads configuration from the given \fBcachefile\fR that was created with the "\fBcachefile\fR" pool property. This \fBcachefile\fR is used instead of searching for devices.
1159 .RE
1160
1161 .sp
1162 .ne 2
1163 .mk
1164 .na
1165 \fB\fB-d\fR \fIdir\fR\fR
1166 .ad
1167 .RS 21n
1168 .rt  
1169 Searches for devices or files in \fIdir\fR. The \fB-d\fR option can be specified multiple times. This option is incompatible with the \fB-c\fR option.
1170 .RE
1171
1172 .sp
1173 .ne 2
1174 .mk
1175 .na
1176 \fB\fB-D\fR\fR
1177 .ad
1178 .RS 21n
1179 .rt  
1180 Imports destroyed pools only. The \fB-f\fR option is also required.
1181 .RE
1182
1183 .sp
1184 .ne 2
1185 .mk
1186 .na
1187 \fB\fB-f\fR\fR
1188 .ad
1189 .RS 21n
1190 .rt  
1191 Forces import, even if the pool appears to be potentially active.
1192 .RE
1193
1194 .sp
1195 .ne 2
1196 .mk
1197 .na
1198 \fB\fB-F\fR\fR
1199 .ad
1200 .RS 21n
1201 Recovery mode for a non-importable pool. Attempt to return the pool to an importable state by discarding the last few transactions. Not all damaged pools can be recovered by using this option. If successful, the data from the discarded transactions is irretrievably lost. This option is ignored if the pool is importable or already imported.
1202 .RE
1203
1204 .sp
1205 .ne 2
1206 .mk
1207 .na
1208 \fB\fB-a\fR\fR
1209 .ad
1210 .RS 21n
1211 .rt  
1212 Searches for and imports all pools found. 
1213 .RE
1214
1215 .sp
1216 .ne 2
1217 .mk
1218 .na
1219 \fB\fB-m\fR\fR
1220 .ad
1221 .RS 21n
1222 Allows a pool to import when there is a missing log device.
1223 .RE
1224
1225 .sp
1226 .ne 2
1227 .mk
1228 .na
1229 \fB\fB-R\fR \fIroot\fR\fR
1230 .ad
1231 .RS 21n
1232 .rt  
1233 Sets the "\fBcachefile\fR" property to "\fBnone\fR" and the "\fIaltroot\fR" property to "\fIroot\fR".
1234 .RE
1235
1236 .sp
1237 .ne 2
1238 .mk
1239 .na
1240 \fB\fB-N\fR\fR
1241 .ad
1242 .RS 21n
1243 Import the pool without mounting any file systems.
1244 .RE
1245
1246 .sp
1247 .ne 2
1248 .mk
1249 .na
1250 \fB\fB-n\fR\fR
1251 .ad
1252 .RS 21n
1253 Used with the \fB-F\fR 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 \fB-F\fR option, above.
1254 .RE
1255
1256 .RE
1257
1258 .sp
1259 .ne 2
1260 .mk
1261 .na
1262 \fB\fBzpool import\fR [\fB-o\fR \fImntopts\fR] [ \fB-o\fR \fIproperty\fR=\fIvalue\fR] ... [\fB-d\fR \fIdir\fR | \fB-c\fR \fIcachefile\fR] [\fB-D\fR] [\fB-f\fR] [\fB-m\fR] [\fB-R\fR \fIroot\fR] [\fB-F\fR [\fB-n\fR]] \fIpool\fR | \fIid\fR [\fInewpool\fR]\fR
1263 .ad
1264 .sp .6
1265 .RS 4n
1266 Imports a specific pool. A pool can be identified by its name or the numeric identifier. If \fInewpool\fR is specified, the pool is imported using the name \fInewpool\fR. Otherwise, it is imported with the same name as its exported name.
1267 .sp
1268 If a device is removed from a system without running "\fBzpool export\fR" 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 \fB-f\fR option is required.
1269 .sp
1270 .ne 2
1271 .mk
1272 .na
1273 \fB\fB-o\fR \fImntopts\fR\fR
1274 .ad
1275 .sp .6
1276 .RS 4n
1277 Comma-separated list of mount options to use when mounting datasets within the pool. See \fBzfs\fR(8) for a description of dataset properties and mount options.
1278 .RE
1279
1280 .sp
1281 .ne 2
1282 .mk
1283 .na
1284 \fB\fB-o\fR \fIproperty=value\fR\fR
1285 .ad
1286 .sp .6
1287 .RS 4n
1288 Sets the specified property on the imported pool. See the "Properties" section for more information on the available pool properties.
1289 .RE
1290
1291 .sp
1292 .ne 2
1293 .mk
1294 .na
1295 \fB\fB-c\fR \fIcachefile\fR\fR
1296 .ad
1297 .sp .6
1298 .RS 4n
1299 Reads configuration from the given \fBcachefile\fR that was created with the "\fBcachefile\fR" pool property. This \fBcachefile\fR is used instead of searching for devices.
1300 .RE
1301
1302 .sp
1303 .ne 2
1304 .mk
1305 .na
1306 \fB\fB-d\fR \fIdir\fR\fR
1307 .ad
1308 .sp .6
1309 .RS 4n
1310 Searches for devices or files in \fIdir\fR. The \fB-d\fR option can be specified multiple times. This option is incompatible with the \fB-c\fR option.
1311 .RE
1312
1313 .sp
1314 .ne 2
1315 .mk
1316 .na
1317 \fB\fB-D\fR\fR
1318 .ad
1319 .sp .6
1320 .RS 4n
1321 Imports destroyed pool. The \fB-f\fR option is also required.
1322 .RE
1323
1324 .sp
1325 .ne 2
1326 .mk
1327 .na
1328 \fB\fB-f\fR\fR
1329 .ad
1330 .sp .6
1331 .RS 4n
1332 Forces import, even if the pool appears to be potentially active.
1333 .RE
1334
1335 .sp
1336 .ne 2
1337 .mk
1338 .na
1339 \fB\fB-F\fR\fR
1340 .ad
1341 .sp .6
1342 .RS 4n
1343 Recovery mode for a non-importable pool. Attempt to return the pool to an importable state by discarding the last few transactions. Not all damaged pools can be recovered by using this option. If successful, the data from the discarded transactions is irretrievably lost. This option is ignored if the pool is importable or already imported.
1344 .RE
1345
1346 .sp
1347 .ne 2
1348 .mk
1349 .na
1350 \fB\fB-R\fR \fIroot\fR\fR
1351 .ad
1352 .sp .6
1353 .RS 4n
1354 Sets the "\fBcachefile\fR" property to "\fBnone\fR" and the "\fIaltroot\fR" property to "\fIroot\fR".
1355 .RE
1356
1357 .sp
1358 .ne 2
1359 .mk
1360 .na
1361 \fB\fB-n\fR\fR
1362 .ad
1363 .sp .6
1364 .RS 4n
1365 Used with the \fB-F\fR 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 \fB-F\fR option, above.
1366 .RE
1367
1368 .sp
1369 .ne 2
1370 .mk
1371 .na
1372 \fB\fB-m\fR\fR
1373 .ad
1374 .sp .6
1375 .RS 4n
1376 Allows a pool to import when there is a missing log device.
1377 .RE
1378
1379 .RE
1380
1381 .sp
1382 .ne 2
1383 .mk
1384 .na
1385 \fB\fBzpool iostat\fR [\fB-T\fR \fBu\fR | \fBd\fR] [\fB-v\fR] [\fIpool\fR] ... [\fIinterval\fR[\fIcount\fR]]\fR
1386 .ad
1387 .sp .6
1388 .RS 4n
1389 Displays \fBI/O\fR statistics for the given pools. When given an interval, the statistics are printed every \fIinterval\fR seconds until \fBCtrl-C\fR is pressed. If no \fIpools\fR are specified, statistics for every pool in the system is shown. If \fIcount\fR is specified, the command exits after \fIcount\fR reports are printed.
1390 .sp
1391 .ne 2
1392 .mk
1393 .na
1394 \fB\fB-T\fR \fBu\fR | \fBd\fR\fR
1395 .ad
1396 .RS 12n
1397 .rt  
1398 Display a time stamp.
1399 .sp
1400 Specify \fBu\fR for a printed representation of the internal representation of time. See \fBtime\fR(2). Specify \fBd\fR for standard date format. See \fBdate\fR(1).
1401 .RE
1402
1403 .sp
1404 .ne 2
1405 .mk
1406 .na
1407 \fB\fB-v\fR\fR
1408 .ad
1409 .RS 12n
1410 .rt  
1411 Verbose statistics. Reports usage statistics for individual \fIvdevs\fR within the pool, in addition to the pool-wide statistics.
1412 .RE
1413
1414 .RE
1415
1416 .sp
1417 .ne 2
1418 .mk
1419 .na
1420 \fB\fBzpool list\fR [\fB-Hv\fR] [\fB-o\fR \fIprops\fR[,...]] [\fIpool\fR] ...\fR
1421 .ad
1422 .sp .6
1423 .RS 4n
1424 Lists the given pools along with a health status and space usage. When given no arguments, all pools in the system are listed.
1425 .sp
1426 .ne 2
1427 .mk
1428 .na
1429 \fB\fB-H\fR\fR
1430 .ad
1431 .RS 12n
1432 .rt  
1433 Scripted mode. Do not display headers, and separate fields by a single tab instead of arbitrary space.
1434 .RE
1435
1436 .sp
1437 .ne 2
1438 .mk
1439 .na
1440 \fB\fB-o\fR \fIprops\fR\fR
1441 .ad
1442 .RS 12n
1443 .rt  
1444 Comma-separated list of properties to display. See the "Properties" section for a list of valid properties. The default list is "name, size, used, available, expandsize, capacity, dedupratio, health, altroot"
1445 .RE
1446
1447 .sp
1448 .ne 2
1449 .mk
1450 .na
1451 \fB\fB-v\fR\fR
1452 .ad
1453 .RS 12n
1454 .rt
1455 Verbose statistics. Reports usage statistics for individual \fIvdevs\fR within the pool, in addition to the pool-wise statistics.
1456 .RE
1457
1458 .RE
1459
1460 .sp
1461 .ne 2
1462 .mk
1463 .na
1464 \fB\fBzpool offline\fR [\fB-t\fR] \fIpool\fR \fIdevice\fR ...\fR
1465 .ad
1466 .sp .6
1467 .RS 4n
1468 Takes the specified physical device offline. While the \fIdevice\fR is offline, no attempt is made to read or write to the device.
1469 .sp
1470 This command is not applicable to spares or cache devices.
1471 .sp
1472 .ne 2
1473 .mk
1474 .na
1475 \fB\fB-t\fR\fR
1476 .ad
1477 .RS 6n
1478 .rt  
1479 Temporary. Upon reboot, the specified physical device reverts to its previous state.
1480 .RE
1481
1482 .RE
1483
1484 .sp
1485 .ne 2
1486 .mk
1487 .na
1488 \fB\fBzpool online\fR [\fB-e\fR] \fIpool\fR \fIdevice\fR...\fR
1489 .ad
1490 .sp .6
1491 .RS 4n
1492 Brings the specified physical device online.
1493 .sp
1494 This command is not applicable to spares or cache devices.
1495 .sp
1496 .ne 2
1497 .mk
1498 .na
1499 \fB\fB-e\fR\fR
1500 .ad
1501 .RS 6n
1502 .rt  
1503 Expand the device to use all available space. If the device is part of a mirror or \fBraidz\fR then all devices must be expanded before the new space will become available to the pool.
1504 .RE
1505
1506 .RE
1507
1508 .sp
1509 .ne 2
1510 .mk
1511 .na
1512 \fB\fBzpool reguid\fR \fIpool\fR
1513 .ad
1514 .sp .6
1515 .RS 4n
1516 Generates a new unique identifier for the pool. You must ensure that all
1517 devices in this pool are online and healthy before performing this action.
1518 .RE
1519
1520 .sp
1521 .ne 2
1522 .na
1523 \fB\fBzpool reopen\fR \fIpool\fR
1524 .ad
1525 .sp .6
1526 .RS 4n
1527 Reopen all the vdevs associated with the pool.
1528 .RE
1529
1530 .sp
1531 .ne 2
1532 .na
1533 \fB\fBzpool remove\fR \fIpool\fR \fIdevice\fR ...\fR
1534 .ad
1535 .sp .6
1536 .RS 4n
1537 Removes the specified device from the pool. This command currently only supports removing hot spares, cache, and log devices. A mirrored log device can be removed by specifying the top-level mirror for the log. Non-log devices that are part of a mirrored configuration can be removed using the \fBzpool detach\fR command. Non-redundant and \fBraidz\fR devices cannot be removed from a pool.
1538 .RE
1539
1540 .sp
1541 .ne 2
1542 .mk
1543 .na
1544 \fB\fBzpool replace\fR [\fB-f\fR] \fIpool\fR \fIold_device\fR [\fInew_device\fR]\fR
1545 .ad
1546 .sp .6
1547 .RS 4n
1548 Replaces \fIold_device\fR with \fInew_device\fR. This is equivalent to attaching \fInew_device\fR, waiting for it to resilver, and then detaching \fIold_device\fR.
1549 .sp
1550 The size of \fInew_device\fR must be greater than or equal to the minimum size of all the devices in a mirror or \fBraidz\fR configuration.
1551 .sp
1552 \fInew_device\fR is required if the pool is not redundant. If \fInew_device\fR is not specified, it defaults to \fIold_device\fR. This form of replacement is useful after an existing disk has failed and has been physically replaced. In this case, the new disk may have the same \fB/dev\fR path as the old device, even though it is actually a different disk. \fBZFS\fR recognizes this.
1553 .sp
1554 .ne 2
1555 .mk
1556 .na
1557 \fB\fB-f\fR\fR
1558 .ad
1559 .RS 6n
1560 .rt  
1561 Forces use of \fInew_device\fR, even if its appears to be in use. Not all devices can be overridden in this manner.
1562 .RE
1563
1564 .RE
1565
1566 .sp
1567 .ne 2
1568 .mk
1569 .na
1570 \fB\fBzpool scrub\fR [\fB-s\fR] \fIpool\fR ...\fR
1571 .ad
1572 .sp .6
1573 .RS 4n
1574 Begins a scrub. The scrub examines all data in the specified pools to verify that it checksums correctly. For replicated (mirror or \fBraidz\fR) devices, \fBZFS\fR automatically repairs any damage discovered during the scrub. The "\fBzpool status\fR" command reports the progress of the scrub and summarizes the results of the scrub upon completion.
1575 .sp
1576 Scrubbing and resilvering are very similar operations. The difference is that resilvering only examines data that \fBZFS\fR knows to be out of date (for example, when attaching a new device to a mirror or replacing an existing device), whereas scrubbing examines all data to discover silent errors due to hardware faults or disk failure.
1577 .sp
1578 Because scrubbing and resilvering are \fBI/O\fR-intensive operations, \fBZFS\fR only allows one at a time. If a scrub is already in progress, the "\fBzpool scrub\fR" command terminates it and starts a new scrub. If a resilver is in progress, \fBZFS\fR does not allow a scrub to be started until the resilver completes.
1579 .sp
1580 .ne 2
1581 .mk
1582 .na
1583 \fB\fB-s\fR\fR
1584 .ad
1585 .RS 6n
1586 .rt  
1587 Stop scrubbing.
1588 .RE
1589
1590 .RE
1591
1592 .sp
1593 .ne 2
1594 .mk
1595 .na
1596 \fB\fBzpool set\fR \fIproperty\fR=\fIvalue\fR \fIpool\fR\fR
1597 .ad
1598 .sp .6
1599 .RS 4n
1600 Sets the given property on the specified pool. See the "Properties" section for more information on what properties can be set and acceptable values.
1601 .RE
1602
1603 .sp
1604 .ne 2
1605 .mk
1606 .na
1607 \fB\fBzpool status\fR [\fB-xv\fR] [\fIpool\fR] ...\fR
1608 .ad
1609 .sp .6
1610 .RS 4n
1611 Displays the detailed health status for the given pools. If no \fIpool\fR is specified, then the status of each pool in the system is displayed. For more information on pool and device health, see the "Device Failure and Recovery" section.
1612 .sp
1613 If a scrub or resilver is in progress, this command reports the percentage done and the estimated time to completion. Both of these are only approximate, because the amount of data in the pool and the other workloads on the system can change.
1614 .sp
1615 .ne 2
1616 .mk
1617 .na
1618 \fB\fB-x\fR\fR
1619 .ad
1620 .RS 6n
1621 .rt  
1622 Only display status for pools that are exhibiting errors or are otherwise unavailable. Warnings about pools not using the latest on-disk format will not be included.
1623 .RE
1624
1625 .sp
1626 .ne 2
1627 .mk
1628 .na
1629 \fB\fB-v\fR\fR
1630 .ad
1631 .RS 6n
1632 .rt  
1633 Displays verbose data error information, printing out a complete list of all data errors since the last complete pool scrub.
1634 .RE
1635
1636 .RE
1637
1638 .sp
1639 .ne 2
1640 .mk
1641 .na
1642 \fB\fBzpool upgrade\fR\fR
1643 .ad
1644 .sp .6
1645 .RS 4n
1646 Displays pools which do not have all supported features enabled and pools formatted using a legacy ZFS version number. These pools can continue to be used, but some features may not be available. Use "\fBzpool upgrade -a\fR" to enable all features on all pools.
1647 .RE
1648
1649 .sp
1650 .ne 2
1651 .mk
1652 .na
1653 \fB\fBzpool upgrade\fR \fB-v\fR\fR
1654 .ad
1655 .sp .6
1656 .RS 4n
1657 Displays legacy \fBZFS\fR versions supported by the current software. See \fBzfs-features\fR(5) for a description of feature flags features supported by the current software.
1658 .RE
1659
1660 .sp
1661 .ne 2
1662 .mk
1663 .na
1664 \fB\fBzpool upgrade\fR [\fB-V\fR \fIversion\fR] \fB-a\fR | \fIpool\fR ...\fR
1665 .ad
1666 .sp .6
1667 .RS 4n
1668 Enables all supported features on the given pool. Once this is done, the pool will no longer be accessible on systems that do not support feature flags. See \fBzfs-features\fR(5) for details on compatability with systems that support feature flags, but do not support all features enabled on the pool.
1669 .sp
1670 .ne 2
1671 .mk
1672 .na
1673 \fB\fB-a\fR\fR
1674 .ad
1675 .RS 14n
1676 .rt
1677 Enables all supported features on all pools.
1678 .RE
1679
1680 .sp
1681 .ne 2
1682 .mk
1683 .na
1684 \fB\fB-V\fR \fIversion\fR\fR
1685 .ad
1686 .RS 14n
1687 .rt
1688 Upgrade to the specified legacy version. If the \fB-V\fR flag is specified, no features will be enabled on the pool. This option can only be used to increase the version number up to the last supported legacy version number.
1689 .RE
1690
1691 .RE
1692
1693 .SH EXAMPLES
1694 .LP
1695 \fBExample 1 \fRCreating a RAID-Z Storage Pool
1696 .sp
1697 .LP
1698 The following command creates a pool with a single \fBraidz\fR root \fIvdev\fR that consists of six disks.
1699
1700 .sp
1701 .in +2
1702 .nf
1703 # \fBzpool create tank raidz sda sdb sdc sdd sde sdf\fR
1704 .fi
1705 .in -2
1706 .sp
1707
1708 .LP
1709 \fBExample 2 \fRCreating a Mirrored Storage Pool
1710 .sp
1711 .LP
1712 The following command creates a pool with two mirrors, where each mirror contains two disks.
1713
1714 .sp
1715 .in +2
1716 .nf
1717 # \fBzpool create tank mirror sda sdb mirror sdc sdd\fR
1718 .fi
1719 .in -2
1720 .sp
1721
1722 .LP
1723 \fBExample 3 \fRCreating a ZFS Storage Pool by Using Partitions
1724 .sp
1725 .LP
1726 The following command creates an unmirrored pool using two disk partitions.
1727
1728 .sp
1729 .in +2
1730 .nf
1731 # \fBzpool create tank sda1 sdb2\fR
1732 .fi
1733 .in -2
1734 .sp
1735
1736 .LP
1737 \fBExample 4 \fRCreating a ZFS Storage Pool by Using Files
1738 .sp
1739 .LP
1740 The following command creates an unmirrored pool using files. While not recommended, a pool based on files can be useful for experimental purposes.
1741
1742 .sp
1743 .in +2
1744 .nf
1745 # \fBzpool create tank /path/to/file/a /path/to/file/b\fR
1746 .fi
1747 .in -2
1748 .sp
1749
1750 .LP
1751 \fBExample 5 \fRAdding a Mirror to a ZFS Storage Pool
1752 .sp
1753 .LP
1754 The following command adds two mirrored disks to the pool \fItank\fR, assuming the pool is already made up of two-way mirrors. The additional space is immediately available to any datasets within the pool.
1755
1756 .sp
1757 .in +2
1758 .nf
1759 # \fBzpool add tank mirror sda sdb\fR
1760 .fi
1761 .in -2
1762 .sp
1763
1764 .LP
1765 \fBExample 6 \fRListing Available ZFS Storage Pools
1766 .sp
1767 .LP
1768 The following command lists all available pools on the system. In this case, the pool \fIzion\fR is faulted due to a missing device.
1769
1770 .sp
1771 .LP
1772 The results from this command are similar to the following:
1773
1774 .sp
1775 .in +2
1776 .nf
1777 # \fBzpool list\fR
1778      NAME    SIZE  ALLOC   FREE  EXPANDSZ    CAP  DEDUP  HEALTH  ALTROOT
1779      rpool  19.9G  8.43G  11.4G         -    42%  1.00x  ONLINE  -
1780      tank   61.5G  20.0G  41.5G         -    32%  1.00x  ONLINE  -
1781      zion       -      -      -         -      -      -  FAULTED -
1782 .fi
1783 .in -2
1784 .sp
1785
1786 .LP
1787 \fBExample 7 \fRDestroying a ZFS Storage Pool
1788 .sp
1789 .LP
1790 The following command destroys the pool \fItank\fR and any datasets contained within.
1791
1792 .sp
1793 .in +2
1794 .nf
1795 # \fBzpool destroy -f tank\fR
1796 .fi
1797 .in -2
1798 .sp
1799
1800 .LP
1801 \fBExample 8 \fRExporting a ZFS Storage Pool
1802 .sp
1803 .LP
1804 The following command exports the devices in pool \fItank\fR so that they can be relocated or later imported.
1805
1806 .sp
1807 .in +2
1808 .nf
1809 # \fBzpool export tank\fR
1810 .fi
1811 .in -2
1812 .sp
1813
1814 .LP
1815 \fBExample 9 \fRImporting a ZFS Storage Pool
1816 .sp
1817 .LP
1818 The following command displays available pools, and then imports the pool \fItank\fR for use on the system.
1819
1820 .sp
1821 .LP
1822 The results from this command are similar to the following:
1823
1824 .sp
1825 .in +2
1826 .nf
1827 # \fBzpool import\fR
1828   pool: tank
1829     id: 15451357997522795478
1830  state: ONLINE
1831 action: The pool can be imported using its name or numeric identifier.
1832 config:
1833
1834         tank        ONLINE
1835           mirror    ONLINE
1836             sda     ONLINE
1837             sdb     ONLINE
1838
1839 # \fBzpool import tank\fR
1840 .fi
1841 .in -2
1842 .sp
1843
1844 .LP
1845 \fBExample 10 \fRUpgrading All ZFS Storage Pools to the Current Version
1846 .sp
1847 .LP
1848 The following command upgrades all ZFS Storage pools to the current version of the software.
1849
1850 .sp
1851 .in +2
1852 .nf
1853 # \fBzpool upgrade -a\fR
1854 This system is currently running ZFS pool version 28.
1855 .fi
1856 .in -2
1857 .sp
1858
1859 .LP
1860 \fBExample 11 \fRManaging Hot Spares
1861 .sp
1862 .LP
1863 The following command creates a new pool with an available hot spare:
1864
1865 .sp
1866 .in +2
1867 .nf
1868 # \fBzpool create tank mirror sda sdb spare sdc\fR
1869 .fi
1870 .in -2
1871 .sp
1872
1873 .sp
1874 .LP
1875 If one of the disks were to fail, the pool would be reduced to the degraded state. The failed device can be replaced using the following command:
1876
1877 .sp
1878 .in +2
1879 .nf
1880 # \fBzpool replace tank sda sdd\fR
1881 .fi
1882 .in -2
1883 .sp
1884
1885 .sp
1886 .LP
1887 Once the data has been resilvered, the spare is automatically removed and is made available for use should another device fails. The hot spare can be permanently removed from the pool using the following command:
1888
1889 .sp
1890 .in +2
1891 .nf
1892 # \fBzpool remove tank sdc\fR
1893 .fi
1894 .in -2
1895 .sp
1896
1897 .LP
1898 \fBExample 12 \fRCreating a ZFS Pool with Mirrored Separate Intent Logs
1899 .sp
1900 .LP
1901 The following command creates a ZFS storage pool consisting of two, two-way mirrors and mirrored log devices:
1902
1903 .sp
1904 .in +2
1905 .nf
1906 # \fBzpool create pool mirror sda sdb mirror sdc sdd log mirror \e
1907    sde sdf\fR
1908 .fi
1909 .in -2
1910 .sp
1911
1912 .LP
1913 \fBExample 13 \fRAdding Cache Devices to a ZFS Pool
1914 .sp
1915 .LP
1916 The following command adds two disks for use as cache devices to a ZFS storage pool:
1917
1918 .sp
1919 .in +2
1920 .nf
1921 # \fBzpool add pool cache sdc sdd\fR
1922 .fi
1923 .in -2
1924 .sp
1925
1926 .sp
1927 .LP
1928 Once added, the cache devices gradually fill with content from main memory. Depending on the size of your cache devices, it could take over an hour for them to fill. Capacity and reads can be monitored using the \fBiostat\fR option as follows: 
1929
1930 .sp
1931 .in +2
1932 .nf
1933 # \fBzpool iostat -v pool 5\fR
1934 .fi
1935 .in -2
1936 .sp
1937
1938 .LP
1939 \fBExample 14 \fRRemoving a Mirrored Log Device
1940 .sp
1941 .LP
1942 The following command removes the mirrored log device \fBmirror-2\fR.
1943
1944 .sp
1945 .LP
1946 Given this configuration:
1947
1948 .sp
1949 .in +2
1950 .nf
1951    pool: tank
1952   state: ONLINE
1953   scrub: none requested
1954 config:
1955
1956          NAME        STATE     READ WRITE CKSUM
1957          tank        ONLINE       0     0     0
1958            mirror-0  ONLINE       0     0     0
1959              sda     ONLINE       0     0     0
1960              sdb     ONLINE       0     0     0
1961            mirror-1  ONLINE       0     0     0
1962              sdc     ONLINE       0     0     0
1963              sdd     ONLINE       0     0     0
1964          logs
1965            mirror-2  ONLINE       0     0     0
1966              sde     ONLINE       0     0     0
1967              sdf     ONLINE       0     0     0
1968 .fi
1969 .in -2
1970 .sp
1971
1972 .sp
1973 .LP
1974 The command to remove the mirrored log \fBmirror-2\fR is:
1975
1976 .sp
1977 .in +2
1978 .nf
1979 # \fBzpool remove tank mirror-2\fR
1980 .fi
1981 .in -2
1982 .sp
1983
1984 .LP
1985 \fBExample 15 \fRDisplaying expanded space on a device
1986 .sp
1987 .LP
1988 The following command dipslays the detailed information for the \fIdata\fR
1989 pool. This pool is comprised of a single \fIraidz\fR vdev where one of its
1990 devices increased its capacity by 1GB. In this example, the pool will not 
1991 be able to utilized this extra capacity until all the devices under the
1992 \fIraidz\fR vdev have been expanded.
1993
1994 .sp
1995 .in +2
1996 .nf
1997 # \fBzpool list -v data\fR
1998    NAME         SIZE  ALLOC   FREE  EXPANDSZ    CAP  DEDUP  HEALTH  ALTROOT
1999    data        17.9G   174K  17.9G         -     0%  1.00x  ONLINE  -
2000      raidz1    17.9G   174K  17.9G         -
2001        c4t2d0      -      -      -        1G
2002        c4t3d0      -      -      -         -
2003        c4t4d0      -      -      -         - 
2004 .fi
2005 .in -2
2006
2007 .SH EXIT STATUS
2008 .sp
2009 .LP
2010 The following exit values are returned:
2011 .sp
2012 .ne 2
2013 .mk
2014 .na
2015 \fB\fB0\fR\fR
2016 .ad
2017 .RS 5n
2018 .rt  
2019 Successful completion. 
2020 .RE
2021
2022 .sp
2023 .ne 2
2024 .mk
2025 .na
2026 \fB\fB1\fR\fR
2027 .ad
2028 .RS 5n
2029 .rt  
2030 An error occurred.
2031 .RE
2032
2033 .sp
2034 .ne 2
2035 .mk
2036 .na
2037 \fB\fB2\fR\fR
2038 .ad
2039 .RS 5n
2040 .rt  
2041 Invalid command line options were specified.
2042 .RE
2043
2044 .SH SEE ALSO
2045 .sp
2046 .LP
2047 \fBzfs\fR(8), \fBzpool-features\fR(5)