[Bug 223671] net/glusterfs: glusterfs volume status not showing online

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jul 21 18:36:05 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223671

Daniel Morante <daniel at morante.net> changed:

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

--- Comment #10 from Daniel Morante <daniel at morante.net> ---
The quick fix for this problem is to make sure you have procfs mounted as per
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 at moon:~ # mount proc
root at 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 at moon:~ # service glusterd restart
Stopping glusterd.
Waiting for PIDS: 490, 490.
Starting glusterd.
root at 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  
Brick earth:/gluster/replicated             N/A       N/A        N       N/A  
Brick moon:/gluster/replicated              49152     0          Y       831  
Self-heal Daemon on localhost               N/A       N/A        Y       877  
Self-heal Daemon on earth                   N/A       N/A        N       N/A  
Self-heal Daemon on sun.gluster.morante.com N/A       N/A        N       N/A  

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 in 
https://github.com/gluster/glusterfs/blob/v7.6/libglusterfs/src/common-utils.c#L4098

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

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


More information about the freebsd-ports-bugs mailing list