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.