跳转到主内容

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

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

适用场景

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

问题解答

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

集群模式 Data ontap/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卷选项定义策略来确定空间。try_first卷选项用于确定是否:

  • 将首先尝试快照自动删除。
  • 或者首先尝试卷自动调整大小。

可能 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.