<div dir="ltr">Put small files to BDB?<br><br><div class="gmail_quote">2009/4/3 William Hanwoody <span dir="ltr">&lt;<a href="mailto:hanwoody@gmail.com">hanwoody@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
ls -lR is too slowly if we have billions of small files!<br>
<br>
$B:_(B 2009$BG/(B4$B7n(B3$BF|(B $B@14|8^!$(BStas Oskin $B<LF;!'(B<br>
<div><div></div><div class="h5">&gt; Hi.<br>
&gt;<br>
&gt; This is an interesting topic indeed.<br>
&gt;<br>
&gt; I&#39;m planning to have each server ping it&#39;s AFR pair, and if one of them<br>
&gt; goes down, the moment it comes up, to run ls -lR on the mount.<br>
&gt;<br>
&gt; Perhaps others can share additional ideas?<br>
&gt;<br>
&gt; Regards.<br>
&gt;<br>
&gt; 2009/4/2 Cory Meyer &lt;<a href="mailto:cory.meyer@gmail.com">cory.meyer@gmail.com</a>&gt;<br>
&gt;<br>
&gt; &gt; Has anyone found a decent way out there to monitor GlusterFS volumes?<br>
&gt; &gt; I&#39;m currently using Nagios and Cacti to take care of basic CPU, Load,<br>
&gt; &gt; Memory, and raw Disk I/O. &nbsp; I need to monitor GlusterFS status and making<br>
&gt; &gt; sure all volumes are available..<br>
&gt; &gt;<br>
&gt; &gt; My test environment is 6 servers with 6 AFR volumes which are each shared<br>
&gt; &gt; between those 2 servers. &nbsp;All volumes are mounted on each server.<br>
&gt; &gt;<br>
&gt; &gt; The checks I&#39;m testing out so far include a simple Bash script that<br>
&gt; &gt; writes the current Unix timestamp and hostname to a file once a minute.<br>
&gt; &gt; This is done by each server on only the volumes that they store.<br>
&gt; &gt; &nbsp; &nbsp;echo &quot;$(uname -n):$(date +%s)&quot; &gt; /mnt/gluster01/CHECK_FILE<br>
&gt; &gt;<br>
&gt; &gt; The Nagios NRPE daemon would then execute a Perl script on each of the<br>
&gt; &gt; clients. &nbsp; This script goes thorugh each of the Gluster mount points<br>
&gt; &gt; comparing the timestamps in the CHECK_FILE to the current system time<br>
&gt; &gt; alarming if the timestamp is off by more than a minute. &nbsp;Another test<br>
&gt; &gt; which hasn&#39;t been implimented was checking the contents of the CHECK_FILE<br>
&gt; &gt; &nbsp;with the data that is on the raw disk.<br>
&gt; &gt;<br>
&gt; &gt; Bash code to write timestamps and executed via cron once a minute.<br>
&gt; &gt; (write_timestamps.sh)<br>
&gt; &gt; <a href="http://glusterfs.pastebin.com/m5a220a6" target="_blank">http://glusterfs.pastebin.com/m5a220a6</a><br>
&gt; &gt;<br>
&gt; &gt; Perl code to compare the timestamps which is executed on the client.<br>
&gt; &gt; (check_glusterfs_mounts.pl)<br>
&gt; &gt; <a href="http://glusterfs.pastebin.com/m2f057a77" target="_blank">http://glusterfs.pastebin.com/m2f057a77</a><br>
&gt; &gt;<br>
&gt; &gt; Any ideas/questions/comments?<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Gluster-users mailing list<br>
&gt; &gt; <a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
&gt; &gt; <a href="http://zresearch.com/cgi-bin/mailman/listinfo/gluster-users" target="_blank">http://zresearch.com/cgi-bin/mailman/listinfo/gluster-users</a><br>
<br>
<br>
</div></div></blockquote></div></div>