From owner-freebsd-ports-bugs@freebsd.org Tue Jul 21 18:36:05 2020 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1C72B364273 for ; Tue, 21 Jul 2020 18:36:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4BB6jx01WNz44Lr for ; Tue, 21 Jul 2020 18:36:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id F2FD9363F73; Tue, 21 Jul 2020 18:36:04 +0000 (UTC) Delivered-To: ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F2C76364670 for ; Tue, 21 Jul 2020 18:36:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BB6jw6D6Xz44GF for ; Tue, 21 Jul 2020 18:36:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B902222AB5 for ; Tue, 21 Jul 2020 18:36:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 06LIa40r032790 for ; Tue, 21 Jul 2020 18:36:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 06LIa4cn032789 for ports-bugs@FreeBSD.org; Tue, 21 Jul 2020 18:36:04 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 223671] net/glusterfs: glusterfs volume status not showing online Date: Tue, 21 Jul 2020 18:36:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-patch, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: daniel@morante.net X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jul 2020 18:36:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223671 Daniel Morante changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel@morante.net --- Comment #10 from Daniel Morante --- 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.=