<div dir="ltr"><div dir="ltr">Comments inline.<div><br></div><div>Regards,<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><p style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-weight:bold;margin:0px;padding:0px;font-size:14px;text-transform:capitalize"><span>Vinayak</span> <span>Papnoi</span><span style="text-transform:uppercase;color:rgb(170,170,170);margin:0px"></span></p><p style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-size:12px;margin:0px;text-transform:capitalize"><span>Associate Quality Engineer</span></p><p style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;margin:0px 0px 4px;font-size:12px"><a href="https://www.redhat.com/" style="color:rgb(0,136,206);margin:0px" target="_blank">Red Hat<span></span></a></p><div style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-size:medium;margin-bottom:4px"></div><p style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;margin:0px;font-size:12px"><span style="margin:0px;padding:0px"><a href="mailto:vpapnoi@redhat.com" style="color:rgb(0,0,0);margin:0px" target="_blank">vpapnoi@redhat.com</a> </span> <span><br>M: <a href="tel:91-9702904495" style="color:rgb(0,0,0);margin:0px" target="_blank">91-9702904495</a> </span> <span>IM: <span>vpapnoi</span></span></p><div style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-size:medium;margin-top:12px"><table border="0"><tbody><tr><td width="100px"><a href="https://www.redhat.com/" target="_blank"><img src="https://marketing-outfit-prod-images.s3-us-west-2.amazonaws.com/f5445ae0c9ddafd5b2f1836854d7416a/Logo-RedHat-Email.png" width="90" height="auto"></a></td></tr></tbody></table></div><table border="0"><tbody><tr></tr></tbody></table></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 26, 2019 at 6:12 PM Dmitry Filonov <<a href="mailto:filonov@hkl.hms.harvard.edu">filonov@hkl.hms.harvard.edu</a>> 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>Hi, <br></div><div> am really new to gluster and have couple question that I hope will be really easy to answer. Just couldn't find anything on that myself. <br></div><div><br></div><div>I did set up replica 3 gluster over 3 nodes with 2TB SSD in each node. <br></div><div>To have snapshot functionality I have created thin pool of the size of VG (1.82TB) and then 1.75TB thin LVM inside on each of the bricks. <br></div><div>It worked just fine until I scheduled creating hourly and daily snapshots on that gluster volume. In less than 2 days my thin volume got full and crashed. <br></div><div>Not refused creating new snapshots, but just died as LVM couldn't perform any operations there anymore. <br></div><div>So my first question is how to prevent this from happening. I could create smaller thin LVM, but I still have no control how much space I would need for snapshots. I was hoping to see some warnings and errors while creeating snapshots, but not failed LVM/Gluster. <br></div></div></blockquote><div><br></div><div>Newly created snapshots will occupy some data and metadata space in LVM. So the more snapshots you have, the more space will be utilized.</div><div><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><br></div><div>The second question is related but not that important. Is there a way to schedule snapshot removal in cron? gluster snapshot delete requires interactive confirmation and I don't see any flag to auto-confirm snapshot removal. <br></div></div></blockquote><div><br></div><div>As of now, No. There isn't any option to schedule a removal of the snapshot. As for auto-confirmation of any command in gluster, '--mode=script' at the end of the command should work.</div><div>Although, there is a snapshot config option "<b>auto-delete</b>" which, when enabled, will <b>delete</b> the oldest snapshot <b>after crossing the snap-max-soft-limit</b> (which is a set percentage of the snap-max-hard-limit). </div><div><br></div><div># gluster snapshot config<br></div><div><br>Snapshot System Configuration:<br>snap-max-hard-limit : 256<br>snap-max-soft-limit : 90%<br>auto-delete : enable<br>activate-on-create : disable<br><br>Snapshot Volume Configuration:<br><br>Volume : <volname><br>snap-max-hard-limit : 256<br>Effective snap-max-hard-limit : 256<br>Effective snap-max-soft-limit : 230 (90%)<br></div><div> </div><div>Usage:<br>snapshot config [volname] ([snap-max-hard-limit <count>] [snap-max-soft-limit <percent>]) | ([auto-delete <enable|disable>])| ([activate-on-create <enable|disable>])<br></div><div><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></div><div><br></div><div>Thank you, <br></div><div><br></div><div>Fil<br></div><div><div><div dir="ltr" class="gmail-m_-6229792478398630762gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br></div><div dir="ltr">--</div><div dir="ltr">Dmitry Filonov<div>Linux Administrator</div><div>SBGrid Core | <span style="font-size:12.8px">Harvard Medical School</span></div><div>250 Longwood Ave, SGM-114</div><div>Boston, MA 02115</div></div></div></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
<a href="https://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">https://lists.gluster.org/mailman/listinfo/gluster-users</a></blockquote></div></div>