ECS:NFS 掛載失敗;UI 匯出設定需要一段時間才能傳播

Summary: 在雲端伺服器中,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

在雲端伺服器中,NFS 快取需要 ~20 分鐘的時間才能在 ECS 裝置的 dataheadsvc 服務中傳播和重新整理 NFS 快取。在設定新的 NFS 匯出期間經常發生此問題,因為需要進行一些變更才能解析匯出自訂。

當現有的 NFS 匯出已修改,且匯出在 ECS 上顯示為作用中時,ECS 上會出現此行為。
  1. 若要驗證,請讓此問題檢查 ECS 上是否存在的匯出:
命令:(在 NFS Linux 用戶端上)
# 顯示掛載 -e <彈性雲端伺服器>的 IP 位址範例:
[root@nfsclient ~]# showmount -e xxx.xxx.xxx
Export list for xxx.xxx.xxx.xxx:
/namespace/nfsbucket *

  1. 嘗試掛接已在 ECS 上驗證的匯出:
命令:(注意:這是命令範例,我們新增了 -vv 選項,以在 NFS Linux 用戶端取得更詳細的輸出)。
# 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

  1. 在 ECS 上驗證找不到匯出:
命令:(請注意,這會同時掃描 ECS 叢集過去 5 分鐘的所有節點記錄,以尋找關鍵字 nfs)
# svc_log -i -f nfs -sr all -sn -sf -n all -start '5 分鐘前'
例:
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

  1. 等待 ~20 分鐘,讓衝突的匯出設定在 ECS 上重新整理,然後重試掛接命令:
命令:(注意:這是命令範例,我們新增了 -vv 選項,以在 NFS Linux 用戶端取得更詳細的輸出)。
# 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

Affected Products

ECS Appliance

Products

ECS Appliance, ECS Appliance Gen 1, ECS Appliance Gen 2, ECS Appliance Gen 3, ECS Appliance Software with Encryption, ECS Appliance Software without Encryption
Article 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.