Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jul 2020 18:36:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 223671] net/glusterfs: glusterfs volume status not showing online
Message-ID:  <bug-223671-7788-AXaAghchVu@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-223671-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-223671-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223671

Daniel Morante <daniel@morante.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel@morante.net

--- Comment #10 from Daniel Morante <daniel@morante.net> ---
The quick fix for this problem is to make sure you have procfs mounted as p=
er
https://www.freebsd.org/doc/en_US.ISO8859-1/articles/linux-users/procfs.html

After doing so, it shows the brick as online.  This was tested on Gluster 7=
.6
and probably works for 8.0 (https://reviews.freebsd.org/D25037)

root@moon:~ # mount proc
root@moon:~ # df -h
Filesystem    Size    Used   Avail Capacity  Mounted on
/dev/da0p2     18G    2.4G     15G    14%    /
devfs         1.0K    1.0K      0B   100%    /dev
gluster        19G    461M     18G     2%    /gluster
/dev/fuse      19G    655M     18G     3%    /mnt/replicated
procfs        4.0K    4.0K      0B   100%    /proc

root@moon:~ # service glusterd restart
Stopping glusterd.
Waiting for PIDS: 490, 490.
Starting glusterd.
root@moon:~ # gluster volume status
Status of volume: replicated
Gluster process                             TCP Port  RDMA Port  Online  Pid
---------------------------------------------------------------------------=
---
Brick sun:/gluster/replicated               N/A       N/A        N       N/=
A=20=20
Brick earth:/gluster/replicated             N/A       N/A        N       N/=
A=20=20
Brick moon:/gluster/replicated              49152     0          Y       83=
1=20=20
Self-heal Daemon on localhost               N/A       N/A        Y       87=
7=20=20
Self-heal Daemon on earth                   N/A       N/A        N       N/=
A=20=20
Self-heal Daemon on sun.gluster.morante.com N/A       N/A        N       N/=
A=20=20

Task Status of Volume replicated
---------------------------------------------------------------------------=
---
There are no active volume tasks

The core of the problem appears to be in the "gf_is_pid_running" function i=
n=20
https://github.com/gluster/glusterfs/blob/v7.6/libglusterfs/src/common-util=
s.c#L4098

It needs to be patched with a FreeBSD equivalent that doesn't use "proc"

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-223671-7788-AXaAghchVu>