跳转到主内容

什么是过量提交的聚合?

Views:
44
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 卷 "test" 后,无保证且数据为 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 -hstorage aggregate show-space -commands 的输出。这将说明实际使用的空间量的准确性,而不管保证如何。
 

"test" 启用卷保证
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" 的占用空间与 " 已用 " 有何显著不同。
 

在为 "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.
Scan to view the article on your device