Chapter 9. Network File System (NFS) 1159.1.2.1. Troubleshooting NFS and portmapBecause portmap provides coordination between RPC services and the port numbers used to com-municate with them, it is useful to view the status of current RPC services using portmap whentroubleshooting. The rpcinfo command shows each RPC-based service with port numbers, an RPCprogram number, a version 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 port100000 2 tcp 111 portmapper100000 2 udp 111 portmapper100021 1 udp 32774 nlockmgr100021 3 udp 32774 nlockmgr100021 4 udp 32774 nlockmgr100021 1 tcp 34437 nlockmgr100021 3 tcp 34437 nlockmgr100021 4 tcp 34437 nlockmgr100011 1 udp 819 rquotad100011 2 udp 819 rquotad100011 1 tcp 822 rquotad100011 2 tcp 822 rquotad100003 2 udp 2049 nfs100003 3 udp 2049 nfs100003 2 tcp 2049 nfs100003 3 tcp 2049 nfs100005 1 udp 836 mountd100005 1 tcp 839 mountd100005 2 udp 836 mountd100005 2 tcp 839 mountd100005 3 udp 836 mountd100005 3 tcp 839 mountdThe output from this command reveals that the correct NFS services are running. If one of the NFSservices does not start up correctly, portmap is unable to map RPC requests from clients for thatservice to the correct port. In many cases, if NFS is not present in rpcinfo output, restarting NFScauses the service to correctly register with portmap and begin working. For instructions on startingNFS, refer to Section 9.2 Starting and Stopping NFS.Other useful options are available for the rpcinfo command. Refer to the rpcinfo man page formore information.9.2. Starting and Stopping NFSTo run an NFS server, the portmap service must be running. To verify that portmap is active, typethe 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 roottype: