命令行模式處理 cifs 進程鎖死

在console命令下執行
ide


1.查詢被鎖狀態spa

: lock status -hci

: lock status -f -p cifsit

: lock status -o admin -p cifsconsole

: lock status -f "/vol/Share1/Folder/File.doc" -pclass

2.解鎖用戶file

: lock break -o MYDOMAIN\user1network

3.解鎖主機查詢

: lock break -h host1 -p cifsdi

4.針對文件

: lock break -f  "/vol/vol1/Mydocument.doc"  -p cifs


經常使用到的命令

lock status -f [file] [-p protocol] [-n]
lock status -h [host [-o owner]] [-f file] [-p protocol] [-n]
lock status -o [-f file] [-p protocol] [-n]
lock status -o owner [-f file] [-p protocol] [-n] (valid for CIFS only)
lock status -p protocol [-n]
lock status -n

lock break -f file [-o owner -h host] [-p protocol]
lock break -h host [-o owner] [-f file] [-p protocol]
lock break -o owner [-f file] [-p protocol] (valid for CIFS only)
lock break -p protocol
lock break -net network

相關文章
相關標籤/搜索