ECS:NFS 装载失败;UI 导出设置需要一段时间才能传播
Summary: 在 ECS 上,NFS 缓存需要 ~20 分钟来传播和刷新 ECS 设备上的 dataheadsvc 服务中的 NFS 缓存。此问题通常发生在设置新的 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.
Instructions
在 ECS 上,NFS 缓存需要 ~20 分钟来传播和刷新 ECS 设备上的 dataheadsvc 服务中的 NFS 缓存。此问题通常发生在设置新的 NFS 导出期间,因为需要进行一些更改才能解析导出自定义。
当修改现有 NFS 导出并且导出在 ECS 上显示为活动状态时,ECS 上预计会出现此行为。
# showmount -e <弹性云服务器>的IP地址示例:
# mount -vv -t nfs -o vers=3,,nolock,sec=sys,proto=tcp <ECS IP>:<导出路径><本地装载点>
示例:
# svc_log -i -f nfs -sr all -sn -sf -n all -start '5 minutes ago'
例:
# mount -vv -t nfs -o vers=3,,nolock,sec=sys,proto=tcp <ECS IP>:<导出路径><本地装载点>
示例:
当修改现有 NFS 导出并且导出在 ECS 上显示为活动状态时,ECS 上预计会出现此行为。
- 要验证此问题,请检查 ECS 上是否存在导出:
# showmount -e <弹性云服务器>的IP地址示例:
[root@nfsclient ~]# showmount -e xxx.xxx.xxx Export list for xxx.xxx.xxx.xxx: /namespace/nfsbucket *
- 尝试在 ECS 上装载已验证的导出:
# mount -vv -t nfs -o vers=3,,nolock,sec=sys,proto=tcp <ECS IP>:<导出路径><本地装载点>
示例:
[root@ nfsclient ~]# mount -vv -t nfs -o vers=3,,nolock,sec=sys,proto=tcp xxx.xxx.xxx.xxx:/namespace/nfsbucket /mnt/test mount.nfs: timeout set for Wed Aug 14 09:37:03 2019 mount.nfs: trying text-based options 'vers=3,nolock,sec=sys,proto=tcp,addr= xxx.xxx.xxx.xxx ' mount.nfs: prog 100003, trying vers=3, prot=6 mount.nfs: trying xxx.xxx.xxx.xxx prog 100003 vers 3 prot TCP port 2049 mount.nfs: prog 100005, trying vers=3, prot=6 mount.nfs: trying xxx.xxx.xxx.xxx prog 100005 vers 3 prot TCP port 2049 mount.nfs: mount(2): No such file or directory mount.nfs: mounting xxx.xxx.xxx.xxx:/namespace/nfsbucket failed, reason given by server: No such file or directory
- 验证在 ECS 上找不到导出:
# svc_log -i -f nfs -sr all -sn -sf -n all -start '5 minutes ago'
例:
admin@ecsnode1:~> svc_log -i -f nfs -sr all -sn -sf -n all -start '5 minutes ago' svc_log v0.9.19 (svc_tools v1.1.1) Started 2019-08-14 15:35:57 Running on nodes: <All nodes> Time range: 2019-08-14 15:30:57 - 2019-08-14 15:35:57 Filter string(s): 'nfs' Show filename(s): True Show nodename(s): True Search reclaim logs (if any): False Case insensitive: True 169.254.1.1 dataheadsvc.log 2019-08-14T15:35:05,953 [RpcDispatcherMD-3082827] INFO RpcProgramMountd.java (line 101) MOUNT MNT path: /namespace/nfsbucket Client: /xxx.xxx.xxx 169.254.1.1 dataheadsvc.log 2019-08-14T15:35:05,958 [RpcDispatcherMD-3082827] INFO ExportsService.java (line 98) added key /namespace/nfsbucket/ to the cache 169.254.1.1 dataheadsvc.log 2019-08-14T15:35:05,960 [RpcDispatcherMD-3082827] ERROR RpcProgramMountd.java (line 111) Couldn't locate the exportEntry for the path /namespace/nfsbucket
- 等待 ~20 分钟,以便在 ECS 上刷新冲突的导出设置,然后重试装载命令:
# mount -vv -t nfs -o vers=3,,nolock,sec=sys,proto=tcp <ECS IP>:<导出路径><本地装载点>
示例:
[root@client ~]# mount -vv -t nfs -o vers=3,,nolock,sec=sys,proto=tcp xxx.xxx.xxx: /namespace/nfsbucket mnt/test final mount options: 'vers=3,,nolock,sec=sys,proto=tcp' mount.nfs: timeout set for Wed Aug 14 13:55:00 2019 mount.nfs: trying text-based options 'vers=3,nolock,sec=sys,proto=tcp,addr= xxx.xxx.xxx ' mount.nfs: prog 100003, trying vers=3, prot=6 mount.nfs: trying xxx.xxx.xxx prog 100003 vers 3 prot TCP port 2049 mount.nfs: prog 100005, trying vers=3, prot=6 mount.nfs: trying xxx.xxx.xxx prog 100005 vers 3 prot TCP port 2049 xxx.xxx.xxx:/namespace/nfsbucket on /mnt/test type nfs (rw,vers=3,,nolock,sec=sys,proto=tcp)
Additional Information
相关 NFS 知识库文章:
- ECS:如何创建基本 NFS 导出并在客户端上装载它
- ECS:dataheadsvc 日志流式传输错误:请求 ReadLinkRequest 中不支持 NFSv3 过程 LINK
- ECS:NFS 装载失败,并出现“No such file or directory”(没有此类文件或目录)或“ERROR_OBJECT_NOT_FOUND”(错误:未找到对象)
- 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 Content (WCC) 是否与 ECS 兼容?
Affected Products
ECS ApplianceProducts
ECS Appliance, ECS Appliance Gen 1, ECS Appliance Gen 2, ECS Appliance Gen 3, ECS Appliance Software with Encryption, ECS Appliance Software without EncryptionArticle Properties
Article Number: 000019711
Article Type: How To
Last Modified: 25 Mar 2025
Version: 5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.