Avamar:如何使用 capacity.sh 脚本管理容量

Summary: 本文介绍如何使用 capacity.sh 脚本管理 Avamar 系统上的容量。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

本文介绍如何使用 Avamar capacity.sh 脚本。该脚本可帮助了解哪些 Avamar Client 添加的数据最多,在管理 Avamar 上的容量时非常有用。

 

Cause

不适用

 

Resolution

The Avamar capacity.sh 脚本可帮助用户了解 Avamar 系统上的每日容量变化。

如何运行脚本:

  1. 以管理员用户身份登录到 Avamar 应用工具节点。

  2. 运行:

    capacity.sh

    以下项的输出示例: capacity.sh 在没有额外选项的情况下运行时。

    DATE     AVAMAR NEW     #BU    DDR NEW     #BU    SCANNED       REMOVED     MINS PASS AVAMAR NET      CHG RATE
    ========== ============= ==== ============= ==== ============= =============  ==== ==== ============= ==========
    2015-02-22      42116 mb   20          0 mb    0    1632430 mb         -2 mb     1    9      42113 mb      2.58%
    2015-02-23       9244 mb   37         87 mb    1    2007496 mb         -2 mb     1    8       9241 mb      0.46%
    2015-02-24     251437 mb   44          0 mb    0    3320302 mb         -5 mb     1    7     251431 mb      7.57%
    2015-02-25     128836 mb   29          0 mb    0    2984357 mb        -18 mb     1    8     128817 mb      4.32%
    2015-02-26       5972 mb   28          0 mb    0    3236844 mb       -120 mb     2    9       5852 mb      0.18%
    2015-02-27      10400 mb   28          0 mb    0    1698648 mb       -207 mb     1    8      10193 mb      0.61%
    2015-02-28        517 mb   20          0 mb    0    1639704 mb        -25 mb     1    8        492 mb      0.03%
    2015-03-01        232 mb   17          0 mb    0    1670693 mb         -2 mb     1   10        230 mb      0.01%
    2015-03-02       1795 mb   21          0 mb    0    1683217 mb      -1391 mb     1   13        403 mb      0.11%
    2015-03-03      61734 mb   31          0 mb    0    3310735 mb        -80 mb     1   15      61653 mb      1.86%
    2015-03-04      63130 mb   32          0 mb    0    3238318 mb     -56945 mb     3   24       6184 mb      1.95%
    2015-03-05       3824 mb   33          0 mb    0    3296444 mb       -123 mb     2    8       3700 mb      0.12%
    2015-03-06      66523 mb   31          0 mb    0    3334139 mb          0 mb     1    5      66522 mb      2.00%
    2015-03-07       8831 mb   24          0 mb    0    3003236 mb       -456 mb     4   17       8375 mb      0.29%
    2015-03-08       1051 mb    8          0 mb    0    1475912 mb        -92 mb     1    9        959 mb      0.07%
    ================================================================================================================
     14 DAY AVG     43709 mb   26          5 mb    0    2502165 mb      -3965 mb     1   10      39744 mb      1.75%
     30 DAY AVG     34940 mb   24          2 mb    0    2098185 mb      -2798 mb     1   13      32141 mb      1.67%
     60 DAY AVG     23373 mb   19          1 mb    0    1575990 mb     -10646 mb     1   10      12727 mb      1.48%
    
    Top Change Rate Clients.  Total Data Added 655735mb
    
         NEW DATA % OF TOTAL CHGRATE TYPE CLIENT
    ============= ========== ======= ====
        272838 mb     41.61   1.44%  AVA /MC_SYSTEM/avamar-1361485148
        244332 mb     37.26   2.22%  AVA /domain1/clientZ.customer.com
        114913 mb     17.52  29.74%  AVA /domain2/clientF.customer.com
          4238 mb      0.65   9.71%  AVA /REPLICATE/AvamarServer50/clients/replicatedclient.customer.com
          3772 mb      0.58  14.41%  AVA /domain1/clientD.customer.com
    
    Starting with the above part of the script, we see a row of data for each day being reported on. The default reporting time frame is 14 days.
    
    For each day, the above section reports the following information:    
    
    AVAMAR NEW - The amount of new, modified data added to the Avamar Server
    BU# - The number of Avamar server backups which took place
    DDR NEW - The amount of new, modified data added to any attached Data Domain systems 
    BU# - The number of Data Domain directed backups which took place
    SCANNED - The amount of source data scanned on the clients
    REMOVED - The amount of data removed from the Avamar Server by garbage collection
    MINS - The amount of time for which garbage collection ran.
    PASS - The number of passes achieved by garbage collection
    AVAMAR NET - The net data change on the Avamar system (AVAMAR NEW less REMOVED)
    CHG RATE - The percentage increase or decrease of data that is stored in the Avamar Server due to the net data change.

 

