跳转到主内容

对于支持用于空间回收的 SCSI UNMAP (TRIM) 命令的主机堆栈,有哪些建议?

Views:
796
Visibility:
Public
Votes:
1
Category:
data-ontap-8
Specialty:
san
Last Updated:

适用于

  • ONTAP 9
  • 集群模式 Data ONTAP 8
  • Windows
  • Linux
  • Solaris
  • AIX 和 HPUX
  • Symantec

问题解答

UNMAP命令是在 T10 SCSI 命令集中标准化的 SCSI 命令,用于从已被主机操作系统、应用程序或虚拟机删除的块中回收空间。当前计算机行业广泛采用的精简配置技术使用UNMAP命令来实现提高存储利用率、灵活的容量规划和不间断的存储配置服务。该UNMAP命令可以用作内联操作或脱机操作。

  • 为 Data ONTAP 8.1.3 及更高版本添加了对 UNMAP 命令的支持。
  • 主机堆栈在不同程度上支持 UNMAP 命令。

以下是针对各种主机堆栈的一般性建议摘要:

  • Windows:

SCSI unmap 默认处于启用状态。  这可以通过以下命令进行验证。 

> fsutil behavior query disabledeletenotify

DisableDeleteNotify = 0 表示已为该主机启用带内 UNMAP。

DisableDeleteNotify = 1 表示已为主机禁用带内 UNMAP。

  • VMware:

ESX 5.0U1 禁用该UNMAP命令。建议使用 vmkfstools 回收空间,请参阅 vmware kb 2007427
ESX 6.0 及更高版本回收精简配置 LUN 上的 VMFS 已删除块,请参阅 vmware KB 2014849

  • Linux:

RHEL 使用丢弃操作通过 UNMAP 命令回收空间。它支持在线丢弃(使用 –o discard mount 选项进行细粒度丢弃)和离线丢弃(使用 fstrim 实用程序进行批量丢弃)。

Red Hat 建议使用批量丢弃操作,除非系统的工作负载导致批量丢弃不可行,或者需要在线丢弃操作来保持性能。有关详细信息,请参见RHEL6RHEL7 和RHEL8

  • Solaris:

Solaris 不支持文件系统 UFS 的 SCSI 取消映射。自 Solaris 11.1(2012 年 10 月)起,ZFS 支持 SCSI 取消映射。这已经通过修补程序 150400-16 反向移植到 Solaris 10。

  • AIX 和 HPUX:

这些操作系统不支持该 UNMAP 命令。

  • Symantec:

Symantec 不支持 Solaris/Linux 和 AIX 的内联 UNMAP 命令。有关使用 UNMAP 命令的详细信息,请参见 Symantec Storage Foundation 管理员指南 中的"精简回收"一节。

追加信息

不适用

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.