Re: [Gluster-devel] How to resolve gfid (and .glusterfs symlink) for a deleted file

2014-11-21 Thread Nux!
Hi Ben, I have thousands of entries under /your/brick/directory/.glusterfs .. find would return too many results. How do I find the one I'm looking for? :-) -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro - Original Message - From: Ben England

Re: [Gluster-devel] How to resolve gfid (and .glusterfs symlink) for a deleted file

2014-11-21 Thread Ben England
Nux, Those thousands of entries all would match -links 2 but not -links 1 The only entry in .glusterfs that would match is the entry where you deleted the file from the brick. That's how hardlinks work - when you create a regular file, the link count is increased to 1 (since the directory

Re: [Gluster-devel] How to resolve gfid (and .glusterfs symlink) for a deleted file

2014-11-21 Thread Nux!
Fascinating, thanks, it indeed worked. -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro - Original Message - From: Ben England bengl...@redhat.com To: Nux! n...@li.nux.ro Cc: Gluster Devel gluster-devel@gluster.org Sent: Friday, 21 November, 2014 16:20:19

Re: [Gluster-devel] How to resolve gfid (and .glusterfs symlink) for a deleted file

2014-11-21 Thread Justin Clift
On Fri, 21 Nov 2014 11:20:19 -0500 (EST) Ben England bengl...@redhat.com wrote: Nux, Those thousands of entries all would match -links 2 but not -links 1 The only entry in .glusterfs that would match is the entry where you deleted the file from the brick. That's how hardlinks work - when

Re: [Gluster-devel] How to resolve gfid (and .glusterfs symlink) for a deleted file

2014-11-21 Thread Pranith Kumar Karampuri
On 11/21/2014 09:04 PM, Nux! wrote: Hi, I deleted a file by mistake in a brick. I never managed to find out its gfid so now I have a rogue symlink in .glusterfs pointing to it (if I got how it works). Any way I can discover which is this file and get rid of it? symlinks exist in .glusterfs

Re: [Gluster-devel] How to resolve gfid (and .glusterfs symlink) for a deleted file

2014-11-21 Thread Pranith Kumar Karampuri
On 11/21/2014 09:50 PM, Ben England wrote: Nux, Those thousands of entries all would match -links 2 but not -links 1 The only entry in .glusterfs that would match is the entry where you deleted the file from the brick. That's how hardlinks work - when you create a regular file, the link

Re: [Gluster-devel] How to resolve gfid (and .glusterfs symlink) for a deleted file

2014-11-21 Thread Pranith Kumar Karampuri
On 11/22/2014 12:10 PM, Pranith Kumar Karampuri wrote: On 11/21/2014 09:50 PM, Ben England wrote: Nux, Those thousands of entries all would match -links 2 but not -links 1 The only entry in .glusterfs that would match is the entry where you deleted the file from the brick. That's how