1eda14cbcSMatt Macy.\" 2eda14cbcSMatt Macy.\" CDDL HEADER START 3eda14cbcSMatt Macy.\" 4eda14cbcSMatt Macy.\" The contents of this file are subject to the terms of the 5eda14cbcSMatt Macy.\" Common Development and Distribution License (the "License"). 6eda14cbcSMatt Macy.\" You may not use this file except in compliance with the License. 7eda14cbcSMatt Macy.\" 8eda14cbcSMatt Macy.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9271171e0SMartin Matuska.\" or https://opensource.org/licenses/CDDL-1.0. 10eda14cbcSMatt Macy.\" See the License for the specific language governing permissions 11eda14cbcSMatt Macy.\" and limitations under the License. 12eda14cbcSMatt Macy.\" 13eda14cbcSMatt Macy.\" When distributing Covered Code, include this CDDL HEADER in each 14eda14cbcSMatt Macy.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15eda14cbcSMatt Macy.\" If applicable, add the following below this CDDL HEADER, with the 16eda14cbcSMatt Macy.\" fields enclosed by brackets "[]" replaced with your own identifying 17eda14cbcSMatt Macy.\" information: Portions Copyright [yyyy] [name of copyright owner] 18eda14cbcSMatt Macy.\" 19eda14cbcSMatt Macy.\" CDDL HEADER END 20eda14cbcSMatt Macy.\" 21eda14cbcSMatt Macy.\" 22eda14cbcSMatt Macy.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved. 23e716630dSMartin Matuska.\" Copyright (c) 2012, 2021 by Delphix. All rights reserved. 24eda14cbcSMatt Macy.\" Copyright (c) 2012 Cyril Plisko. All Rights Reserved. 25eda14cbcSMatt Macy.\" Copyright (c) 2017 Datto Inc. 26eda14cbcSMatt Macy.\" Copyright (c) 2018 George Melikov. All Rights Reserved. 27eda14cbcSMatt Macy.\" Copyright 2017 Nexenta Systems, Inc. 28eda14cbcSMatt Macy.\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved. 29eda14cbcSMatt Macy.\" 3016038816SMartin Matuska.Dd May 27, 2021 31eda14cbcSMatt Macy.Dt ZPOOL-WAIT 8 32eda14cbcSMatt Macy.Os 3316038816SMartin Matuska. 34eda14cbcSMatt Macy.Sh NAME 357877fdebSMatt Macy.Nm zpool-wait 3616038816SMartin Matuska.Nd wait for activity to stop in a ZFS storage pool 37eda14cbcSMatt Macy.Sh SYNOPSIS 387877fdebSMatt Macy.Nm zpool 39eda14cbcSMatt Macy.Cm wait 40eda14cbcSMatt Macy.Op Fl Hp 41eda14cbcSMatt Macy.Op Fl T Sy u Ns | Ns Sy d 4216038816SMartin Matuska.Op Fl t Ar activity Ns Oo , Ns Ar activity Ns Oc Ns … 43eda14cbcSMatt Macy.Ar pool 44eda14cbcSMatt Macy.Op Ar interval 4516038816SMartin Matuska. 46eda14cbcSMatt Macy.Sh DESCRIPTION 47eda14cbcSMatt MacyWaits until all background activity of the given types has ceased in the given 48eda14cbcSMatt Macypool. 49eda14cbcSMatt MacyThe activity could cease because it has completed, or because it has been 50eda14cbcSMatt Macypaused or canceled by a user, or because the pool has been exported or 51eda14cbcSMatt Macydestroyed. 52eda14cbcSMatt MacyIf no activities are specified, the command waits until background activity of 53eda14cbcSMatt Macyevery type listed below has ceased. 54eda14cbcSMatt MacyIf there is no activity of the given types in progress, the command returns 55eda14cbcSMatt Macyimmediately. 56eda14cbcSMatt Macy.Pp 57eda14cbcSMatt MacyThese are the possible values for 58eda14cbcSMatt Macy.Ar activity , 59eda14cbcSMatt Macyalong with what each one waits for: 60e716630dSMartin Matuska.Bl -tag -compact -offset Ds -width "raidz_expand" 6116038816SMartin Matuska.It Sy discard 6216038816SMartin MatuskaCheckpoint to be discarded 6316038816SMartin Matuska.It Sy free 6416038816SMartin Matuska.Sy freeing 6516038816SMartin Matuskaproperty to become 6616038816SMartin Matuska.Sy 0 6716038816SMartin Matuska.It Sy initialize 6816038816SMartin MatuskaAll initializations to cease 6916038816SMartin Matuska.It Sy replace 7016038816SMartin MatuskaAll device replacements to cease 7116038816SMartin Matuska.It Sy remove 7216038816SMartin MatuskaDevice removal to cease 7316038816SMartin Matuska.It Sy resilver 7416038816SMartin MatuskaResilver to cease 7516038816SMartin Matuska.It Sy scrub 7616038816SMartin MatuskaScrub to cease 7716038816SMartin Matuska.It Sy trim 7816038816SMartin MatuskaManual trim to cease 79e716630dSMartin Matuska.It Sy raidz_expand 80e716630dSMartin MatuskaAttaching to a RAID-Z vdev to complete 8116038816SMartin Matuska.El 82eda14cbcSMatt Macy.Pp 83eda14cbcSMatt MacyIf an 84eda14cbcSMatt Macy.Ar interval 85eda14cbcSMatt Macyis provided, the amount of work remaining, in bytes, for each activity is 86eda14cbcSMatt Macyprinted every 87eda14cbcSMatt Macy.Ar interval 88eda14cbcSMatt Macyseconds. 89eda14cbcSMatt Macy.Bl -tag -width Ds 90eda14cbcSMatt Macy.It Fl H 91eda14cbcSMatt MacyScripted mode. 92eda14cbcSMatt MacyDo not display headers, and separate fields by a single tab instead of arbitrary 93eda14cbcSMatt Macyspace. 94eda14cbcSMatt Macy.It Fl p 95eda14cbcSMatt MacyDisplay numbers in parsable (exact) values. 96eda14cbcSMatt Macy.It Fl T Sy u Ns | Ns Sy d 97eda14cbcSMatt MacyDisplay a time stamp. 98eda14cbcSMatt MacySpecify 99eda14cbcSMatt Macy.Sy u 100eda14cbcSMatt Macyfor a printed representation of the internal representation of time. 101eda14cbcSMatt MacySee 102*fd45b686SMartin Matuska.Xr time 1 . 103eda14cbcSMatt MacySpecify 104eda14cbcSMatt Macy.Sy d 105eda14cbcSMatt Macyfor standard date format. 106eda14cbcSMatt MacySee 107eda14cbcSMatt Macy.Xr date 1 . 108eda14cbcSMatt Macy.El 10916038816SMartin Matuska. 110eda14cbcSMatt Macy.Sh SEE ALSO 111eda14cbcSMatt Macy.Xr zpool-checkpoint 8 , 112eda14cbcSMatt Macy.Xr zpool-initialize 8 , 113eda14cbcSMatt Macy.Xr zpool-remove 8 , 11416038816SMartin Matuska.Xr zpool-replace 8 , 115eda14cbcSMatt Macy.Xr zpool-resilver 8 , 116eda14cbcSMatt Macy.Xr zpool-scrub 8 , 11716038816SMartin Matuska.Xr zpool-status 8 , 118eda14cbcSMatt Macy.Xr zpool-trim 8 119