online prescription solutions
online discount medstore
pills online
buy lorazepam without prescription
xanax for sale
buy xanax without prescription
buy ambien without prescription
ambien for sale
buy modafinil without prescription
buy phentermine without prescription
modafinil for sale
phentermine for sale
lorazepam for sale
buy lexotan without prescription
bromazepam for sale
xenical for sale
buy stilnox without prescription
valium for sale
buy prosom without prescription
buy mefenorex without prescription
buy sildenafil citrate without prescription
buy adipex-p without prescription
librium for sale
buy restoril without prescription
buy halazepam without prescription
cephalexin for sale
buy zoloft without prescription
buy renova without prescription
renova for sale
terbinafine for sale
dalmane for sale
buy lormetazepam without prescription
nobrium for sale
buy klonopin without prescription
priligy dapoxetine for sale
buy prednisone without prescription
buy aleram without prescription
buy flomax without prescription
imovane for sale
adipex-p for sale
buy niravam without prescription
seroquel for sale
carisoprodol for sale
buy deltasone without prescription
buy diazepam without prescription
zopiclone for sale
buy imitrex without prescription
testosterone anadoil for sale
buy provigil without prescription
sonata for sale
nimetazepam for sale
buy temazepam without prescription
buy xenical without prescription
buy famvir without prescription
buy seroquel without prescription
rivotril for sale
acyclovir for sale
loprazolam for sale
buy nimetazepam without prescription
buy prozac without prescription
mogadon for sale
viagra for sale
buy valium without prescription
lamisil for sale
camazepam for sale
zithromax for sale
buy clobazam without prescription
buy diflucan without prescription
modalert for sale
diflucan for sale
buy alertec without prescription
buy zyban without prescription
buy serax without prescription
buy medazepam without prescription
buy imovane without prescription
mefenorex for sale
lormetazepam for sale
prednisone for sale
ativan for sale
buy alprazolam without prescription
buy camazepam without prescription
buy nobrium without prescription
mazindol for sale
buy mazindol without prescription
buy mogadon without prescription
buy terbinafine without prescription
diazepam for sale
buy topamax without prescription
cialis for sale
buy tafil-xanor without prescription
buy librium without prescription
buy zithromax without prescription
retin-a for sale
buy lunesta without prescription
serax for sale
restoril for sale
stilnox for sale
lamotrigine for sale

CentOS and Redhat problem: NFS mount at boot up fails with error: “System Error: No route to host”


On our CentOS 4.4 box, I set up the nfs mount by putting the setting in fstab.

10.0.0.2:/export/files /files intr

After that I tested the setting by typing: mount /files Everything worked as expected and files was mounted successfully. At this point I wanted to make sure server will do nfs mounts automatically at boot up. To my surprise once I rebooted the server, nfs mount did not happen. I checked the logs and found this:

May 11 11:00:24 www3 mount: mount: mount to NFS server '10.0.0.2' failed:
May 11 11:00:24 www3 mount: System Error: No route to host.

But once server booted up, I typed mount /files and again, mount worked great. After poking around for a while I found out that when netfs script runs, netfs can not find network routes (due to network is still initializing). I tried few ways to get around this issue and settled on following solution:

vi /etc/init.d/netfs
insert: action $”Sleeping for 30 secs: ” sleep 30
right after: [ ! -f /var/lock/subsys/portmap ] && service portmap start
and right before: action $”Mounting NFS filesystems: ” mount -a -t nfs,nfs4

Basically we are going to give enough time for network to start and set up routes etc. You can play with that number after sleep command (we are basically pausing netfs script execution for 30 secs) and see what works for you. Once you are done, save/exit and reboot the server to see if number you used is sufficient sleep time. You can type df -h to see if it was mounted. If it wasn’t mounted, you can check /var/log/messages to see if nic was starting after nfs mount. If it is after, you will have to increase that number after sleep. Remember that you are only pausing the netfs script execution. Rest of the system continues to boot up. After I made changes, I checked my df output after reboot and my mount was there. I also checked /var/log/messages to see if everything looks ok there:

May 11 11:22:14 www3 kernel: bnx2: eth0 NIC Link is Up, 1000 Mbps full duplex
May 11 11:22:16 www3 netfs: Sleeping for 30 secs: succeeded
May 11 11:22:17 www3 netfs: Mounting NFS filesystems: succeeded


11 Responses to “ CentOS and Redhat problem: NFS mount at boot up fails with error: “System Error: No route to host” ”

  1. June 25th, 2007 | 3:00 pm

    Thanks, it exactly fixed my issue. I don’t know why redhat website does not have solution on this.

  2. Lawrence Fung
    July 8th, 2007 | 10:51 am

    Thank you very much for the solution. I google a lot because of this same problem happened to my server and now it’s fixed.

  3. Glenn Johnson
    October 5th, 2007 | 11:10 am

    Thank you for this fix. I spent a few hours troubleshooting this problem before I found your blog! It works like a champ!

  4. November 7th, 2007 | 7:43 pm

    Thanks a lot
    I just fixed my problem

  5. Ron Arnett
    March 15th, 2008 | 11:24 am

    thanks this fixed my problem in Caracas,
    Much appreciated.

  6. Reza
    May 16th, 2008 | 8:16 am

    I am so happy that there are people like you who share their experience and knowledge.
    One more thanks to you.

  7. May 16th, 2008 | 10:55 pm

    I am glad I can help. If you need any other help, please go ahead and post in my brand new forums ( http://crazytoon.com/forum/ ) and I will try to help as much as I can.

  8. June 25th, 2008 | 6:46 pm

    [...] Automounting from another server was a prob, this was the solution: http://crazytoon.com/2007/05/11/centos-and-redhat-problem-nfs-mount-at-boot-up-fails-with-error-syst... [...]

  9. tog
    May 24th, 2010 | 12:45 pm
  10. December 7th, 2010 | 12:33 pm

    Try using the “_netdev” option in fstab:

    ctfs1-p:/srv/eis /mnt/nfs nfs intr,_netdev 0 0

    That works for me to make sure networking is up before the mount.

    Nick

  11. Mr.BOM
    July 10th, 2012 | 9:38 pm

    Great solution! I solved my problem.

    Thank u so much

Leave a reply

*
To prove that you're not a bot, enter this code
Anti-Spam Image