Unmounting a failed NFS mount


 
Thread Tools Search this Thread
Operating Systems AIX Unmounting a failed NFS mount
# 1  
Old 05-16-2011
Unmounting a failed NFS mount

I have an NFS file system mounted on one of my AIX servers with "mount -v cifs".. The server from which the file system was mounted has crashed and now my "df -g" output is hanging. Is there any was to unmount this NFS file system? I have tried "umount -f". Doesn't work.

Or is there any way in which I can make "df" command to not search for this file system and skip it?

---------- Post updated at 02:14 PM ---------- Previous update was at 02:12 PM ----------

I want to add that is there something like the /etc/mtab file on AIX to disable df reading the file system?
# 2  
Old 05-17-2011
Quote:
Originally Posted by wibhore
I want to add that is there something like the /etc/mtab file on AIX to disable df reading the file system?
There is "/etc/filesystems" and the ODM. Which information exactly do you look for or was this a general question?

I hope this helps.

bakunin
# 3  
Old 05-17-2011
This question is related to the unmount issue. In Linux there is a file /etc/mtab. If you remove the entry of a file system from this file, the file system will not be displayed in the df output. So I wanted to know is there any similar way in AIX to disable reading/scanning of a file system by df?

The main issue here is how to unmount the NFS file system when the host server has crashed?

Thanks.
# 4  
Old 05-17-2011
Actually "df" is not really hanging: the real problem is that NFS has - because of historical reasons - extremely long timeouts (IIRC 20 min or so). I suppose that, given enough time, "df" would finally come to a regular end.

About your question: no, you can't exclude any mounted file system from "df"s output, at least not to my knowledge.

I hope this helps.

bakunin
# 5  
Old 05-23-2011
Thanks

Ok. So there is no way to exclude a file system from DF output. But is there any way for us to unmount a failed NFS mount without requiring a reboot? Also we have 2 systems where we are facing this issue. umount -f worked on one and gives and error on the second one:

"There was an error with unmount".
# 6  
Old 05-24-2011
Quote:
Originally Posted by wibhore
is there any way for us to unmount a failed NFS mount without requiring a reboot?
Have you tried shutting down the underlying protocols? Maybe a stopsrc -g nfs might help?

In general i wouldn't let my environment depend on NFS at all, probably you'd be better off replacing NFS with something more robust (like a SAN share or something such?). NFS is IMHO ok for some temporary mount - mount an installation directory for an update, etc. - but not for production purposes.

I hope this helps.

bakunin
# 7  
Old 05-27-2011
If your nfs share is automounted, stop the automounter, than umount -f

To avoid such a situation in future, choose the correct mountoptions in future for nfs mounts, like small retry number, short interval, soft instead of hard mount and similar things.

Regards
zxmaus
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. UNIX for Dummies Questions & Answers

Unmounting NFS idle clients from server

Hello World, We have a software repository server in our environment which we use as an NFS server. Now this has been going on well before I was hired. Now, I observed many users not unmounting the NFS resources after their use. I ran showmount and it showed 513 current sessions. :wall: Is... (7 Replies)
Discussion started by: satish51392111
7 Replies

3. Solaris

Failed to mount /usr

I recently ran the Solaris 10 upgrade 10 and everything went fine. About 2 months later after rebooting and getting ready to load the latest upgrade that came out, I am getting this error. ERROR: svc:/system/filesytem/root: default failed to mount /usr (see 'svc -x' for details) ... (6 Replies)
Discussion started by: drew_1980
6 Replies

4. Red Hat

"ERROR : failed to mount nfs source" Red Hat Kickstart

Hi There, I have been googling for this error and try solution provided but still not avail to resolve Kickstart Issue. Any expert have encounter this problem? Thanks. Regards, Regmaster (4 Replies)
Discussion started by: regmaster
4 Replies

5. Solaris

NFS lookup failed for server netapp

Hi When trying to mount a database from Solaris, we get the error: Feb 10 09:27:22 SUNTEST nfs: NFS lookup failed for server netapp: error 11 (RPC: Server can't decode arguments) Feb 10 09:27:27 SUNTEST nfs: NFS getattr failed for server netapp: error 11 (RPC: Server can't decode... (0 Replies)
Discussion started by: wbdevilliers
0 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. Solaris

Help:NFS mknod failed

this is existing issue for this nfs client, which mounts windows exported file system, and this is only one UNIX box has this problem, other boxes are fine. Here is from messages file. Jan 24 03:11:10 venus nfs: NFS mknod failed for server arc: error 2 (RPC: Can't decode result) Jan... (0 Replies)
Discussion started by: steeles
0 Replies

8. 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

9. 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

10. UNIX for Advanced & Expert Users

NFS server failed

Hello, We have an NFS problem : when we try to automount or mount a share file system to a client we have the following error : NFS acces failed for server xxxxx : error 7 (RPC : Authentication error). We've have this error after the reboot of the client. Rerun the automount daemon... (1 Reply)
Discussion started by: christophe
1 Replies
Login or Register to Ask a Question