Formating changes for zpool manpage
[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 split\fR [\fB-n\fR] [\fB-R\fR \fIaltroot\fR] [\fB-o\fR \fIproperty=value\fR] \fIpool\fR \fInewpool\fR
143 .fi
144
145 .LP
146 .nf
147 \fBzpool status\fR [\fB-xv\fR] [\fIpool\fR] ...
148 .fi
149
150 .LP
151 .nf
152 \fBzpool upgrade\fR 
153 .fi
154
155 .LP
156 .nf
157 \fBzpool upgrade\fR \fB-v\fR
158 .fi
159
160 .LP
161 .nf
162 \fBzpool upgrade\fR [\fB-V\fR \fIversion\fR] \fB-a\fR | \fIpool\fR ...
163 .fi
164
165 .SH DESCRIPTION
166 .sp
167 .LP
168 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.
169 .sp
170 .LP
171 All datasets within a storage pool share the same space. See \fBzfs\fR(8) for information on managing datasets.
172 .SS "Virtual Devices (\fBvdev\fRs)"
173 .sp
174 .LP
175 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:
176 .sp
177 .ne 2
178 .mk
179 .na
180 \fB\fBdisk\fR\fR
181 .ad
182 .RS 10n
183 .rt  
184 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.
185 .RE
186
187 .sp
188 .ne 2
189 .mk
190 .na
191 \fB\fBfile\fR\fR
192 .ad
193 .RS 10n
194 .rt  
195 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.
196 .RE
197
198 .sp
199 .ne 2
200 .mk
201 .na
202 \fB\fBmirror\fR\fR
203 .ad
204 .RS 10n
205 .rt  
206 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.
207 .RE
208
209 .sp
210 .ne 2
211 .mk
212 .na
213 \fB\fBraidz\fR\fR
214 .ad
215 .br
216 .na
217 \fB\fBraidz1\fR\fR
218 .ad
219 .br
220 .na
221 \fB\fBraidz2\fR\fR
222 .ad
223 .br
224 .na
225 \fB\fBraidz3\fR\fR
226 .ad
227 .RS 10n
228 .rt  
229 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.
230 .sp
231 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.
232 .sp
233 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.
234 .RE
235
236 .sp
237 .ne 2
238 .mk
239 .na
240 \fB\fBspare\fR\fR
241 .ad
242 .RS 10n
243 .rt  
244 A special pseudo-\fBvdev\fR which keeps track of available hot spares for a pool. For more information, see the "Hot Spares" section.
245 .RE
246
247 .sp
248 .ne 2
249 .mk
250 .na
251 \fB\fBlog\fR\fR
252 .ad
253 .RS 10n
254 .rt  
255 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.
256 .RE
257
258 .sp
259 .ne 2
260 .mk
261 .na
262 \fB\fBcache\fR\fR
263 .ad
264 .RS 10n
265 .rt  
266 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.
267 .RE
268
269 .sp
270 .LP
271 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.
272 .sp
273 .LP
274 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.
275 .sp
276 .LP
277 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:
278 .sp
279 .in +2
280 .nf
281 # \fBzpool create mypool mirror sda sdb mirror sdc sdd\fR
282 .fi
283 .in -2
284 .sp
285
286 .SS "Device Failure and Recovery"
287 .sp
288 .LP
289 \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.
290 .sp
291 .LP
292 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.
293 .sp
294 .LP
295 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. 
296 .sp
297 .LP
298 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:
299 .sp
300 .ne 2
301 .mk
302 .na
303 \fB\fBDEGRADED\fR\fR
304 .ad
305 .RS 12n
306 .rt  
307 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.
308 .sp
309 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:
310 .RS +4
311 .TP
312 .ie t \(bu
313 .el o
314 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.
315 .RE
316 .RS +4
317 .TP
318 .ie t \(bu
319 .el o
320 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.
321 .RE
322 .RE
323
324 .sp
325 .ne 2
326 .mk
327 .na
328 \fB\fBFAULTED\fR\fR
329 .ad
330 .RS 12n
331 .rt  
332 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. 
333 .sp
334 One or more component devices is in the faulted state, and insufficient replicas exist to continue functioning. The underlying conditions are as follows:
335 .RS +4
336 .TP
337 .ie t \(bu
338 .el o
339 The device could be opened, but the contents did not match expected values. 
340 .RE
341 .RS +4
342 .TP
343 .ie t \(bu
344 .el o
345 The number of I/O errors exceeds acceptable levels and the device is faulted to prevent further use of the device.
346 .RE
347 .RE
348
349 .sp
350 .ne 2
351 .mk
352 .na
353 \fB\fBOFFLINE\fR\fR
354 .ad
355 .RS 12n
356 .rt  
357 The device was explicitly taken offline by the "\fBzpool offline\fR" command.
358 .RE
359
360 .sp
361 .ne 2
362 .mk
363 .na
364 \fB\fBONLINE\fR\fR
365 .ad
366 .RS 12n
367 .rt  
368 The device is online and functioning.
369 .RE
370
371 .sp
372 .ne 2
373 .mk
374 .na
375 \fB\fBREMOVED\fR\fR
376 .ad
377 .RS 12n
378 .rt  
379 The device was physically removed while the system was running. Device removal detection is hardware-dependent and may not be supported on all platforms.
380 .RE
381
382 .sp
383 .ne 2
384 .mk
385 .na
386 \fB\fBUNAVAIL\fR\fR
387 .ad
388 .RS 12n
389 .rt  
390 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.
391 .RE
392
393 .sp
394 .LP
395 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.
396 .SS "Hot Spares"
397 .sp
398 .LP
399 \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, 
400 .sp
401 .in +2
402 .nf
403 # zpool create pool mirror sda sdb spare sdc sdd
404 .fi
405 .in -2
406 .sp
407
408 .sp
409 .LP
410 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.
411 .sp
412 .LP
413 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.
414 .sp
415 .LP
416 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.
417 .sp
418 .LP
419 Spares cannot replace log devices.
420 .SS "Intent Log"
421 .sp
422 .LP
423 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:
424 .sp
425 .in +2
426 .nf
427 \fB# zpool create pool sda sdb log sdc\fR
428 .fi
429 .in -2
430 .sp
431
432 .sp
433 .LP
434 Multiple log devices can also be specified, and they can be mirrored. See the EXAMPLES section for an example of mirroring multiple log devices.
435 .sp
436 .LP
437 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.
438 .SS "Cache Devices"
439 .sp
440 .LP
441 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.
442 .sp
443 .LP
444 To create a pool with cache devices, specify a "cache" \fBvdev\fR with any number of devices. For example:
445 .sp
446 .in +2
447 .nf
448 \fB# zpool create pool sda sdb cache sdc sdd\fR
449 .fi
450 .in -2
451 .sp
452
453 .sp
454 .LP
455 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.
456 .sp
457 .LP
458 The content of the cache devices is considered volatile, as is the case with other system caches.
459 .SS "Properties"
460 .sp
461 .LP
462 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:
463 .sp
464 .ne 2
465 .mk
466 .na
467 \fB\fBavailable\fR\fR
468 .ad
469 .RS 20n
470 .rt  
471 Amount of storage available within the pool. This property can also be referred to by its shortened column name, "avail".
472 .RE
473
474 .sp
475 .ne 2
476 .mk
477 .na
478 \fB\fBcapacity\fR\fR
479 .ad
480 .RS 20n
481 .rt  
482 Percentage of pool space used. This property can also be referred to by its shortened column name, "cap".
483 .RE
484
485 .sp
486 .ne 2
487 .mk
488 .na
489 \fB\fBexpandsize\fR\fR
490 .ad
491 .RS 20n
492 .rt
493 Amount of uninitialized space within the pool or device that can be used to
494 increase the total capacity of the pool.  Uninitialized space consists of
495 any space on an EFI labeled vdev which has not been brought online
496 (i.e. zpool online -e).  This space occurs when a LUN is dynamically expanded.
497 .RE
498
499 .sp
500 .ne 2
501 .mk
502 .na
503 \fB\fBfree\fR\fR
504 .ad
505 .RS 20n
506 .rt
507 The amount of free space available in the pool.
508 .RE
509
510 .sp
511 .ne 2
512 .mk
513 .na
514 \fB\fBfreeing\fR\fR
515 .ad
516 .RS 20n
517 .rt
518 After a file system or snapshot is destroyed, the space it was using is
519 returned to the pool asynchronously. \fB\fBfreeing\fR\fR is the amount of
520 space remaining to be reclaimed. Over time \fB\fBfreeing\fR\fR will decrease
521 while \fB\fBfree\fR\fR increases.
522 .RE
523
524 .sp
525 .ne 2
526 .mk
527 .na
528 \fB\fBhealth\fR\fR
529 .ad
530 .RS 20n
531 .rt  
532 The current health of the pool. Health can be "\fBONLINE\fR", "\fBDEGRADED\fR", "\fBFAULTED\fR", " \fBOFFLINE\fR", "\fBREMOVED\fR", or "\fBUNAVAIL\fR".
533 .RE
534
535 .sp
536 .ne 2
537 .mk
538 .na
539 \fB\fBguid\fR\fR
540 .ad
541 .RS 20n
542 .rt  
543 A unique identifier for the pool.
544 .RE
545
546 .sp
547 .ne 2
548 .mk
549 .na
550 \fB\fBsize\fR\fR
551 .ad
552 .RS 20n
553 .rt  
554 Total size of the storage pool.
555 .RE
556
557 .sp
558 .ne 2
559 .mk
560 .na
561 \fB\fBunsupported@\fR\fIfeature_guid\fR\fR
562 .ad
563 .RS 20n
564 .rt
565 Information about unsupported features that are enabled on the pool. See
566 \fBzpool-features\fR(5) for details.
567 .RE
568
569 .sp
570 .ne 2
571 .mk
572 .na
573 \fB\fBused\fR\fR
574 .ad
575 .RS 20n
576 .rt  
577 Amount of storage space used within the pool.
578 .RE
579
580 .sp
581 .LP
582 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.
583
584 .sp
585 .LP
586 The following property can be set at creation time:
587 .sp
588 .ne 2
589 .mk
590 .na
591 \fB\fBashift\fR\fR
592 .ad
593 .sp .6
594 .RS 4n
595 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).
596 .LP
597 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.
598 .RE
599
600 .sp
601 .LP
602 The following property can be set at creation time and import time:
603 .sp
604 .ne 2
605 .mk
606 .na
607 \fB\fBaltroot\fR\fR
608 .ad
609 .sp .6
610 .RS 4n
611 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.
612 .RE
613
614 .sp
615 .LP
616 The following properties can be set at creation time and import time, and later changed with the \fBzpool set\fR command:
617 .sp
618 .ne 2
619 .mk
620 .na
621 \fB\fBautoexpand\fR=\fBon\fR | \fBoff\fR\fR
622 .ad
623 .sp .6
624 .RS 4n
625 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.
626 .RE
627
628 .sp
629 .ne 2
630 .mk
631 .na
632 \fB\fBautoreplace\fR=\fBon\fR | \fBoff\fR\fR
633 .ad
634 .sp .6
635 .RS 4n
636 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".
637 .RE
638
639 .sp
640 .ne 2
641 .mk
642 .na
643 \fB\fBbootfs\fR=\fIpool\fR/\fIdataset\fR\fR
644 .ad
645 .sp .6
646 .RS 4n
647 Identifies the default bootable dataset for the root pool. This property is expected to be set mainly by the installation and upgrade programs.
648 .RE
649
650 .sp
651 .ne 2
652 .mk
653 .na
654 \fB\fBcachefile\fR=\fIpath\fR | \fBnone\fR\fR
655 .ad
656 .sp .6
657 .RS 4n
658 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. 
659 .sp
660 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.
661 .RE
662
663 .sp
664 .ne 2
665 .mk
666 .na
667 \fB\fBcomment\fR=\fB\fItext\fR\fR
668 .ad
669 .sp .6
670 .RS 4n
671 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.
672 .RE
673
674 .sp
675 .ne 2
676 .mk
677 .na
678 \fB\fBdelegation\fR=\fBon\fR | \fBoff\fR\fR
679 .ad
680 .sp .6
681 .RS 4n
682 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.
683 .RE
684
685 .sp
686 .ne 2
687 .mk
688 .na
689 \fB\fBfailmode\fR=\fBwait\fR | \fBcontinue\fR | \fBpanic\fR\fR
690 .ad
691 .sp .6
692 .RS 4n
693 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:
694 .sp
695 .ne 2
696 .mk
697 .na
698 \fB\fBwait\fR\fR
699 .ad
700 .RS 12n
701 .rt  
702 Blocks all \fBI/O\fR access until the device connectivity is recovered and the errors are cleared. This is the default behavior.
703 .RE
704
705 .sp
706 .ne 2
707 .mk
708 .na
709 \fB\fBcontinue\fR\fR
710 .ad
711 .RS 12n
712 .rt  
713 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.
714 .RE
715
716 .sp
717 .ne 2
718 .mk
719 .na
720 \fB\fBpanic\fR\fR
721 .ad
722 .RS 12n
723 .rt  
724 Prints out a message to the console and generates a system crash dump.
725 .RE
726
727 .RE
728
729 .sp
730 .ne 2
731 .na
732 \fB\fBfeature@\fR\fIfeature_name\fR=\fBenabled\fR\fR
733 .ad
734 .RS 4n
735 The value of this property is the current state of \fIfeature_name\fR. The
736 only valid value when setting this property is \fBenabled\fR which moves
737 \fIfeature_name\fR to the enabled state. See \fBzpool-features\fR(5) for
738 details on feature states.
739 .RE
740
741 .sp
742 .ne 2
743 .mk
744 .na
745 \fB\fBlistsnaps\fR=on | off\fR
746 .ad
747 .sp .6
748 .RS 4n
749 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".
750 .RE
751
752 .sp
753 .ne 2
754 .mk
755 .na
756 \fB\fBversion\fR=\fIversion\fR\fR
757 .ad
758 .sp .6
759 .RS 4n
760 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.
761 .RE
762
763 .SS "Subcommands"
764 .sp
765 .LP
766 All subcommands that modify state are logged persistently to the pool in their original form.
767 .sp
768 .LP
769 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:
770 .sp
771 .ne 2
772 .mk
773 .na
774 \fB\fBzpool\fR \fB-?\fR\fR
775 .ad
776 .sp .6
777 .RS 4n
778 Displays a help message.
779 .RE
780
781 .sp
782 .ne 2
783 .mk
784 .na
785 \fB\fBzpool add\fR [\fB-fn\fR] [\fB-o\fR \fIproperty=value\fR] \fIpool\fR \fIvdev\fR ...\fR
786 .ad
787 .sp .6
788 .RS 4n
789 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.
790 .sp
791 .ne 2
792 .mk
793 .na
794 \fB\fB-f\fR\fR
795 .ad
796 .RS 6n
797 .rt  
798 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.
799 .RE
800
801 .sp
802 .ne 2
803 .mk
804 .na
805 \fB\fB-n\fR\fR
806 .ad
807 .RS 6n
808 .rt  
809 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.
810 .RE
811
812 .sp
813 .ne 2
814 .mk
815 .na
816 \fB\fB-o\fR \fIproperty=value\fR
817 .ad
818 .sp .6
819 .RS 4n
820 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".
821 .RE
822
823 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.
824 .RE
825
826 .sp
827 .ne 2
828 .mk
829 .na
830 \fB\fBzpool attach\fR [\fB-f\fR] [\fB-o\fR \fIproperty=value\fR] \fIpool\fR \fIdevice\fR \fInew_device\fR\fR
831 .ad
832 .sp .6
833 .RS 4n
834 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.
835 .sp
836 .ne 2
837 .mk
838 .na
839 \fB\fB-f\fR\fR
840 .ad
841 .RS 6n
842 .rt  
843 Forces use of \fInew_device\fR, even if its appears to be in use. Not all devices can be overridden in this manner.
844 .RE
845
846 .sp
847 .ne 2
848 .mk
849 .na
850 \fB\fB-o\fR \fIproperty=value\fR
851 .ad
852 .sp .6
853 .RS 4n
854 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".
855 .RE
856
857 .RE
858
859 .sp
860 .ne 2
861 .mk
862 .na
863 \fB\fBzpool clear\fR \fIpool\fR [\fIdevice\fR] ...\fR
864 .ad
865 .sp .6
866 .RS 4n
867 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.
868 .RE
869
870 .sp
871 .ne 2
872 .mk
873 .na
874 \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
875 .ad
876 .sp .6
877 .RS 4n
878 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.
879 .sp
880 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.
881 .sp
882 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.
883 .sp
884 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.
885 .sp
886 By default all supported features are enabled on the new pool unless the \fB-d\fR option is specified.
887 .sp
888 .ne 2
889 .mk
890 .na
891 \fB\fB-f\fR\fR
892 .ad
893 .sp .6
894 .RS 4n
895 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.
896 .RE
897
898 .sp
899 .ne 2
900 .mk
901 .na
902 \fB\fB-n\fR\fR
903 .ad
904 .sp .6
905 .RS 4n
906 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.
907 .RE
908
909 .sp
910 .ne 2
911 .mk
912 .na
913 \fB\fB-d\fR\fR
914 .ad
915 .sp .6
916 .RS 4n
917 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.
918 .RE
919
920 .sp
921 .ne 2
922 .na
923 \fB\fB-o\fR \fIproperty=value\fR [\fB-o\fR \fIproperty=value\fR] ...\fR
924 .ad
925 .sp .6
926 .RS 4n
927 Sets the given pool properties. See the "Properties" section for a list of valid properties that can be set.
928 .RE
929
930 .sp
931 .ne 2
932 .mk
933 .na
934 \fB\fB-O\fR \fIfile-system-property=value\fR\fR
935 .ad
936 .br
937 .na
938 \fB[\fB-O\fR \fIfile-system-property=value\fR] ...\fR
939 .ad
940 .sp .6
941 .RS 4n
942 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.
943 .RE
944
945 .sp
946 .ne 2
947 .mk
948 .na
949 \fB\fB-R\fR \fIroot\fR\fR
950 .ad
951 .sp .6
952 .RS 4n
953 Equivalent to "-o cachefile=none,altroot=\fIroot\fR"
954 .RE
955
956 .sp
957 .ne 2
958 .mk
959 .na
960 \fB\fB-m\fR \fImountpoint\fR\fR
961 .ad
962 .sp .6
963 .RS 4n
964 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).
965 .RE
966
967 .RE
968
969 .sp
970 .ne 2
971 .mk
972 .na
973 \fB\fBzpool destroy\fR [\fB-f\fR] \fIpool\fR\fR
974 .ad
975 .sp .6
976 .RS 4n
977 Destroys the given pool, freeing up any devices for other use. This command tries to unmount any active datasets before destroying the pool.
978 .sp
979 .ne 2
980 .mk
981 .na
982 \fB\fB-f\fR\fR
983 .ad
984 .RS 6n
985 .rt  
986 Forces any active datasets contained within the pool to be unmounted.
987 .RE
988
989 .RE
990
991 .sp
992 .ne 2
993 .mk
994 .na
995 \fB\fBzpool detach\fR \fIpool\fR \fIdevice\fR\fR
996 .ad
997 .sp .6
998 .RS 4n
999 Detaches \fIdevice\fR from a mirror. The operation is refused if there are no other valid replicas of the data.
1000 .RE
1001
1002 .sp
1003 .ne 2
1004 .mk
1005 .na
1006 \fB\fBzpool export\fR [\fB-f\fR] \fIpool\fR ...\fR
1007 .ad
1008 .sp .6
1009 .RS 4n
1010 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.
1011 .sp
1012 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.
1013 .sp
1014 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.
1015 .sp
1016 .ne 2
1017 .mk
1018 .na
1019 \fB\fB-f\fR\fR
1020 .ad
1021 .RS 6n
1022 .rt  
1023 Forcefully unmount all datasets, using the "\fBunmount -f\fR" command.
1024 .sp
1025 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.
1026 .RE
1027
1028 .RE
1029
1030 .sp
1031 .ne 2
1032 .mk
1033 .na
1034 \fB\fBzpool get\fR "\fIall\fR" | \fIproperty\fR[,...] \fIpool\fR ...\fR
1035 .ad
1036 .sp .6
1037 .RS 4n
1038 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:
1039 .sp
1040 .in +2
1041 .nf
1042        name          Name of storage pool
1043         property      Property name
1044         value         Property value
1045         source        Property source, either 'default' or 'local'.
1046 .fi
1047 .in -2
1048 .sp
1049
1050 See the "Properties" section for more information on the available pool properties.
1051 .RE
1052
1053 .sp
1054 .ne 2
1055 .mk
1056 .na
1057 \fB\fBzpool history\fR [\fB-il\fR] [\fIpool\fR] ...\fR
1058 .ad
1059 .sp .6
1060 .RS 4n
1061 Displays the command history of the specified pools or all pools if no pool is specified.
1062 .sp
1063 .ne 2
1064 .mk
1065 .na
1066 \fB\fB-i\fR\fR
1067 .ad
1068 .RS 6n
1069 .rt  
1070 Displays internally logged \fBZFS\fR events in addition to user initiated events.
1071 .RE
1072
1073 .sp
1074 .ne 2
1075 .mk
1076 .na
1077 \fB\fB-l\fR\fR
1078 .ad
1079 .RS 6n
1080 .rt  
1081 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.
1082 .RE
1083
1084 .RE
1085
1086 .sp
1087 .ne 2
1088 .mk
1089 .na
1090 \fB\fBzpool import\fR [\fB-d\fR \fIdir\fR | \fB-c\fR \fIcachefile\fR] [\fB-D\fR]\fR
1091 .ad
1092 .sp .6
1093 .RS 4n
1094 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. 
1095 .sp
1096 The numeric identifier is unique, and can be used instead of the pool name when multiple exported pools of the same name are available.
1097 .sp
1098 .ne 2
1099 .mk
1100 .na
1101 \fB\fB-c\fR \fIcachefile\fR\fR
1102 .ad
1103 .RS 16n
1104 .rt  
1105 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.
1106 .RE
1107
1108 .sp
1109 .ne 2
1110 .mk
1111 .na
1112 \fB\fB-d\fR \fIdir\fR\fR
1113 .ad
1114 .RS 16n
1115 .rt  
1116 Searches for devices or files in \fIdir\fR. The \fB-d\fR option can be specified multiple times. 
1117 .RE
1118
1119 .sp
1120 .ne 2
1121 .mk
1122 .na
1123 \fB\fB-D\fR\fR
1124 .ad
1125 .RS 16n
1126 .rt  
1127 Lists destroyed pools only.
1128 .RE
1129
1130 .RE
1131
1132 .sp
1133 .ne 2
1134 .mk
1135 .na
1136 \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
1137 .ad
1138 .sp .6
1139 .RS 4n
1140 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.
1141 .sp
1142 .ne 2
1143 .mk
1144 .na
1145 \fB\fB-o\fR \fImntopts\fR\fR
1146 .ad
1147 .RS 21n
1148 .rt  
1149 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.
1150 .RE
1151
1152 .sp
1153 .ne 2
1154 .mk
1155 .na
1156 \fB\fB-o\fR \fIproperty=value\fR\fR
1157 .ad
1158 .RS 21n
1159 .rt  
1160 Sets the specified property on the imported pool. See the "Properties" section for more information on the available pool properties.
1161 .RE
1162
1163 .sp
1164 .ne 2
1165 .mk
1166 .na
1167 \fB\fB-c\fR \fIcachefile\fR\fR
1168 .ad
1169 .RS 21n
1170 .rt  
1171 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.
1172 .RE
1173
1174 .sp
1175 .ne 2
1176 .mk
1177 .na
1178 \fB\fB-d\fR \fIdir\fR\fR
1179 .ad
1180 .RS 21n
1181 .rt  
1182 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.
1183 .RE
1184
1185 .sp
1186 .ne 2
1187 .mk
1188 .na
1189 \fB\fB-D\fR\fR
1190 .ad
1191 .RS 21n
1192 .rt  
1193 Imports destroyed pools only. The \fB-f\fR option is also required.
1194 .RE
1195
1196 .sp
1197 .ne 2
1198 .mk
1199 .na
1200 \fB\fB-f\fR\fR
1201 .ad
1202 .RS 21n
1203 .rt  
1204 Forces import, even if the pool appears to be potentially active.
1205 .RE
1206
1207 .sp
1208 .ne 2
1209 .mk
1210 .na
1211 \fB\fB-F\fR\fR
1212 .ad
1213 .RS 21n
1214 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.
1215 .RE
1216
1217 .sp
1218 .ne 2
1219 .mk
1220 .na
1221 \fB\fB-a\fR\fR
1222 .ad
1223 .RS 21n
1224 .rt  
1225 Searches for and imports all pools found. 
1226 .RE
1227
1228 .sp
1229 .ne 2
1230 .mk
1231 .na
1232 \fB\fB-m\fR\fR
1233 .ad
1234 .RS 21n
1235 Allows a pool to import when there is a missing log device.
1236 .RE
1237
1238 .sp
1239 .ne 2
1240 .mk
1241 .na
1242 \fB\fB-R\fR \fIroot\fR\fR
1243 .ad
1244 .RS 21n
1245 .rt  
1246 Sets the "\fBcachefile\fR" property to "\fBnone\fR" and the "\fIaltroot\fR" property to "\fIroot\fR".
1247 .RE
1248
1249 .sp
1250 .ne 2
1251 .mk
1252 .na
1253 \fB\fB-N\fR\fR
1254 .ad
1255 .RS 21n
1256 Import the pool without mounting any file systems.
1257 .RE
1258
1259 .sp
1260 .ne 2
1261 .mk
1262 .na
1263 \fB\fB-n\fR\fR
1264 .ad
1265 .RS 21n
1266 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.
1267 .RE
1268
1269 .RE
1270
1271 .sp
1272 .ne 2
1273 .mk
1274 .na
1275 \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
1276 .ad
1277 .sp .6
1278 .RS 4n
1279 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.
1280 .sp
1281 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.
1282 .sp
1283 .ne 2
1284 .mk
1285 .na
1286 \fB\fB-o\fR \fImntopts\fR\fR
1287 .ad
1288 .sp .6
1289 .RS 4n
1290 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.
1291 .RE
1292
1293 .sp
1294 .ne 2
1295 .mk
1296 .na
1297 \fB\fB-o\fR \fIproperty=value\fR\fR
1298 .ad
1299 .sp .6
1300 .RS 4n
1301 Sets the specified property on the imported pool. See the "Properties" section for more information on the available pool properties.
1302 .RE
1303
1304 .sp
1305 .ne 2
1306 .mk
1307 .na
1308 \fB\fB-c\fR \fIcachefile\fR\fR
1309 .ad
1310 .sp .6
1311 .RS 4n
1312 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.
1313 .RE
1314
1315 .sp
1316 .ne 2
1317 .mk
1318 .na
1319 \fB\fB-d\fR \fIdir\fR\fR
1320 .ad
1321 .sp .6
1322 .RS 4n
1323 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.
1324 .RE
1325
1326 .sp
1327 .ne 2
1328 .mk
1329 .na
1330 \fB\fB-D\fR\fR
1331 .ad
1332 .sp .6
1333 .RS 4n
1334 Imports destroyed pool. The \fB-f\fR option is also required.
1335 .RE
1336
1337 .sp
1338 .ne 2
1339 .mk
1340 .na
1341 \fB\fB-f\fR\fR
1342 .ad
1343 .sp .6
1344 .RS 4n
1345 Forces import, even if the pool appears to be potentially active.
1346 .RE
1347
1348 .sp
1349 .ne 2
1350 .mk
1351 .na
1352 \fB\fB-F\fR\fR
1353 .ad
1354 .sp .6
1355 .RS 4n
1356 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.
1357 .RE
1358
1359 .sp
1360 .ne 2
1361 .mk
1362 .na
1363 \fB\fB-R\fR \fIroot\fR\fR
1364 .ad
1365 .sp .6
1366 .RS 4n
1367 Sets the "\fBcachefile\fR" property to "\fBnone\fR" and the "\fIaltroot\fR" property to "\fIroot\fR".
1368 .RE
1369
1370 .sp
1371 .ne 2
1372 .mk
1373 .na
1374 \fB\fB-n\fR\fR
1375 .ad
1376 .sp .6
1377 .RS 4n
1378 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.
1379 .RE
1380
1381 .sp
1382 .ne 2
1383 .mk
1384 .na
1385 \fB\fB-m\fR\fR
1386 .ad
1387 .sp .6
1388 .RS 4n
1389 Allows a pool to import when there is a missing log device.
1390 .RE
1391
1392 .RE
1393
1394 .sp
1395 .ne 2
1396 .mk
1397 .na
1398 \fB\fBzpool iostat\fR [\fB-T\fR \fBu\fR | \fBd\fR] [\fB-v\fR] [\fIpool\fR] ... [\fIinterval\fR[\fIcount\fR]]\fR
1399 .ad
1400 .sp .6
1401 .RS 4n
1402 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.
1403 .sp
1404 .ne 2
1405 .mk
1406 .na
1407 \fB\fB-T\fR \fBu\fR | \fBd\fR\fR
1408 .ad
1409 .RS 12n
1410 .rt  
1411 Display a time stamp.
1412 .sp
1413 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).
1414 .RE
1415
1416 .sp
1417 .ne 2
1418 .mk
1419 .na
1420 \fB\fB-v\fR\fR
1421 .ad
1422 .RS 12n
1423 .rt  
1424 Verbose statistics. Reports usage statistics for individual \fIvdevs\fR within the pool, in addition to the pool-wide statistics.
1425 .RE
1426
1427 .RE
1428
1429 .sp
1430 .ne 2
1431 .mk
1432 .na
1433 \fB\fBzpool list\fR [\fB-Hv\fR] [\fB-o\fR \fIprops\fR[,...]] [\fIpool\fR] ...\fR
1434 .ad
1435 .sp .6
1436 .RS 4n
1437 Lists the given pools along with a health status and space usage. When given no arguments, all pools in the system are listed.
1438 .sp
1439 .ne 2
1440 .mk
1441 .na
1442 \fB\fB-H\fR\fR
1443 .ad
1444 .RS 12n
1445 .rt  
1446 Scripted mode. Do not display headers, and separate fields by a single tab instead of arbitrary space.
1447 .RE
1448
1449 .sp
1450 .ne 2
1451 .mk
1452 .na
1453 \fB\fB-o\fR \fIprops\fR\fR
1454 .ad
1455 .RS 12n
1456 .rt  
1457 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"
1458 .RE
1459
1460 .sp
1461 .ne 2
1462 .mk
1463 .na
1464 \fB\fB-v\fR\fR
1465 .ad
1466 .RS 12n
1467 .rt
1468 Verbose statistics. Reports usage statistics for individual \fIvdevs\fR within the pool, in addition to the pool-wise statistics.
1469 .RE
1470
1471 .RE
1472
1473 .sp
1474 .ne 2
1475 .mk
1476 .na
1477 \fB\fBzpool offline\fR [\fB-t\fR] \fIpool\fR \fIdevice\fR ...\fR
1478 .ad
1479 .sp .6
1480 .RS 4n
1481 Takes the specified physical device offline. While the \fIdevice\fR is offline, no attempt is made to read or write to the device.
1482 .sp
1483 This command is not applicable to spares or cache devices.
1484 .sp
1485 .ne 2
1486 .mk
1487 .na
1488 \fB\fB-t\fR\fR
1489 .ad
1490 .RS 6n
1491 .rt  
1492 Temporary. Upon reboot, the specified physical device reverts to its previous state.
1493 .RE
1494
1495 .RE
1496
1497 .sp
1498 .ne 2
1499 .mk
1500 .na
1501 \fB\fBzpool online\fR [\fB-e\fR] \fIpool\fR \fIdevice\fR...\fR
1502 .ad
1503 .sp .6
1504 .RS 4n
1505 Brings the specified physical device online.
1506 .sp
1507 This command is not applicable to spares or cache devices.
1508 .sp
1509 .ne 2
1510 .mk
1511 .na
1512 \fB\fB-e\fR\fR
1513 .ad
1514 .RS 6n
1515 .rt  
1516 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.
1517 .RE
1518
1519 .RE
1520
1521 .sp
1522 .ne 2
1523 .mk
1524 .na
1525 \fB\fBzpool reguid\fR \fIpool\fR
1526 .ad
1527 .sp .6
1528 .RS 4n
1529 Generates a new unique identifier for the pool. You must ensure that all
1530 devices in this pool are online and healthy before performing this action.
1531 .RE
1532
1533 .sp
1534 .ne 2
1535 .na
1536 \fB\fBzpool reopen\fR \fIpool\fR
1537 .ad
1538 .sp .6
1539 .RS 4n
1540 Reopen all the vdevs associated with the pool.
1541 .RE
1542
1543 .sp
1544 .ne 2
1545 .na
1546 \fB\fBzpool remove\fR \fIpool\fR \fIdevice\fR ...\fR
1547 .ad
1548 .sp .6
1549 .RS 4n
1550 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.
1551 .RE
1552
1553 .sp
1554 .ne 2
1555 .mk
1556 .na
1557 \fB\fBzpool replace\fR [\fB-f\fR] \fIpool\fR \fIold_device\fR [\fInew_device\fR]\fR
1558 .ad
1559 .sp .6
1560 .RS 4n
1561 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.
1562 .sp
1563 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.
1564 .sp
1565 \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.
1566 .sp
1567 .ne 2
1568 .mk
1569 .na
1570 \fB\fB-f\fR\fR
1571 .ad
1572 .RS 6n
1573 .rt  
1574 Forces use of \fInew_device\fR, even if its appears to be in use. Not all devices can be overridden in this manner.
1575 .RE
1576
1577 .RE
1578
1579 .sp
1580 .ne 2
1581 .mk
1582 .na
1583 \fB\fBzpool scrub\fR [\fB-s\fR] \fIpool\fR ...\fR
1584 .ad
1585 .sp .6
1586 .RS 4n
1587 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.
1588 .sp
1589 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.
1590 .sp
1591 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.
1592 .sp
1593 .ne 2
1594 .mk
1595 .na
1596 \fB\fB-s\fR\fR
1597 .ad
1598 .RS 6n
1599 .rt  
1600 Stop scrubbing.
1601 .RE
1602
1603 .RE
1604
1605 .sp
1606 .ne 2
1607 .mk
1608 .na
1609 \fB\fBzpool set\fR \fIproperty\fR=\fIvalue\fR \fIpool\fR\fR
1610 .ad
1611 .sp .6
1612 .RS 4n
1613 Sets the given property on the specified pool. See the "Properties" section for more information on what properties can be set and acceptable values.
1614 .RE
1615
1616 .sp
1617 .ne 2
1618 .mk
1619 .na
1620 \fBzpool split\fR [\fB-n\fR] [\fB-R\fR \fIaltroot\fR] [\fB-o\fR \fIproperty=value\fR] \fIpool\fR \fInewpool\fR
1621 .ad
1622 .sp .6
1623 .RS 4n
1624 Split devices off \fIpool\fR creating \fInewpool\fR.  All \fBvdev\fRs in \fIpool\fR must be mirrors.  At the time of the split, \fInewpool\fR will be a replica of \fIpool\fR.
1625
1626 .sp
1627 .ne 2
1628 .mk
1629 .na
1630 \fB\fB-n\fR \fR
1631 .ad
1632 .sp .6
1633 .RS 4n
1634 Do dry run, do not actually perform the split. Print out the expected configuration of \fInewpool\fR.
1635 .RE
1636
1637 .sp
1638 .ne 2
1639 .mk
1640 .na
1641 \fB\fB-R\fR \fIaltroot\fR \fR
1642 .ad
1643 .sp .6
1644 .RS 4n
1645 Set \fIaltroot\fR for \fInewpool\fR and automaticaly import it.  This can be useful to avoid mountpoint collisions if \fInewpool\fR is imported on the same filesystem as \fIpool\fR.
1646 .RE
1647
1648 .sp
1649 .ne 2
1650 .mk
1651 .na
1652 \fB\fB-o\fR \fIproperty=value\fR \fR
1653 .ad
1654 .sp .6
1655 .RS 4n
1656 Sets the specified property for \fInewpool\fR. See the “Properties” section for more information on the available pool properties.
1657 .RE
1658
1659 .RE
1660
1661 .sp
1662 .ne 2
1663 .mk
1664 .na
1665 \fB\fBzpool status\fR [\fB-xv\fR] [\fIpool\fR] ...\fR
1666 .ad
1667 .sp .6
1668 .RS 4n
1669 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.
1670 .sp
1671 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.
1672 .sp
1673 .ne 2
1674 .mk
1675 .na
1676 \fB\fB-x\fR\fR
1677 .ad
1678 .RS 6n
1679 .rt  
1680 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.
1681 .RE
1682
1683 .sp
1684 .ne 2
1685 .mk
1686 .na
1687 \fB\fB-v\fR\fR
1688 .ad
1689 .RS 6n
1690 .rt  
1691 Displays verbose data error information, printing out a complete list of all data errors since the last complete pool scrub.
1692 .RE
1693
1694 .RE
1695
1696 .sp
1697 .ne 2
1698 .mk
1699 .na
1700 \fB\fBzpool upgrade\fR\fR
1701 .ad
1702 .sp .6
1703 .RS 4n
1704 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.
1705 .RE
1706
1707 .sp
1708 .ne 2
1709 .mk
1710 .na
1711 \fB\fBzpool upgrade\fR \fB-v\fR\fR
1712 .ad
1713 .sp .6
1714 .RS 4n
1715 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.
1716 .RE
1717
1718 .sp
1719 .ne 2
1720 .mk
1721 .na
1722 \fB\fBzpool upgrade\fR [\fB-V\fR \fIversion\fR] \fB-a\fR | \fIpool\fR ...\fR
1723 .ad
1724 .sp .6
1725 .RS 4n
1726 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.
1727 .sp
1728 .ne 2
1729 .mk
1730 .na
1731 \fB\fB-a\fR\fR
1732 .ad
1733 .RS 14n
1734 .rt
1735 Enables all supported features on all pools.
1736 .RE
1737
1738 .sp
1739 .ne 2
1740 .mk
1741 .na
1742 \fB\fB-V\fR \fIversion\fR\fR
1743 .ad
1744 .RS 14n
1745 .rt
1746 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.
1747 .RE
1748
1749 .RE
1750
1751 .SH EXAMPLES
1752 .LP
1753 \fBExample 1 \fRCreating a RAID-Z Storage Pool
1754 .sp
1755 .LP
1756 The following command creates a pool with a single \fBraidz\fR root \fIvdev\fR that consists of six disks.
1757
1758 .sp
1759 .in +2
1760 .nf
1761 # \fBzpool create tank raidz sda sdb sdc sdd sde sdf\fR
1762 .fi
1763 .in -2
1764 .sp
1765
1766 .LP
1767 \fBExample 2 \fRCreating a Mirrored Storage Pool
1768 .sp
1769 .LP
1770 The following command creates a pool with two mirrors, where each mirror contains two disks.
1771
1772 .sp
1773 .in +2
1774 .nf
1775 # \fBzpool create tank mirror sda sdb mirror sdc sdd\fR
1776 .fi
1777 .in -2
1778 .sp
1779
1780 .LP
1781 \fBExample 3 \fRCreating a ZFS Storage Pool by Using Partitions
1782 .sp
1783 .LP
1784 The following command creates an unmirrored pool using two disk partitions.
1785
1786 .sp
1787 .in +2
1788 .nf
1789 # \fBzpool create tank sda1 sdb2\fR
1790 .fi
1791 .in -2
1792 .sp
1793
1794 .LP
1795 \fBExample 4 \fRCreating a ZFS Storage Pool by Using Files
1796 .sp
1797 .LP
1798 The following command creates an unmirrored pool using files. While not recommended, a pool based on files can be useful for experimental purposes.
1799
1800 .sp
1801 .in +2
1802 .nf
1803 # \fBzpool create tank /path/to/file/a /path/to/file/b\fR
1804 .fi
1805 .in -2
1806 .sp
1807
1808 .LP
1809 \fBExample 5 \fRAdding a Mirror to a ZFS Storage Pool
1810 .sp
1811 .LP
1812 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.
1813
1814 .sp
1815 .in +2
1816 .nf
1817 # \fBzpool add tank mirror sda sdb\fR
1818 .fi
1819 .in -2
1820 .sp
1821
1822 .LP
1823 \fBExample 6 \fRListing Available ZFS Storage Pools
1824 .sp
1825 .LP
1826 The following command lists all available pools on the system. In this case, the pool \fIzion\fR is faulted due to a missing device.
1827
1828 .sp
1829 .LP
1830 The results from this command are similar to the following:
1831
1832 .sp
1833 .in +2
1834 .nf
1835 # \fBzpool list\fR
1836      NAME    SIZE  ALLOC   FREE  EXPANDSZ    CAP  DEDUP  HEALTH  ALTROOT
1837      rpool  19.9G  8.43G  11.4G         -    42%  1.00x  ONLINE  -
1838      tank   61.5G  20.0G  41.5G         -    32%  1.00x  ONLINE  -
1839      zion       -      -      -         -      -      -  FAULTED -
1840 .fi
1841 .in -2
1842 .sp
1843
1844 .LP
1845 \fBExample 7 \fRDestroying a ZFS Storage Pool
1846 .sp
1847 .LP
1848 The following command destroys the pool \fItank\fR and any datasets contained within.
1849
1850 .sp
1851 .in +2
1852 .nf
1853 # \fBzpool destroy -f tank\fR
1854 .fi
1855 .in -2
1856 .sp
1857
1858 .LP
1859 \fBExample 8 \fRExporting a ZFS Storage Pool
1860 .sp
1861 .LP
1862 The following command exports the devices in pool \fItank\fR so that they can be relocated or later imported.
1863
1864 .sp
1865 .in +2
1866 .nf
1867 # \fBzpool export tank\fR
1868 .fi
1869 .in -2
1870 .sp
1871
1872 .LP
1873 \fBExample 9 \fRImporting a ZFS Storage Pool
1874 .sp
1875 .LP
1876 The following command displays available pools, and then imports the pool \fItank\fR for use on the system.
1877
1878 .sp
1879 .LP
1880 The results from this command are similar to the following:
1881
1882 .sp
1883 .in +2
1884 .nf
1885 # \fBzpool import\fR
1886   pool: tank
1887     id: 15451357997522795478
1888  state: ONLINE
1889 action: The pool can be imported using its name or numeric identifier.
1890 config:
1891
1892         tank        ONLINE
1893           mirror    ONLINE
1894             sda     ONLINE
1895             sdb     ONLINE
1896
1897 # \fBzpool import tank\fR
1898 .fi
1899 .in -2
1900 .sp
1901
1902 .LP
1903 \fBExample 10 \fRUpgrading All ZFS Storage Pools to the Current Version
1904 .sp
1905 .LP
1906 The following command upgrades all ZFS Storage pools to the current version of the software.
1907
1908 .sp
1909 .in +2
1910 .nf
1911 # \fBzpool upgrade -a\fR
1912 This system is currently running ZFS pool version 28.
1913 .fi
1914 .in -2
1915 .sp
1916
1917 .LP
1918 \fBExample 11 \fRManaging Hot Spares
1919 .sp
1920 .LP
1921 The following command creates a new pool with an available hot spare:
1922
1923 .sp
1924 .in +2
1925 .nf
1926 # \fBzpool create tank mirror sda sdb spare sdc\fR
1927 .fi
1928 .in -2
1929 .sp
1930
1931 .sp
1932 .LP
1933 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:
1934
1935 .sp
1936 .in +2
1937 .nf
1938 # \fBzpool replace tank sda sdd\fR
1939 .fi
1940 .in -2
1941 .sp
1942
1943 .sp
1944 .LP
1945 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:
1946
1947 .sp
1948 .in +2
1949 .nf
1950 # \fBzpool remove tank sdc\fR
1951 .fi
1952 .in -2
1953 .sp
1954
1955 .LP
1956 \fBExample 12 \fRCreating a ZFS Pool with Mirrored Separate Intent Logs
1957 .sp
1958 .LP
1959 The following command creates a ZFS storage pool consisting of two, two-way mirrors and mirrored log devices:
1960
1961 .sp
1962 .in +2
1963 .nf
1964 # \fBzpool create pool mirror sda sdb mirror sdc sdd log mirror \e
1965    sde sdf\fR
1966 .fi
1967 .in -2
1968 .sp
1969
1970 .LP
1971 \fBExample 13 \fRAdding Cache Devices to a ZFS Pool
1972 .sp
1973 .LP
1974 The following command adds two disks for use as cache devices to a ZFS storage pool:
1975
1976 .sp
1977 .in +2
1978 .nf
1979 # \fBzpool add pool cache sdc sdd\fR
1980 .fi
1981 .in -2
1982 .sp
1983
1984 .sp
1985 .LP
1986 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: 
1987
1988 .sp
1989 .in +2
1990 .nf
1991 # \fBzpool iostat -v pool 5\fR
1992 .fi
1993 .in -2
1994 .sp
1995
1996 .LP
1997 \fBExample 14 \fRRemoving a Mirrored Log Device
1998 .sp
1999 .LP
2000 The following command removes the mirrored log device \fBmirror-2\fR.
2001
2002 .sp
2003 .LP
2004 Given this configuration:
2005
2006 .sp
2007 .in +2
2008 .nf
2009    pool: tank
2010   state: ONLINE
2011   scrub: none requested
2012 config:
2013
2014          NAME        STATE     READ WRITE CKSUM
2015          tank        ONLINE       0     0     0
2016            mirror-0  ONLINE       0     0     0
2017              sda     ONLINE       0     0     0
2018              sdb     ONLINE       0     0     0
2019            mirror-1  ONLINE       0     0     0
2020              sdc     ONLINE       0     0     0
2021              sdd     ONLINE       0     0     0
2022          logs
2023            mirror-2  ONLINE       0     0     0
2024              sde     ONLINE       0     0     0
2025              sdf     ONLINE       0     0     0
2026 .fi
2027 .in -2
2028 .sp
2029
2030 .sp
2031 .LP
2032 The command to remove the mirrored log \fBmirror-2\fR is:
2033
2034 .sp
2035 .in +2
2036 .nf
2037 # \fBzpool remove tank mirror-2\fR
2038 .fi
2039 .in -2
2040 .sp
2041
2042 .LP
2043 \fBExample 15 \fRDisplaying expanded space on a device
2044 .sp
2045 .LP
2046 The following command dipslays the detailed information for the \fIdata\fR
2047 pool. This pool is comprised of a single \fIraidz\fR vdev where one of its
2048 devices increased its capacity by 1GB. In this example, the pool will not 
2049 be able to utilized this extra capacity until all the devices under the
2050 \fIraidz\fR vdev have been expanded.
2051
2052 .sp
2053 .in +2
2054 .nf
2055 # \fBzpool list -v data\fR
2056    NAME         SIZE  ALLOC   FREE  EXPANDSZ    CAP  DEDUP  HEALTH  ALTROOT
2057    data        17.9G   174K  17.9G         -     0%  1.00x  ONLINE  -
2058      raidz1    17.9G   174K  17.9G         -
2059        c4t2d0      -      -      -        1G
2060        c4t3d0      -      -      -         -
2061        c4t4d0      -      -      -         - 
2062 .fi
2063 .in -2
2064
2065 .SH EXIT STATUS
2066 .sp
2067 .LP
2068 The following exit values are returned:
2069 .sp
2070 .ne 2
2071 .mk
2072 .na
2073 \fB\fB0\fR\fR
2074 .ad
2075 .RS 5n
2076 .rt  
2077 Successful completion. 
2078 .RE
2079
2080 .sp
2081 .ne 2
2082 .mk
2083 .na
2084 \fB\fB1\fR\fR
2085 .ad
2086 .RS 5n
2087 .rt  
2088 An error occurred.
2089 .RE
2090
2091 .sp
2092 .ne 2
2093 .mk
2094 .na
2095 \fB\fB2\fR\fR
2096 .ad
2097 .RS 5n
2098 .rt  
2099 Invalid command line options were specified.
2100 .RE
2101
2102 .SH SEE ALSO
2103 .sp
2104 .LP
2105 \fBzfs\fR(8), \fBzpool-features\fR(5)