跳转到主内容

如何在 Data ONTAP 集群模式下配置配额(包括跟踪配额)

Views:
130
Visibility:
Public
Votes:
2
Category:
clustered-data-ontap-8
Specialty:
core
Last Updated:

执行

执行

适用场景

  • ONTAP 9
  • 设置配置

问题描述

可以配置配额,使特定用户,组或 qtree 具有特定的磁盘限制或文件数量限制。

注意

  • 只有在 8.0 集群模式下,跟踪和树配额类型才支持配额策略规则, 8.1 及更高版本中提供了用户和组选项。
  • 在集群模式下、有一个通配符、其中包含两个空双引号""、用于为qtree或卷的所有用户设置配额 

如果没有卷范围的跟踪配额,则特定配额的更改将需要一段时间才能生效(因为所有配额信息都需要由存储系统分析,并且可能需要关闭并重新打开配额才能收集这些信息)。为了避免配额在配额更改期间生效之前用户达到配额的风险,建议对要应用更具体配额的任何卷设置跟踪配额。

假设环境包含一个名为 "VS1" 的 SVM 和一个名为 "volume" 的卷,其中包含许多 qtree ( qtree1 , qtree2 , qtree3 等)。

cmodebr1Node1::*> qtree show
  (volume qtree show)
Virtual
Server     Volume        Qtree        Style        Oplocks   Status
---------- ------------- ------------ ------------ --------- --------
vs1        vs1_root     ""           unix         enable    normal
vs1        volume       ""           unix         enable    normal
vs1        volume        qtree1       unix         enable    normal
vs1        volume        qtree2       unix         enable    normal
vs1        volume        qtree3       unix         enable    normal

对卷上的配额进行的任何更改都要求 SVM 上至少有一个配额规则应用于该卷,否则可能会出现如下错误:

cmodebr1Node1::*> vol quota resize -vserver vs1 -volume volume
  (volume quota resize)

Error: command failed: No valid quota rules found in quota policy default for
       volume volume in Vserver vs1.

cmodebr1Node1::*> vol quota on -vserver vs1 -volume volume
  (volume quota on)

Error: command failed: No valid quota rules found in quota policy default for
       volume volume in Vserver vs1.

要使这些命令正常运行,请确保 SVM 至少具有一个策略,并且该策略具有一条用于对卷执行适用场景 的规则。

以下步骤介绍如何创建策略,如何实施可选的建议初始跟踪规则以及如何创建或修改 qtree 专用规则:

 

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

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.