Skip to main content
NetApp Knowledge Base

What are the recommendations for the host stacks supporting SCSI UNMAP (TRIM) commands for space reclamation?

Views:
3,566
Visibility:
Public
Votes:
1
Category:
data-ontap-8
Specialty:
san
Last Updated:

Applies to

  • ONTAP 9
  • Clustered Data ONTAP 8

Answer

The UNMAP command is a SCSI command standardized within the T10 SCSI command set used to reclaim space from blocks that have been deleted by the host OS, an application, or a virtual machine. Thin provisioning technology broadly adopted in the current computer industry uses the UNMAP command to achieve improved storage utilization, flexible capacity planning, and non-stop storage provisioning service. The UNMAP command can be used as an inline or as an offline operation.

Support for the UNMAP command has been added for Data ONTAP 8.1.3 and later.

Host stacks support the UNMAP command to different degrees.

The following is a summary of general recommendations for various host stacks:

Windows:

SCSI unmap is enabled by default.  This can be verified with the following command. 

> fsutil behavior query disabledeletenotify

DisableDeleteNotify = 0 means in-band UNMAP is enabled for the host.

DisableDeleteNotify = 1 means in-band UNMAP is disabled for the host.

VMware:

ESX 5.0U1 disables the UNMAP command. It is recommended to use vmkfstools to reclaim space, refer to vmware kb for more 2007427
ESX 6.0 and above Reclaiming VMFS deleted blocks on Thin Provisioned LUNs, refer to vmware KB 2014849

Linux:

RHEL uses discard operations to reclaim space through the UNMAP command. It supports both online discard (fine-grained discard using the –o discard mount option) and offline discard (batch discard using the fstrim utility).

Red Hat recommends using batch discard operations unless the system's workload is such that the batch discard is not feasible, or online discard operations are necessary to maintain performance. For more information, see the RHEL6, RHEL7 and RHEL8

Solaris:
Solaris does not support SCSI unmap for file system UFS. Since Solaris 11.1 (Oct. 2012) ZFS supports SCSI unmap. This has been backported to Solaris 10 with patch 150400-16.

AIX and HPUX:

These operating systems do not support the UNMAP command.

Symantec:

Symantec does not support the inline UNMAP command for Solaris/Linux and AIX. For more information on using the UNMAP command, see the section on Thin Reclamation in the Symantec Storage Foundation Administrator's Guide.

Additional Information

additionalInformation_text

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.