ONTAP 9.13

to English version

FlexCacheボリュームへのデータの事前取り込み

FlexCacheボリュームにデータを事前に取り込むことで、キャッシュ データにアクセスする時間を短縮できます。

要件
  • advanced権限レベルのクラスタ管理者であることが必要です。

  • 指定した事前取り込み用のパスが存在している必要があります。存在しない場合、処理は失敗します。

タスク概要
  • ディレクトリーがクロールされて、ファイルだけが読み取られます。

  • -isRecursionフラグは、事前取り込み用に指定したすべてのディレクトリーに適用されます。

手順
  1. FlexCacheボリュームへデータの事前取り込みを実行します。

    volume flexcache prepopulate -cache-vserver vserver_name -cache-volume -path-list path_list -isRecursion true|false

    • -path-listパラメーターには、事前取り込みを行うディレクトリーを、元のルート ディレクトリーから先のパスで指定します。たとえば、元のルート ディレクトリーの名前が/originで、/origin/dir1と/origin/dir2というディレクトリーが含まれている場合は、次のようにパス リストを指定できます。-path-list dir1, dir2または`-path-list /dir1, /dir2`。

    • -isRecursionパラメーターのデフォルト値はTrueです。

      次の例は、1つのディレクトリー パスで事前取り込みを実行します。

      cluster1::*> flexcache prepopulate start -cache-vserver vs2 -cache-volume fg_cachevol_1 -path-list /dir1
        (volume flexcache prepopulate start)
      [JobId 207]: FlexCache prepopulate job queued.

      次の例は、複数のディレクトリーのファイルに事前取り込みを実行します。

      cluster1::*> flexcache prepopulate start -cache-vserver vs2 -cache-volume fg_cachevol_1 -path-list /dir1,/dir2,/dir3,/dir4
        (volume flexcache prepopulate start)
      [JobId 208]: FlexCache prepopulate job queued.

      次の例は、単一のファイルに事前取り込みを実行します。

      cluster1::*> flexcache prepopulate start -cache-vserver vs2 -cache-volume fg_cachevol_1 -path-list /dir1/file1.txt
        (volume flexcache prepopulate start)
      [JobId 209]: FlexCache prepopulate job queued.

      次の例は、元のルート ディレクトリーにあるすべてのファイルに事前取り込みを実行します。

      cluster1::*> flexcache prepopulate start -cache-vserver vs2 -cache-volume fg_cachevol_1 -path-list / -isRecursion true
        (volume flexcache prepopulate start)
      [JobId 210]: FlexCache prepopulate job queued.

      次の例では、事前取り込み用に無効なパスを指定しています。

      cluster1::*> flexcache prepopulate start -cache-volume vol_cache2_vs3_c2_vol_origin1_vs1_c1 -cache-vserver vs3_c2 -path-list /dir1, dir5, dir6
        (volume flexcache prepopulate start)
      
      Error: command failed: Path(s) "dir5, dir6" does not exist in origin volume
             "vol_origin1_vs1_c1" in Vserver "vs1_c1".
  2. 読み取られたファイルの数を表示します。

    job show -id job_ID -ins

Top of Page