Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-24-2004, 02:33 PM
|
#1
|
Member
Registered: Jul 2004
Distribution: RedHat AS 2.1
Posts: 51
Rep:
|
Mounting NFS Filesystems at startup, always fails..
So here's my situation... I have roughly 42 Oracle Servers running Red Hat AS 2.1 that need to access an NFS server.
Here's my Problem. When booting it goes through the process of mounting the NFS and fails everytime. It fails with the error: No route to host. As soon as the system is booted up I can run a mount -a just fine, no errors. I would like to avoid having to run this command on all 42 servers when we need to reboot.
I have removed a few details for security reason...
Here is an example of my /etc/fstab file
Code:
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
LABEL=/home /home ext3 defaults 1 2
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/tmp /tmp ext3 defaults 1 2
LABEL=/usr /usr ext3 defaults 1 2
LABEL=/var /var ext3 defaults 1 2
/dev/sda7 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
myserver1:/export /mnt/myserver nfs defaults
and... my /etc/hosts file
Code:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost mylocalserver.mydomain.mil
555.555.555.555 myserver1.mydomain.mil myserver1
555.555.555.555 myserver2.mydomain.mil myserver2
Thanks for the help in advance... 
Last edited by stellarmarine1; 08-24-2004 at 11:54 PM.
|
|
|
08-24-2004, 02:36 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
sounds like it is somehow loading network file systems before the network is suitably loaded. Does redhat had netmounts as a seperate service? if so, try nudgind the priortity of it down to after any other network related services.
|
|
|
08-24-2004, 06:28 PM
|
#3
|
Member
Registered: Jul 2004
Distribution: RedHat AS 2.1
Posts: 51
Original Poster
Rep:
|
thanks, I have actually thought about making it mount the NFS last, but I am not sure how to do that. I peeked around in my rc.d files, but wasn't really sure what to add or edit. Maybe I should start a new thread asking that. 
|
|
|
08-25-2004, 01:56 AM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
here's fine... so is there a service for the network mounts? it's more than likely that there is... if you do find it, it'll have a runlevel symlink for it, e.g. /etc/rc5.d/S40netmount, just change that number to somethign higher, e.g. 90 and then it'll get processed later in the bootup.
mind you the default settings should be fine in principle, does the network interface itself visibly load before then? have you changed anythign else about this?
|
|
|
08-25-2004, 06:19 AM
|
#5
|
Member
Registered: Jul 2004
Distribution: RedHat AS 2.1
Posts: 51
Original Poster
Rep:
|
nope, it loads the ethernet interfaces before it loads the mounts. I am going to try to bump up the symlink number and see if that helps. I'll let you know, soon.
|
|
|
08-25-2004, 07:56 AM
|
#6
|
Member
Registered: Jul 2004
Distribution: RedHat AS 2.1
Posts: 51
Original Poster
Rep:
|
I went ahead and renamed /etc/rc.d/rc3.d/S25netfs to S85netfs and everything is starting correctly now. Thanks a lot for all the help.. 
|
|
|
08-25-2004, 10:04 AM
|
#7
|
LQ Newbie
Registered: Aug 2004
Location: @Home dot com
Distribution: RedHat and Mandrake
Posts: 1
Rep:
|
I am having the same problem with redhat 7.2, I can't alter the init value, so I have to debug the problem.
This is how far I have currently got
network loads eth0 and eth1 with an init value of 10
portmap loads with an int value of 13
I have modified netfs ( int val of 25) and just after it checks portmap
I have added the following
Code:
action $"ping dataserver: " /bin/ping -c10 server.ip
action $" check rpc info for dataserver : " /usr/sbin/rpcinfo -p dataserver.ip
the ping sends ten packets and receives no replies, while the rpcinfo fails to connect to the dataserver
Then the mount SUCEEDS...
If I replace the the ping and rpcinfo actions with
Code:
action $" Sleep for a couple of mins : " sleep 2m
the mount always fails. This has lead me to believe that the network modules are loaded but the physical connection is still not up until I prod it with the network operations.
Last edited by cmon_stoke; 08-25-2004 at 10:17 AM.
|
|
|
02-03-2005, 12:40 PM
|
#8
|
LQ Newbie
Registered: Sep 2004
Distribution: RHEL AS3, AS4 / Vector
Posts: 22
Rep:
|
Quote:
here's fine... so is there a service for the network mounts? it's more than likely that there is... if you do find it, it'll have a runlevel symlink for it, e.g. /etc/rc5.d/S40netmount, just change that number to somethign higher, e.g. 90 and then it'll get processed later in the bootup.
|
This is what helped me the most. I did figure out that you have to change the value in the rc"x".d directory for your particular runlevel ex- if you are running in run level 5 you modify the file in the rc5.d directory.
|
|
|
All times are GMT -5. The time now is 06:41 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|