0% found this document useful (0 votes)
63 views

Share: Share Unshare /etc/dfs/dfstab Shareall /etc/dfs/sharetab Unshareall /etc/dfs/sharetab

NFS allows files to be shared over a network between multiple machines. It uses several daemons to handle client and server requests including mounting files systems, handling client file requests, lock management, and logging. Resources can be shared on the server by adding entries to /etc/dfs/dfstab and using share/shareall commands, and mounted on clients using mount commands. The nfsd, mountd, lockd, statd, and nfslogd daemons help facilitate NFS activities.

Uploaded by

prasanna_erudite
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views

Share: Share Unshare /etc/dfs/dfstab Shareall /etc/dfs/sharetab Unshareall /etc/dfs/sharetab

NFS allows files to be shared over a network between multiple machines. It uses several daemons to handle client and server requests including mounting files systems, handling client file requests, lock management, and logging. Resources can be shared on the server by adding entries to /etc/dfs/dfstab and using share/shareall commands, and mounted on clients using mount commands. The nfsd, mountd, lockd, statd, and nfslogd daemons help facilitate NFS activities.

Uploaded by

prasanna_erudite
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

NFS

In computing, a network file system is any file system that allows access to files from multiple hosts
sharing via a computer network. This makes it possible for multiple users on multiple machines to share
files and storage resources.

You need several daemons to support NFS activities. These daemons can support both NFS
client and NFS server activity, NFS server activity alone, or logging of the NFS server activity.
To start the NFS server daemons or to specify the number of concurrent NFS requests that can be
handled by the nfsd daemon. There are six daemons that support NFS:

1. mountd Handles file system mount requests from remote systems, and provides access
control (server)
2. nfsd Handles client file system requests (both client and server)
3. statd Works with the lockd daemon to provide crash recovery functions for the lock
manager (server)
4. lockd Supports record locking operations on NFS files
5. nfslogd  Provides filesystem logging. Runs only if one or more filesystems is mounted
with log attribute.

NFS Server Commands

 share Makes a local directory on an NFS server available for mounting. Without
parameters displays the contents of the
/etc/dfs/sharetab file.
 unshare Makes a previously available directory unavailable for client side mount
operations.
 shareall Reads and executes share statements in the /etc/dfs/dfstab file.
 unshareall Makes previously shared resources unavailable.
 dfshares Lists available shared resources from a remote or local NFS server.
 dfmounts Displays a list of NFS server directories that are currently mounted.

NFS resources can be shared using the share command and unshared using the unshare
command. In addition, any resources identified in the /etc/dfs/dfstab file are automatically
shared at system boot or when the shareall command is used. Shared resources are
automatically recorded in the /etc/dfs/sharetab file. When the unshareall command is used, all
resources listed in the /etc/dfs/sharetab file are automatically unshared.
Server Side.

To persist over reboots, add an entry to /etc/dfs/dfstab

share -F nfs -o rw /disk

Run the command to share the resuorce

#shareall

Stop and start the nfs services like as follows


#cd /etc/init.d
#sh nfs.server stop
#sh nfs.server stop

Client Side

Run the following command to mount from the client side:

mount -F nfs server:/disk /mount_point

Stop and start the nfs services like as follows

#cd /etc/init.d
#sh nfs.server stop
#sh nfs.server stop

Run the following command to list the shared resources.

#showmount -e

You might also like