在現有 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
下列命令會在路徑為的現有 SMB 共用「 'data2 」上啟用 BranchCache /data2 在 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