Re: How to resolve gfid (and .glusterfs symlink) for a deleted file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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 for directories. For files it will be hardlinks. If the volume has replicate, you have the file even on the other brick in replication, so you can find the gfid. Accessing this file from mount will try to re-create the file, but the linking will fail because the rogue link still exists.

If your system doesn't have hardlinks, you can probably do a 'find' for files with link-count as '1'

Pranith

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro
_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://supercolony.gluster.org/mailman/listinfo/gluster-devel

_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://supercolony.gluster.org/mailman/listinfo/gluster-devel




[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux