LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 07-02-2009, 02:48 PM   #1
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
NFS Volumes not mounting on boot


Hello,

I have added some NFS volumes in my /etc/fstab; but these volumes do not mount on boot...Here is my fstab



Code:
root@host# cat /etc/fstab
/dev/vg0/lvm_root       /                       ext3    defaults        1 1
/dev/vg1/lvm_data       /data                   ext3    defaults        1 2
/dev/vg0/lvm_usr        /usr                    ext3    defaults        1 2
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/vg0/lvm_swap       swap                    swap    defaults        0 0
# NFS Mounts
netapp-nfs:/vol/staging/panda   /data/panda     nfs     defaults        0 0
netapp-nfs:/vol/uploads/panda   /data/uploads   nfs     defaults        0 0
netapp-nfs:/vol/production/cvsroot      /data/cvsroot   nfs     defaults        0 0
#
#-30-

The only NFS volume that mounts is /data/cvsroot but the other 2 don't. As soon as the server is up and running I do a



root@host# mount -a



And this mounts the ones that didn't mount on boot. I looked through dmesg and didn't find anything...

Code:
root@host# dmesg | grep -i nfs
root@host#  dmesg | grep -i mount
Mount-cache hash table entries: 512
EXT3-fs: mounted filesystem with ordered data mode.
EXT3-fs: mounted filesystem with ordered data mode.
EXT3-fs: mounted filesystem with ordered data mode.
EXT3-fs: mounted filesystem with ordered data mode.
root@host#  dmesg | grep -i netfs

Also /var/log/messages shows the same...

I already contacted Red Hat support and they have (yet) to contact me with anything yet. Anyone experienced the same problem?

Running: RHEL 5.3

-C
 
Old 07-03-2009, 04:09 AM   #2
gael
Member
 
Registered: Aug 2008
Posts: 41

Rep: Reputation: 15
Quote:
Originally Posted by custangro View Post

The only NFS volume that mounts is /data/cvsroot but the other 2 don't. As soon as the server is up and running I do a

root@host# mount -a

And this mounts the ones that didn't mount on boot. I looked through dmesg and didn't find anything...

Code:
root@host# dmesg | grep -i nfs
root@host#  dmesg | grep -i mount
Mount-cache hash table entries: 512
EXT3-fs: mounted filesystem with ordered data mode.
EXT3-fs: mounted filesystem with ordered data mode.
EXT3-fs: mounted filesystem with ordered data mode.
EXT3-fs: mounted filesystem with ordered data mode.
root@host#  dmesg | grep -i netfs
Are you sure any NFS mount is successful after you boot the machine as your grep nfs returns nothing and grep mount only returns ext3 fs...



The last time we faced a similar issue, it was down to a network. The network was not ready when the mount occurs so all our NFS mounts failed...
Maybe worth checking the network...

If worse comes to worst, you can always add a line in /etc/rc.local


HTH
Gael
 
Old 07-07-2009, 02:54 AM   #3
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
Arrow

Quote:
Originally Posted by gael View Post
If worse comes to worst, you can always add a line in /etc/rc.local
Even I recommend the same, you can do this until you find a solution to your problem. Needless to say, it will work smoothly.
 
Old 07-07-2009, 09:49 AM   #4
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979

Original Poster
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by vikas027 View Post
Even I recommend the same, you can do this until you find a solution to your problem. Needless to say, it will work smoothly.
Yeah, in the meantime I have added "mount -a" in the /etc/rc.local file...

I will post what I find...

-C
 
Old 07-08-2009, 05:16 PM   #5
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979

Original Poster
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by custangro View Post
Yeah, in the meantime I have added "mount -a" in the /etc/rc.local file...

I will post what I find...

-C
So here is what Dell/Red Hat said...

It's a "timing" issue (like I guess we all thought)...Dell/Red Hat recomends doing this...

Code:
root@host# cd /etc/rc3.d
root@host# rm S25netfs
root@host# ln -s /etc/init.d/netfs S98netfs
I did this and it worked!

Also I edited the /etc/init.d/netfs chkconfig line to match the "98" startup.

-C
 
Old 07-16-2009, 11:54 PM   #6
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
Question

Quote:
Originally Posted by custangro View Post
Code:
root@host# cd /etc/rc3.d
root@host# rm S25netfs
root@host# ln -s /etc/init.d/netfs S98netfs
Thanks Custangro, for posting the solutions for learners like me to have more knowledge.

What does 25 means in S25netfs, and 98 in S98netfs ?
And how do they came to know, that this should be 98 and not any other number.



Quote:
Originally Posted by custangro View Post
Also I edited the /etc/init.d/netfs chkconfig line to match the "98" startup.
And, did you modified this line in /etc/init.d/netfs as
Code:
chkconfig: 345 25 75 98

Last edited by vikas027; 07-16-2009 at 11:56 PM. Reason: just added one more query for Custangro.
 
Old 07-17-2009, 09:36 AM   #7
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979

Original Poster
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by vikas027 View Post
Thanks Custangro, for posting the solutions for learners like me to have more knowledge.

What does 25 means in S25netfs, and 98 in S98netfs ?
And how do they came to know, that this should be 98 and not any other number.





And, did you modified this line in /etc/init.d/netfs as
Code:
chkconfig: 345 25 75 98
It was Dell support...they only offered the solution...not an explanation (go figure)

Also, another "trick" is to put a mount -a in your /etc/rc.local file.

-C
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS not mounting at boot time thllgo Linux - Server 2 07-28-2009 03:01 PM
NFS not mounting at boot under certain conditions. robeph Linux - Networking 3 04-29-2008 08:16 AM
Mounting a nfs partition on boot time wjleon Linux - Newbie 1 05-02-2005 11:12 AM
NFS not mounting on boot lairdcp Linux - Networking 0 01-04-2005 08:30 PM
mounting nfs on boot-up jonfa Linux - General 1 09-04-2001 02:51 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 04:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration