:: NFS ::
Put what you want to share in
/etc/exports
/var/ftp/pub *.example.com(ro,sync) *.redhat.com(rw,sync)
/data 192.168.0.0/255.255.255.0 (sync)
/share server*,station1.corp.local (r)
service nfs status
exportfs -v
rpcinfo -p
service portmap status
exportfs
-r To refresh the list /etc/exports
-v Display list
-a Exports all shares
showmount -e HOST display available shares
To mount the share:
mount station16:/nfsdemo /mnt
To mount specific version of NFS:
mount -F nfs -o vers=3 10.218.10.10:/data2/oracle /mnt
Automount:
/etc/fstab
NFS shares are mounted at boot time by /etc/init.d/netfs
autofs mounts NFS shares on demand and unmount when idle
/etc/auto.master
How to fix static ports
/etc/sysconfig/nfs
MOUNTD_PORT=”4002″
STATD_PORT=”4003″
LOCKD_TCPPORT=”4004″
LOCKD_UDPPORT=”4004″
RQUOTAD_PORT=”4005″
STATD_OUTGOING_PORT=”4006″
Troubleshooting:
nfsstat [ -cmnrsz ]
Gather statistical information about NFS and RPC connections.
pstack
This command displays a stack trace for each process. The pstack command must be run by the owner of the process or by root. You can use pstack to determine where a process is hung.
rpcinfo
Command generates information about the RPC service that is running on a system. You can also use this command to change the RPC service. Many options are available with this command. See the rpcinfo(1M) man page. The following is a shortened synopsis for some of the options that you can use with the command.
NFS administrative commands
automount
automatically mount NFS filesystems
biod
NFS daemon
bootparamd
boot parameter server
exportfs
export and unexport directories to NFS clients
lockd
network lock daemon
mount
mount or unmount remote NFS resources
mountd
NFS mount request server
nfsd
NFS daemon
pcnfsd
NFS daemon for PC-NFS user authentication and remote printing
share
make local NFS resource available for mounting by remote systems
showmount
show all remote mounts
statd
network status monitor
umount
mount or unmount remote NFS resources
unshare
make local NFS resource unavailable for mounting by remote systems

Leave a Reply

Your email address will not be published. Required fields are marked *