PowerScale:當為父目錄建立 NFS 別名時,從用戶端匯出的子目錄會顯示在 showmount -e 中
Summary: 當為父目錄建立 NFS 別名時,匯出的子目錄會顯示在用戶端的 showmount -e 中。
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
已匯出父目錄和子目錄:
# isi nfs exports list ID Zone Paths Description -------------------------------------- 1 System /ifs/nfs 2 System /ifs/nfs/test -------------------------------------- Total: 2
為父級建立別名:
# isi nfs aliases list Zone Name Path -------------------------- System /testAlias /ifs/nfs -------------------------- Total: 1
Showmount -e 從客戶端顯示傳回了意外路徑:
[root@centos ~]# showmount -e x.x.x.x Export list for x.x.x.x: /testAlias/test x.x.x.x <<<<< subdirectory test is returned as part of the alias /testAlias x.x.x.x /ifs/nfs/test x.x.x.x /ifs/nfs x.x.x.x
Cause
這是預期的行為,因為用戶端可以看到或遍歷在 PowerScale 上建立的有效匯出路徑。
Resolution
防止別名出現在 showmount -e,請停用 PowerScale 上的設定,以便僅傳回完整路徑。用戶端仍然可以掛接別名,但這會阻止返回雙路徑,這可能會在某些環境中造成混淆。
請注意,這需要跨叢集重新啟動 NFS,此變更才會生效。
在以下位置關閉別名路徑的傳回 showmount:
# isi_gconfig registry.Services.lwio.Parameters.Drivers.nfs.MountdAliasesInShowmountE=0
在叢集上重新啟動 NFS (可逐個節點執行,而非使用 isi_for_array 如果願意:
# isi_for_array -s '/usr/likewise/bin/lwsm restart onefs_nfs'
今 showmount -e 從用戶端僅顯示完整路徑,不再顯示別名:
[root@centos ~]# showmount -e x.x.x.x Export list for x.x.x.x: /ifs/nfs/test x.x.x.x /ifs/nfs x.x.x.x
Affected Products
Isilon, PowerScale OneFS, Isilon Scale-out NASArticle Properties
Article Number: 000205094
Article Type: Solution
Last Modified: 27 Nov 2025
Version: 3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.