Re: Btrfs best practices: defrag?
Hello,
On Wed, Jan 26, 2022 at 08:38:41PM +0000, piorunz wrote:
> My current fstab mounting:
>
> noatime,space_cache=v2,compress-force=zstd:3 0 2
>
> Will autodefrag break COW files? Like I copy paste a file and I save
> space, but defrag with destroy this space saving?
Yes, I believe so. That is, if you have files sharing extents (like
if you de-duplicated them or did a "cp --reflink=always") and defrag
touches those files, it will undo the extent sharing.
> Also, will autodefrag compress files automatically, as mount option
> enforces (compress-force=zstd:3)?
Yes.
> Any suggestions welcome.
If you're not relying on extent sharing then I'd think that
automated defrag is okay.
Cheers,
Andy
--
https://bitfolk.com/ -- No-nonsense VPS hosting
Reply to: