prpr
Well-Known Member
One of my boxes has stopped running all auto-unprotect and subsequent processing.
I could just have rebooted but I like to know why, so after much debugging it seems to come down to the [system inuse] function stopping everything and auto-unprotect spinning in a 30s delay loop for ever.
This in turn was caused by lsof chucking out weird messages, which were nothing to do with the file it was attempting to check for:
I have no idea what this stale NFS file handle business is - Humax3 is my other HDR foxlink-ed to this one - or how to get rid of it.
But lsof does seem very chatty and rather fragile to be used in scripted functions.
So now I will have to reboot.
I could just have rebooted but I like to know why, so after much debugging it seems to come down to the [system inuse] function stopping everything and auto-unprotect spinning in a 30s delay loop for ever.
This in turn was caused by lsof chucking out weird messages, which were nothing to do with the file it was attempting to check for:
Code:
lsof: WARNING: can't stat() nfs file system /media/Humax3
Output information may be incomplete.
humax ~ # ls -la /media/
ls: /media/Humax3: Stale NFS file handle
drwxr-xr-x 4 root root 140 Jun 17 12:44 .
drwxr-xr-x 18 root root 183 Apr 19 20:02 ..
lrwxrwxrwx 1 root root 17 Jan 1 2000 My Music -> /mnt/hd2/My
Music
lrwxrwxrwx 1 root root 17 Jan 1 2000 My Photo -> /mnt/hd2/My
Photo
lrwxrwxrwx 1 root root 17 Jan 1 2000 My Video -> /mnt/hd2/My
Video
drwx------ 2 root root 4096 Apr 10 23:32 drive1
humax ~ # mkdir /media/Humax3
mkdir: can't create directory '/media/Humax3': File exists
humax ~ # ls -la /media/Humax3
ls: /media/Humax3: Stale NFS file handle
humax ~ # service nfs stop
Stopping nfs...
Done.
humax ~ # ls -la /media/Humax3
ls: /media/Humax3: Stale NFS file handle
But lsof does seem very chatty and rather fragile to be used in scripted functions.
So now I will have to reboot.