]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/contrib/openzfs/man/man8/zpool-initialize.8
contrib/tzdata: import tzdata 2022g
[FreeBSD/FreeBSD.git] / sys / contrib / openzfs / man / man8 / zpool-initialize.8
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
9 .\" or https://opensource.org/licenses/CDDL-1.0.
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 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
22 .\" Copyright (c) 2012, 2018 by Delphix. All rights reserved.
23 .\" Copyright (c) 2012 Cyril Plisko. All Rights Reserved.
24 .\" Copyright (c) 2017 Datto Inc.
25 .\" Copyright (c) 2018 George Melikov. All Rights Reserved.
26 .\" Copyright 2017 Nexenta Systems, Inc.
27 .\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved.
28 .\"
29 .Dd May 27, 2021
30 .Dt ZPOOL-INITIALIZE 8
31 .Os
32 .
33 .Sh NAME
34 .Nm zpool-initialize
35 .Nd write to unallocated regions of ZFS storage pool
36 .Sh SYNOPSIS
37 .Nm zpool
38 .Cm initialize
39 .Op Fl c Ns | Ns Fl s
40 .Op Fl w
41 .Ar pool
42 .Oo Ar device Oc Ns …
43 .
44 .Sh DESCRIPTION
45 Begins initializing by writing to all unallocated regions on the specified
46 devices, or all eligible devices in the pool if no individual devices are
47 specified.
48 Only leaf data or log devices may be initialized.
49 .Bl -tag -width Ds
50 .It Fl c , -cancel
51 Cancel initializing on the specified devices, or all eligible devices if none
52 are specified.
53 If one or more target devices are invalid or are not currently being
54 initialized, the command will fail and no cancellation will occur on any device.
55 .It Fl s , -suspend
56 Suspend initializing on the specified devices, or all eligible devices if none
57 are specified.
58 If one or more target devices are invalid or are not currently being
59 initialized, the command will fail and no suspension will occur on any device.
60 Initializing can then be resumed by running
61 .Nm zpool Cm initialize
62 with no flags on the relevant target devices.
63 .It Fl w , -wait
64 Wait until the devices have finished initializing before returning.
65 .El
66 .
67 .Sh SEE ALSO
68 .Xr zpool-add 8 ,
69 .Xr zpool-attach 8 ,
70 .Xr zpool-create 8 ,
71 .Xr zpool-online 8 ,
72 .Xr zpool-replace 8 ,
73 .Xr zpool-trim 8