Bug 765305 (GLUSTER-3573)

Summary: volume status command shows ONLINE even if the brick is OFFLINE
Product: [Community] GlusterFS Reporter: shylesh <shylesh>
Component: coreAssignee: Kaushal <kaushal>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: high    
Version: pre-releaseCC: gluster-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description shylesh 2011-09-16 11:36:07 UTC
1. Created a distribute volume with two bricks
2. Killed on of the brick process


 Bug
-----
volume status on the volume shows brick as online



===========================================================

[root@GVSA-GMCQA1 export]# ps -ef | grep gluster
root      8044     1  0 16:17 ?        00:00:00 /opt/glusterfs/3.3.0qa9/sbin/glusterfsd -s localhost --volfile-id two-brick.192.168.2.26.export-sdf-two-brick -p /etc/glusterd/vols/two-brick/run/192.168.2.26-export-sdf-two-brick.pid -S /tmp/84e2e05ccfa0146642456aab504628b9.socket --brick-name /export/sdf/two-brick -l /var/log/glusterfs/bricks/export-sdf-two-brick.log --brick-port 24018 --xlator-option two-brick-server.listen-port=24018
root      8053     1  0 16:17 ?        00:00:00 /opt/glusterfs/3.3.0qa9/sbin/glusterfs -f /etc/glusterd/nfs/nfs-server.vol -p /etc/glusterd/nfs/run/nfs.pid -l /var/log/glusterfs/nfs.log
root      8179 17824  0 16:18 pts/0    00:00:00 grep gluster
root     18195     1  0 Sep15 ?        00:00:18 /opt/glusterfs/3.3.0qa9/sbin/glusterd
[root@GVSA-GMCQA1 export]# kill -9 8044
[root@GVSA-GMCQA1 export]# ps -ef | grep gluster
root      8053     1  0 16:17 ?        00:00:00 /opt/glusterfs/3.3.0qa9/sbin/glusterfs -f /etc/glusterd/nfs/nfs-server.vol -p /etc/glusterd/nfs/run/nfs.pid -l /var/log/glusterfs/nfs.log
root      8309 17824  0 16:21 pts/0    00:00:00 grep gluster
root     18195     1  0 Sep15 ?        00:00:18 /opt/glusterfs/3.3.0qa9/sbin/glusterd


[root@GVSA-GMCQA1 export]#  gluster volume status two-brick
Brick status for volume: two-brick
Brick							Port	Online	PID
---------------------------------------------------------------------------
192.168.2.45:/two-brick					24014	Y	23782
---------------------------------------------------------------------------
192.168.2.26:/export/sdf/two-brick			24018	Y	8044

Comment 1 Anand Avati 2011-09-22 08:24:41 UTC
CHANGE: http://review.gluster.com/476 (glusterd now checks if a brick process is running to set online status,) merged in master by Vijay Bellur (vijay)