xref: /freebsd/sys/contrib/openzfs/man/man8/zpool-offline.8 (revision 77013d11e6483b970af25e13c9b892075742f7e5)
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 http://www.opensolaris.org/os/licensing.
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 August 9, 2019
30.Dt ZPOOL-OFFLINE 8
31.Os
32.
33.Sh NAME
34.Nm zpool-offline
35.Nd take physical devices offline in ZFS storage pool
36.Sh SYNOPSIS
37.Nm zpool
38.Cm offline
39.Op Fl ft
40.Ar pool
41.Ar device Ns …
42.Nm zpool
43.Cm online
44.Op Fl e
45.Ar pool
46.Ar device Ns …
47.
48.Sh DESCRIPTION
49.Bl -tag -width Ds
50.It Xo
51.Nm zpool
52.Cm offline
53.Op Fl ft
54.Ar pool
55.Ar device Ns …
56.Xc
57Takes the specified physical device offline.
58While the
59.Ar device
60is offline, no attempt is made to read or write to the device.
61This command is not applicable to spares.
62.Bl -tag -width Ds
63.It Fl f
64Force fault.
65Instead of offlining the disk, put it into a faulted state.
66The fault will persist across imports unless the
67.Fl t
68flag was specified.
69.It Fl t
70Temporary.
71Upon reboot, the specified physical device reverts to its previous state.
72.El
73.It Xo
74.Nm zpool
75.Cm online
76.Op Fl e
77.Ar pool
78.Ar device Ns …
79.Xc
80Brings the specified physical device online.
81This command is not applicable to spares.
82.Bl -tag -width Ds
83.It Fl e
84Expand the device to use all available space.
85If the device is part of a mirror or raidz then all devices must be expanded
86before the new space will become available to the pool.
87.El
88.El
89.
90.Sh SEE ALSO
91.Xr zpool-detach 8 ,
92.Xr zpool-remove 8 ,
93.Xr zpool-reopen 8 ,
94.Xr zpool-resilver 8
95