LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-22-2010, 05:40 AM   #1
kingston
Member
 
Registered: Mar 2008
Location: Bengaluru, India
Distribution: RHEL 5.5, Solaris 5.10
Posts: 215
Blog Entries: 1

Rep: Reputation: 21
stale nfs problem


Hi Gurus,
i am using RHEL 5.4 on hp proliant dL380. This is the build server. I mounted one filesystem from one of the Linux machine on this server. One fine day, the lab technicians formatted the system and installed linux again with different ip. Now the problem is, that people dont know, one directory is exported and mounted on one of the server. Now, whenver i do, "df -h" results in hanging (my shell is hanging). "umount -f /mnt/point" is also not working. I cant reboot the machine now. Is there any way to solve this problem.

Thanks is advance.
 
Old 11-22-2010, 06:47 PM   #2
bridrod
Member
 
Registered: Aug 2009
Distribution: SLES, openSUSE
Posts: 39

Rep: Reputation: 15
Quote:
Originally Posted by kingston View Post
Hi Gurus,
i am using RHEL 5.4 on hp proliant dL380. This is the build server. I mounted one filesystem from one of the Linux machine on this server. One fine day, the lab technicians formatted the system and installed linux again with different ip. Now the problem is, that people dont know, one directory is exported and mounted on one of the server. Now, whenver i do, "df -h" results in hanging (my shell is hanging). "umount -f /mnt/point" is also not working. I cant reboot the machine now. Is there any way to solve this problem.

Thanks is advance.
Have you tried "umount -l" ? L not one, not I!
 
Old 11-23-2010, 01:30 AM   #3
kingston
Member
 
Registered: Mar 2008
Location: Bengaluru, India
Distribution: RHEL 5.5, Solaris 5.10
Posts: 215
Blog Entries: 1

Original Poster
Rep: Reputation: 21
i am facing this issue since last 4 or 5 days. Now today, suddenly everything starts working fine. "mount" does not have the orphan entry and even my "df -h" doesnt hangs. Anyway i am closing this thread without knowing the answer.
 
Old 11-23-2010, 02:06 AM   #4
somupl86
LQ Newbie
 
Registered: Nov 2010
Posts: 13

Rep: Reputation: 0
removing Mounted entries

you can remove these mounted entries by editing /etc/fstab file.
 
Old 11-23-2010, 06:26 AM   #5
kingston
Member
 
Registered: Mar 2008
Location: Bengaluru, India
Distribution: RHEL 5.5, Solaris 5.10
Posts: 215
Blog Entries: 1

Original Poster
Rep: Reputation: 21
no thats a temporary mount, it does not have any entry in /etc/fstab file.
 
Old 11-23-2010, 07:11 AM   #6
somupl86
LQ Newbie
 
Registered: Nov 2010
Posts: 13

Rep: Reputation: 0
HI kingston,

/etc/fstab will have the all the entries of a mount point, that needs to mounted.

As the mount pointed is already mounted and went to busy state/unavailble, if we remove it from fstab that should be fine.

Let me know if iam taking in wrong way..


Thanks,
Soma
 
Old 11-24-2010, 02:17 AM   #7
kingston
Member
 
Registered: Mar 2008
Location: Bengaluru, India
Distribution: RHEL 5.5, Solaris 5.10
Posts: 215
Blog Entries: 1

Original Poster
Rep: Reputation: 21
i think you didnt understand correctly. As i said, i just fired the command "mount server:/spcae /mountpoint" from the client. For some reason, if server goes down, what will you do? The client is still has the entry and when i do, cd /mountpoint, it gives " stale nfs file handle" message and i couldnt even i unmount that.
 
Old 11-24-2010, 06:21 AM   #8
somupl86
LQ Newbie
 
Registered: Nov 2010
Posts: 13

Rep: Reputation: 0
Restarting NFS service from Local should work.
 
Old 11-24-2010, 06:29 AM   #9
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
did you try mount command to see what is mounted

you said you yourself mounted the file system,so let us know which command and which directory you used to mount the directory

restarting the system will also unmount it but you cant do that;

try this command

Code:
mount -o remount,rw  /mnt/mntpoint
make sure none of the system resources using the previous mounted file system

Last edited by prayag_pjs; 11-24-2010 at 06:33 AM.
 
Old 11-24-2010, 07:14 AM   #10
kingston
Member
 
Registered: Mar 2008
Location: Bengaluru, India
Distribution: RHEL 5.5, Solaris 5.10
Posts: 215
Blog Entries: 1

Original Poster
Rep: Reputation: 21
@somupl86
I cant restart the machine as well as the nfs service.

@prayag_ps
mount command shows the nfs server's ip and mountpoints which is not existing. As said in the first post, the system is no longer there. Then how can i remount that?
 
Old 11-24-2010, 07:27 AM   #11
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
To reload the NFS server configuration file without restarting the service, as root, type:

Code:
/etc/init.d/nfs reload
http://docs.redhat.com/docs/en-US/Re...s-command-line

Last edited by prayag_pjs; 11-24-2010 at 07:32 AM.
 
  


Reply


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
"Stale NFS file handle" mount error on a non-NFS /boot partition after running lilo cabrilo Slackware 4 09-14-2010 10:00 AM
NFS stale file handle and not using NFS odjb Linux - Newbie 3 11-05-2009 10:41 AM
ls: cannot access /etc/resolv.conf: stale nfs file handle - but i'm not using nfs schneidz Linux - General 4 10-02-2009 03:39 PM
Stale NFS File Handle problem mpnorth Linux - Newbie 10 08-12-2008 11:57 AM
Stale NFS Handle without using NFS? dapsychous Red Hat 5 11-25-2006 09:50 PM


All times are GMT -5. The time now is 01:03 PM.

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