I'm having trouble understanding how compression applies, but mine doesn't seem to be working. ceph df detail shows that compression is happening but the total free space appears to be calculated on the uncompressed size.
ceph df detail:
According to this output, cephpool2 has 4.5TiB of data stored in it: 4TiB has been compressed down to 2TiB, and 0.5TiB wasn't compressed. Thus, the total used should be ~8TiB, not 11TiB. What am I missing?
ceph df detail:
Code:
--- POOLS ---
POOL ID PGS STORED (DATA) (OMAP) OBJECTS USED (DATA) (OMAP) %USED MAX AVAIL QUOTA OBJECTS QUOTA BYTES DIRTY USED COMPR UNDER COMPR
device_health_metrics 1 1 120 MiB 0 B 120 MiB 20 361 MiB 0 B 361 MiB 0 12 TiB N/A N/A N/A 0 B 0 B
cephpool1 2 32 125 GiB 125 GiB 3.9 KiB 32.48k 375 GiB 375 GiB 12 KiB 0.97 12 TiB N/A N/A N/A 0 B 0 B
cephfs1_data 3 32 20 GiB 20 GiB 0 B 5.05k 59 GiB 59 GiB 0 B 0.15 12 TiB N/A N/A N/A 0 B 0 B
cephfs1_metadata 4 32 4.8 MiB 4.8 MiB 29 KiB 24 14 MiB 14 MiB 88 KiB 0 12 TiB N/A N/A N/A 0 B 0 B
cephpool2 5 128 4.5 TiB 4.5 TiB 173 KiB 1.22M 11 TiB 11 TiB 518 KiB 23.47 12 TiB N/A N/A N/A 2.0 TiB 4.0 TiB
According to this output, cephpool2 has 4.5TiB of data stored in it: 4TiB has been compressed down to 2TiB, and 0.5TiB wasn't compressed. Thus, the total used should be ~8TiB, not 11TiB. What am I missing?