* [gentoo-user] forcing file removal, fails with ESTALE
@ 2008-11-20 18:13 Andrey Vul
2008-11-20 18:33 ` Qian Qiao
0 siblings, 1 reply; 5+ messages in thread
From: Andrey Vul @ 2008-11-20 18:13 UTC (permalink / raw
To: gentoo-user
I'm trying to remove a file, yet it fails with ESTALE ("Stale NFS file
handle"). I'm thinking that this is due to a corrupt inode but fsck
fails to fix it.
Is /lib/rc/console/unicode suppoed to be NFS or do I need to do a long
hard fsck of /?
--
Andrey Vul
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] forcing file removal, fails with ESTALE
2008-11-20 18:13 [gentoo-user] forcing file removal, fails with ESTALE Andrey Vul
@ 2008-11-20 18:33 ` Qian Qiao
2008-11-21 0:15 ` Iain Buchanan
0 siblings, 1 reply; 5+ messages in thread
From: Qian Qiao @ 2008-11-20 18:33 UTC (permalink / raw
To: gentoo-user
On Thu, Nov 20, 2008 at 18:13, Andrey Vul <andrey.vul@gmail.com> wrote:
> I'm trying to remove a file, yet it fails with ESTALE ("Stale NFS file
> handle"). I'm thinking that this is due to a corrupt inode but fsck
> fails to fix it.
>
> Is /lib/rc/console/unicode suppoed to be NFS or do I need to do a long
> hard fsck of /?
> --
> Andrey Vul
>
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing in e-mail?
It's just a stale handle, i.e., some process opened the file, but the
file is then deleted, moved or renamed by another process.
If you know what process is holding the handle of the non-existent
file, restart it, if not, re-mount the file system.
-- Joe
--
There are 3 kinds of people in the world: those who can count, and
those who can't.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] forcing file removal, fails with ESTALE
2008-11-20 18:33 ` Qian Qiao
@ 2008-11-21 0:15 ` Iain Buchanan
2008-11-21 1:16 ` Andrey Vul
0 siblings, 1 reply; 5+ messages in thread
From: Iain Buchanan @ 2008-11-21 0:15 UTC (permalink / raw
To: gentoo-user
Qian Qiao wrote:
> On Thu, Nov 20, 2008 at 18:13, Andrey Vul<andrey.vul@gmail.com> wrote:
>> I'm trying to remove a file, yet it fails with ESTALE ("Stale NFS file
>> handle"). I'm thinking that this is due to a corrupt inode but fsck
>> fails to fix it.
>>
>> Is /lib/rc/console/unicode suppoed to be NFS or do I need to do a long
>> hard fsck of /?
>> --
>> Andrey Vul
>>
>> A: Because it messes up the order in which people normally read text.
>> Q: Why is top-posting such a bad thing?
>> A: Top-posting.
>> Q: What is the most annoying thing in e-mail?
>
> It's just a stale handle, i.e., some process opened the file, but the
> file is then deleted, moved or renamed by another process.
>
> If you know what process is holding the handle of the non-existent
> file, restart it, if not, re-mount the file system.
`umount -l` might help you there.
--
Iain Buchanan <iaindb at netspace dot net dot au>
WARNING:
Reading this fortune can affect the dimensionality of your
mind, change the curvature of your spine, cause the growth
of hair on your palms, and make a difference in the outcome
of your favorite war.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] forcing file removal, fails with ESTALE
2008-11-21 0:15 ` Iain Buchanan
@ 2008-11-21 1:16 ` Andrey Vul
2008-11-21 3:06 ` Iain Buchanan
0 siblings, 1 reply; 5+ messages in thread
From: Andrey Vul @ 2008-11-21 1:16 UTC (permalink / raw
To: gentoo-user
On Thu, Nov 20, 2008 at 19:15, Iain Buchanan <iaindb@netspace.net.au> wrote:
> Qian Qiao wrote:
>>
>> On Thu, Nov 20, 2008 at 18:13, Andrey Vul<andrey.vul@gmail.com> wrote:
>>>
>>> I'm trying to remove a file, yet it fails with ESTALE ("Stale NFS file
>>> handle"). I'm thinking that this is due to a corrupt inode but fsck
>>> fails to fix it.
>>>
>>> Is /lib/rc/console/unicode suppoed to be NFS or do I need to do a long
>>> hard fsck of /?
>>> --
>>> Andrey Vul
>>>
>>> A: Because it messes up the order in which people normally read text.
>>> Q: Why is top-posting such a bad thing?
>>> A: Top-posting.
>>> Q: What is the most annoying thing in e-mail?
>>
>> It's just a stale handle, i.e., some process opened the file, but the
>> file is then deleted, moved or renamed by another process.
>>
>> If you know what process is holding the handle of the non-existent
>> file, restart it, if not, re-mount the file system.
>
> `umount -l` might help you there.
Umount -l fixes inconsistent inodes / directory entries?
I thought only fsck -f could do that.
Anyways, I rebooted into bb (init=/bin/bb) and ran /sbin/jfs_fsck -f /dev/root .
That fixed the stale file handle.
You know it's fsck -f time when dmesg has "jfs_lookup: cannot read #####" lines.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] forcing file removal, fails with ESTALE
2008-11-21 1:16 ` Andrey Vul
@ 2008-11-21 3:06 ` Iain Buchanan
0 siblings, 0 replies; 5+ messages in thread
From: Iain Buchanan @ 2008-11-21 3:06 UTC (permalink / raw
To: gentoo-user
Andrey Vul wrote:
> On Thu, Nov 20, 2008 at 19:15, Iain Buchanan<iaindb@netspace.net.au> wrote:
>> Qian Qiao wrote:
>>> On Thu, Nov 20, 2008 at 18:13, Andrey Vul<andrey.vul@gmail.com> wrote:
>>>> I'm trying to remove a file, yet it fails with ESTALE ("Stale NFS file
>>>> handle"). I'm thinking that this is due to a corrupt inode but fsck
>>>> fails to fix it.
snip
>>> It's just a stale handle, i.e., some process opened the file, but the
>>> file is then deleted, moved or renamed by another process.
>>>
>>> If you know what process is holding the handle of the non-existent
>>> file, restart it, if not, re-mount the file system.
>>>
>> `umount -l` might help you there.
>>
> Umount -l fixes inconsistent inodes / directory entries?
> I thought only fsck -f could do that.
no, but it does help you unmount a file system if a process is holding a
file open, but you don't know which one, as per the suggestion I replied
to "remount the file system" :)
--
Iain Buchanan <iaindb at netspace dot net dot au>
<sj7trunks> so after updating glibc i just need to emerge -eup
<carpaski> -e == truck
<carpaski> -u == small cat
<carpaski> -eu == truck running over small cat
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-11-21 3:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-20 18:13 [gentoo-user] forcing file removal, fails with ESTALE Andrey Vul
2008-11-20 18:33 ` Qian Qiao
2008-11-21 0:15 ` Iain Buchanan
2008-11-21 1:16 ` Andrey Vul
2008-11-21 3:06 ` Iain Buchanan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox