Inside Linux The mountd and nfsd (Crystaltech web hosting) Daemons The

Inside Linux The mountd and nfsd Daemons The mountd daemon is the RPC-specific mount daemon. The nfsd daemon is an NFS server daemon that accepts RPC requests from clients. These two daemons complete the circuit for the NFS server side. Before you start up these daemons, however, you will need to verify and possibly modify the /etc/exports file. If you have not examined the /etc/exports file, you should read the previous section so that you can verify the file. This file must be valid because both the mountd and nfsd daemons read it. When you feel comfortable that the /etc/exports file is in order, it is time to fire up the mountd and nfsd daemons. The mountd daemon should be invoked first, and then the nfsd daemon. The following dialog demonstrates this: stimpy $ mountd stimpy $ nfsd Again, nothing spectacular here. As with the portmapper, you can verify the existence of the two daemons with the ps command and the rpcinfo command. The following dialog shows how to query for daemons: stimpy $ ps ax … 328 tty1 SN 0:00 /opt/Office51/bin/soffice.bin 359 tty1 SN 0:07 kscd -caption CD Player -icon kscd.xpm 3475 ? SN 0:00 portmap 3927 tty1 SN 0:05 kvt -T ption Terminal -icon kvt.xpm -miniicon kvt.xpm 3928 pts/0 SN 0:00 bash 3951 tty1 SN 0:45 /opt/netscape/netscape 3960 tty1 SN 0:00 (dns helper) 4131 ? SN 0:00 mountd 4134 pts/0 SWN 0:00 [nfsd] 4137 pts/0 RN 0:00 ps ax stimpy $ rpcinfo -p program vers proto port 100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100005 1 udp 915 mountd 100005 1 tcp 917 mountd 100005 2 udp 920 mountd 100005 2 tcp 922 mountd 100005 3 udp 925 mountd 100005 3 tcp 927 mountd 100003 2 udp 2049 nfs stimpy $ As you can see, the listing from the ps ax command shows that the two daemons (mountd and nfsd) are running. To further verify their existence, the rpcinfo -p command is executed. You can see by the output that the portmapper is running, that mountd is running and responsible for a number of ports, and that the nfs daemon is also executing. Many Linux distributions offer a script to help ensure that all the RPC and NFS server daemons are started and invoked in the correct order. The RPC script is customarily named rpc and should be found in the /etc/rc.d/init.d directory. Some Linux distributions store the script in the /etc/init.d directory. The syntax for the command is shown in the following dialog: stimpy $ cd /etc/rc.d/init.d stimpy $ ./rpc Usage: ./rpc {start|stop} stimpy $ ./rpc start Starting RPC portmap daemon … done stimpy $ Additionally, most distributions provide an nfs script, and it is found in the /etc/rc.d/init.d directory. Some distributions of Linux may store the script in the /etc/init.d directory. The following shows the usage for the nfs script. stimpy $ ./nfs Usage: ./nfs {start|stop|status|reload|restart} stimpy $ Notice that the usage shows the options to start and stop the daemons. You also have the option to check the status of, reload, and restart the daemons. The restart option automatically executes the stop option first, and then invokes the start option. The reload option is synonymous with the start option in most distributions. page 219
You need excellent and relaible webhost company to host your web applications? Then pay a visit to Inexpensive Web Hosting services.

Leave a Reply