[SOLVED] What is the ZFS Defaultcompression when i say "on"?

fireon

Distinguished Member
Oct 25, 2010
4,466
464
153
Austria/Graz
deepdoc.at
Hello,

when you create an ZFS Filesystem you can enable compression. What compression level is used when i say "on"? Is that default lz4?
 
Last edited:
the rpool/swap uses zle but im going a limb and say the rpool uses lzjb but if you have another pool normally if you activate its best lz4 run this command to check

Code:
zfs get compression
 
Last edited:
I know this command. But it say's on default "on". I uses the lz4 compression on my pools, but i would like to know what "on" means.
ok, so what now, lzjb or zle?
 
my pool (space) shows the following:

Code:
 zfs get compression space
NAME   PROPERTY     VALUE     SOURCE
space  compression  lz4       local
 
  • Like
Reactions: Danesh Manoharan
I think you understand me wrong. Here is on from ours:
This is an PVE Default:
Code:
rpool                 compression  on       local
rpool/ROOT            compression  on       inherited from rpool
rpool/ROOT/pve-1      compression  on       inherited from rpool
rpool/data            compression  on       inherited from rpool
Yes i can switch to lz4, i have done this on some othe pool on other machines. But i would like to know what compression is set at "on"?

Very Thanks
 
Sorry @fireon, but I have to point out: RTFM :-D

The current default compression algorithm is either lzjb or, if the lz4_compress feature is enabled, lz4.​

So, just check yourself with

Code:
root@proxmox:/# zpool get feature@lz4_compress rpool
NAME   PROPERTY              VALUE                 SOURCE
rpool  feature@lz4_compress  active                local

And bingo! What @mir said :-D
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!