Help answer threads with 0 replies.
Go Back > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.


  Search this Thread
Old 01-08-2006, 08:11 PM   #1
LQ Newbie
Registered: Jan 2006
Posts: 1

Rep: Reputation: 0
nfs automount issue after reboot


Everytime we reboot our server, I have only three NFS filesystem are automatically mounted where on fstab I have 5 nfs filesystems. I dont have any problems if I use mount -a or manually mount the nfs filesystem.

sample of fstab:
bgr3pwas05:/etc # cat fstab
/dev/sda7 / reiserfs acl,user_xattr 1 1
/dev/sda3 /boot reiserfs acl,user_xattr 1 2
/dev/sda6 /sapmnt/R3P reiserfs defaults 1 2
/dev/sda5 /usr/sap/R3P reiserfs defaults 1 2
/dev/sda1 swap swap pri=42 0 0
/dev/sda2 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
sysfs /sys sysfs noauto 0 0
/dev/cdrom /media/cdrom subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/sda8 /oracle reiserfs acl,user_xattr 1 2
dmph36_svr:/sapmnt/R3P/profile /sapmnt/R3P/profile nfs defaults 0 0
dmph36_svr:/sapmnt/R3P/global /sapmnt/R3P/global nfs defaults 0 0
dmph06_svr:/usr/sap/trans /usr/sap/trans nfs defaults 0 0
dmph06_svr:/abap/r3p /abap nfs defaults 0 0
dmph06_svr:/sapnfs/R3P /sapnfs nfs defaults 0 0

sample: df -k
bgr3pwas05:/etc # df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda7 10490040 1503360 8986680 15% /
tmpfs 9730876 8 9730868 1% /dev/shm
/dev/sda3 104376 40216 64160 39% /boot
/dev/sda6 2104376 133780 1970596 7% /sapmnt/R3P
/dev/sda5 2104376 262164 1842212 13% /usr/sap/R3P
/dev/sda8 208756 95820 112936 46% /oracle
dmph36_svr:/sapmnt/R3P/profile 2424832 2422816 2016 100% /sapmnt/R3P/profile
dmph36_svr:/sapmnt/R3P/global 2424832 2422816 2016 100% /sapmnt/R3P/global
dmph06_svr:/usr/sap/trans 5373952 5276672 97280 99% /usr/sap/trans

We really need to automount these remote filesystems, so that every time the application server starts it will access them without problems. Any help would be much appreciated.

Old 01-08-2006, 11:01 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 261Reputation: 261Reputation: 261
What's your logs tell you, client side and remote side? I find the best way to trouble shoot NFS issues is always in the logs.
Old 01-10-2006, 03:37 PM   #3
LQ Newbie
Registered: Jan 2006
Posts: 1

Rep: Reputation: 0
I ran into the same problem this morning. I just upgraded ethernet controllers in 2 servers (to e1000 cards if it matters) and discovered that some of my nfs mounts aren't getting remounted after a reboot. The server with 5 mounts was only getting 2 or 3 of them (always the last ones in the fstab.) Doing a "mount -a" always seems to work after the server is up.

The only thing I've been able to find that helped was making sure my switch (a Cisco 3750) was forced to access mode and that portfast was enabled on those ports. I haven't had any problems since, but I've only rebooted them a couple times each to check. Other than that, I'd suggest putting a script in /etc/rc2.d that does a "mount -a" at the appropriate time.

I did find a note someplace else that suggested moving the mountnfs rc script from 45 to 99, but it turns out that that is a REALLY bad idea. The script also wipes out some stuff under /tmp, /var/lock, and /var/run which can be really bad if something (sendmail, mysql, samba, clamav....) is already using those directories.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
The ultimate NFS automount challenge / problem? Yalla-One Linux - Networking 3 12-11-2005 11:02 AM
not able to automount files in nfs at startup time kool124 Linux - Networking 4 10-03-2005 11:04 AM
Automount NFS from LDAP info not working klnasveschuk Linux - Networking 2 07-26-2005 01:04 PM
automount nfs and smb al_erola Linux - Networking 2 04-27-2003 11:33 AM
NFS - Automount / Security Issues gene_gEnie Linux - Networking 0 02-08-2002 03:05 PM > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 01:37 AM.

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