- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Stale NFS file handle
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2002 10:44 PM
тАО06-17-2002 10:44 PM
Stale NFS file handle
I am getting "Stale NFS file handle" message when I run "bdf" on my K360 server with hpux 10.20.
# bdf
bdf: /tmp_mnt.hpxt/mercury/hpxtfd: Stale NFS file handle
bdf: /tmp_mnt.hpxt/venus/hpxtfd: Stale NFS file handle
The mercury and the venus server no longer exists.
What needs to be done to remove these entry from the bdf output? I have rebooted the server once but it didn't helped.
Thanks,
Raje.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2002 11:04 PM
тАО06-17-2002 11:04 PM
Re: Stale NFS file handle
First step
#/sbin/init.d/nfs.client stop
( it is enough , if you kill only rpc.statd daemon )
Then
#cd /var/statmon/sm.bak
#rm -rf *
#cd /var/statmon/sm
#rm -rf *
#/sbin/init.d/nfs.client start
Try bdf again , now there will be no error messages.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2002 11:34 PM
тАО06-17-2002 11:34 PM
Re: Stale NFS file handle
You might also have to remove the corresponding lines from your /etc/fstab to avoid the error after a reboot!
Bye,
Rik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2002 11:55 PM
тАО06-17-2002 11:55 PM
Re: Stale NFS file handle
Thanks for your reply.
I have tried this but it didn't help.
Also I have checked there were/are no files under /var/statmon/sm and /var/statmon/sm.bak.
I have also removed all the corresponding entry for mercury and venus from /etc/fstab, /etc/mnttab, /etc/rmtab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2002 12:05 AM
тАО06-18-2002 12:05 AM
Re: Stale NFS file handle
Have you rebooted since you removed the entries from fstab ?
Meanwhile bdf -l will just show local file systems.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2002 12:08 AM
тАО06-18-2002 12:08 AM
Re: Stale NFS file handle
Yes. I have rebooted the server after removing the entry from /etc/fstab.
But still it is showing Stale NFS file handle.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2002 12:32 AM
тАО06-18-2002 12:32 AM
Re: Stale NFS file handle
Try killing automount daemon. And do a
#fuser -ku /tmp_mnt
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2002 12:33 AM
тАО06-18-2002 12:33 AM
Re: Stale NFS file handle
Just an idea, but is this directory configured for the automounter daemon?
Bye,
Rik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2002 01:03 AM
тАО06-18-2002 01:03 AM
Re: Stale NFS file handle
I have killed the automount daemon.
# fuser -ku /tmp_mnt.hpxt/mercury/hpxtfd
# umount /tmp_mnt.hpxt/mercury/hpxtfd
umount: /tmp_mnt.hpxt/mercury/hpxtfd: Stale NFS file handle.
No this directory is not configured for automounter.
The entry in /etc/auto_master is :
/net -hosts -soft
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2002 01:38 AM
тАО06-18-2002 01:38 AM
Re: Stale NFS file handle
is there, by any change, an entry in the configuration file to mount a floppy mounted inside an Xterminal? Re-use of ip addresses (probably not)? AFAICT, the mercury and venus hostnames you mention are Xterminal names. I'm just wondering if there is some resident data /opt/hpxt/enware/lbin/mountfloppy is using to mount the floppies from venus and mercury.
My $0.02, cu l8r, Edgar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2002 05:03 PM
тАО06-18-2002 05:03 PM
Re: Stale NFS file handle
I would like to know from which file/files does "mount -v" reads the information. As I can see the information of mercury and venus in it.
Also I forgot to mention that after rebooting the server the "Stale NFS file handle" was not there. I thought the problem has been resolved. I didn't run the bdf after that and hence couldn't know the status. Yesterday when I run the bdf it showed me the error.
I can't shutdown the server again as it is linked with production and hence I want to resolve this online.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2002 05:20 PM
тАО06-18-2002 05:20 PM
Re: Stale NFS file handle
Reboot will help but in your case it is automounter that is creating problem.
Remove entry from /etc/auto.direct file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2002 05:23 PM
тАО06-18-2002 05:23 PM
Re: Stale NFS file handle
There is no /etc/auto.direct in the system.
Yes. I too believe that the reboot will help but last time the reboot has helped temporarily.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2002 10:03 PM
тАО06-18-2002 10:03 PM
Re: Stale NFS file handle
since you have covered most of the operating system files and have had a period of time without problem can I suggest that maybe you have a shell script or an application with a hard coded mount which is failing.
just a thought
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2002 04:14 AM
тАО06-19-2002 04:14 AM
Re: Stale NFS file handle
/sbin/init.d/nfs.client stop
/sbin/init.d/nfs.server stop
/sbin/init.d/nfs.core
Then edit the file:
/etc/rc.config.d/nfsconf
and set all these values to 0:
NFS_CLIENT=0
NFS_SERVER=0
AUTOMOUNT=0
START_MOUNTD=0
Next time you reboot, there will be no NFS services started. As mentioned, look in /etc/fstab for nfs and remove or comment those entries, and also look in /sbin/init.d for the name of the mountpoint or the name(s) of the remote system(s). If the mountpoint is not in fstab, then there must be an explicit mount command somewhere in startup. Also, remove the actual directory that the mountpoint uses to further aid in locating the 'lost' mount command.
NFS on production systems, as you've seen, is not very stable. Essentially, your production system is critcally dependent on the NFS servers as well as the network to these servers to always be up and running.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2002 05:27 AM
тАО06-19-2002 05:27 AM
Re: Stale NFS file handle
I have same problm and I fix it using lsof and umount.
Check this thread
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x898b107d277ad611abdb0090277a778c,00.html
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2002 04:32 PM
тАО06-19-2002 04:32 PM
Re: Stale NFS file handle
I don't find lsof command in /usr/local/bin.
Can you tell me from where can I get this?
Also I do require NFS mount as there are some more NFS entry in /etc/fstab and they are being used.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2002 04:36 PM
тАО06-19-2002 04:36 PM
Re: Stale NFS file handle
lsof can be downloaded from
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.61/
Here are its uses
To see all open files of a paricular process (via its pid):
# lsof -p
To see all open files associated with a command:
# lsof -c cron
...or by a logon name:
# lsof -u
# lsof -u
...or what process is using a TCP socket:
# lsof -i tcp:161
# lsof -i udp:161
Hope this helps
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2002 05:36 PM
тАО06-19-2002 05:36 PM
Re: Stale NFS file handle
I have downloaded the lsof but still not able to umount the "Stale NFS file handle" directory.
I will reboot server and closely observe this time.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2002 07:05 PM
тАО06-19-2002 07:05 PM
Re: Stale NFS file handle
How did you get on ?
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2002 07:14 PM
тАО06-19-2002 07:14 PM
Re: Stale NFS file handle
Have also found this
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B1031-90048/B1031-90048_top.html&con=/hpux/onlinedocs/B1031-90048/00/00/42-con.html&toc=/hpux/onlinedocs/B1031-90048/00/00/42-toc.html&searchterms=troubleshooting&queryid=20011001-124756
Regards
Steve