<div dir="auto"><div dir="auto">Hi all, </div><div dir="auto"><br></div>XFS has an online "defragment" which works by copying entire files to "free contiguous space" - so as long as you have free contiguous space, it will keep up. You can tell it to run for like an hour or two a night (watch it doesn't clash with your backups). There are various bugs around where files will get truncated.<div dir="auto"><br></div><div dir="auto">Zfs is okay but tbh it will suffer from the same issues going forward (fragmentation!).</div><div dir="auto"><br></div><div dir="auto">Btrfs - wouldn't bother</div><div dir="auto"><br></div><div dir="auto">I think ext4 has an online defragment too, but I haven't played with it in production. </div><div dir="auto"><br></div><div dir="auto">In general, XFS is my go-to, and we do use it a lot. I have used XFS for this purpose for over a decade in various implementations :-)</div><div dir="auto"><br></div><div dir="auto">Most file systems suck horribly if they have less then 20% capacity (obviously) but over time, when used as a backup and trimmed, you can't avoid having to copy files to defrag them. </div><div dir="auto"><br></div><div dir="auto">Cheers</div><div dir="auto">/Chris</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 4 Jan 2020, 5:10 pm Brad Campbell, <<a href="mailto:brad@fnarfbargle.com" target="_blank" rel="noreferrer">brad@fnarfbargle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Woooo. It finished<br>
<br>
srv:/mnt# time du -hcs *<br>
2.3M    30seafield_home<br>
..... <snip> .....<br>
3.3T    total<br>
<br>
real    945m18.422s<br>
user    2m35.516s<br>
sys     14m13.933s<br>
<br>
Only 15 hours. Now lets see how long a dump/restore takes.<br>
<br>
To put it in perspective. Raw sequential on this array is ~500MB/s. It <br>
took a couple of hours to clone the entire filesystem using dd.<br>
<br>
-- <br>
An expert is a person who has found out by his own painful<br>
experience all the mistakes that one can make in a very<br>
narrow field. - Niels Bohr<br>
_______________________________________________<br>
PLUG discussion list: <a href="mailto:plug@plug.org.au" rel="noreferrer noreferrer" target="_blank">plug@plug.org.au</a><br>
<a href="http://lists.plug.org.au/mailman/listinfo/plug" rel="noreferrer noreferrer noreferrer" target="_blank">http://lists.plug.org.au/mailman/listinfo/plug</a><br>
Committee e-mail: <a href="mailto:committee@plug.org.au" rel="noreferrer noreferrer" target="_blank">committee@plug.org.au</a><br>
PLUG Membership: <a href="http://www.plug.org.au/membership" rel="noreferrer noreferrer noreferrer" target="_blank">http://www.plug.org.au/membership</a><br>
</blockquote></div>