July 16, 20214 yr 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.
July 16, 20214 yr Community Expert 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
July 16, 20214 yr Author 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.
July 16, 20214 yr Community Expert 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.
July 16, 20214 yr Author 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.
October 10, 20223 yr 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?
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.