<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 5, 2018 at 7:33 AM, Ian Halliday <span dir="ltr">&lt;<a href="mailto:ihalliday@ndevix.com" target="_blank">ihalliday@ndevix.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>

    
<div><div class="m_-1051095817182750300io-ox-signature"><p>Hello,</p><p>I wanted to post this as a question to the group before we go launch it in a test environment. Will Gluster handle enabling sharding on an existing distributed-replicated environment, and is it safe to do? </p></div></div></blockquote><div>Yes it&#39;s safe but it would mean that only the files that are created since shard was enabled would be sharded, not the existing files.<br></div><div>If you want to shard the existing files, there are a couple of things you can do:<br><br></div><div>1. move the existing file to a local fs from your glusterfs volume and then move it back into the volume.<br></div><div>2. copy the existing file into a temporary file on the same volume and rename the file back to its original name.<br><br></div><div>You could try both on two test vms and go with the faster of the two approaches. And either way, you could do this one vm at a time.<br><br></div><div>-Krutika<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-1051095817182750300io-ox-signature"><p>The environment in question is a VM image storage cluster with some disk files starting to grow beyond the size of some of the smaller bricks.</p><span class="HOEnZb"><font color="#888888"><p><span style="font-family:&#39;Segoe UI&#39;,sans-serif">-- Ian</span></p></font></span></div></div>
 <br>______________________________<wbr>_________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a><br></blockquote></div><br></div></div>