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