[Bugs] [Bug 1569074] fatal: unable to access file: Stale file handle
bugzilla at redhat.com
bugzilla at redhat.com
Wed Jun 20 15:49:05 UTC 2018
https://bugzilla.redhat.com/show_bug.cgi?id=1569074
--- Comment #2 from g.amedick at uni-luebeck.de ---
Additional info, I dug around a bit with the gfid and this is the result (those
are the gfid's found in the logfile above):
# getfattr -n trusted.glusterfs.pathinfo -e text
/mnt/.gfid/f61909e4-cfbf-4802-af00-70ffb9e79d28
# file: mnt/.gfid/f61909e4-cfbf-4802-af00-70ffb9e79d28
trusted.glusterfs.pathinfo="(<DISTRIBUTE:$vol-dht>
<POSIX(/srv/glusterfs/bricks/DATA109/data):gluster01:/srv/glusterfs/bricks/DATA109/data/.glusterfs/f6/19/f61909e4-cfbf-4802-af00-70ffb9e79d28>)"
# getfattr -n trusted.glusterfs.pathinfo -e text
/mnt/.gfid/070f37a1-de0c-439b-97dd-ce5311988737
getfattr: mnt/.gfid/070f37a1-de0c-439b-97dd-ce5311988737: No such file or
directory
# getfattr -n glusterfs.gfid.string /mnt/$somepath
# file: mnt/$somepath
glusterfs.gfid.string="1d4a5ccc-986f-4051-aee9-d31dd2ca3775"
# getfattr -n glusterfs.gfid.string /mnt/$somepath/.git
# file: mnt/$somepath/.git
glusterfs.gfid.string="ca2dfd69-7466-4949-911a-b8874c364987"
# getfattr -n glusterfs.gfid.string /mnt/$somepath/.git/config
getfattr: /mnt/$somepath/.git/config: Stale file handle
# cat /mnt/$somepath/.git/config
cat: /mnt/$somepath/.git/config: Stale file handle
# cd /mnt/$somepath/.git/
/mnt/$somepath/.git# ls
branches COMMIT_EDITMSG config description FETCH_HEAD HEAD hooks index
info logs objects ORIG_HEAD packed-refs refs
/mnt/$somepath/.git# cat config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
...
[branch "master"]
remote = origin
merge = refs/heads/master
/mnt/$somepath/.git# getfattr -n glusterfs.gfid.string
/mnt/$somepath/.git/config
# file: mnt/$somepath/.git/config
glusterfs.gfid.string="f61909e4-cfbf-4802-af00-70ffb9e79d28"
/mnt/$somepath/.git# cd
# getfattr -n glusterfs.gfid.string /mnt/$somepath/.git/config
# file: mnt/$somepath/.git/config
glusterfs.gfid.string="f61909e4-cfbf-4802-af00-70ffb9e79d28"
# getfattr -n trusted.glusterfs.pathinfo -e text
/mnt/.gfid/f61909e4-cfbf-4802-af00-70ffb9e79d28
# file: mnt/.gfid/f61909e4-cfbf-4802-af00-70ffb9e79d28
trusted.glusterfs.pathinfo="(<DISTRIBUTE:$vol-dht>
<POSIX(/srv/glusterfs/bricks/DATA109/data):gluster01:/srv/glusterfs/bricks/DATA109/data/$somepath/.git/config>)"
It seems like cat-ing the file with a relative path name fixes the gfid.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list