BTRFS Issues, or Confusion, on Disk Space and Compression
Posted: Wed Apr 05, 2017 11:06 am
- Consider myself kind of a newbie on Linux since I'm a heavy Win and Cisco admin, but trying to learn fast. Decided to start with a NAS, decided that BTRFS was probably the right choice for my needs vs ZFS or ext4. So I gravitated to Linux Mint for that and the desktop.
- My goal here was to share a 2TB disk for backups using Samba and NFS using compression. Dedup would be nice.
- I created the BTRFS partition, mounted it using the compress-force=zlib option, and shared it out. So I copied 50GB of random, not compressed, backup data to it using Samba from a Win10 PC.
- Per my research to check it compression is on I checked dmesg and it does say "BTRFS info force zlib compression", but I also get below it a few lines below it "cgroup: new mount options do not match the existing superblock, will be ignored", maybe a different issue I couldn't figure out
- So I decided to see if I could tell if my 50GB of data was compressed and how much, which lead me to the "BTRFS filesystem df /mnt/Shared" command which is showing about 85GB used. What's the deal with that? Can someone point me in the right direction to why this is?
Thanks!
- My goal here was to share a 2TB disk for backups using Samba and NFS using compression. Dedup would be nice.
- I created the BTRFS partition, mounted it using the compress-force=zlib option, and shared it out. So I copied 50GB of random, not compressed, backup data to it using Samba from a Win10 PC.
- Per my research to check it compression is on I checked dmesg and it does say "BTRFS info force zlib compression", but I also get below it a few lines below it "cgroup: new mount options do not match the existing superblock, will be ignored", maybe a different issue I couldn't figure out
- So I decided to see if I could tell if my 50GB of data was compressed and how much, which lead me to the "BTRFS filesystem df /mnt/Shared" command which is showing about 85GB used. What's the deal with that? Can someone point me in the right direction to why this is?
Thanks!