LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   nfs automount issue after reboot (https://www.linuxquestions.org/questions/linux-enterprise-47/nfs-automount-issue-after-reboot-401014/)

chickie 01-08-2006 08:11 PM

nfs automount issue after reboot
 
Hi,

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.


thanks,
chickie

trickykid 01-08-2006 11:01 PM

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.

Fizbin 01-10-2006 03:37 PM

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.


All times are GMT -5. The time now is 06:50 AM.