<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Nov 17, 2013 at 7:41 PM, Vijay Bellur <span dir="ltr">&lt;<a href="mailto:vbellur@redhat.com" target="_blank">vbellur@redhat.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>On 11/16/2013 04:24 PM, Diego Lendoiro wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hello everyone;<br>
<br>
First I would like to congratulate all the gluster community for such a<br>
project. I have been using gluster for a while and I am very happy with<br>
it :-)<br>
<br>
I am facing the following situation in a gluster distributed volume<br>
deploy that currently uses gluster 3.4.0 and native gluster clients.<br>
<br>
For some reason, which I don&#39;t know yet, configuration files<br>
(/var/lib/glusterd/) have been damaged so the volumes config is lost but<br>
the data remains intact.<br>
</blockquote>
<br></div>
You could have possibly re-generated the configuration files by performing a volume set option:<br>
<br>
#gluster volume set &lt;volname&gt; network.ping-timeout 42<br>
<br>
would have created the configuration files back.<div><br></div></blockquote><div>Nice, I will keep this in mind for future crashes :-) </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
I have been advised in #gluster that I can recreate the volumes without<br>
losing the data. I have followed this procedure:<br>
<br>
0.Create a backup of each brick.<br>
1.Umounting the partitions that contain the gluster volumes.<br>
2.Create the distributed volume again in the same mount point that it<br>
was previously.<br>
3.Mount the data.<br>
4.Start the volume.<br>
<br>
Step 4 was outputing an error regarding the volume-id so I followed the<br>
instructions from Joe Julian&#39;s website:<br>
<a href="http://joejulian.name/blog/glusterfs-path-or-a-prefix-of-it-is-already-part-of-a-volume/" target="_blank">http://joejulian.name/blog/<u></u>glusterfs-path-or-a-prefix-of-<u></u>it-is-already-part-of-a-<u></u>volume/</a><br>


<br>
After a while I managed to start the volume and mount the data in my<br>
clients but I have some inconsistencies like some files are missing in<br>
some of the bricks.<br>
</blockquote>
<br></div>
Are files missing in the bricks or are they missing when seen from native gluster clients? If files are not being seen from the native clients, it is more likely that a glusterfsd server is not online. Does gluster volume status report that all processes are online for this volume?<br>
</blockquote><div><br></div><div>Seems like the processes are online:</div><div><br></div><div>gluster volume status</div><div>Status of volume: work</div><div>Gluster process<span class="" style="white-space:pre">                                                </span>Port<span class="" style="white-space:pre">        </span>Online<span class="" style="white-space:pre">        </span>Pid</div>
<div>------------------------------------------------------------------------------</div><div>Brick st0:/mnt/shared/work<span class="" style="white-space:pre">                                </span>49152<span class="" style="white-space:pre">        </span>Y<span class="" style="white-space:pre">        </span>18450</div>
<div>Brick st1:/mnt/shared/work<span class="" style="white-space:pre">                                </span>49152<span class="" style="white-space:pre">        </span>Y<span class="" style="white-space:pre">        </span>12370</div><div>NFS Server on localhost<span class="" style="white-space:pre">                                        </span>2049<span class="" style="white-space:pre">        </span>Y<span class="" style="white-space:pre">        </span>18598</div>
<div>NFS Server on st1<span class="" style="white-space:pre">                                        </span>2049<span class="" style="white-space:pre">        </span>Y<span class="" style="white-space:pre">        </span>12575</div><div> </div><div>There are no active volume tasks</div>
<div><br></div><div><br></div><div>Since I have backed up all the data in two usb disks I am considering to recreate again the volumes and restore from backups.</div><div><br></div><div>Thanks for all the help Vijay :-)</div>
<div><br></div><div>Regards. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<br>
Regards,<br>
Vijay<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Diego Lendoiro <br><br><br></div>
</div></div>