Hello, deer glustefs experts:<br>I&#39;ve found that my cluster of only two nodes had ran into a big trouble. Here are some information about my glusterfs.<br><br>[root@yq35 ~]# gluster --version<br>glusterfs 3.2.6 built on Mar 22 2012 10:44:28<br>
Repository revision: git://<a href="http://git.gluster.com/glusterfs.git">git.gluster.com/glusterfs.git</a><br>Copyright (c) 2006-2011 Gluster Inc. &lt;<a href="http://www.gluster.com">http://www.gluster.com</a>&gt;<br>GlusterFS comes with ABSOLUTELY NO WARRANTY.<br>
You may redistribute copies of GlusterFS under the terms of the GNU General Public License.<br><br><br>[root@yq35 ~]# gluster volume info<br><br>Volume Name: volume1<br>Type: Replicate<br>Status: Started<br>Number of Bricks: 2<br>
Transport-type: tcp<br>Bricks:<br>Brick1: 10.67.15.33:/media/data1/brick1<br>Brick2: 10.67.15.35:/media/data1/brick1<br>Options Reconfigured:<br>features.quota: off<br><br><br><br>When i use &#39;peer status&#39; command, one of the nodes shows strange infomation as following:<br>
<br>[root@yq33 ~]# gluster peer status<br>Number of Peers: 2<br><br>Hostname: 10.67.15.33<br>Uuid: c213f7ab-18c1-40e1-85c8-dd7ae97fad03<br>State: Peer in Cluster (Connected)<br><br>Hostname: 10.67.15.35<br>Uuid: 98949cd6-2b61-4ba8-8b67-76d8b58d4ce8<br>
State: Peer in Cluster (Connected)<br><br>tip:yq33 has the address of 10.67.15.33<br><br><br>The same command, however, shows diffrent information on another node:<br><br>[root@yq35 ~]# gluster peer status<br>Number of Peers: 1<br>
<br>Hostname: 10.67.15.33<br>Uuid: c213f7ab-18c1-40e1-85c8-dd7ae97fad03<br>State: Accepted peer request (Connected)<br><br>tip:yq35 has the address of 10.67.15.35<br><br>I also find that there are two files in glusterfs&#39; work dir on yq33<br>
[root@yq33 ~]# ll /etc/glusterd/peers/<br>total 8<br>-rw-r--r-- 1 root root 72 Oct 25 00:11 98949cd6-2b61-4ba8-8b67-76d8b58d4ce8<br>-rw-r--r-- 1 root root 72 Aug 22 17:38 c213f7ab-18c1-40e1-85c8-dd7ae97fad03<br><br>[root@yq33 ~]# cat /etc/glusterd/peers/c213f7ab-18c1-40e1-85c8-dd7ae97fad03 <br>
uuid=c213f7ab-18c1-40e1-85c8-dd7ae97fad03<br>state=3<br>hostname1=10.67.15.33<br><br>[root@yq33 ~]# cat /etc/glusterd/peers/98949cd6-2b61-4ba8-8b67-76d8b58d4ce8 <br>uuid=98949cd6-2b61-4ba8-8b67-76d8b58d4ce8<br>state=3<br>
hostname1=10.67.15.35<br><br><br>but there is only one file on yq35<br>[root@yq35 ~]# ll /etc/glusterd/peers/c213f7ab-18c1-40e1-85c8-dd7ae97fad03 <br>-rw-r--r-- 1 root root 72 Oct 25 00:11 /etc/glusterd/peers/c213f7ab-18c1-40e1-85c8-dd7ae97fad03<br>
<br>[root@yq35 ~]# cat /etc/glusterd/peers/c213f7ab-18c1-40e1-85c8-dd7ae97fad03 <br>uuid=c213f7ab-18c1-40e1-85c8-dd7ae97fad03<br>state=4<br>hostname1=10.67.15.33<br><br>My question is:<br>Can i just modify these files (modify &#39;state&#39; to 3) and delete the file c213f7ab-18c1-40e1-85c8-dd7ae97fad03 on yq33 so that my cluster can be restored, and how? <br>
Thanks a lot.<br><br>Regards.<br><br><br>