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 檔案功能表中的匯出主機選項已變更為同步 (預設為非同步)
ECS UI 檔案功能表中的匯出主機選項已變更為同步 (預設為非同步)

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.