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