Skip to main content
日本語は機械翻訳による参考訳です。内容に矛盾や不一致があった場合には、英語の内容が優先されます。

ファイル分析

共同作成者

NetApp XCP ファイル分析 GUI は、バックエンドで XCP を使用してファイルシステムスキャンを実行し、 NAS ( NFS 、 SMB )ファイルシステムのグラフやビューなどの統計情報を表示するのに役立ちます。1.6 以降では、構成オプションと systemctl オプションを使用して、簡単な導入手順で XCP をサービスとして実行できます。XCP Configure オプションでは、 Postgres と Web サーバのインストールと設定、およびクレデンシャルの収集が指示されます。systemctl オプションは、 GUI から REST API 通信のサービスとして XCP を実行します。

次の図に、 XCP ファイルの分析フローを示します。

エラー:グラフィックイメージがありません

メモ XCP ファイル分析のアーキテクチャの概要、統計情報ビューなどの GUI ベースのダッシュボードビュー、およびファイル配布ビューの詳細については、ブログの投稿を参照してください "NetApp XCP 1.6 が、オープンファイル分析とインフラストラクチャの向上を実現します"

XCP 1.6 では、カスタマイズされたグラフを作成するための GUI に制限があります。必要なグラフを作成するには、 CLI を使用して対応するフィルタを指定して XCP スキャンコマンドを実行します。次の例を参照してください。

  1. 「 XCP scan 」と「 -match 」フィルタを使用して、消費されたスペースを使用して、 1 年を超えて変更されたファイルのリストを生成します。

    [root@ch-vm-cent7-2 linux]# ./xcp scan -match "modified > 1*year" -l -q 192.168.89.110:/ifs/data_for_analysis  > modified_morethan_year
    XCP 1.6P1; (c) 2020 NetApp, Inc.; Licensed to Karthikeyan Nagalingam [NetApp Inc] until Wed Sep  9 13:19:35 2020
     
    xcp: WARNING: CPU count is only 1!
     
    Filtered: 1 did not match
     
    Xcp command : xcp scan -match modified > 1*year -l -q 192.168.89.110:/ifs/data_for_analysis
    5,055 scanned, 5,054 matched, 0 error
    Speed       : 1.10 MiB in (510 KiB/s), 110 KiB out (49.5 KiB/s)
    Total Time  : 2s.
    STATUS      : PASSED
    [root@ch-vm-cent7-2 linux]#
    [root@ch-vm-cent7-2 linux]# cat modified_morethan_year
     rwxr-xr-x --- 7056 503        0     512  7y99d data_for_analysis/benchmarks/benchmarks/udf_TOBAGandTOTUPLE_7_benchmark.out/6/_SUCCESS
     rwxr-xr-x --- 7056 503      270 8.50KiB  7y99d data_for_analysis/benchmarks/benchmarks/udf_TOBAGandTOTUPLE_7_benchmark.out/6/part-r-00000
     rw-r--r-- --- 7056 503        0     512  7y58d data_for_analysis/benchmarks/benchmarks/udf_TOBAGandTOTUPLE_7_benchmark.out/6/SUCCESS.crc
     rw-r--r-- --- 7056 503      270 8.50KiB  7y99d data_for_analysis/benchmarks/benchmarks/udf_TOBAGandTOTUPLE_7_benchmark.out/6/out_original
     rw-r--r-- --- 7056 503      270 8.50KiB  7y99d data_for_analysis/benchmarks/benchmarks/udf_TOBAGandTOTUPLE_7_benchmark.out/6/out_sorted
     rwxr-xr-x --- 7056 503        0     512  7y99d data_for_analysis/benchmarks/benchmarks/udf_TOBAGandTOTUPLE_7_benchmark.out/2/_SUCCESS
     rwxr-xr-x --- 7056 503       90 8.50KiB  7y99d data_for_analysis/benchmarks/benchmarks/udf_TOBAGandTOTUPLE_7_benchmark.out/2/part-r-00000
    …
    < console output removed due o page space size >
    …
  2. 1 年以上前のファイルで使用されているスペースを探します。

    [root@ch-vm-cent7-2 linux]# ./xcp -du -match "modified > 1*year"  192.168.89.110:/ifs/data_for_analysis/
    XCP 1.6.1; (c) 2020 NetApp, Inc.; Licensed to Karthikeyan Nagalingam [NetApp Inc] until Wed Sep  9 13:19:35 2020
    xcp: WARNING: CPU count is only 1!
    52.5KiB data_for_analysis/benchmarks/benchmarks/Macro_Scope_1_benchmark.out
    28.5KiB data_for_analysis/benchmarks/benchmarks/CollectedGroup_6_benchmark.out
    28.5KiB data_for_analysis/benchmarks/benchmarks/Foreach_11_benchmark.out
     153KiB data_for_analysis/benchmarks/benchmarks/SecondarySort_9_benchmark.out
     412KiB data_for_analysis/benchmarks/benchmarks/CoGroupFlatten_6_benchmark.out
     652KiB data_for_analysis/benchmarks/benchmarks/Iterator_1_benchmark.out
     652KiB data_for_analysis/benchmarks/benchmarks/LoaderDefaultDir_1_benchmark.out
     652KiB data_for_analysis/benchmarks/benchmarks/Order_4_benchmark.out
    28.5KiB data_for_analysis/benchmarks/benchmarks/MapPartialAgg_4_benchmark.out/2
    28.5KiB data_for_analysis/benchmarks/benchmarks/CastScalar_11_benchmark.out/2
    1.29MiB data_for_analysis/benchmarks/benchmarks/Order_18_benchmark.out
     652KiB data_for_analysis/benchmarks/benchmarks/FilterBoolean_5_benchmark.out
    20.5KiB data_for_analysis/benchmarks/benchmarks/Macro_DefinitionAndInline_5_benchmark.out/2
     628KiB data_for_analysis/benchmarks/benchmarks/Types_29_benchmark.out
    …
    < console output removed due o page space size >
    …
    3.18MiB data_for_analysis/benchmarks/benchmarks/hadoop10
     340KiB data_for_analysis/benchmarks/benchmarks/Split_5_benchmark.out
    5.90GiB data_for_analysis/benchmarks/benchmarks
    6.56GiB data_for_analysis/benchmarks
    6.56GiB data_for_analysis
    
    Filtered: 488 did not match
    
    Xcp command : xcp -du -match modified > 1*year 192.168.89.110:/ifs/data_for_analysis/
    Stats       : 5,055 scanned, 4,567 matched
    Speed       : 1.10 MiB in (1.36 MiB/s), 110 KiB out (135 KiB/s)
    Total Time  : 0s.
    STATUS      : PASSED
    [root@ch-vm-cent7-2 linux]#
  3. 1 年以上前に変更されたデータの合計サイズとグラフ表示を確認します。

    [root@ch-vm-cent7-2 linux]# ./xcp -stats -match "modified > 1*year" -html  192.168.89.110:/ifs/data_for_analysis/ > modified_morethan_year_stats.html
    XCP 1.6.1; (c) 2020 NetApp, Inc.; Licensed to Karthikeyan Nagalingam [NetApp Inc] until Wed Sep  9 13:19:35 2020
    
    xcp: WARNING: CPU count is only 1!
    
    Xcp command : xcp -stats -match modified > 1*year -html 192.168.89.110:/ifs/data_for_analysis/
    Stats       : 5,055 scanned, 4,567 matched
    Speed       : 1.10 MiB in (919 KiB/s), 110 KiB out (89.1 KiB/s)
    Total Time  : 1s.
    STATUS      : PASSED
    [root@ch-vm-cent7-2 linux]#

次のレポートは、 1 年以上前に変更されたファイルのカスタムスキャン例です。

エラー:グラフィックイメージがありません