Need Help to Fix Stale NFS File Handle

Jason Holtzapple ml at bitflip.net
Fri Feb 25 08:28:33 MST 2011


On 02/25/2011 08:23 AM, Mark Phillips wrote:
> I have two disks running in a Debian machine ( Linux version
> 2.6.26-1-686 (Debian 2.6.26-13lenny2) (dannf at debian.org
> <mailto:dannf at debian.org>) (gcc version 4.1.3 20080704 (prerelease)
> (Debian 4.1.2-25)) #1 SMP Fri Mar 13 18:08:45 UTC 2009). One disk has
> the OS, the other disk has lots of photos and the program gallery3
> (http://gallery.menalto.com/gallery_3_begins) to display them on the
> web. The disk controller channel for the photo disk died, but the os
> kept on running. I replaced the controller card, and now both drives are
> running. However, I am getting some stale NFS file handles on some of
> the images on the photo drive. I don't use NFS on this machine, or any
> machine on my network. However, the pictures with the stale NFS file
> handles do not display when I run gallery.
> 
> How should I fix this problem? Delete and re-install the offending
> pictures? Run fsck on the photos drive? Stop taking so many pictures? ;-)
> 
> Thanks!
> 
> Mark
> 
> These are the errors:
> 
> hammerhead:/home/mark# du -hs /backups
> du: cannot access `/backups/gallery3/var/resizes/11-01-2010/2010:11:01
> 08:11:50 295.JPG': Stale NFS file handle

This is strange - you shouldn't be getting these errors unless you are
an NFS client. Double check your /etc/fstab and /etc/exports files. If
that doesn't make sense post the output of these two commands to the list:

# grep nfs /etc/fstab
# egrep -v '^#' /etc/exports

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL: <http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20110225/fa78df64/attachment.pgp>


More information about the PLUG-discuss mailing list