[Gluster-users] FUSE mount option for local time logging?
Ravishankar N
ravishankar.n at pavilion.io
Tue Sep 14 15:52:47 UTC 2021
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>
More information about the Gluster-users
mailing list