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.
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.
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]
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.
35 .Nd initiate TRIM of free space in ZFS storage pool
43 .Oo Ar device Ns Oc Ns …
46 Initiates an immediate on-demand TRIM operation for all of the free space in
48 This operation informs the underlying storage devices of all blocks
49 in the pool which are no longer allocated and allows thinly provisioned
50 devices to reclaim the space.
52 A manual on-demand TRIM operation can be initiated irrespective of the
54 pool property setting.
55 See the documentation for the
57 property above for the types of vdev devices which can be trimmed.
60 Causes a secure TRIM to be initiated.
61 When performing a secure TRIM, the
62 device guarantees that data stored on the trimmed blocks has been erased.
63 This requires support from the device and is not supported by all SSDs.
64 .It Fl r , -rate Ar rate
65 Controls the rate at which the TRIM operation progresses.
67 option TRIM is executed as quickly as possible.
68 The rate, expressed in bytes
69 per second, is applied on a per-vdev basis and may be set differently for
72 Cancel trimming on the specified devices, or all eligible devices if none
74 If one or more target devices are invalid or are not currently being
75 trimmed, the command will fail and no cancellation will occur on any device.
77 Suspend trimming on the specified devices, or all eligible devices if none
79 If one or more target devices are invalid or are not currently being
80 trimmed, the command will fail and no suspension will occur on any device.
81 Trimming can then be resumed by running
83 with no flags on the relevant target devices.
85 Wait until the devices are done being trimmed before returning.
89 .Xr zpool-initialize 8 ,