跳转到主内容

什么是过量提交的聚合?

Views:
57
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core
Last Updated:

适用场景

  • ONTAP 9
  • Data ONTAP 8
  • 7-模式 Data ONTAP
  • 聚合

追加信息

  • 什么是过量使用的聚合?
  • 为什么我看到卷上有可用空间、但文件管理器告诉我设备上没有任何剩余空间?
  • 为什么需要启用卷保证?
  • 如何了解聚合中实际使用的空间量?

问题解答

什么是过量提交的聚合?

过量使用的聚合是指分配给卷的总空间超过所属聚合所允许的空间的聚合。关闭卷保证时会出现这种情况。如果发生这种情况、卷占用的空间量将仅反映该卷中的数据量。因此、如果有人创建了一个100 GB的卷、并且该卷中只有20 GB、则df -A将仅在未启用卷保证的情况下将该卷显示为正在使用20 GB。如果启用了保证、则该卷将显示为正在使用100 GB。

示例:
在创建卷"test"之前
df -A -h

Aggregate             total     used     avail     capacity
aggr1                 705GB     51GB     654GB     7%

aggr1/.snapshot       37GB    133MB    37GB    0%

创建100 GB卷"测试"(无保证)和20 GB数据后:
df -A -h

Aggregate             total     used     avail     capacity
aggr1                 705GB     71GB     634GB     10%
aggr1/.snapshot       37GB    133MB    37GB    0%

在"test"上启用卷保证后:
df -A -h

Aggregate             total     used     avail     capacity
aggr1                 705GB     151GB    554GB     21%
aggr1/.snapshot       37GB      133MB    37GB    0%

为什么我看到卷上有可用空间、但文件管理器告诉我设备上没有任何剩余空间?

如果卷分配量超过聚合分配量、则聚合会过量使用。如果创建了500 GB的聚合、则这些聚合将限制为500 GB的可用空间(不包括WAFL开销)。如果启用了卷保证、则可以创建五个100 GB卷、聚合将在df -A中显示已用空间为100%但是、如果禁用了卷保证、则可以根据需要创建任意数量的100 GB卷、并且聚合只会看到卷内的数据。如果发生这种情况、卷将在使用时随时间而填充、一旦总已用容量达到500 GB、聚合将显示为已满、即使未填充各个卷、也无法再在该聚合上写入数据。

为什么需要启用卷保证?

在大多数情况下、需要启用卷保证、以避免 因空间不足而无法再向聚合写入数据的情况。如果启用了卷保证、则可以监控每个卷的空间使用量、并准确显示要分配的空间与正在使用的空间。通过保证有可用空间、您可以避免不知道何时空间即将用尽的情况。

如何了解聚合中实际使用的空间量?

如果将df和df -A结合使用、则有助于说明聚合上实际占用的空间量与卷使用的空间量。但是、这些命令可能会被误解、有时甚至不准确。显示已用空间量与的最佳方式分配的目的是比较 df -h 和 storage aggregate show-space -commands的输出。这 将说明实际使用的准确空间量、而不管保证如何。
 

 为"测试"启用卷保证
df -h test
Filesystem               total       used      avail capacity
/vol/test/                95GB      264KB       94GB       0%
/vol/test/.snapshot     5120MB         0B     5120MB       0%

 

storage aggregate show-space -aggregate-name aggr1

    Aggregate : aggr1

    Feature                      Used    Used%
    --------------------------------       ----------    ------
    Volume Footprints                102.1GB      3% <<reserved for data+ metadata + snapreserve
    Aggregate Metadata                468KB      0%
    Snapshot Reserve                   0B      0%
    Total Used                   102.1GB      3%

    Total Physical Used               275.0MB      0%
 

*注意 卷"test"的占用空间与"used"的占用空间有很大不同。
 

为"test"禁用卷保证的情况下:
df -h test
Filesystem         total     used    avail capacity
/vol/test/         95GB    304KB     94GB     0%
/vol/test/.snapshot    5120MB    216KB    5119MB     0%

 

storage aggregate show-space -aggregate-name aggr1

    Aggregate : aggr1

    Feature                      Used    Used%
    --------------------------------       ----------    ------
    Volume Footprints                1.93GB      0% << data used + metadata + snapreserve
    Aggregate Metadata                556KB      0%
    Snapshot Reserve                   0B      0%
    Total Used                    1.93GB      0%

    Total Physical Used               278.2MB      0%

 

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.