<div dir="ltr"><div>Dear Ravi,</div><div><br></div><div>Ah! So it is implemented, just forgot the mount option. Great. I mounted the volume manually for now as you suggested:</div><div><br></div><div># glusterfs --process-name fuse --volfile-server=gluster03 --volfile-id=homes --localtime-logging /home</div><div><br></div><div>And the log in /var/log/glusterfs/home.log is in local time now. Thanks!</div><div><br></div><div>Looking forward to your trivial patch getting merged soon...<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 14, 2021 at 6:52 PM Ravishankar N <<a href="mailto:ravishankar.n@pavilion.io">ravishankar.n@pavilion.io</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 14, 2021 at 6:12 PM Alan Orth <<a href="mailto:alan.orth@gmail.com" target="_blank">alan.orth@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>I have seen that you can change the backend daemon logging since GlusterFS v3.12.0¹, and there appears to be an interactive --localtime-logging option for the glusterfs FUSE mount program, but there is no equivalent mount option listed in `man 8 mount.glusterfs`.<br></div><div><br></div><div>We are running GlusterFS 8.6.<br></div><div><br></div></div></blockquote><div> </div><div>When you call the mount helper with `mount -t gluster ...`, all it does is essentially run the glusterfs binary with the relevant arguments.</div><div>i.e. <i><b>mount -t glusterfs -o $OPTION $HOST:$VOLNAME /path/to/fuse_mount </b></i></div><div>is the same as manually running: <b>/bin/glusterfs --process-name fuse --volfile-server=$HOST --volfile-id=$VOLNAME --$OPTION /path/to/fuse_mount/</b></div><div><br></div><div>The following fix should expose the --localtime-logging OPTION to the mount helper:</div><div>---------------------------------------------------------------------------------------------------------</div><div><br></div><div>diff --git xlators/mount/fuse/utils/<a href="http://mount.glusterfs.in" target="_blank">mount.glusterfs.in</a> xlators/mount/fuse/utils/<a href="http://mount.glusterfs.in" target="_blank">mount.glusterfs.in</a><br>index ac4d94cb74..c894b1c531 100755<br>--- xlators/mount/fuse/utils/<a href="http://mount.glusterfs.in" target="_blank">mount.glusterfs.in</a><br>+++ xlators/mount/fuse/utils/<a href="http://mount.glusterfs.in" target="_blank">mount.glusterfs.in</a><br>@@ -189,6 +189,10 @@ start_glusterfs ()<br> cmd_line=$(echo "$cmd_line --global-threading");<br> fi<br> <br>+ if [ -n "$localtime_logging" ]; then<br>+ cmd_line=$(echo "$cmd_line --localtime-logging");<br>+ fi<br>+<br> #options with optional values start here<br> if [ -n "$fopen_keep_cache" ]; then<br> cmd_line=$(echo "$cmd_line --fopen-keep-cache=$fopen_keep_cache");<br>@@ -657,6 +661,9 @@ without_options()<br> "global-threading")<br> global_threading=1<br> ;;<br>+ "localtime-logging")<br>+ localtime_logging=1<br>+ ;;<br> # TODO: not sure how to handle this yet<br> "async"|"sync"|"dirsync"|\<br> "mand"|"nomand"|\<br></div><div>---------------------------------------------------------------------------------------------------------<br></div><div>I'll send a PR after testing. In the meantime, you can try mounting using eg:</div><div>/path/to/bin/glusterfs --process-name fuse --volfile-server=$HOST --volfile-id=$VOLNAME --localtime-logging /path/to/fuse_mount/ .<br></div><div><br></div><div>Hope this helps,</div><div>Ravi</div><div><br></div><div><br></div></div></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Alan Orth<br><a href="mailto:alan.orth@gmail.com" target="_blank">alan.orth@gmail.com</a><br><a href="https://picturingjordan.com" target="_blank">https://picturingjordan.com</a><br><a href="https://englishbulgaria.net" target="_blank">https://englishbulgaria.net</a><br><a href="https://mjanja.ch" target="_blank">https://mjanja.ch</a></div></div></div>