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: mtab entry df command output
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.
Last edited by Scrutinizer; 06-11-2012 at 04:10 PM..
Reason: code tags
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:
If you want to see the disk space consumption of the NFS mount, try this instead of df:
Can you post the options you used to mount the NFS share?
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..
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:
Last edited by Scrutinizer; 06-11-2012 at 04:11 PM..
Reason: code tags
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.
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).
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.
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)
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)
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)
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)
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)
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)
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)
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)
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)