xref: /freebsd/sys/contrib/openzfs/man/man8/zpool-sync.8 (revision 6be3386466ab79a84b48429ae66244f21526d3df)
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-SYNC 8
32.Os
33.Sh NAME
34.Nm zpool-sync
35.Nd Force data to be written to primary storage of a ZFS storage pool and update reporting data
36.Sh SYNOPSIS
37.Nm zpool
38.Cm sync
39.Oo Ar pool Oc Ns ...
40.Sh DESCRIPTION
41.Bl -tag -width Ds
42.It Xo
43.Nm zpool
44.Cm sync
45.Op Ar pool ...
46.Xc
47This command forces all in-core dirty data to be written to the primary
48pool storage and not the ZIL. It will also update administrative
49information including quota reporting. Without arguments,
50.Sy zpool sync
51will sync all pools on the system. Otherwise, it will sync only the
52specified pool(s).
53.El
54.Sh SEE ALSO
55.Xr zpoolconcepts 8 ,
56.Xr zpool-export 8 ,
57.Xr zpool-iostat 8
58