Dell Unity:租用期到期後,NAS 伺服器將 NFSv4 鎖定超過5分鐘。(使用者可修正)
Summary: 在 Unity NAS 伺服器上,在用戶端意外關機或網路分割區後,檔案上的 NFSv4 鎖定可能會保持超過五分鐘
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Symptoms
- 用戶端未正常關機後,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
Cause
NFSv4 協定使用租用期,在此期間,伺服器向用戶端授予檔鎖定。客戶端必須定期續訂此租約以保持鎖定。
- 如果用戶端意外關閉,則無法續訂其租約。
- Unity NAS 伺服器會等待租用期到期,再嘗試回收鎖定。
- 默認情況下,Unity 不會立即釋放這些資源。隱藏參數,
nfsv4.cleaningInterval,定義額外的等待期。 - 預設值
nfsv4.cleaningInterval值為 300 秒(5 分鐘)。 - 因此,鎖定的檔僅在標準租用期加上 5 分鐘的清理間隔之後釋放,從而導致總等待時間約為 5 到 6 分鐘。
Resolution
為縮短 NAS 伺服器保持鎖定的時間, nfsv4.cleaningInterval 值可以降低。
- 確認 的目前值為何
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)。
Affected Products
Dell EMC UnityArticle Properties
Article Number: 000384735
Article Type: Solution
Last Modified: 09 Nov 2025
Version: 2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.