gluster / glusterfs

Gluster Filesystem : Build your distributed storage in minutes
https://www.gluster.org
GNU General Public License v2.0
4.65k stars 1.08k forks source link

Missed documentation about cluster.rsync-hash-regex format #3623

Open olegkrutov opened 2 years ago

olegkrutov commented 2 years ago

What format has to be cluster.rsync-hash-regex partameter? perl, sed, etc? How to realize it is working properly? Nothing about it in docs.gluster.org... Any example (excluding "none" that is googled everywhere :) )

ps: since in my case rsync temp files look like ".name.ext.??????", I've set rsync-hash-regex as ".[a-zA-Z0-9-]+.[a-zA-Z0-9]+.[a-zA-Z0-9-_]{6}" and that passed without errors. But volume immediately had broken (mountpoint looks like a file with ????????? access mode, and errors in log:

2022-07-01 13:12:11.600174 +0000] E [MSGID: 101021] [graph.y:360:graphyyerror] 0-parser: syntax error: line 275 (volume 'distr-dht'): ".[a-zA-Z0-9"                                   
allowed tokens are 'volume', 'type', 'subvolumes', 'option', 'end-volume'() 
[2022-07-01 14:31:12.159819 +0000] E [MSGID: 101021] [graph.y:360:graphyyerror] 0-parser: syntax error: line 65 (volume 'distr-dht'): "-]+"                                            
allowed tokens are 'volume', 'type', 'subvolumes', 'option', 'end-volume'()                                                                                                            
[2022-07-01 14:31:12.159905 +0000] E [MSGID: 100026] [glusterfsd.c:2509:glusterfs_process_volfp] 0-: failed to construct the graph []

So, I think that there would be nice to have some validation and documentation...

stale[bot] commented 1 year ago

Thank you for your contributions. Noticed that this issue is not having any activity in last ~6 months! We are marking this issue as stale because it has not had recent activity. It will be closed in 2 weeks if no one responds with a comment here.