patmanRR Posted July 16, 2021 Share Posted July 16, 2021 Hi, I would like to check if btrfs' compression is enabled and if not enable it. I tried looking in /etc/fstab but the disks are not mounted there. I also googled about it but did not find a solution, so can some one please let me know how to do it (or if for some reason it is not supported) Thanks a priori. Quote Link to comment
JorgeB Posted July 16, 2021 Share Posted July 16, 2021 Btrfs compression is not enable by default, and there are no mount options in Unraid, you'd need to do it manually after array mount, by remounting with compression enable or by setting "chattr +c" to a folder/share, all newly written files/folders inside will then inherit compression, more info here: https://btrfs.wiki.kernel.org/index.php/Compression Quote Link to comment
patmanRR Posted July 16, 2021 Author Share Posted July 16, 2021 OK but isn't there a way to automate this option? sth like adding the required command in rc.local for example? I am familiar with linux in general (also slackware) but i am missing some knowledge on unraid specifics. Quote Link to comment
JorgeB Posted July 16, 2021 Share Posted July 16, 2021 4 minutes ago, patmanRR said: OK but isn't there a way to automate this option? Not that I know of, but if use chattr +c you only need to do it once for any share/folder. Quote Link to comment
patmanRR Posted July 16, 2021 Author Share Posted July 16, 2021 To begin with, I compressed all my files. I changed the attributes as you told me and I will see how it goes, if I have to manually run some command etc. Thanks for the info. Quote Link to comment
NLS Posted October 10, 2022 Share Posted October 10, 2022 Can I resurrect this thread and ask how this ended up? Did it work properly? Did the performance improve or became worse? Other gains or losses? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.