You can enable BranchCache on an existing SMB share by adding the branchcache share property to the existing list of share properties.
If the existing share's offline files setting is not set to manual caching, you must configure it by modifying the share.
However, if you want the share to offer cached content, you must configure and enable BranchCache on the SVM.
The BranchCache share property is added to the existing list of share properties. For more information about using the vserver cifs share properties add command, see the man pages.
The following command enables BranchCache on an existing SMB share named data2
with a path of /data2 on SVM vs1:
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