[Voyage-linux] Problem mounting nfs disk at boot time with fstab.
superpat
(spam-protected)
Mon Feb 14 06:03:33 HKT 2011
Hi,
On my Voyage MPD system, I moved from using a local USB stick music data
store, to using my NAS, the music directory mounted as a NFS file with an
entry in fstab.
The Voyage MPD player cannot mount the nfs drive at boot time, the mount
point which should receive the nfs folder is empty after boot has finished.
HOWEVER If I perform a mount -a when the system is "up", the nfs folder
mounts ok and the music folders are accessible to MPD.
Googling around I find this appears to be an endemic problem, with numerous
suggested causes and fixes. The most probable cause seems to be the order
and run level that the various start up scripts are performed.
Reading the Debian run levels document has given me a bad head! The
article is very complicated.
I cannot find a suggested Debian fix, here is one for Centos RH:-
quote>>>>>>>>>>>>>>>>>>>.
NFS not mounting on boot -- CentOS/RH solution
Hi -- I just ran across this problem, and didn't really find a good answer,
but here's what I figured out and what worked for me on CentOS 5:
The problem was that my NFS mounts were not mounting on boot, but after
booting, I could issue:
#mount -a
and they would mount just fine.
My servers boot into runlevel 3. Turns out if you look in /etc/rc3.d on
CentOS 5, you'll probably see some files called:
K75netfs
S10network
K75netfs takes care of mounting network volumes, and S10network takes care
of bringing up network interfaces.
These files are run in alphabetical order when the system enters runlevel 3.
So, it was trying to mount the NFS volumes before the network interfaces
were brought up, and that, of course, fails.
The way I solved this problem was that I renamed K75netfs to S96netfs to
make it run a good bit later in the init process. This worked like a charm
for me.
#cd /etc/rc3.d
#mv K75netfs S96netfs
You need to do this for whatever runlevels you want to have NFS mounts
automagically mounted in. So, if you want this to happen in runlevel 5, just
make the same changes in /etc/rc5.d
endquote>>>>>>>>>>>>>>>>>>>>>>>..
Of course the Debian run levels have different scripts, rcS.D looks
promising !!
I do not want to go blindly poking around in the run levels, not knowing
what I am doing.
Please could some kind person advise me whether this is the correct way to
fix my problem, and if so what is the correct way to fix it? (rcS.D loooks
interesting!
many thanks
regards
Patrick
--
View this message in context: http://voyage-linux.34677.n3.nabble.com/Problem-mounting-nfs-disk-at-boot-time-with-fstab-tp2488225p2488225.html
Sent from the Voyage Linux mailing list archive at Nabble.com.
More information about the Voyage-linux
mailing list