Re: [Gluster-users] FUSE mount option for local time logging?

2021-09-14 Thread Ravishankar N
On Tue, Sep 14, 2021 at 6:12 PM Alan Orth  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




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
Gluster-users@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-users


Re: [Gluster-users] Usage not updating in quotas

2021-09-14 Thread Alan Orth
Thank you for the feedback, Amar!

This is the first time I'm hearing of the Kadalu project. I will keep an
eye on that as well as Gluster 10.

Cheers,

On Thu, Sep 9, 2021 at 10:30 AM Amar Tumballi  wrote:

>
>
> On Thu, Sep 9, 2021 at 11:13 AM Alan Orth  wrote:
>
>> For what it's worth, I disabled quotas and re-enabled them. This of
>> course caused the limits I had set to be erased and GlusterFS to re-run the
>> find/stat on all bricks. Once it finished I was able to add a limit and it
>> was finally accurate.
>>
>> I'm still hoping someone can comment about this. Is it normal, what is
>> the status of quotas in GlusterFS 8.x, is there maintenance I should do,
>> etc?
>>
>>
> Glad to hear that it worked for you. In general, Quota feature is
> maintained not actively but based on any critical or CVE bug fixes right
> now.
>
> We needed quota feature for the kadalu project (https://kadalu.io or
> https://github.com/kadalu/kadalu), for which the crawling quota update
> turned out to be a major bottleneck. Hence we came up with 'simple-quota'
> approach which is based on ideas previously discussed around project quotas
> etc. The feature is already developed and used in kadalu releases, but
> waiting reviews in glusterfs. Hopefully would make it to glusterfs-10.
>
>
>> Thank you,
>>
>> On Thu, Sep 2, 2021 at 1:42 PM Alan Orth  wrote:
>>
>>> Yesterday I noticed that there were still several find / stat processes
>>> running on this node (there are two bricks for this volume on this host)
>>> after enabling quotas:
>>>
>>> # ps auxw | grep stat
>>> root  5875  0.0  0.0 112812   976 pts/0S+   13:28   0:00 grep
>>> --color=auto stat
>>> root 19846  3.9  0.0 121804  2624 ?SAug31  52:49
>>> /usr/bin/find . -exec /usr/bin/stat {} \ ;
>>> root 19856  3.1  0.0 121784  2536 ?SAug31  42:02
>>> /usr/bin/find . -exec /usr/bin/stat {} \ ;
>>>
>>> I waited for them to finish, but my quota information is still incorrect
>>> for the two directories I have enabled it on. I ran the quota_fsck.py
>>> script on two different hosts and every time it runs it has a different
>>> number of objects fixed:
>>>
>>> # ./quota_fsck.py --sub-dir aorth --fix-issues /mnt/homes-quota-fix
>>> /data/glusterfs/sdc/homes
>>>
>>> MARKING DIRTY: /data/glusterfs/sdc/homes/aorth
>>> stat on /mnt/homes-quota-fix/aorth
>>> Files verified : 9160
>>> Directories verified : 4670
>>> Objects Fixed : 2920
>>>
>>> MARKING DIRTY: /data/glusterfs/sdc/homes/aorth
>>> stat on /mnt/homes-quota-fix/aorth
>>> Files verified : 9160
>>> Directories verified : 4670
>>> Objects Fixed : 3487
>>>
>>> MARKING DIRTY: /data/glusterfs/sdc/homes/aorth
>>> stat on /mnt/homes-quota-fix/aorth
>>> Files verified : 9160
>>> Directories verified : 4670
>>> Objects Fixed : 3486
>>>
>>> What's going on here?
>>>
>>> Thank you for any help...
>>>
>>> On Wed, Sep 1, 2021 at 10:41 AM Alan Orth  wrote:
>>>
 Dear list,

 I enabled quotas and set hard limits for several directories on a
 distribute–replicate replica 2 volume yesterday. After setting the limits I
 did a du, a find/stat, and a recursive ls on the paths on the FUSE mount.
 The usage reported in `gluster volume quota  list` initially began
 to update, but now it's been about twelve hours and the reported usage is
 still much lower than actual usage.

 GlusterFS version 8.5 on CentOS 7. How can I force the quotas to update?

 Thank you,

 --
 Alan Orth
 alan.o...@gmail.com
 https://picturingjordan.com
 https://englishbulgaria.net
 https://mjanja.ch

>>>
>>>
>>> --
>>> Alan Orth
>>> alan.o...@gmail.com
>>> https://picturingjordan.com
>>> https://englishbulgaria.net
>>> https://mjanja.ch
>>>
>>
>>
>> --
>> Alan Orth
>> alan.o...@gmail.com
>> 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
>> Gluster-users@gluster.org
>> https://lists.gluster.org/mailman/listinfo/gluster-users
>>
>
>
> --
> --
> https://kadalu.io
> Container Storage made easy!
>
>

-- 
Alan Orth
alan.o...@gmail.com
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
Gluster-users@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-users


[Gluster-users] FUSE mount option for local time logging?

2021-09-14 Thread Alan Orth
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.o...@gmail.com
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
Gluster-users@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-users