Dear Ravi,

Ah! So it is implemented, just forgot the mount option. Great. I mounted
the volume manually for now as you suggested:

# glusterfs --process-name fuse --volfile-server=gluster03
--volfile-id=homes --localtime-logging /home

And the log in /var/log/glusterfs/home.log is in local time now. Thanks!

Looking forward to your trivial patch getting merged soon...

On Tue, Sep 14, 2021 at 6:52 PM Ravishankar N <[email protected]>
wrote:

>
>
> On Tue, Sep 14, 2021 at 6:12 PM Alan Orth <[email protected]> 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
>
>
>

-- 
Alan Orth
[email protected]
https://picturingjordan.com
https://englishbulgaria.net
https://mjanja.ch
________



Community Meeting Calendar:

Schedule -
Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC
Bridge: https://meet.google.com/cpu-eiue-hvk
Gluster-users mailing list
[email protected]
https://lists.gluster.org/mailman/listinfo/gluster-users

Reply via email to