跳转到主内容

Data ONTAP 中的卷自动大小是多少?

Views:
69
Visibility:
Public
Votes:
0
Category:
data-ontap-8
Specialty:
core
Last Updated:

适用场景

  • ONTAP 9.  
  • Data ONTAP 8.  
  • Data ONTAP 8 7-模式
  • Data ONTAP 7及更早版本
  • Cloud Volume ONTAP

问题解答

卷自动调整大小有何作用?
  • 卷自动调整大小是Data ONTAP中一项基于策略的空间管理功能、可在卷接近全满时使卷按增量增长。
  • 接近全满阈值由标志定义 wafl_reclaim_threshold
  • 向节点发送超过可用空间的写入时、 Data ONTAP 将在写入失败并 volume full 显示消息之前尝试尽可能多地写入。 
    • 在下次检查期间、卷将按增量增长、直到达到最小可用空间阈值为止。
    • 这意味着、自动调整大小最好描述为"使用时增长"、而不是"按需增长"、这是在规划阈值和增长增量时应记住的一个区别。
  • 请注意、卷自动调整不会无限增长卷。 
    • 此卷将一直增长、直到达到最大自动调整大小 值、然后不会再分配更多空间。
启用卷自动调整大小的语法如下:

集群模式Data ONTAP 9:

::> volume modify -vserver <vserver_name> -volume <volume_name> -autosize
-autosize-increment         -autosize-increment-percent
-autosize-grow-threshold-percent   -autosize-shrink-threshold-percent
-autosize-mode            -autosize
-autosize-reset           -antivirus-on-access-policy

注意: 从ONTAP 9开始、 -autosize-increment 不可用、因为此值 由ONTAP动态确定。

有关上述参数的详细信息、请参阅 `volume Modify`命令的文档

Data ONTAP 7:

> vol autosize  [-m [k|m|g|t]]
        [-i [k|m|g|t]] 
        [ on | off | reset ]

-m 选项用于设置允许卷增长的最大大小。默认设置为创建时卷大小的120%
-i 选项用于定义卷每次全满时的增长增量。默认设置为创建时卷大小的5%
on 启用此功能
off 禁用此功能
reset 会将设置重置为默认值。

选择回收策略:

以便  使用 try_first volume选项回收通过定义策略确定的空间。try_first volume选项用于确定:

  • 首先尝试Snapshot自动删除。
  • 或首先尝试卷自动调整大小。

可能的 try_first 值包括:

  • snap_delete
  • volume_grow

 

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.