Dell Unity:NAS 伺服器在租約到期超過 5 分鐘時仍鎖定 NFSv4
摘要: 在 Unity NAS 伺服器上,在用戶端意外關機或網路分割區後,檔案上的 NFSv4 鎖定可能會保持超過五分鐘。(使用者可修正)
本文章適用於
本文章不適用於
本文無關於任何特定產品。
本文未識別所有產品版本。
症狀
- 用戶端未正常關機後,Unity NAS 伺服器上可能會發現受影響檔案上的 NFS 鎖定最長達 6 分鐘。
- 在 Unity 解除鎖定之前,其他用戶端無法鎖定檔案。
- 這些鎖定可使用
svc_lockd命令。
root@none spa:/cores/service/user# date ;svc_lockd NAS_Server list
Mon Oct 27 08:43:36 UTC 2025
NAS_Server : commands processed: 1
command(s) succeeded
output is complete
FileSystem: ufs64 rw /.etc SV20000009=536870921 expfsidstr=67fcca47-e0ae-3301-b819-0e0e84d61219 nooplock triggerlevel=0 nocepp nfsv4locking=ADVISORY renamepolicy=CIFS accesspolicy=NATIVE minactfssize=2816 NumTimesFsckHasModifiedFS=0
inum=9465
fldp=0x0008c74ba8 Deleg=0 Opens=1 RangeLocks: Mandatory=0 Advisory=0
inum=9466
fldp=0x0008c74d00 Deleg=0 Opens=1 RangeLocks: Mandatory=0 Advisory=0
inum=9468
fldp=0x0008c75260 Deleg=0 Opens=1 RangeLocks: Mandatory=0 Advisory=0
FileSystem: ufs64 rw /Ghost_NFS01_Official_FS SV2000000a=536870922 expfsidstr=67fccdbd-4304-dbdd-3b8f-00601696feeb nooplock triggerlevel=512 nocepp nfsv4locking=MANDATORY renamepolicy=CIFS accesspolicy=UNIX minactfssize=2816 thinprovisioning maxsize=204544 hwm=0 NumTimesFsckHasModifiedFS=0
inum=9465
fldp=0x0008c753b8 Deleg=0 Opens=1 RangeLocks: Mandatory=1 Advisory=0 <<<<<<<<<<< Lock placed by client on file inode 9465
Command succeeded
root@none spa:/cores/service/user# date ;svc_lockd NAS_Server info fldp=0x0008c753b8
Mon Oct 27 08:43:46 UTC 2025
NAS_Server : commands processed: 1
command(s) succeeded
output is complete
fldp=0x0008c753b8 inum=9465 ref=1 delegp=0x0000000000 totalLocksCount=2 layoutsCount=0
Global accessMode=[RWd], denyMode=[rwd]
Open access=RD-WR deny=NONE [NFSv4_Linux NFSv4.2 test_client_OPEN_0x0008577fc8]
Lock 0x00064-00064: -SHR-MAND [credp=0x000857dfc8 NFSv4_Linux NFSv4.2 test_client_LOCK_0x000857dfc8] <<<<<<<<<< byte-range shared mandatory lock
原因
NFSv4 協定使用租用期,在此期間,伺服器向用戶端授予檔鎖定。客戶端必須定期續訂此租約以保持鎖定。
- 如果用戶端意外關閉,則無法續訂其租約。
- Unity NAS 伺服器會等待租用期到期,再嘗試回收鎖定。
- 默認情況下,Unity 不會立即釋放這些資源。隱藏參數,
nfsv4.cleaningInterval,定義額外的等待期。 - 預設值
nfsv4.cleaningInterval值為 300 秒(5 分鐘)。 - 因此,鎖定的檔僅在標準租用期加上 5 分鐘的清理間隔之後釋放,從而導致總等待時間約為 5 到 6 分鐘。
解析度
可使用 nfsv4.cleaningInterval 可以降低值,以減少 NAS 伺服器保持鎖定的時間。
- 確認目前的值
nfsv4.cleaningInterval是。
root@none spa:/cores/service/user# svc_nas NAS_Server -param -facility nfsv4 -i cleaningInterval -v
NAS_Server :
param nfsv4.cleaningInterval added into the list of visible params
name = cleaningInterval
facility_name = nfsv4
default_value = 300
current_value = 300
configured_value =
param_type = global
user_action = none
change_effective = immediate
range = (30,3600)
description = Time interval in seconds between two successive clean up of orphan states
detailed_description
This param defines how long the server will keep client resources once the client has expired its lease. It is expressed in a count of seconds.
- 修改
nfsv4.cleaningInterval參數的值較低,例如 30 秒。
root@none spa:/cores/service/user# svc_nas ALL -param -facility nfsv4 -modify cleaningInterval -v 30
SPA : done
SPB : done
- 確認該值設置為 30 秒。
root@none spa:/cores/service/user# svc_nas NAS_Server -param -facility nfsv4 -i cleaningInterval -v
NAS_Server :
param nfsv4.cleaningInterval added into the list of visible params
name = cleaningInterval
facility_name = nfsv4
default_value = 300
current_value = 30
configured_value = 30
param_type = global
user_action = none
change_effective = immediate
range = (30,3600)
description = Time interval in seconds between two successive clean up of orphan states
detailed_description
This param defines how long the server will keep client resources once the client has expired its lease. It is expressed in a count of seconds.
注意:這是全域參數,會影響 Unity 系統上的所有 NAS 伺服器。變更會立即生效,且不需要重新啟動 NAS 伺服器或儲存處理器 (SP)。
受影響的產品
Dell EMC Unity文章屬性
文章編號: 000384735
文章類型: Solution
上次修改時間: 09 1月 2026
版本: 3
向其他 Dell 使用者尋求您問題的答案
支援服務
檢查您的裝置是否在支援服務的涵蓋範圍內。