跳到主要内容

停止所有 SMB 共享上的自动高速缓存

如果 BranchCache 自动启用每个存储虚拟机(SVM)上的所有 SMB 共享高速缓存,则可修改 BranchCache 配置以停止所有 SMB 共享的自动高速缓存内容。

关于本任务

要停止所有 SMB 共享上自动高速缓存,可将 BranchCache 运行模式更改为每个共享高速缓存。

  1. 通过输入以下命令配置 BranchCache 以停止所有的 SMB 共享的自动高速缓存:vserver cifs branchcache modify -vserver vserver_name -operating-mode per-share
  2. 验证 BranchCache 配置是否正确:vserver cifs branchcache show -vserver vserver_name

示例

以下命令更改了存储虚拟机(简称 SVM,以前称为 Vserver) vs1 上的 BranchCache 配置以停止所有 SMB 共享的自动高速缓存:

cluster1::> vserver cifs branchcache modify -vserver vs1 
-operating-mode per-share

cluster1::> vserver cifs branchcache show -vserver vs1

Vserver: vs1
Supported BranchCache Versions: enable_all
Path to Hash Store: /hash_data
Maximum Size of the Hash Store: 20GB
Encryption Key Used to Secure the Hashes: -
CIFS BranchCache Operating Modes: per_share