PowerScale:当 NFS 上的硬配额超过时无法删除文件,并显示错误“No space left on device”(设备上没有剩余空间)

Summary: 如果超过硬配额并显示错误“No space left on device”,NFS 客户端将无法删除数据。

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

# isi quota quotas list
Type         AppliesTo  Path     Snap  Hard    Soft  Adv  Used    Efficiency
-----------------------------------------------------------------------------
default-user DEFAULT    /ifs/nfs No    100.00M -     -    0.00    -
user         root       /ifs/nfs No    100.00M -     -    195.00M 0.50 : 1  <<<<<<< Exceeded user quota
-----------------------------------------------------------------------------
Total: 2


[root@centos tmp]# rm -f testfile2
rm: cannot remove ‘testfile2’: No space left on device


在数据包捕获中, NFS3ERR_NOSPC 可以看到:
 

NFS 266 V3 RENAME Call (Reply In 121), From DH: 0x73953be7/testfile123 To DH: 0x73953be7/.nfs000000010001329500000009 

NFS 162 V3 RENAME Reply (Call In 120) Error: NFS3ERR_NOSPC

 

Cause

文件正在使用中,导致写入 .nfs 文件,直到不再使用该文件。由于超过了配额,无法写入 .nfs 文件。这被认为是一个愚蠢的重命名,是客户端而不是服务器做的事情。 

NFS 266 V3 RENAME Call (Reply In 121), From DH: 0x73953be7/testfile123 To DH: 0x73953be7/.nfs000000010001329500000009 <<<<< can see Client tries to make a .nfs file

And fails because the quota is exceeded 

NFS 162 V3 RENAME Reply (Call In 120) Error: NFS3ERR_NOSPC

Resolution

通常运行 lsof 在客户端上标识哪个进程打开了文件。但是,在至少一个实例中,客户端上的 CrowdStrike 创建了 .nfs 文件但被阻止 lsof 从将其显示为打开。临时禁用 CrowdStrike 会删除该文件。如果必须恢复 .nfs 文件出现在数据包捕获中,确认客户端进程正在使用该文件,这可防止在超过硬配额时将其删除。

[root@centos tmp]# lsof testfile123
COMMAND   PID USER   FD   TYPE DEVICE  SIZE/OFF       NODE NAME
tail    13992 root    3r   REG   0,43 104857600 4337893434 testfile123

Once the process that has the file in use is stopped the file can then be removed

[root@centos tmp]# rm -f testfile123
[root@centos tmp]#

Additional Information

Affected Products

Isilon, PowerScale OneFS, Isilon Scale-out NAS
Article Properties
Article Number: 000202922
Article Type: Solution
Last Modified: 27 Nov 2025
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.