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

既存のONTAP SMB共有でBranchCacheを有効にする

共同作成者 netapp-aaron-holt netapp-thomi netapp-aherbin

既存の SMB 共有で BranchCache を有効にするには、既存の共有プロパティのリストに `branchcache`共有プロパティを追加します。

タスク概要
  • SMB共有でBranchCacheを有効にする場合は、共有のオフライン ファイル設定を手動キャッシュに設定する必要があります。

    既存の共有のオフライン ファイル設定が手動キャッシュに設定されていない場合は、共有を変更して設定する必要があります。

  • BranchCacheがストレージ仮想マシン(SVM)上で設定および有効化されていない場合でも、共有に `branchcache`プロパティを設定できます。

    ただし、共有でキャッシュされたコンテンツを提供するには、SVMでBranchCacheを設定して有効にする必要があります。

  • branchcache 共有プロパティを共有に追加すると、既存の共有設定と共有プロパティが保持されます。

    BranchCache 共有プロパティが既存の共有プロパティのリストに追加されます。"ONTAPコマンド リファレンス"の `vserver cifs share properties add`の詳細をご覧ください。

手順
  1. 必要に応じて、オフライン ファイルの共有設定を手動キャッシュに設定します。

    1. `vserver cifs share show`コマンドを使用して、オフライン ファイルの共有設定を確認します。

    2. オフライン ファイルの共有設定が手動に設定されていない場合は、必要な値に変更します: vserver cifs share modify -vserver vserver_name -share-name share_name -offline-files manual

  2. 既存の SMB 共有で BranchCache を有効にする: vserver cifs share properties add -vserver vserver_name -share-name share_name -share-properties branchcache

  3. SMB 共有に BranchCache 共有プロパティが設定されていることを確認します: vserver cifs share show -vserver vserver_name -share-name share_name

次のコマンドは、SVM vs1 上のパス /data2`を持つ「`data2」という名前の既存の SMB 共有でBranchCacheを有効にします:

cluster1::> vserver cifs share show -vserver vs1 -share-name data2

                      Vserver: vs1
                        Share: data2
     CIFS Server NetBIOS Name: VS1
                         Path: /data2
             Share Properties: oplocks
                               browsable
                               changenotify
                               showsnapshot
           Symlink Properties: -
      File Mode Creation Mask: -
 Directory Mode Creation Mask: -
                Share Comment: -
                    Share ACL: Everyone / Full Control
File Attribute Cache Lifetime: 10s
                  Volume Name: -
                Offline Files: manual
Vscan File-Operations Profile: standard

cluster1::> vserver cifs share properties add  -vserver vs1 -share-name data2 -share-properties branchcache

cluster1::> vserver cifs share show -vserver vs1 -share-name data2

                      Vserver: vs1
                        Share: data2
     CIFS Server NetBIOS Name: VS1
                         Path: /data2
             Share Properties: oplocks
                               browsable
                               showsnapshot
                               changenotify
                               branchcache
           Symlink Properties: -
      File Mode Creation Mask: -
 Directory Mode Creation Mask: -
                Share Comment: -
                    Share ACL: Everyone / Full Control
File Attribute Cache Lifetime: 10s
                  Volume Name: -
                Offline Files: manual
Vscan File-Operations Profile: standard