<div dir="ltr"><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small"><span style="font-family:arial,sans-serif">On Fri, Dec 15, 2017 at 8:24 AM, John R. Shannon </span><span dir="ltr" style="font-family:arial,sans-serif"><<a href="mailto:john@johnrshannon.com" target="_blank">john@johnrshannon.com</a>></span><span style="font-family:arial,sans-serif"> wrote:</span><br></div><div class="gmail_extra"><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">I setup hammer filesystems on identical disk drives. I created a number<br>
of PFS that are mirrored. Over time, the storage allocation on the<br>
MASTER has remained constant while it continues to grow on the SLAVE as<br>
shown in the following:<br>
<br>
MASTER 5588G 1456G 4132G 26% /master<br>
SLAVE 5588G 2775G 2813G 50% /slave<br>
/master/pfs/@@-1:00002 5588G 1456G 4132G 26% /master/backups/dns<br>
/master/pfs/@@-1:00001 5588G 1456G 4132G 26%<br>
/master/backups/colleen<br>
/master/pfs/@@-1:00003 5588G 1456G 4132G 26%<br>
/master/backups/domain0<br>
/master/pfs/@@-1:00004 5588G 1456G 4132G 26% /master/backups/imap<br>
/master/pfs/@@-1:00005 5588G 1456G 4132G 26% /master<br>
<br>
...<br>
<br>
Am I missing a maintenance step that needs to be performed on the slave?</blockquote><div><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small">By default, the daily periodic script for hammer cleanup only works on mounted volumes, so that's why your unmounted slaves are not being cleaned up. You can tell it to clean up unmounted volumes by adding this line to /etc/periodic.conf:</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">daily_clean_hammer-pfslist="path_to_first_unmounted_pfs path_to_second_unmounted_pfs etc"</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small">The unfortunate side effect of this is that will cause it to stop cleaning up mounted PFSes, so I created a separate hammer cleanup script in /etc/periodic/daily that cleans up the mounted ones.</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small">Tim</div></div></div></div>