1.2.1. Troubleshooting NFS and portmapBecause portmap provides coordination between RPC services and the port numbers used tocommunicate with them, it is useful to view the status of current RPC services using portmapwhen troubleshooting. The rpcinfo command shows each RPC-based service with portnumbers, an RPC program number, a version number, and an IP protocol type (TCP or UDP).To make sure the proper NFS RPC-based services are enabled for portmap, issue the followingcommand as root:rpcinfo -pThe following is sample output from this command:program vers proto port 100000 2 tcp 111 portmapper 100000 2 udp 111portmapper 100021 1 udp 32774 nlockmgr 100021 3 udp 32774 nlockmgr 100021 4udp 32774 nlockmgr 100021 1 tcp 34437 nlockmgr 100021 3 tcp 34437 nlockmgr100021 4 tcp 34437 nlockmgr 100011 1 udp 819 rquotad 100011 2 udp 819rquotad 100011 1 tcp 822 rquotad 100011 2 tcp 822 rquotad 100003 2 udp 2049nfs 100003 3 udp 2049 nfs 100003 2 tcp 2049 nfs 100003 3 tcp 2049 nfs 1000051 udp 836 mountd 100005 1 tcp 839 mountd 100005 2 udp 836 mountd 100005 2tcp 839 mountd 100005 3 udp 836 mountd 100005 3 tcp 839 mountdThe output from this command reveals that the correct NFS services are running. If one of theNFS services does not start up correctly, portmap is unable to map RPC requests from clientsfor that service to the correct port. In many cases, if NFS is not present in rpcinfo output,restarting NFS causes the service to correctly register with portmap and begin working. Forinstructions on starting NFS, refer to Section 2, “Starting and Stopping NFS”.Other useful options are available for the rpcinfo command. Refer to the rpcinfo man pagefor more information.2. Starting and Stopping NFSTo run an NFS server, the portmap service must be running. To verify that portmap is active,type the following command as root:/sbin/service portmap statusIf the portmap service is running, then the nfs service can be started. To start an NFS server,as root type:/sbin/service nfs startTo stop the server, as root, type:Chapter 9. Network File Syste...134