Posts

Showing posts with the label NFS

How to find NFS version

Image
1) Issue command /usr/sbin/rpcinfo -p (This should tell you the running NFS daemeon and the versions of the NFS daemons) 2) If you have yum installed that you can also find out the NFS version using yum --version nfs NFSv3 and NFSv4

NFS ERROR: NFS Server Hostname failed:RPC Error: Program not registered

server I configured with NFS. /etc/export file I add the entry what are directories need to mount In the client /etc/fstab add the entry to mount  directory from server to client IN THE CLIENT While I try with # mount command To check what are things are mounted. server shared directory it is not mounted to the client. So I try to remount #mount -a it will mount directory according to the /etc/fstab file while I try thes I got the following error message mount: mount to NFS server '128.150.72.58' failed: RPC Error: Program not registered I check in the server whether rpc support nfs. Because rpc - Remote Procedure Call is required share nfs File System. TROUBLESHOOTING ISSUE 1)rpcinfo -p [root@master1 ~]# rpcinfo -p [ it will show portnumber what are thing related to rpc] program vers proto port 100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100024 1 udp 1006 status 100024 1 tcp 1009 status 100011 ...

Setting Up an NFS Server

  Setting up the Configuration Files There are three main configuration files you will need to edit to set up an NFS server: /etc/exports , /etc/hosts.allow , and /etc/hosts.deny .  In real we need to edit /etc/exports to get NFS to work, but then we would be left with an extremely insecure setup. You may also need to edit your startup scripts. . /etc/exports This file contains a list of entries; each entry indicates a volume that is shared and how it is shared.  An entry in /etc/exports will typically look like this: directory machine1(option11,option12) machine2(option21,option22) directory the directory that you want to share. It may be an entire volume though it need not be. If you share a directory, then all directories under it within the same file system will be shared as well. machine1 and machine2 client machines that will have access to the directory. The machines may be listed by their DNS address or their IP address (e.g., machine....