Troubleshooting of NFS service port problems

Source: Internet
Author: User

NFS settings are complex. Especially in the firewall and port problems, we need to pay more attention. Today, we will explain how to set ports for the NFS service. First, let's take a look at the problem in the workshop, and then find a solution.

Problem description

When debugging the MMS interface machine LINUX, You need to mount a directory on the AIX server to the MMS interface machine. There is a firewall between the MMS interface machine and the AIX server. In this case, you need to open the firewall port. Since each time AIX restarts the NFS service, the mountd port will change and you need to specify the port.

Solution

First, check which ports are occupied when the NFS service is started on AIX and perform the following operations:

 
 
  1. #rpcinfo -p  
  2. program vers proto port service  
  3. 100000 4 udp 111 portmapper  
  4. 100000 3 udp 111 portmapper  
  5. 100000 2 udp 111 portmapper  
  6. 100000 4 tcp 111 portmapper  
  7. 100000 3 tcp 111 portmapper  
  8. 100000 2 tcp 111 portmapper  
  9. 100083 1 tcp 32769 ttdbserver  
  10. 100068 2 udp 32769 cmsd  
  11. 100068 3 udp 32769 cmsd  
  12. 100068 4 udp 32769 cmsd  
  13. 100068 5 udp 32769 cmsd  
  14. 200012 2 udp 970  
  15. 200012 3 udp 971  
  16. 100003 2 udp 2049 nfs  
  17. 100003 3 udp 2049 nfs  
  18. 100003 2 tcp 2049 nfs  
  19. 100003 3 tcp 2049 nfs  
  20. 100003 4 tcp 2049 nfs  
  21. 200006 1 udp 2049  
  22. 200006 4 udp 2049  
  23. 200006 1 tcp 2049  
  24. 200006 4 tcp 2049  
  25. 100005 1 tcp 32783 mountd  
  26. 100005 2 tcp 32783 mountd  
  27. 100005 3 tcp 32783 mountd  
  28. 100005 1 udp 32786 mountd  
  29. 100005 2 udp 32786 mountd  
  30. 100005 3 udp 32786 mountd  
  31. 400005 1 udp 32787  
  32. 100024 1 tcp 32784 status  
  33. 100024 1 udp 32788 status  
  34. 100133 1 tcp 32784  
  35. 100133 1 udp 32788  
  36. 200001 1 tcp 32784  
  37. 200001 1 udp 32788  
  38. 200001 2 tcp 32784  
  39. 200001 2 udp 32788  
  40. 100021 1 udp 32813 nlockmgr  
  41. 100021 2 udp 32813 nlockmgr  
  42. 100021 3 udp 32813 nlockmgr  
  43. 100021 4 udp 32813 nlockmgr  
  44. 100021 1 tcp 32785 nlockmgr  
  45. 100021 2 tcp 32785 nlockmgr  
  46. 100021 3 tcp 32785 nlockmgr  
  47. 100021 4 tcp 32785 nlockmgr 

From the above, we can see that the ports 111 and 2049 used by the NFS service are fixed, but mountd often changes. You can specify mountd as a fixed port, so that after NFS is started every time, all the ports used are fixed ports.

Operation Method:

Run the following command on the NFS server:

 
 
  1. # Cp/etc/services. bak
  2. # Find the following line in vi/etc/services:
  3. #1001-1009 # Unassigned

Before this line, enter mountd 1001/tcp mountd 1001/udp

 
 
  1. # Rmnfs-N stop the NFS service
  2. # Nfso-po nfs_use_reserved_ports = 1
  3. # Mknfs-N start the NFS service

In this way, port 1001 is fixed as the NFS mountd port.

Then open TCP and UDP ports 111, 2049, and 1001 on the firewall. The NFS output directory on the AIX server can be mounted successfully by testing the mount on the MMS interface machine.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.