跳转到主内容

什么是 deswizzler 或 deswizzling

Views:
663
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
dp
Last Updated:

​ ​ ​  

适用于

  • Data ONTAP 7
  • Data ONTAP 8(7-mode 和 Clustered)
  • ONTAP 9

回答

注意:Deswizzling、deswizzle 和 deswizzler 在本文中可互换使用,但均指相同类型的 WAFL 扫描。

  • 在 Data ONTAP 7-模式和 ONTAP 9 DP 样式 SnapMirror 目标卷上,此扫描将聚合(物理)块位置映射到卷(逻辑)块位置,因为传输不包括物理磁盘块位置。
    • 示例:
      • 在实际的住宅地址中,您有一个“物理”位置,如 123 N. Main St,以及一个“逻辑”位置,如加利福尼亚州桑尼维尔。
      • 这两个属性通过邮政编码绑定在一起。
      • 邮政服务可以通过邮政编码将“物理”和“逻辑”地址部分关联在一起。
    • 注意:卷移动使用 DP 类型的 SnapMirror 引擎,因此目标卷 将进行 deswizzler 扫描。
这对性能有何影响?
  • Deswizzling 扫描对 CPU 和磁盘各自的开销极小。
    • 多次扫描可能会导致 CPU 或磁盘争用,具体取决于并发卷扫描的数量以及每次扫描的相关块数量。
    • 如果块从用户/主机读取并被 swizzle(deswizzle 扫描尚未更新此块),则会出现轻微的读取延迟增加和额外的开销。
  • 读取执行慢速路径。
    • 在具有 SSD 的系统中,这种影响极小,但对于 HDD 和分区 SSD,每次操作可能会增加几毫秒的延迟。
为什么总是有 deswizzling 扫描程序在运行?
  • 如果卷是 Data ONTAP 7-mode SnapMirror 或 DP 类型 SnapMirror 目标,则每次完成的传输都会产生需要扫描的新快照。
    • 可以清除快照,以便在活动文件系统(AFS)上运行扫描。
  • 由于创建快照会按从最新到最旧的快照顺序重新启动扫描程序,因此 Deswizzling 扫描可能永远无法完成。
    • 如果处于这种情况,请安排一个窗口以停止所有卷快照和 SnapMirror 类型的作业。
  • 有关详细信息,请参见 Deswizzler 在 SnapMirror 目标卷上持续运行。
deswizzler  是否针对 XDP 类型的 SnapMirror 关系目标卷运行?
  • 否。Deswizzler 不 会 在 ONTAP 9 及更高版本中的 SnapMirror type-XDP 目标卷上运行。
可以中止 deswizzling 吗?
  • 否。如果需要将 SnapMirror 目标作为正在激活的灾难恢复站点,则此扫描对于性能至关重要。
Deswizzling 是否发生在离线卷上?
  • 否,deswizzling 不能在脱机卷上运行。
  • 如果卷脱机或在 SnapMirror 更新期间中断了 deswizzling 操作,则  deswizzler 将在检查点重新启动,而不是在 deswizzling 扫描过程中完成块级更新时从头开始重新启动。
如果 deswizzler 在非专用 SnapMirror 目标卷的卷上运行,该怎么办?
  • 在卷历史记录的某个时刻,此卷曾是 SnapMirror 目标或卷移动目标。
    • 这种情况可能会在未被察觉的情况下持续数月甚至数年。
    • 如上所述,此卷上需要一个没有快照的时间窗口才能完成扫描。
  • 另一种可能性是级联 SnapMirror,其中三级 SnapMirror 组的中间节点是最终目标的源。
是否可以禁用 deswizzling 扫描?
  • 是的。但是,如果任何块被转换,则会产生慢速路径读取惩罚,这在 HDD 系统上可能会增加几毫秒的读取延迟。
  • 在 node shell 或 7-mode shell 下,该命令为 options wafl.deswizzle.enable off  。
    • 例如,以下是 ONTAP 9 系统的示例:

cluster_CLI::> node run -node node1 "options wafl.deswizzle.enable off"
cluster_CLI::> node run -node node1 "options wafl.deswizzle.enable"   

wafl.deswizzle.enable        off       

如何检查 deswizzler 是否正在运行?

管理员可以使用 wafl scan status 命令检查扫描仪是否正在运行:

7-Mode: filer> priv set advanced filer*> wafl scan status ONTAP 9: cluster_CLI::> node run -node node_name "priv set advanced;wafl scan status" 
Output example: Volume volume1: Scan id Type of scan progress 226328 container block reclamation block 1871 of 24095 (fbn 11220) 226329 volume deswizzling snap 157, inode 2144843 of 2172681. level 1 of normal files. Totals: Normal files: L1:10/4881 L2:0/11336 L3:0/5723 L4:0/0 Inode file: L0:0/0 L1:0/0 L2:0/0 L3:0/0 L4:0/0
在修改 swizzle 扫描器之前,我是否需要禁用 WAFL 扫描器?
  •  为了改变运行 deswizzling 扫描程序的行为,应首先终止所有 deswizzling 扫描程序,方法是将 wafl.deswizzle.enable 设置为 off 并等待所有 deswizzling 扫描程序退出
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.