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 用戶端問題範例:
由於同步不匹配,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
用戶端和伺服器之間存在同步不匹配的情形。
- 用戶端使用同步選項掛載了啟用檔案系統的容器。
命令:(無預期輸出)
# mount -V nfs -o vers=3,proto=tcp,port=2049,sync <ECS IP> :/ns_nfs/nfs /mnt_ecs
- ECS UI 檔案功能表中的匯出主機選項已變更為同步 (預設為非同步)
Resolution
執行下列檢查:
- 檢查用戶端是否指定 了同步掛接 選項,如果是,請將其刪除。
- 在匯出主機選項 (檔案 >匯出) 中檢查寫入傳輸原則,並將其變更為非同步。
NFS v3 允許安全異步寫入,這比同步寫入提高了性能,同步寫入在早期的 NFS 實現中經常出現問題。
從 RFC 1813 NFS 第 3 版協定
:
注意:增加
wsize 在「掛接」選項中,可允許在 I/O 錯誤出現之前傳輸更多資料。
從 RFC 1813 NFS 第 3 版協定
NFS3ERR_NOT_SYNC: Update synchronization mismatch was detected during a SETATTR operation.
Additional Information
相關的 NFS KB:
- ECS:如何建立基本的 NFS 匯出並將其掛接至用戶端
- ECS:NFS 無法寫入或刪除物件
- ECS:ESX 的大型 NFS 寫入可能會在 3.2 升級後失敗
- ECS:在多 VDC 環境中新增匯出後,NFS 匯出組態重設
- ECS:dataheadsvc 記錄串流錯誤:要求 ReadLinkRequest 不支援 NFSv3 程序連結
- ECS:列出 NFS 時重複的 Cookie 錯誤
- ECS:NFS 掛接失敗,沒有此類檔案、目錄或 ERROR_OBJECT_NOT_FOUND
- ECS:NFS 用戶端/Linux 機器未列出使用 S3 瀏覽器建立的子資料夾或目錄,但子資料夾內容會顯示在主要或根目錄中
- ECS:NFS 遠端 I/O 錯誤;變更啟用 FS 容器的容器擁有者可能會導致應用程式/使用者無法存取 NFS 檔案
- ECS:NFS 寫入會在一定數量的資料後擲回 I/O 錯誤。
- ECS:使用 ECS 的 NFS 檔案共用搭配 VMware NFS 資料存放區
- ECS:掛接 ECS NFS 匯出的最佳實務
- ECS:如何在 Windows 用戶端掛接 NFS 共用
- ECS:在 UI 中變更檔案匯出設定後,NFS 無法掛接
- ECS:Oracle WebCenter 內容 (WCC) 是否與 ECS 相容?
Affected Products
Elastic Cloud StorageProducts
ECS Appliance, ECS Appliance Hardware Gen1 U-Series, ECS Appliance Software with Encryption, ECS Appliance Software without Encryption, Elastic Cloud StorageArticle 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.