Re: Can we know fileSystem event from GlusterFS ?

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

 



GlusterFS has changelog feature. More information can be found here:
https://github.com/gluster/glusterfs/blob/master/doc/features/geo-replication/libgfchangelog.md

However, changelog logs GFID (unique id of a file) and not the path name. Here are some pointers on how to get file path from GFID: https://github.com/gluster/glusterfs/blob/master/doc/debugging/gfid-to-path.md

Another way is to use inotify on brick mounts. inotify has it's own limitations of being not scalable and not being recursive. If you're lucky you might find some user space libraries that do implement recursive monitoring, which is a little tricky and prone to race conditions.
http://lwn.net/Articles/605128/

Regards,
 -Prashanth Pai

----- Original Message -----
From: "xiaoyu" <xiaoyu@xxxxxxxxxxx>
To: "gluster-users" <gluster-users@xxxxxxxxxxx>
Sent: Sunday, October 26, 2014 12:53:18 PM
Subject:  Can we know fileSystem event from GlusterFS ?

Hi, every one: 

we are using GlusterFS V3.5.2 and we are facing a problem of monitoring filechanges: 

Suppose we create a new file in a volume, can GlusterFS log it somewhere, informing things like : file add in column? 

Any suggestion will be appreciated,thanks. 



xiaoyu 


--------------------------------------------------------------------------------------------------- 
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is 
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this communication in error,please 
immediately notify the sender by return e-mail, and delete the original message and all copies from 
your system. Thank you. 
--------------------------------------------------------------------------------------------------- 

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





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

  Powered by Linux