On 12/28/2014 10:13 AM, tbenzvi at 3vgeomatics.com wrote:> Thanks Joe, I've read your blog post as well as your post regarding the > .glusterfs directory. > I found some unneeded duplicate files which were not being read > properly. I then deleted the link file from the brick. This always > removes the duplicate file from the listing, but the file does not > always become readable. If I also delete the associated file in the > .glusterfs directory on that brick, then some more files become > readable. However this solution still doesn't work for all files. > I know the file on the brick is not corrupt as it can be read directly > from the brick directory.For files that are not readable from the client, can you check if the file is readable from the .glusterfs/ path? What is the specific error that is seen while trying to read one such file from the client? Thanks, Vijay
tbenzvi at 3vgeomatics.com
2014-Dec-28 07:50 UTC
[Gluster-users] Hundreds of duplicate files
Hi Vijay, Yes the files are still readable from the .glusterfs path. There is no explicit error. However, trying to read a text file in python simply gives me null characters:>>> open('ott_mf_itab').readlines()['\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'] And reading binary files does the same --------- Original Message --------- Subject: Re: [Gluster-users] Hundreds of duplicate files From: "Vijay Bellur" <vbellur at redhat.com> Date: 12/27/14 9:57 pm To: tbenzvi at 3vgeomatics.com, gluster-users at gluster.org On 12/28/2014 10:13 AM, tbenzvi at 3vgeomatics.com wrote: > Thanks Joe, I've read your blog post as well as your post regarding the > .glusterfs directory. > I found some unneeded duplicate files which were not being read > properly. I then deleted the link file from the brick. This always > removes the duplicate file from the listing, but the file does not > always become readable. If I also delete the associated file in the > .glusterfs directory on that brick, then some more files become > readable. However this solution still doesn't work for all files. > I know the file on the brick is not corrupt as it can be read directly > from the brick directory. For files that are not readable from the client, can you check if the file is readable from the .glusterfs/ path? What is the specific error that is seen while trying to read one such file from the client? Thanks, Vijay -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20141228/bc53bec2/attachment.html>