NFS doesn't mount after reboot on RHEL 5.8 box/NFSv3.
Hello linuxers!
I got a little problem on having a NFS automatically mounted after reboot. RHEL 5.8 box/NFSv3/NAS volume. The fs simply doesn't mount after reboot. However, when the box comes up, if I input a "mount -a" the volume get mounted without problems. It seems (at least to me) that the configuration is alright. Please, take a look: - NFS Service Code:
[root@mybox ~]# chkconfig --list nfs Code:
[root@mybox ~]# nfsstat - /etc/fstab (I can't put my real ip here, sorry) Code:
[root@mybox ~]# grep nfs /etc/fstab Code:
[root@mybox ~]# ls -l /etc/rc3.d/ | egrep -i "netfs|nfs|netw" Code:
[root@mybox ~]# grep nas /etc/hosts - There is a route to the NAS ip (and it works) Code:
[root@mybox ~]# netstat -rnv | grep 200 - Persistent route Code:
[root@mybox ~]# cat /etc/sysconfig/network-scripts/route-eth3 At this time, as a workaround, i've added "mount -a" to /etc/rc.local, and, at least, the nfs is mounting after reboot. However, it takes about 3~4 min to mount (checked with "uptime"). below are more info from dmesg: Code:
[root@mybox ~]# dmesg | grep -i nfs and /var/log/messages: Code:
[root@mybox ~]# grep -i nfs /var/log/messages Any hints? Thank you very much |
@ Reply
Hi barataaway,
Welcome to LQ!!! Questions for you: 1. Any changes made to the system? 2. Any update that you have installed recently? Can you share nfs configuration file and /etc/exports? |
Hi T3RM1NVT0R! Thank you very much.
Yes, I updated it from RHEL5.7 to 5.8 but, to be honest, I don't know if the mounting was working before (I only tried it after updating). What NFS configuration file you need? The NAS volume configuration is: /vol/vol_web2 -sec=sys,rw,root=10.YY.YY.39 (pointing to host's ip) Thank you. |
@ Reply
I am looking for /etc/nfsmount.conf
|
This file does not exist... It should?
|
@ Reply
1 Attachment(s)
I have checked on my RHEL5 system and it was not there but it is there on my RHEL6 system. From the dmesg that you have pasted it appears that it is trying to negotiate over NFSv4 first and when it doesn't work it switches to NFSv3.
Attached is the edited nfsmount.conf file. Rename it from .txt to .conf, copy it under /etc and then reboot to see if your nfs share mount automatically after reboot or not. Don't forget to remark (#) out mount -a /etc/rc.local :-) |
Check if netfs service is running or not.
|
You are replying to a thread which is almost 3 years old. Why???
|
All times are GMT -5. The time now is 05:38 PM. |