1.2.1. Troubleshooting NFS and
portmap
Because
portmap
provides coordination between RPC services and the port numbers used to
communicate with them, it is useful to view the status of current RPC services using
portmap
when troubleshooting. The
rpcinfo
command shows each RPC-based service with port
numbers, 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 following
command as root:
rpcinfo -p
The following is sample output from this command:
program vers proto port 100000 2 tcp 111 portmapper 100000 2 udp 111
portmapper 100021 1 udp 32774 nlockmgr 100021 3 udp 32774 nlockmgr 100021 4
udp 32774 nlockmgr 100021 1 tcp 34437 nlockmgr 100021 3 tcp 34437 nlockmgr
100021 4 tcp 34437 nlockmgr 100011 1 udp 819 rquotad 100011 2 udp 819
rquotad 100011 1 tcp 822 rquotad 100011 2 tcp 822 rquotad 100003 2 udp 2049
nfs 100003 3 udp 2049 nfs 100003 2 tcp 2049 nfs 100003 3 tcp 2049 nfs 100005
1 udp 836 mountd 100005 1 tcp 839 mountd 100005 2 udp 836 mountd 100005 2
tcp 839 mountd 100005 3 udp 836 mountd 100005 3 tcp 839 mountd
The output from this command reveals that the correct NFS services are running. If one of the
NFS services does not start up correctly,
portmap
is unable to map RPC requests from clients
for 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. For
instructions 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 page
for more information.
2. Starting and Stopping NFS
To 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 status
If the
portmap
service is running, then the
nfs
service can be started. To start an NFS server,
as root type:
/sbin/service nfs start
To stop the server, as root, type:
Chapter 9. Network File Syste...
134
Summary of Contents for ENTERPRISE LINUX 4.5.0 -
Page 1: ...Red Hat Enterprise Linux 4 5 0 4 5 0 Reference Guide ISBN N A Publication date ...
Page 2: ...Red Hat Enterprise Linux 4 5 0 ...
Page 4: ...Red Hat Enterprise Linux 4 5 0 ...
Page 24: ...xxiv ...
Page 26: ......
Page 36: ...12 ...
Page 72: ...48 ...
Page 112: ...88 ...
Page 122: ...98 ...
Page 140: ...116 ...
Page 142: ......
Page 300: ...276 ...
Page 318: ...294 ...
Page 320: ......
Page 332: ...308 ...
Page 350: ...326 ...
Page 378: ...354 ...
Page 388: ...364 ...
Page 394: ...370 ...
Page 395: ...Part IV Appendixes ...
Page 396: ......