Bug 765305 (GLUSTER-3573) - volume status command shows ONLINE even if the brick is OFFLINE
Summary: volume status command shows ONLINE even if the brick is OFFLINE
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-3573
Product: GlusterFS
Classification: Community
Component: core
Version: pre-release
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: ---
Assignee: Kaushal
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-16 11:36 UTC by shylesh
Modified: 2011-09-25 06:52 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

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)


Note You need to log in before you can comment on or make changes to this bug.