跳转到主内容

如何检查是否正在使用 SMB 多通道

Views:
26
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:

适用场景

  • ONTAP 9
  • SMB 多通道
  • CIFS 服务器

问题解答

  1. 确认 SMB多通道已启用且 相应参数默认设置或所需设置匹配

cluster1::>set -privilege advanced
 
Warning: These advanced commands are potentially dangerous; use them only when directed to do so by NetApp personnel.
Do you want to continue? {y|n}: y
 
cluster1::*>vserver cifs options show -fields is-multichannel-enabled,max-connections-per-session,max-lifs-per-session
vserver     is-multichannel-enabled max-connections-per-session max-lifs-per-session
------------- ----------------------- --------------------------- --------------------
svm1_cluster1 true           32             256
 
cluster1::*>set -privilege admin

  1. 由于给定的CIFS会话仅对 一个节点可见,因此可以允许SMB3客户端将该会话绑定到仅该节点上托管的LID所建立的连接。SMB3客户端查询接口列表时、节点仅返回本地托管的LIP。  确认每个节点存在两个或更多CIFS生命周期。

cluster1::>network interface show -vserver svm1_cluster1 -data-protocol *cifs* -curr-node cluster1-01
       Logical   Status    Network       Current     Current Is
Vserver    Interface  Admin/Oper Address/Mask     Node      Port   Home
----------- ---------- ---------- ------------------ ------------- ------- ----
svm1_cluster1
       svm1_data_lif1
             up/up   192.168.0.131/24   cluster1-01   e0c   true
       svm1_data_lif2
             up/up   192.168.0.132/24   cluster1-01   e0d    true
2 entries were displayed.

  1. 显示客户端CIFS会话。  包括 可选参数 以筛选输出。

cluster1::>vserver cifs session show
 
Node:   cluster1-01
Vserver: svm1_cluster1
Connection Session                     Open      Idle    Connection
ID      ID    Workstation    Windows User      Files      Time       Count
---------- ------- ---------------- ---------------- --------- ------------ ---------------
3959579707 6796776262632210435                    4m 51s        2
          192.168.0.5    DEMO\           3
                   Administrator

  1. [1] 有关SMB 会话中预期的并发连接数、请参见配置SMB多通道以提高性能和冗余。
  2. 显示关联会话ID的连接。

cluster1::>vserver cifs connection show -session-id 6796776262632210435

Node:    cluster1-01
Vserver: svm1_cluster1
Connection Session                               Workstation
ID         IDs                   Workstation IP  Port        LIF IP
---------- --------------------- --------------- ----------- ---------------
3959579707 6796776262632210435   192.168.0.5     50602      192.168.0.131
3959579708 6796776262632210435   192.168.0.5     50603      192.168.0.132
2 entries were displayed.

  1. 如果每个会话的连接数与步骤4中的参考文档中的内容匹配、则客户端正在使用SMB多通道。  如果没有、请参阅追加信息部分中的链接进行故障排除。
NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.