解释数据:
本部分可让您了解每天发生的情况,并了解趋势和异常情况。考虑数据是否显示以下任何一项:

  • “新数据”大幅增加。
  • 定期错过的垃圾收集(已删除 = 0)
  • 垃圾收集不足 (PASS < 2)
  • 持续高更改率 (CHG RATE > 1%)。
  • 未运行备份的天数。

 

在上述部分下方,有三行,汇总了过去 14 天、30 天和 60 天内的数据。这对于了解长期趋势很有用。
上面的输出显示添加到系统的新数据正在加速。变化率从1.48%上升到1.67%,再提高到1.75%。
输出的底部显示报告期间添加的数据量。
在这里,我们了解到 所有 客户端添加的数据总量为 655,735 MB。然后,脚本显示(可配置的)主要客户端数量,这些客户端为此新数据做出了贡献。
让我们以之前的例子为例:

Top Change Rate Clients.  Total Data Added 655735mb

     NEW DATA % OF TOTAL CHGRATE TYPE CLIENT
============= ========== ======= ====
    272838 mb     41.61   1.44%  AVA /domain1/clientD.customer.com
    244332 mb     37.26   2.22%  AVA /domain1/clientZ.customer.com
    114913 mb     17.52  29.74%  AVA /domain2/clientF.customer.com
      4238 mb      0.65   9.71%  AVA /REPLICATE/AvamarServer50/clients/replicatedclient.customer.com
      3772 mb      0.58  14.41%  AVA /MC_SYSTEM/avamar-abcdef123456

 

在这里我们了解到

clientD.customer.com
 added the most new data to the Avamar Server (272,838 MB) which was 41.61% of the total data added. The client's own change rate was 1.44%.
clientF.customer.com

 

没有添加大量数据,但在顶级客户端中更改率最高。

 

建议管理员监视此客户端,以了解更改率如此之高的原因。
从容量管理的角度来看,本部分中列出的“排名靠前”的客户端是需要仔细检查的候选项。这是因为它们对总容量的影响最大。
如果考虑减少保留策略、优化数据集或迁移客户端,则可以通过查看这些客户端来获得最大的容量增益。
要增加此部分中报告的客户端数量,请为 capacity.sh 附加“top”标记。例如:

capacity.sh --top=20

 

Additional Information

有关 Avamar 容量管理的更多信息,请参阅文章 79977:Avamar — 容量管理概念和培训

高级选项可通过附加 --help 运行脚本时。例如:

capacity.sh --help

 

这将打印有关通过垃圾数据收集添加的新数据和删除的数据的信息。
如果有备份进入 Data Domain,则会添加额外的列,显示将进入 Data Domain 和 Avamar 的数据量。
扫描量和更改率包括 Avamar 和 Data Domain 数据。Removed和 Net始终只是 Avamar 数据。
您可以使用

--avamar or -ddr

标记,以便 Scanned 和 Rate 列将仅反映 Avamar 或 Data Domain 信息。

--version - Display the program version
--help - Display the help screen
--days=n - Limit data to backups in the past "n" days. Defaults to 14
--client=x-  Limit data to backups with clients that contain "x"
--domain=x - Limit data to backups in domains that contain "x" --avamar Limit data to backups with Avamar as the target
--ddr - Limit data to backups with Data Domain as the target
--norepl - Do not include replication backups
--gb - Report in GB instead of MB
--top=n - Limit large client list to "n." Default 5
--start=x - Start report from date mm/dd/yy
--end=x - End report on date mm/dd/yy

 

要获取 Avamar 或 Avamar-DataDomain 系统上所有备份的列表,请参阅文章 19732:Avamar:如何使用 dump_root_hashes.rb 脚本生成客户端和备份列表以用于比较两个 Avamar 系统的内容和其他应用场景。

 

Affected Products

Avamar

Products

Avamar
Article Properties
Article Number: 000060149
Article Type: Solution
Last Modified: 18 Apr 2025
Version:  8
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.