<div dir="ltr">Adding the list, in order to have other people&#39;s opinions...<div><br></div><div>Today, the Monday after day light saving time change, I have only half a neuron on duty, so, &quot;reply to all&quot; is a task next-to-impossible.<br>
<br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Carlos Capriotti</b> <span dir="ltr">&lt;<a href="mailto:capriotti.carlos@gmail.com">capriotti.carlos@gmail.com</a>&gt;</span><br>
Date: Mon, Mar 31, 2014 at 2:50 PM<br>Subject: Re: [Gluster-users] Capturing config in a file<br>To: Steve Thomas &lt;<a href="mailto:sthomas@rpstechnologysolutions.co.uk">sthomas@rpstechnologysolutions.co.uk</a>&gt;<br><br>
<br><div dir="ltr">Steve:<div><br></div><div>Capturing config on a file CAN be done, BUt, using that config is another story.</div><div><br></div><div>What I did when I needed it:</div><div><br></div><div><br></div><div><br>
</div>
<div>gluster volume info &lt;yourvolumenamehere&gt; &gt;&gt; glusterconf.txt</div><div><br></div><div><br></div><div>next edit that file, trimming whatever unnecessary info it has, untill it looks like this:</div><div><br>

</div><div><br></div><div><br></div><div><div>nfs.trusted-sync on</div><div>nfs.addr-namelookup off</div><div>nfs.nlm off</div><div>network.ping-timeout 20</div><div>performance.quick-read off</div><div>performance.read-ahead off</div>

<div>performance.io-cache off</div><div>performance.stat-prefetch off</div><div>cluster.eager-lock enable</div><div>network.remote-dio on</div><div>performance.cache-max-file-size 2MB</div><div>performance.cache-refresh-timeout 4</div>

<div>performance.cache-size 1GB</div><div>performance.write-behind-window-size 4MB</div><div>performance.io-thread-count 32</div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div>

<div>And then use this very simple script, using your glusterconf.txt file as a parameter,  to duplicate your settings on your volume:</div><div><br></div><div><div>#!/bin/bash</div><div><br></div><div>while read line; do</div>

<div>        echo $line</div><div>        gluster volume set vmdata $line</div><div>done &lt; $1<br></div><div></div></div><div><br></div><div>Of course there is a lot of room for improvement, but that gets the job done.</div>

<div><br></div><div><br></div><div>Cheers, </div><div> <br></div><div><br></div></div></div></div></div>