跳转到主内容

完全聚合会产生什么影响?

Views:
39
Visibility:
Public
Votes:
1
Category:
data-ontap-7
Specialty:
core
Last Updated:

可不使用  

适用场景

Data ONTAP 7 及更早版本

问题解答

如果聚合显示 100% 已满,我应该怎么做?

在 Data ONTAP 7G 和 Data ONTAP 8 7- 模式df -A中,显示聚合已满 100% 。例如:

storage1> df -A
Aggregate      kilobytes   used        available capacity
aggr0         5238716824  5231747608   6969216    100%
aggr0/.snapshot  275721936   60389932    215332004   22%

在集群模式 Data ONTAP 中, storage aggregate show 将显示系统上聚合的空间使用情况。  例如:

cluster1::> storage aggregate show
Aggregate     Size Available Used% State    #Vols Nodes      RAID Status
--------- -------- --------- ----- ------- ------ ---------- ------------  
aggr0       6.21TB    1.78TB   71% online      49 node0      raid_dp   
aggr1       6.65TB    6.42TB    3% online       4 node1      raid_dp   
aggr2       1.77TB    1.63TB    8% online       1 node2      raid_dp  
aggr3       1.77TB    1.73TB    2% online       2 node3      raid_dp 

4 entries were displayed.

显示 100% 已用空间的聚合df -A实际上可能不会使用 100% 的空间。

如果在 FlexVol 卷或 LUN 上使用空间预留、空间将被标记为保留空间、因此即使磁盘上的块实际上是可用空间,也会被计算为已用空间。聚合会将当前未保存数据的所有块(包括卷保证 FlexVol 卷中的可用空间、未使用的 Snapshot 预留空间以及未使用的覆盖 LUN 的保留空间)聚合到内部池中、然后再将这些数据块按需提供给 FlexVol 卷。

  • 如果所有 FlexVol 卷开始一次填充、则可能会导致问题(取决于工作负载)。
  • 如果不是全部填充一次,这不会导致问题。只要底层聚合上仍有可用空间,则以 100% 满量运行 FlexVol 卷不会出现任何问题。

在 Data ONTAP 7G 和 Data ONTAP 8 7- 模式中、聚合上的 Snapshot 使用限制为 5% 。在以上示例中:

  • 快照使用率为 22% 、即在 5% 中使用了 22% 。
  • 快照空间为 275721936 、占总数的 5% 、使用的是 60389932 (占 22% )。
    • 5% 是默认值,可以使用进行更改snap reserve -A。 

聚合 Snapshot 副本使用的实际空间和特定系统的更改速率可以进行监控并用于根据特定客户环境确定最佳保留空间。  此外,在以上示例中,snap sched -A设置为默认值( 01-4 @9,14,19 )。22% 的快照使用率有助于 FlexVol 卷的全满性。

在集群模式 Data ONTAP 中、可以使用查看聚合上的 Snapshot 预留storage aggregate show -percent-snapshot-space。  可以使用更改百分比storage aggregate modify -percent-snapshot-space percent

如果快照已用空间的增长足以填满分配的空间( 5% )、则会自动删除快照副本、以防止它们超出聚合快照保留空间。  此聚合级别行为与 FlexVol 卷级快照行为不同。这只会自动发生在聚合中、而不会发生在传统卷或 FlexVol 卷中。

如果由于实际数据占用所有可用块而导致聚合变满,则聚合上托管的 FlexVol 卷也将显示为已满。  对于 NAS 协议(例如 CIFS 和 NFS )使用的 FlexVol 卷、客户端在尝试写入 FlexVol 时将收到磁盘已满错误。  对于包含精简配置 LUN 并由 SAN 协议(例如 iSCSI 和 FCP )使用的 FlexVol 卷、 LUN 在达到全部容量时将脱机。

Data ONTAP 管理员在管理可用存储空间时有多种选择:

  • 根据未来存储需求的预测方式、可以在 Data ONTAP 中设置配额、以便用户管理意外的存储使用情况。 
  • 应监控快照空间使用情况以确保其不会过度运行快照保留,因为这会减少 FlexVol 卷中用户可用的可写空间量。 
  • Data ONTAP 7.1 或更高版本包含 FlexVol 卷自动增长和可用空间保留功能、该功能允许 FlexVol 卷根据存储需求自动增长并减少卷空间不足的可能性。使用此功能时,应根据底层聚合中的可用空间来监控 FlexVol 卷存储使用情况。 
  • 重复数据删除还可用于减少 FlexVol 卷中使用的空间量。  重复数据删除在块级工作以消除重复的数据块。 
  • Data ONTAP 8.0.1 和更高版本支持[1]在 FlexVol 卷中进行数据压缩、以此提高存储效率、方法是使用更少的空间存储更多数据。  压缩可以配置为联机或后处理。  写入数据时会进行在线压缩。  进程后压缩在已写入磁盘的数据上作为低优先级后台进程运行。 
  • LUN 选项space_alloc可用于控制 LUN 在达到 100% 利用率时是否脱机。 
    • 有关此 LUN 选项的详细信息,请参见[2]第 18 页上的 Data ONTAP 8.2 SAN Administration Guide for 7- Mode 。
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