ECS:NFS 写入在一定数量的数据后引发 I/O 错误

Summary: 由于同步不匹配,NFS 写入失败并显示 I/O 错误。

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

有一个新的启用文件系统的存储区。

由于同步不匹配,NFS 写入失败并显示 I/O 错误。

此问题的 NFS 客户端示例:
root@client~:/mnt_ecs# dd if=/dev/zero of=/mnt_ecs/test bs=1024 count=80000
dd: write error: I/O error
dd: write error: I/O error
root@client:/mnt_ecs# ll
total 8222
drwx---rwx- 3 2147483647 2147483647 96 Aug 13 10:51 .
drwxr-xr-x- 30 root system 4096 Aug 07 10:46 ..
-rw-r--r--- 1 root system 2102272 Aug 13 10:51 test
根据下面的日志位置:(在 dataheadsvc 服务)
命令:
# cat /opt/emc/caspian/fabric/agent/services/object/main/log/dataheadsvc.log
示例:
admin@node1~>cat /opt/emc/caspian/fabric/agent/services/object/main/log/dataheadsvc.log
2018-08-17T06:09:02,499 [RpcDispatcherWriteIO-5411370]  INFO  RpcProgramNfs3.java (line 241) No sync response, expect an async response for request  WriteRequest : FileHandle:[objectId = e7e6d9327488f5a316420e1f8805fac18d8a4f0773173ff12de2512a384d25de, ownerZoneUUID = 4f7a7b18-4e08-4e25-9bbb-ebeb02b085c3]Export:2 offset:0 count:524288 stablehowUNSTABLE
2018-08-17T06:09:03,261 [RpcDispatcherMD-5323256] ERROR  RpcProgramNfs3.java (line 277) Error processing NfsRequest: xid:1229074411 ip:/<Client IP> SysSecurity:  AuthStatus:AUTH_OK Uid:0 Gid:0 Proc:SETATTR SetAttrRequest : FileHandle:[objectId = e7e6d9327488f5a316420e1f8805fac18d8a4f0773173ff12de2512a384d25de, ownerZoneUUID = 4f7a7b18-4e08-4e25-9bbb-ebeb02b085c3]Export:2 SetAttr3Object : uid:0 gid:0 mode:0 atime:null mtime:null verf:10487808 updateFields:[SIZE] check:true ctime(NfsTime-1534486142s, 467000000ns) NfsResponse:  SetAttr3Response : status:NFS3ERR_NOT_SYNC wccData: WccData: WccAttr: size:10485760 mtime:(NfsTime-1534486142s, 600000000ns) ctime:(NfsTime-1534486143s, 243000000ns) postOpAttr type:NFSREG mode:rw-r--r-- nlink:1 uid:0 gid:0 size:10485760 used:10485760 rdev:(Specdata3: specdata10, specdata2:0) fileid:1019241384186633961 atime:(NfsTime-1534486143s, 243000000ns) mtime:(NfsTime-1534486142s, 600000000ns) ctime:(NfsTime-1534486143s, 243000000ns) RpcError: null

Cause

客户端和服务器之间存在同步不匹配。
  1. 客户端是否使用同步选项装载了启用文件系统的存储区。
 命令:(无输出)
# mount -V nfs -o vers=3,proto=tcp,port=2049,sync <ECS IP> :/ns_nfs/nfs /mnt_ecs
  1. ECS UI 文件菜单中的导出主机选项已更改为同步(默认值为 Async)
ECS UI 文件菜单中的导出主机选项已更改为同步(默认值为 Async)

Resolution

运行以下检查:

  • 检查客户端是否指定 了同步装载 选项,如果是,请将其删除。
  • 检查“导出主机”选项(文件 >导出)中的“写入传输策略”,并将其更改为“异步”。
NFS v3 允许安全的异步写入,这比在早期 NFS 实施中经常出现问题的同步写入提高了性能。
 
提醒:增加 wsize 在装载选项中允许在显示 I/O 错误之前传输更多数据。

RFC 1813 NFS 版本 3 协议本超链接将引导您访问非 Dell Technologies 运营的网站。
NFS3ERR_NOT_SYNC:
Update synchronization mismatch was detected during a SETATTR operation.

Additional Information

Affected Products

Elastic Cloud Storage

Products

ECS Appliance, ECS Appliance Hardware Gen1 U-Series, ECS Appliance Software with Encryption, ECS Appliance Software without Encryption, Elastic Cloud Storage
Article Properties
Article Number: 000042461
Article Type: Solution
Last Modified: 03 Sep 2025
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.