z/OS Network File System Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Mount examples

z/OS Network File System Guide and Reference
SC23-6883-00

Table 1 shows how to mount z/OS UNIX files from various platforms.

Table 1. Examples of the mount command for clients
Clients Command Examples
AIX, UNIX, Solaris mount -o vers=n,sec=r,proto=x mvshost1:"/hfs/smith" /u/smith/mnt
Linux with NFS V4 mount -t nfs4 -o sec=r,proto=x mvshost1:"/hfs/smith" /u/smith/mnt
Note: For NFS version 4 mounts to the z/OS NFS Server, it is recommended to use the "nordirplus" mount option from Linux NFS Clients.
Linux with NFS V2 or V3 mount -o vers=n ,proto=x mvshost1:"/hfs/smith" /u/smith/mnt
Windows

nfs link z: '\\mvshost1\hfs/smith' /n id pw
nfs link z: "\\mvshost1\hfs/smith,procattr1,procattr2,...." /n id pw

Any (UNIX, Linux, Windows), with implicit prefix mount .... mvshost1:/smith ....

In the examples:

Operand
Description
mvshost1
Specifies the name of the MVS host.
/hfs
Specifies the HFS prefix. Note that the HFS Prefix is not required, depending on the implicit prefix selection algorithm specified in the IMPPREFIX site attribute.
/smith
Specifies the HFS directory to be mounted.
/u/smith/mnt
Specifies the local mount point.
-t nfs4
Specifies NFS protocol version 4 for Linux (optional)
-o vers=n
Specifies the NFS protocol version to be used (2 or 3 for Linux; 2, 3, or 4 for others) (optional)
-o sec=r
Specifies RPCSEC_GSS security flavors, which are available only on the z/OS NFS version 4 server. Valid options are sys, krb5, krb5i, and krb5p.
-o proto=x
Specifies the transport protocol for the NFS client to communicate with the NFS server. Valid options are tcp or udp. (Note for IPv6, some platforms use proto=tcp6 instead of tcp)
/n
Specifies the NFS protocol version for Windows (2, 3, or 4) (optional)
id pw
Specifies login id and password for pcnfsd.
Note:
  1. The /hfs prefix value is used by the z/OS NFS server to determine if a file is a z/OS UNIX file, and does not appear in the path name of an HFS file once it is mounted.
  2. The HFS prefix is not required, depending on the implicit prefix selection algorithm specified in the IMPPREFIX site attribute.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014