1) RPC is mainly used for NFS – Network File system.
2) It is inter-process communication.
3) It is used for maintain the remote-interaction (between Client & Server).
4) RPC is mainly used for NFS – Network File system.
5) Port map : Keep List of service running @ what PORT
6) To check rpc for NFS
#rcpinfo -p | grep nfs
How To Configure NFS Server
# rpcinfo -u localhost nfs
rpcinfo: RPC: Program not registered
program 100003 is not available
# rpcinfo -u localhost nfs
program 100003 version 2 ready and waiting
program 100003 version 3 ready and waiting
program 100003 version 4 ready and waiting
# rpcinfo -p localhost | grep nfs
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
Refer: http://computernetworkingnotes.com/network-administration/how-to-configure-nfs-server-in-rhel-6.html
For NFS and portmap.
https://www.centos.org/docs/5/html/5.1/Deployment_Guide/s3-nfs-methodology-portmap-rpcinfo.html
NFS version are 2,3,4
1)NFS Performance Improvement2)nfs v 2 – 8 kbs (Read/write) Size
3)nfs v 3 – 32 Kbs (Read/Write)Size
NFS OPTION | |
no_root_squash | Act as ROOT. Provide root privilege . Map privilege with root ID. |
root_squash | Act as Anonymous(nfsnobody). Even it is Remote root user |
all_squash | Act all user as Anonymous. Map all the user and group id as anonymous. |
Sync | Response to the request. Depends on the disk writing – SLOW writing – Data secure. |
Async | Not depending on the disk write – FAST Writing - may lead to data loss NOTE: async it will give better performance(disk read & write). |
atime/noatime | Update inode access time/ Don't update Inode access time |
intr | Allow signal to interrupt the NFS calls. |
NFS Sever Side Export Option
root_squash,all_squash,sync,async,rwNFS client Side Mount Option
hard,soft,rsize,wsize,rsize=32768,wsize=32768,intr,noatime
#nfsstat | Check the NFS Status |
#nfsstat –nfs –server -3 | Show the nfs status version 3 |
#exportfs -o rw IP:/partition | Without adding /etc/export . export the file system[ TEMPORARY PURPOSE] |
Comparison between NFS and Samba
NFS | SAMBA – SMB ( Server Message Block ) |
1) Maintain the authentication depends on client machine Network & Domain. | Maintain the authentication depends on User Name & Password. |
0 Comments