Skip to main content

Explain the NFS server daemons.

62.Explain the NFS server daemons.
Ans.
NFS server needs following daemons:
1. /sbin/rpc.lockd
It starts kernel’s lock manager.

2. /usr/sbin/rpc.mountd
It processes nfs client’s mount requests.

3. /usr/portmap
It allows client’s to discover services available on the NFS server.

4. /sbin/rpc.statd
It manages lock recovery in case of server crash

5. /usr/sbin/rpc.nfsd
It provides all nfs services other than file locking and quotas.

6. /usr/sbin/rpc.rquotad
It provides NFS client’s quota information of NFS exports.

7. rpc.gssd
Creates security contexts on RPC clients for exchanging RPC information using SecureRPC (RPCSEC) using GSS.

8. rpc.svcgssd
Creates security contexts on RPC servers for exchanging RPC information using SecureRPC (RPCSEC) using GSS.

9. rpc.idmapd
Maps local user and group names to NFSv4 IDs (and vice versa).

10. To start the NFS services there are two commands as follows:
#service nfs start
#/etc/rc.d/init.d/nfs.start

11. The startup scripts starts eight copies of nfsd to enable the server to process multiple request simultaneously. If user wants to change this value then edit /etc/sysconfig/nfs and add a line as follow:
RPSNFDCOUNT =n
n will be replaced by the number of nfsd process according to user.
Example:
#cat>/etc/sysconfig/nfs
RPSNFDCOUNT = 16

Comments

Popular posts from this blog

Explain how to configure DHCP client?

50.Explain how to configure DHCP client? Ans. 1. Before configuring DHCP, NIC should be configured properly and recognized by the system. 2. After that it’s easy to command system to use DHCP to obtain its IP information. 3. Configuring DHCP client involves following steps : a. Open the /etc/sysconfig/networkscripts/ifcfg-eth0 file. b. Find the line bootproto=static c. Change the static to dhcp. d. Save changes. e. Restart the network by issuing command ‘service network restart’, after that system will receive its IP information from the DHCP server.

QT practicals files

Temporarily Available: Click below to download|||||||||||

List and explain all NFS server commands.

65.List and explain all NFS server commands. Ans. 1. exportfs: a) The exportfs command enables user to manipulate the list of current exports without editing /etc/exports. b) It also maintains the list of currently exported file system in /var/lib/nfs/etab. Example: The exportfs –a command initializes /var/lib/nfs/etab, synchronizes it with the contents of /etc/exports. c) To add a new export to etab and also /etc/exports the syntax is : #exportfs –o opts hostdir d) Example: #exportfs –o sync,rw 192.168.166.7:/demo The above command exports the directory /demo to client 192.168.166.7 with export option rw and sync. e) –v option of this command, lists currently exported filesystem. Example: #exportfs –v f) –u options unexports the filesystem as follow: Example: #exportfs –u 192.168.166.7:/demo 2. showmount: a) The showmount command provides information about clients and the file systems they have mounted. b) Syntax is : #showmount [-advhe] [host] ...