当我使用NFSv3时,我可以使用showmount命令列出卷:
NAME
showmount – show mount information for an NFS server
SYNOPSIS
/usr/sbin/showmount [ -adehv ] [ –all ] [ –directories ] [ –exports ] [ –help ] [ –version ] [ host ]
DESCRIPTION
showmount queries the mount daemon on a remote host for information about the state of the NFS server on that
machine. With no options showmount lists the set of clients who are mounting from that host. The output from
showmount is designed to appear as though it were processed through ”sort -u”.
但是,似乎不会列出NFSv4卷.
如何获取从远程主机导出的NFSv4卷列表?
纯NFSv4不提供获取导出列表的方法.然而,大多数nfs服务器同时使用nfsv4和nfsv3导出.这使得发现v4导出成为可能.通常,NFSv4从导出列表构建伪文件系统并导出伪’/’.