NFS mount issues

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat NFS mount issues
# 1  
Old 06-03-2012
NFS mount issues

Hi Experts,

I have been using Linux (Redhat server 5.6) as a NFS server and it is mounted to 4 linux (SUSE) servers for storing the db logs. I added an entry in fstab in all my 4 clients to make sure the mount is available all the time. but unfortunately the mount is not showing in servers after a day or 2. but I could see an entry in /etc/mtab saying that the mount is available but when I try df command it hungs.

I tried all most all the options like, -o nfsvers=3, tcp..... but still nothing works.

mount command output:
Code:
securityfs on /sys/kernel/security type securityfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
proc on /var/lib/ntp/proc type proc (rw)
t07lap00025.test.com:/dbnfs on /nas/dbnfs type nfs (rw,tcp,addr=xxx.xxx.xx.xxx)

mtab entry
Code:
securityfs /sys/kernel/security securityfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
proc /var/lib/ntp/proc proc rw 0 0
t07lap00025.test.com:/dbnfs /nas/dbnfs nfs rw,tcp,addr=xxx.xxx.xx.xxx 0 0

df command output
Code:
/dev/mapper/appsvg00-tibcolv02
                       5160576   1511988   3386444  31% /var/tibco

it hungs and not displaying /nas/dbnfs

when I mount manually using mount command it mounts but it is not displayed in df and hungs.
Any help to resolve this is highly appreciated. Smilie

Last edited by Scrutinizer; 06-11-2012 at 04:10 PM.. Reason: code tags
# 2  
Old 06-03-2012
Quote:
but unfortunately the mount is not showing in servers after a day or 2. but I could see an entry in /etc/mtab saying that the mount is available but when I try df command it hungs.
Your NFS mount is working properly, it's just the df command which is getting stuck.

A work around would be to exclude the NFS mounts while using df:
Code:
df -l

If you want to see the disk space consumption of the NFS mount, try this instead of df:
Code:
du -sh /nas/dbnfs

Can you post the options you used to mount the NFS share?
Code:
grep dbnfs /etc/fstab

Also, how many NFS shares are mounted on this specific machine? It is possible that the df is getting stuck for another NFS share.

One way to get out of this kind of issue would be to use the "soft" mount option. But, if you do not want inconsistent data, use "hard,timeo=600" options. The timeo option specifies the timeout value (one tenth of a second) before it retries to get a respond from the server. Also, you may specify retrans option. By default, it is 3.

To further investigate, I would unmount the NFS share and mount it on a different client and check. This would tell us if the issue is from the client or the server.

Last edited by admin_xor; 06-03-2012 at 02:27 PM..
# 3  
Old 06-03-2012
Well, the NFS mounted in other servers and I can get into the NFS directory (read,write...) only I see issue with this server at this moment.

df hungs yes, but I cant roam into the NFS shared directory. cd /nas/dbnfs , ls /nas/dbnfs ..... everything hungs. ( I believe the mount is having issues only because of that the df,cd ,ls are getting hung)

I tried rw,soft option in fstab but nothing works...

current fstab option:

Code:
t07lap00023.test.com:/dbnfs /dbnfs nfs defaults 0 0


Last edited by Scrutinizer; 06-11-2012 at 04:11 PM.. Reason: code tags
# 4  
Old 06-03-2012
df, cd, ls -- all use the system calls to read a directory. This situation happens when the client doesn't get a response from the server.

