<div dir="ltr"><div dir="ltr"><div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 8, 2019, 6:31 PM Tom Fite &lt;<a href="mailto:tomfite@gmail.com" target="_blank">tomfite@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Thanks for the idea, Poornima. Testing shows that xfsdump and xfsrestore is much faster than rsync since it handles small files much better. I don&#39;t have extra space to store the dumps but I was able to figure out how to pipe the xfsdump and restore via ssh. For anyone else that&#39;s interested:<div><br></div><div>On source machine, run:</div><div><br></div><div>xfsdump -J - /dev/mapper/[vg]-[brick] | ssh root@[destination fqdn]  xfsrestore -J - [/path/to/brick]<br></div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">That&#39;s great. Is it possible for you to write a short summary on this in your blog or in the Gluster/blogs [1]? The summary would be very helpful for other users as well. If you could also include details on the approaches you explored and the time each would take for the 65 TB data. Thanks in advance.</div><div dir="auto"><br></div><div dir="auto">We will also see how we could incorporate this in replace brick/offline migration.</div><div dir="auto"><br></div><div dir="auto">[1] <a href="https://gluster.github.io/devblog/write-for-gluster">https://gluster.github.io/devblog/write-for-gluster</a></div><div dir="auto"><br></div><div dir="auto">Thanks,</div><div dir="auto">Poornima</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div></div><div><br></div><div>-Tom</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 1, 2019 at 9:56 PM Poornima Gurusiddaiah &lt;<a href="mailto:pgurusid@redhat.com" rel="noreferrer" target="_blank">pgurusid@redhat.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">You could also try xfsdump and xfsrestore if you brick filesystem is xfs and the destination disk can be attached locally? This will be much faster.<div dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto">Poornima</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 2, 2019, 12:05 AM Tom Fite &lt;<a href="mailto:tomfite@gmail.com" rel="noreferrer noreferrer" target="_blank">tomfite@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi all,<div><br></div><div>I have a very large (65 TB) brick in a replica 2 volume that needs to be re-copied from scratch. A heal will take a very long time with performance degradation on the volume so I investigated using rsync to do the brunt of the work.</div><div><br></div><div>The command:</div><div><br></div><div>rsync -av -H -X --numeric-ids --progress server1:/data/brick1/gv0 /data/brick1/<br></div><div><br></div><div>Running with -H assures that the hard links in .glusterfs are preserved, and -X preserves all of gluster&#39;s extended attributes.</div><div><br></div><div>I&#39;ve tested this on my test environment as follows:</div><div><br></div><div>1. Stop glusterd and kill procs</div><div>2. Move brick volume to backup dir</div><div>3. Run rsync</div><div>4. Start glusterd</div><div>5. Observe gluster status</div><div><br></div><div>All appears to be working correctly. Gluster status reports all bricks online, all data is accessible in the volume, and I don&#39;t see any errors in the logs.</div><div><br></div><div>Anybody else have experience trying this?</div><div><br></div><div>Thanks</div><div>-Tom</div></div></div>
_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org" rel="noreferrer noreferrer noreferrer" target="_blank">Gluster-users@gluster.org</a><br>
<a href="https://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://lists.gluster.org/mailman/listinfo/gluster-users</a></blockquote></div>
</blockquote></div>
</blockquote></div></div></div>
</div></div>