Skip to main content

List and explain all the status files in NFS.

64.List and explain all the status files in NFS.
Ans.
1. /var/lib/nfs.rmtab – It list each NFS export that is mounted by an NFS client. It uses the Daemon rpc.mountd since it is responsible for servicing the request to mount NFS exports.
Whenever , rpc.mounted daemon receives request, it adds an entry into /var/lib/nfs/rmtab. The same goes for unmounts request but in that case entry is removed from status file.

2. /var/lib/nfs/etab – It contains list of currently exported filesystem, the exportfs command maintains the entries in this file.

3. These three scripts which are initialized and controls the required NFS server daemons /etc/rc.d/init.d/portmap
/etc/rc.d/init.d/nfs
/etc/rc.d/init.d/nfslock

4. The portmap scripts starts the portmap daemon also called as portmapper. All programs that uses RPC, such as NIS and NFS, depends on the information the portmapper provides.

5. The primary NFS startup script is /etc/rc.d/init.d/nfs, It requires single argument. E.g. start, stop, restart or reloaded. These commands are executed as follows:
#service nfs status
#service nfs stop
#service nfs start
#service nfs restart
#service nfs reload

6. NFS service also requires the file locking daemons lockd and statd. Lockd is started automatically but statd is started separately. To carry out this process initialization script can also be useful i.e. /etc/rc.d/init.d/nfslock

Comments

Popular posts from this blog

Java,ES,QT practical files

All practical files: Click below to start download Uploaded on special request||||

Absolute Links vs. Relative Links – SEO Value

Absolute Links vs. Relative Links – SEO Value The debate between  absolute links and relative links  continues to live on in the SEO world. The individual significance of each has been contested, but it is widely regarded that absolute links provide better SEO value on the whole than relative links. Many believe that absolute links have less potential for getting messed up when search engines index your page. It shouldn’t really make a difference, but many conclude that this is reason enough. Read more...

What are the server and client security considerations?

72.What are the server and client security considerations? Ans. Server security considerations: 1. Always use the root_squash option in /etc/exports. 2. Enabled by default so do not disable it. 3. With root squashing clients root account can’t even access or change files that only server’s root account can change or access. Client security considerations: 1. Disable SUID (set UID) programs on NFS mounts using nosuid option. 2. Prevents server’s root account from creating an SUID root program on an exported FS, logging in to the clients as a normal user, and then using the UID root program to become root on the client.