Configuration Files (along with a sampel content):
/etc/dfs/dfstab
share -F nfs -o rw /data
share -F nfs -o ro=-client1:.max.com /export/share/man
/etc/default/fs - Lists the default file system type for local file systems
/etc/dfs/fstypes - Lists the default file system types for remote file systems
/etc/default/nfs - Lists the lockd and nfsd configuration details
/etc/default/nfslogd - Lists the nfslogd configuration details
/etc/mnttab - Lists the file systems currently mounted
/etc/rmtab - Lists the filesystems (shares) currently mounted by the clients
Daemons :
automountd - Used by Autofs
lockd - Used for file locking purposes
mountd - Handles mount requests from the clients
nfsd - Main NFS server daemon which handled the client requets
nfslogd - Handles operational logging
Commands:
1. To share all the filesystems as defined in /etc/dfs/dfstab file
# shareall
2. To view the currently shared filesystems :
# share
3. To start the NFS server services :
# svcadm enable network/nfs/server
4. To mount a share as read only in a nfs client :
# mount -F nfs -o ro server10:/oracle /data/oracle
5. To start auto fs :
# svcadm enable system/filesystem/autofs
6. To check if NFS server service is running on the server :
# svcs network/nfs/server
7. To check nfs services on a server from a client machine :
# rpcinfo -s nfsserver| egrep 'nfs|mountd'
8. To list the file systems shared by a server from a client machine :
# showmount -e servername
# dfshares servername
9. To list the shares currently mounted by the clients :
# dfmounts
/etc/dfs/dfstab
share -F nfs -o rw /data
share -F nfs -o ro=-client1:.max.com /export/share/man
/etc/default/fs - Lists the default file system type for local file systems
/etc/dfs/fstypes - Lists the default file system types for remote file systems
/etc/default/nfs - Lists the lockd and nfsd configuration details
/etc/default/nfslogd - Lists the nfslogd configuration details
/etc/mnttab - Lists the file systems currently mounted
/etc/rmtab - Lists the filesystems (shares) currently mounted by the clients
Daemons :
automountd - Used by Autofs
lockd - Used for file locking purposes
mountd - Handles mount requests from the clients
nfsd - Main NFS server daemon which handled the client requets
nfslogd - Handles operational logging
Commands:
1. To share all the filesystems as defined in /etc/dfs/dfstab file
# shareall
2. To view the currently shared filesystems :
# share
3. To start the NFS server services :
# svcadm enable network/nfs/server
4. To mount a share as read only in a nfs client :
# mount -F nfs -o ro server10:/oracle /data/oracle
5. To start auto fs :
# svcadm enable system/filesystem/autofs
6. To check if NFS server service is running on the server :
# svcs network/nfs/server
7. To check nfs services on a server from a client machine :
# rpcinfo -s nfsserver| egrep 'nfs|mountd'
8. To list the file systems shared by a server from a client machine :
# showmount -e servername
# dfshares servername
9. To list the shares currently mounted by the clients :
# dfmounts
No comments:
Post a Comment