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


Invoking the Mount command on the z/OS platform

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

Use the TSO MOUNT command to make a connection between a local mount point on the NFS client and an NFS server.

The Mount command can be invoked on the z/OS platform from different locations. Assume the following values are to be used for the mount point:
Value Description Explanation
NFS file system type indicates that this file system is to mounted as an NFS file system
mynfs file system is the name of the file system to be mounted.
tcpj701: server host name is the NFS Server host name
nfstest exported path is the name of the directory to be mounted.
text,mvsmnt server attributes are the z/OS NFS Server mount attributes to be used for this mount point.
Note: Other NFS servers, such as AIX, Linux, and SUN, do not have server attributes.
,soft,timeo(0),xlat(y) client attributes are the z/OS NFS Client attributes to be used for this mount point
/nfstest mountpoint is the directory in the local client file system where the file system is to be mounted.

The different styles of mount command are:

  1. From TSO. The mount command can be issued from the TSO Ready prompt or from the ISPF TSO commands prompt. (This is the version of the command that is shown in the examples in Additional mount command examples.)
    mount type(NFS) filesystem(mynfs) mountpoint('/nfstest')
      parm('tcpj701:"nfstest,text,mvsmnt",soft,timeo(100),xlat(y)')
  2. From the OMVS shell. The mount command can also be invoked from within the OMVS shell or a shell script. This version of the command looks more like it would be when issued on other Unix platforms:
    /usr/sbin/mount -tnfs -fmynfs -w0 
              -o'tcpj701:"nfstest,text,mvsmnt",soft,timeo(100),xlat(y)' /nfstest 
  3. TSO command from OMVS shell. The mount command can also be invoked as a TSO command from within the OMVS shell or a shell script. In this case, the command looks like the TSO version of the command:
    tso -t "mount type(NFS) filesystem(mynfs) mountpoint('/nfstest')
                  parm('tcpj701:\"nfstest,text,mvsmnt\",soft,timeo(100),xlat(y)')"
    Note: The inner double quote must be entered with an escape character ( \" ). If only a double quote is entered , the double quote will be stripped by the shell TSO command parser, causing the z/OS NFS server mount attributes to be misinterpreted as z/OS NFS client attributes, which will lead to unpredictable results.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014