Mounting remote share through nfs
Posted: 2020/05/16 09:55:28
I need a help in debugging the following problem.
1) I am trying to mount a share on my centOS 7 Virtual machine from Red hat enterprise server 6 ( an old one indeed !!!)
2) I am doing the following:-
Server IP address is 192.168.29.103
CentOS 7 VM client configured in bridge mode IP address is 192.168.29.72
Both machines are pinging.
NFS package is installed including nfs-utils on both RHEL 6 server as well as on CentOS 7 VM.
NFS is running on both the machine. "Service status nfs " command run on both the machines give output as "nfs activated (exited)" which
is highlighted in green color. this message is given along with other sentences indicating that nfs is properly enabled and running.
3) I am doing following things on RHEL 6 Server.
logging as root user.
# mkdir mountpoint
# chmod 755 mountpoint
# vi /etc/exports
/mountpoint 192.168.29.72(rw,sync) ------> mount directory "mountpoint" on client 192.168.29.72
save and exit.
NFS service restarted. system-config nfs restart <return>
check whether service restarted by checking "service status nfs". No error, green highlighted message "nfs activated (exited)" appears along with other sentences.
4) I am doing following things on CentOS7 client
logging as root user.
# mkdir /nitin
nfs is already running. Now i am trying to mount /mountpoint from server 192.168.29.103 on my directory /nitin
# mount -t nfs 192.168.29.103:/mountpoint /nitin < return>
HERE I AM GETTING ERROR "mount.nfs: no root to server".
In order to debug this problem I have disabled firewall on both the machines. Tried different ways but no success. /var/log/messages report no error.
Can anybody help me to find out what is the problem? What is the meaning of the message "nfs activated (exited)" ??
1) I am trying to mount a share on my centOS 7 Virtual machine from Red hat enterprise server 6 ( an old one indeed !!!)
2) I am doing the following:-
Server IP address is 192.168.29.103
CentOS 7 VM client configured in bridge mode IP address is 192.168.29.72
Both machines are pinging.
NFS package is installed including nfs-utils on both RHEL 6 server as well as on CentOS 7 VM.
NFS is running on both the machine. "Service status nfs " command run on both the machines give output as "nfs activated (exited)" which
is highlighted in green color. this message is given along with other sentences indicating that nfs is properly enabled and running.
3) I am doing following things on RHEL 6 Server.
logging as root user.
# mkdir mountpoint
# chmod 755 mountpoint
# vi /etc/exports
/mountpoint 192.168.29.72(rw,sync) ------> mount directory "mountpoint" on client 192.168.29.72
save and exit.
NFS service restarted. system-config nfs restart <return>
check whether service restarted by checking "service status nfs". No error, green highlighted message "nfs activated (exited)" appears along with other sentences.
4) I am doing following things on CentOS7 client
logging as root user.
# mkdir /nitin
nfs is already running. Now i am trying to mount /mountpoint from server 192.168.29.103 on my directory /nitin
# mount -t nfs 192.168.29.103:/mountpoint /nitin < return>
HERE I AM GETTING ERROR "mount.nfs: no root to server".
In order to debug this problem I have disabled firewall on both the machines. Tried different ways but no success. /var/log/messages report no error.
Can anybody help me to find out what is the problem? What is the meaning of the message "nfs activated (exited)" ??