LinHES Forums
http://forum.linhes.org/

Possible fix for NFS mounts at boot time
http://forum.linhes.org/viewtopic.php?f=3&t=17952
Page 1 of 1

Author:  larrybpsu [ Sun Feb 24, 2008 8:27 pm ]
Post subject:  Possible fix for NFS mounts at boot time

I've be searching and searching for the 'proper' way to mount an NFS export via the /etc/fstab file without resorting to adding an extra command to the boot sequence.

After finding a message on the web, I issued the following as root

Code:
rmdir /var/run/network/mountnfs


and rebooted....

The NFS filesystem now mounts every time! No more "mount -a"!!!

Author:  graysky [ Mon Feb 25, 2008 3:16 pm ]
Post subject: 

I dunno man. On my frontend system I simply added the following to my /etc/fstab and it just worked:
Code:
192.168.100.4:/myth/video /mnt/myth nfs defaults,auto,noatime 0 0


I am running both the nfs-kernel-server and nfs-common running. Maybe I don't understand your specific problem.

Author:  larrybpsu [ Mon Feb 25, 2008 8:28 pm ]
Post subject: 

I had exactly the same mount line in /etc/fstab, but it would not mount at boot time. The NFS server and common were already set since I'm exporting some directories, too.

For some reason my system had the /var/run/network/mountnfs directory created, and after I deleted it, the fstab settings work fine at boot time. This may have been a leftover from an older version upgrade. I'm not sure either.

I figured that I'd post it, just in case someone else has the same issue.

Author:  manicmike [ Tue Feb 26, 2008 4:58 am ]
Post subject: 

graysky wrote:
I dunno man. On my frontend system I simply added the following to my /etc/fstab and it just worked:
Code:
192.168.100.4:/myth/video /mnt/myth nfs defaults,auto,noatime 0 0


I am running both the nfs-kernel-server and nfs-common running. Maybe I don't understand your specific problem.


There are a couple of other options you should use. I think it's "rsize=8192,wsize=8192,timeo=14,intr" : adding these should improve transfer speed significantly. You can probably get rid of "defaults" since these aren't the defaults.

Regards

Mike

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/