Have you checked by manually mounting the share? does it throw any error? soft and timeo options are not remedy to the problem, they are just work around.
# 5  
Old 06-04-2012
when I try to mount manually i`m not getting any error but still I cant read the files in the nas directory.

I could see the below logs,
Jun 3 09:59:59 t01lgpxxxxx kernel: nfs: server t07lap00025.test.com not responding, still trying
# 6  
Old 06-05-2012
FWIW when you do an ls on an nfs mount that's gone stale, linux will attempt to remount it, it's at this point that it may be getting hung at so it might be wise to start a binary tcpdump between the two nodes, do an ls on the mount, let it hang for a bit, stop the tcpdump, load the packet capture into wireshark and see if anything jumps out at you. Basically I think we need more visibility on what exactly is going on between the hosts (is it making the three way handshake, is the other server not responding at all, are we getting a lot of dropped packets, etc).
# 7  
Old 06-11-2012
I could see the below logs in NFS server and client, the NFS server log says that the mount request is authenticated. But as per client log it did not get reponse.

log in NFS server:
Code:
Jun 11 13:58:04 t07lap00023 mountd[26733]: authenticated mount request from xx.xx.xxx.xx:793 for /dbnfs (/dbnfs)

Log in NFS client:
Code:
Jun 11 13:58:39 t01lgp00032 kernel: nfs: server t07lap00023 not responding, timed out


--
Moderator's Comments:
Mod Comment Please view this link: How to use [code]...[/code] tags

Last edited by Scrutinizer; 06-11-2012 at 04:12 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Mount NFS Share On NFS Client via bash script.

I need a help of good people with effective bash script to mount nfs shared, By the way I did the searches, since i haven't found that someone wrote a script like this in the past, I'm sure it will serve more people. The scenario as follow: An NFS Client with Daily CRON , running bash script... (4 Replies)
Discussion started by: Brian.t
4 Replies

2. HP-UX

SFU and NFS issues

Hi, I support a small lab of older HP UX 9 and 10 boxes. We have some older NT 4.0 machines at each UX box, with a old ZFS Server programs hosting two mounted directories. (Each UX and NT machine is on its own private network via crossover cable). Due to hardware failure/support EOL on NT, I have... (3 Replies)
Discussion started by: the spyder
3 Replies

3. UNIX for Advanced & Expert Users

nfs mount permission issues

Hello, We have some new application requirements that require us to use nfs mounts from aix 5.3 and mount to Oracle Linux 5.6. Do you know why when on the destination ( linux ) box, the root user cannot access directories made by other users in the nfs mounted filesystem ? I read that there... (0 Replies)
Discussion started by: fwellers
0 Replies

4. AIX

VIOS NFS MOUNT

Hi team, I'm getting the below error on the VIO server while trying to mount a directory from my NIM server.. Any idea what does this mean.. Does this require a reserved port like linux for nfs service ? # mount 9.126.76.103:/install/VIO/V2.1_migration/fp23 /mnt ... (5 Replies)
Discussion started by: kkeng808
5 Replies

5. UNIX for Dummies Questions & Answers

Mount NFS

Hi I have 2 servers, one is running on SunOS SPARC and the other is running on GNU Linux. Since my Linux is very poor I am not sure on how to mount a NFS from SunOS to Gnu Linux. Please help! FS at Host Server: root@rocux4 # ls -ld /data/PCFILES/GTPROD/DWHFILES.NEW drwxrwxrwx 4 nobody ... (6 Replies)
Discussion started by: hedkandi
6 Replies

6. IP Networking

Can't see home folder on one NFS mount but can in another mount on another share

Hello, I have a few Ubuntu 9.10 laptops I'm trying to learn NFS sharing with. I am just experimenting on this right now, so no harsh words about the security of what I'm playing with, please ;) Below are the configs /etc/exports on host /home/woodnt/Homeschool... (2 Replies)
Discussion started by: Narnie
2 Replies

7. OS X (Apple)

NFS Mount

Hello! Im trying to mount an nfs share. But got a bit of a problem. The problem im having is that i try to mount The problem is that the my.server.com/pub/home is owned by root. I know i can make a mount point my.server.com://pub/home/username - > /pub/home But that means i have to do... (1 Reply)
Discussion started by: dozy
1 Replies

8. UNIX for Dummies Questions & Answers

NFS mount

I have a NAS server that needs to have the share mounted on a unix server. I am not that familiar with NFS mounts....any help on what I have to do on the UNIX box...thanks! (7 Replies)
Discussion started by: andrewd
7 Replies

9. UNIX for Dummies Questions & Answers

mount -o llock -F nfs vs mount -F nfs

Hi, We encountered NFS issue (solaris) especially running on Oracle application. Problem such as forms hang when close button is click, concurrent job shows running status all time. Understand we need to use mount -o llock -F nfs instead of mount -F nfs to eliminate? this problem.. Can... (1 Reply)
Discussion started by: KhawHL
1 Replies

10. Filesystems, Disks and Memory

NFS mount

Hi All, Can any one help in Mounting remote filesystems with NFS? Thanks in advance. Regards, Suresh. (4 Replies)
Discussion started by: srvaka1
4 Replies
Login or Register to Ask a Question