Introducing Network File System Version 4 on HP-UX 11i v3
15
example, to enable your HP-UX 11i v3 client to use NFSv2, NFSv3, or NFSv4, set the configuration
variables NFS_CLIENT_VERSMIN and NFS_CLIENT_VERSMAX to 2 and 4, respectively.
After the client has been restarted, NFSv4 mounts can be performed with a simple mount command:
mount server:/server_mount /client_mountpoint
If both the client and the server are configured to support NFSv4, then the remote file system is
mounted using NFSv4. Otherwise, the client and server negotiate and accept the highest numbered
protocol that both client and server support. To verify the NFS protocol in use, execute the nfsstat
command with the “-m” option. Issuing this command displays the mount options, including the
protocol version in use, as shown in Figure 14.
Figure 14. Implicit NFSv4 mount
Alternately, the NFS protocol version can be specified explicitly on the command line with syntax:
mount –overs=4 server:/server_mount /client_mountpoint
If ”vers=4” is specified explicitly and NFSv4 is not supported by the client or the server, then an error
message appears and the mount request fails. Issuing the nfsstat –m command displays the NFS
protocol version in use. See Figure 15.
Figure 15. Explicit NFSv4 mount
In either case, NFSv4 is shown in the output from the nfsstat –m command.