<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-NZ" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">A search reveals little definitive in the way of best practise for backing up and restoring glusterfs volumes.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I&#8217;m particularly interested in best practise for replicated volumes. Is there any recommended way that is both efficient and proven?<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">It seems that geo-replication, snapshotting and glusterfind all provide options. But what about a simple backup and restore of a brick using standard backup tools?<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">The question needs to be asked because our naïve use of a backup tool has created problems. These may be specific to our environment but our environment is unlikely to be ultra-special. We are using gluster 3.7 on CentOS 7.2 and a standard
 package install. <o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">An issue may be that we do not have native fuse installed. It seems that this is a recognised feature with Red Hat:
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=947830">https://bugzilla.redhat.com/show_bug.cgi?id=947830</a> .<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Use though only of glusterfs-fuse seems to result in replication only when the volume is accessed via gluster mechanisms. E.g. writing to an NFS mounted volume does result in the file being replicated across all replica nodes.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">However, creating a file directly in a brick (as would be normal in a backup restore) does not result in replication as claimed in
<a href="http://blog.gluster.org/category/volumes/">http://blog.gluster.org/category/volumes/</a> where it is supposedly demonstrated using touch. We also find that restarting the volume does not result in replication. Our volumes are indeed of type cluster/replicate.
 My guess is that the missing fuse package is the reason why.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">But it seems from tools like bitrot (which can seemingly detect and scrub data resulting from &#8216;&#8220;backend&#8221; tinkering of bricks&#8217;) that restoring to a brick directly may not be best practise.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Nevertheless, we require a means to restore a replicated volume from a backup copy and we need to be able to go back to a point in time and not rely on the last saved state (as in geo-replication). We also want to be able to restore single
 volumes and leave others as is. And we would like to avoid having to go through an intermediate backup/restore server where the volumes are mounted.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I am keen to know what others have found works well.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal">Paul<o:p></o:p></p>
</div>
</body>
</html>