IBM Support

IBM AIX: How To Configure a NFS Client To Use a Port Other Than Default nfsd Port 2049

Troubleshooting


Problem

Some NFS servers can require nfsd to run on a port other than 2049.

Symptom

By default, AIX NFS clients connect to nfsd port 2049.

Cause

Configure the NFS client to connect to nfsd on a port other than 2049.

Environment

AIX 

Diagnosing The Problem

Steps to configure NFS client to use a different port.

Resolving The Problem

In this example, we used nfsd port 2048.

1) To mount from the AIX command line and connect to nfsd port 2048 on NFS server tcp489.
EXAMPLE:

# mount -o port=2048 <nfs server>:<exported filesystem> <nfs mount point>
# mount -o port=2048 tcp489:/datafs4 /mnt4
-
2) Add the port option to /etc/filesystems so that it holds on reboot.
# smitty mknfsmnt

* Pathname of mount point [/mnt4]
* Pathname of remote directory [/datafs4]
* Host where remote directory resides [tcp489]
  Mount type name []
* Security method [sys]                                                                       
* Mount now, add entry to /etc/filesystems or both? filesystems                                 
* /etc/filesystems entry will mount the directory yes                                              on system restart.
* Mode for this NFS file system read-write                                                     
* Attempt mount in foreground or background background                                         
  Number of times to attempt mount []                                                           
  Buffer size for read []                                                                       
  Buffer size for writes []                                                                     
  NFS timeout. In tenths of a second []                                                         
  NFS version for this NFS filesystem any                                                       
  Transport protocol to use any                                                                 
  Internet port number for server [2048] 
  <...>
<enter>
-
3) Or, the command line option to update /etc/filesystems is as follows:
# /usr/sbin/mknfsmnt -f '/mnt4' -d '/datafs4' -h 'tcp489' -M 'sys' '-I' '-A' -t 'rw' -w 'bg' -P '2048' '-Y' '-Z' '-X' '-H' '-j' '-q' '-g'
-
4) Check /etc/filesystems

 
# tail -10 /etc/filesystems
/mnt4:
        dev             = "/datafs4"
        vfs             = nfs
        nodename        = tcp489
        mount           = true
        options         = bg,hard,intr,port=2048,sec=sys
        account         = false

 
SUPPORT

If more assistance is required follow the step-by-step instructions to contact IBM to open a case for software under warranty or with an active and valid support contract.  

a.  Document all symptoms, errors, and messages that might have occurred

b.  Capture any logs or data relevant to the situation.

c.  Contact IBM to open a case:

   -For electronic support, visit the IBM Support Community:
     https://www.ibm.com/mysupport
   -If you require telephone support, visit the web page:
      https://www.ibm.com/planetwide/

d.  Provide a good description of your issue and reference to this technote

e.  Upload all of the details and data to your case

   -You can attach files to your case in the IBM Support Community
   -Or Upload data to IBM test case server analysis:

    http://www.ibm.com/support/docview.wss?uid=ibm10733581

f.  Click here to submit feedback for this document.

[{"Type":"MASTER","Line of Business":{"code":"LOB08","label":"Cognitive Systems"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG10","label":"AIX"},"ARM Category":[{"code":"a8m0z000000cvwrAAA","label":"Communication Applications"}],"ARM Case Number":"","Platform":[{"code":"PF002","label":"AIX"}],"Version":"7.1.0;7.2.0;7.3.0"}]

Document Information

Modified date:
29 December 2023

UID

ibm17006715