]>
Commit | Line | Data |
---|---|---|
c5ebfbbe RW |
1 | .\" |
2 | .\" CDDL HEADER START | |
3 | .\" | |
4 | .\" The contents of this file are subject to the terms of the | |
5 | .\" Common Development and Distribution License (the "License"). | |
6 | .\" You may not use this file except in compliance with the License. | |
7 | .\" | |
8 | .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE | |
1d3ba0bf | 9 | .\" or https://opensource.org/licenses/CDDL-1.0. |
c5ebfbbe RW |
10 | .\" See the License for the specific language governing permissions |
11 | .\" and limitations under the License. | |
12 | .\" | |
13 | .\" When distributing Covered Code, include this CDDL HEADER in each | |
14 | .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE. | |
15 | .\" If applicable, add the following below this CDDL HEADER, with the | |
16 | .\" fields enclosed by brackets "[]" replaced with your own identifying | |
17 | .\" information: Portions Copyright [yyyy] [name of copyright owner] | |
18 | .\" | |
19 | .\" CDDL HEADER END | |
20 | .\" | |
21 | .\" | |
22 | .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved. | |
5caeef02 | 23 | .\" Copyright (c) 2012, 2021 by Delphix. All rights reserved. |
c5ebfbbe RW |
24 | .\" Copyright (c) 2012 Cyril Plisko. All Rights Reserved. |
25 | .\" Copyright (c) 2017 Datto Inc. | |
26 | .\" Copyright (c) 2018 George Melikov. All Rights Reserved. | |
27 | .\" Copyright 2017 Nexenta Systems, Inc. | |
28 | .\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved. | |
29 | .\" | |
f84fe3fc | 30 | .Dd May 27, 2021 |
c5ebfbbe | 31 | .Dt ZPOOL-WAIT 8 |
6706552e | 32 | .Os |
f84fe3fc | 33 | . |
c5ebfbbe | 34 | .Sh NAME |
1e36af8c | 35 | .Nm zpool-wait |
f84fe3fc | 36 | .Nd wait for activity to stop in a ZFS storage pool |
c5ebfbbe | 37 | .Sh SYNOPSIS |
1e36af8c | 38 | .Nm zpool |
c5ebfbbe RW |
39 | .Cm wait |
40 | .Op Fl Hp | |
41 | .Op Fl T Sy u Ns | Ns Sy d | |
f84fe3fc | 42 | .Op Fl t Ar activity Ns Oo , Ns Ar activity Ns Oc Ns … |
c5ebfbbe RW |
43 | .Ar pool |
44 | .Op Ar interval | |
f84fe3fc | 45 | . |
c5ebfbbe | 46 | .Sh DESCRIPTION |
c5ebfbbe RW |
47 | Waits until all background activity of the given types has ceased in the given |
48 | pool. | |
49 | The activity could cease because it has completed, or because it has been | |
50 | paused or canceled by a user, or because the pool has been exported or | |
51 | destroyed. | |
52 | If no activities are specified, the command waits until background activity of | |
53 | every type listed below has ceased. | |
54 | If there is no activity of the given types in progress, the command returns | |
55 | immediately. | |
56 | .Pp | |
57 | These are the possible values for | |
58 | .Ar activity , | |
59 | along with what each one waits for: | |
5caeef02 | 60 | .Bl -tag -compact -offset Ds -width "raidz_expand" |
f84fe3fc AZ |
61 | .It Sy discard |
62 | Checkpoint to be discarded | |
63 | .It Sy free | |
64 | .Sy freeing | |
65 | property to become | |
66 | .Sy 0 | |
67 | .It Sy initialize | |
68 | All initializations to cease | |
69 | .It Sy replace | |
70 | All device replacements to cease | |
71 | .It Sy remove | |
72 | Device removal to cease | |
73 | .It Sy resilver | |
74 | Resilver to cease | |
75 | .It Sy scrub | |
76 | Scrub to cease | |
77 | .It Sy trim | |
78 | Manual trim to cease | |
5caeef02 DB |
79 | .It Sy raidz_expand |
80 | Attaching to a RAID-Z vdev to complete | |
f84fe3fc | 81 | .El |
c5ebfbbe RW |
82 | .Pp |
83 | If an | |
84 | .Ar interval | |
85 | is provided, the amount of work remaining, in bytes, for each activity is | |
86 | printed every | |
87 | .Ar interval | |
88 | seconds. | |
89 | .Bl -tag -width Ds | |
90 | .It Fl H | |
91 | Scripted mode. | |
92 | Do not display headers, and separate fields by a single tab instead of arbitrary | |
93 | space. | |
94 | .It Fl p | |
95 | Display numbers in parsable (exact) values. | |
96 | .It Fl T Sy u Ns | Ns Sy d | |
97 | Display a time stamp. | |
98 | Specify | |
99 | .Sy u | |
100 | for a printed representation of the internal representation of time. | |
101 | See | |
c3fd7a52 | 102 | .Xr time 1 . |
c5ebfbbe RW |
103 | Specify |
104 | .Sy d | |
105 | for standard date format. | |
106 | See | |
107 | .Xr date 1 . | |
108 | .El | |
f84fe3fc | 109 | . |
c5ebfbbe | 110 | .Sh SEE ALSO |
c5ebfbbe RW |
111 | .Xr zpool-checkpoint 8 , |
112 | .Xr zpool-initialize 8 , | |
c5ebfbbe | 113 | .Xr zpool-remove 8 , |
f84fe3fc | 114 | .Xr zpool-replace 8 , |
c5ebfbbe | 115 | .Xr zpool-resilver 8 , |
2288d419 | 116 | .Xr zpool-scrub 8 , |
f84fe3fc | 117 | .Xr zpool-status 8 , |
2288d419 | 118 | .Xr zpool-trim 8 |