「 vserver cifs session show 」の開いているファイルカウンタと「 vserver cifs session 」に表示される実際のファイル数の違い file show "
環境
- 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.
-
追加情報
AdditionalInformation_Text