Dear list, Troubleshooting issues related to storage can be very frustrating because GlusterFS uses UTC time by default and other system and application logs use local time. This makes it complicated to correlate issues between logs. 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`. We are running GlusterFS 8.6. Thank you, ? https://github.com/gluster/glusterfs/commit/3af53f8c39181b83cfff4a925cfca8750cfcf465 -- Alan Orth alan.orth at gmail.com https://picturingjordan.com https://englishbulgaria.net https://mjanja.ch -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20210914/6f944028/attachment.html>
Ravishankar N
2021-Sep-14 15:52 UTC
[Gluster-users] FUSE mount option for local time logging?
On Tue, Sep 14, 2021 at 6:12 PM Alan Orth <alan.orth at gmail.com> wrote:> > 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`. > > We are running GlusterFS 8.6. > >When you call the mount helper with `mount -t gluster ...`, all it does is essentially run the glusterfs binary with the relevant arguments. i.e. *mount -t glusterfs -o $OPTION $HOST:$VOLNAME /path/to/fuse_mount * is the same as manually running: */bin/glusterfs --process-name fuse --volfile-server=$HOST --volfile-id=$VOLNAME --$OPTION /path/to/fuse_mount/* The following fix should expose the --localtime-logging OPTION to the mount helper: --------------------------------------------------------------------------------------------------------- diff --git xlators/mount/fuse/utils/mount.glusterfs.in xlators/mount/fuse/utils/mount.glusterfs.in index ac4d94cb74..c894b1c531 100755 --- xlators/mount/fuse/utils/mount.glusterfs.in +++ xlators/mount/fuse/utils/mount.glusterfs.in @@ -189,6 +189,10 @@ start_glusterfs () cmd_line=$(echo "$cmd_line --global-threading"); fi + if [ -n "$localtime_logging" ]; then + cmd_line=$(echo "$cmd_line --localtime-logging"); + fi + #options with optional values start here if [ -n "$fopen_keep_cache" ]; then cmd_line=$(echo "$cmd_line --fopen-keep-cache=$fopen_keep_cache"); @@ -657,6 +661,9 @@ without_options() "global-threading") global_threading=1 ;; + "localtime-logging") + localtime_logging=1 + ;; # TODO: not sure how to handle this yet "async"|"sync"|"dirsync"|\ "mand"|"nomand"|\ --------------------------------------------------------------------------------------------------------- I'll send a PR after testing. In the meantime, you can try mounting using eg: /path/to/bin/glusterfs --process-name fuse --volfile-server=$HOST --volfile-id=$VOLNAME --localtime-logging /path/to/fuse_mount/ . Hope this helps, Ravi -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20210914/55e4c352/attachment.html>