Share: Share Unshare /etc/dfs/dfstab Shareall /etc/dfs/sharetab Unshareall /etc/dfs/sharetab
Share: Share Unshare /etc/dfs/dfstab Shareall /etc/dfs/sharetab Unshareall /etc/dfs/sharetab
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.
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.
#shareall
Client Side
#cd /etc/init.d
#sh nfs.server stop
#sh nfs.server stop
#showmount -e