跳转到主内容

"vserver cifs session show" 中的打开文件计数器与 "vserver cifs session " 中列出的实际文件量之间的差异 文件显示 "

Views:
12
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
cifs
Last Updated:

适用场景

  • ONTAP
  • CIFS

问题解答

  • 命令 "vserver cifs session show" 将同时计算打开的文件和文件夹
    •  cluster1::> vserver cifs session show Node: cluster1-01 Vserver: svm1 Connection Session Open Idle Connection ID ID Workstation Windows User Files Time Count ---------- ------- ---------------- ---------------- --------- ------------ --------------- 1788347365 9841209610734665729 2s 1 10.216.36.118 DOMAIN1\ 8 user1 
  • 命令 "vserver cifs session file show" 将仅列出打开的文件
    •  cluster1::> vserver cifs session file show Node: cluster1-01 Vserver: svm1 Connection: 1788347365 Session: 9841209610734665729 Connection Count: 1 File File Open Hosting Continuously ID Type Mode Volume Share Available ------- --------- ---- --------------- --------------------- ------------ 64 Regular r svm1_root c$ No Path: SMB2_File.pcapng 
  • 您可能会看到,也存在打开的文件夹,因为它们将存在共享锁定
    •  cluster1::> vserver locks show Notice: Using this command can impact system performance. It is recommended that you specify both the vserver and the volume when issuing this command to minimize the scope of the command's operation. To abort the command, press Ctrl-C. Vserver: svm1 Volume Object Path LIF Protocol Lock Type Client -------- ------------------------- ----------- --------- ----------- ---------- svm1_root / svm1_cifs_nfs_lif1 cifs share-level 10.216.36.118 Sharelock Mode: read-deny_none /New folder/New folder svm1_cifs_nfs_lif1 cifs share-level 10.216.36.118 Sharelock Mode: read-deny_none Sharelock Mode: read-deny_none /New folder svm1_cifs_nfs_lif1 cifs share-level 10.216.36.118 Sharelock Mode: read-deny_none Sharelock Mode: read-deny_none / svm1_cifs_nfs_lif1 cifs share-level 10.216.36.118 Sharelock Mode: read-deny_none Sharelock Mode: read-deny_none /SMB2_File.pcapng svm1_cifs_nfs_lif1 cifs share-level 10.216.36.118 Sharelock Mode: read-deny_delete op-lock 10.216.36.118 Oplock Level: batch 9 entries were displayed. 

追加信息

附加信息 _text

 

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.