既存のONTAP SMB共有でBranchCacheを有効にする
既存の SMB 共有で BranchCache を有効にするには、既存の共有プロパティのリストに `branchcache`共有プロパティを追加します。
-
SMB共有でBranchCacheを有効にする場合は、共有のオフライン ファイル設定を手動キャッシュに設定する必要があります。
既存の共有のオフライン ファイル設定が手動キャッシュに設定されていない場合は、共有を変更して設定する必要があります。
-
BranchCacheがストレージ仮想マシン(SVM)上で設定および有効化されていない場合でも、共有に `branchcache`プロパティを設定できます。
ただし、共有でキャッシュされたコンテンツを提供するには、SVMでBranchCacheを設定して有効にする必要があります。
-
branchcache共有プロパティを共有に追加すると、既存の共有設定と共有プロパティが保持されます。BranchCache 共有プロパティが既存の共有プロパティのリストに追加されます。"ONTAPコマンド リファレンス"の `vserver cifs share properties add`の詳細をご覧ください。
-
必要に応じて、オフライン ファイルの共有設定を手動キャッシュに設定します。
-
`vserver cifs share show`コマンドを使用して、オフライン ファイルの共有設定を確認します。
-
オフライン ファイルの共有設定が手動に設定されていない場合は、必要な値に変更します:
vserver cifs share modify -vserver vserver_name -share-name share_name -offline-files manual
-
-
既存の SMB 共有で BranchCache を有効にする:
vserver cifs share properties add -vserver vserver_name -share-name share_name -share-properties branchcache -
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