Jump to content

ZFS compression on, but disk usage is same?!


Recommended Posts

Hi,

 

i have turned on ZFS compression on a new array with 1 3tb hdd without parity disk. After turning on, I copied about 2,5 tb data from another identical 3tb disk (unassigned, xfs, without compression)

 

When looking on the compression rate, its abaou 1.7. But when looking on the disk usage, its exactly the same for the zfs disk in the array and the xfs disk unassigned.

 

In my expectation the used disk space should differ in relation to the compression rate. Whats wrong? :)

Edited by nicx
Link to comment
25 minutes ago, nicx said:

When looking on the compression rate, its abaou 1.7. But when looking on the disk usage, its exactly the same for the zfs disk in the array and the xfs disk unassigned.

That doesn't make much sense, are you sure there isn't any other data on the disk?

 

Post the output of:

 

zfs get all <pool name>/<dataset> | grep compress

and

zfs list -t all

 

Link to comment

here it comes:

 

root@nas:~# zfs get all disk1/backup | grep compress
disk1/backup  compressratio         1.63x                  -
disk1/backup  compression           on                     inherited from disk1
disk1/backup  refcompressratio      1.63x                  -
root@nas:~# 
root@nas:~# zfs list -t all
NAME            USED  AVAIL     REFER  MOUNTPOINT
cache           545G   377G      248K  /mnt/cache
cache/appdata  70.8G   377G     70.8G  /mnt/cache/appdata
cache/domains  56.3G   377G     56.3G  /mnt/cache/domains
cache/icloud    378G   377G      378G  /mnt/cache/icloud
cache/isos     14.3G   377G     14.3G  /mnt/cache/isos
cache/share    1.97G   377G     1.97G  /mnt/cache/share
cache/system   23.7G   377G     23.7G  /mnt/cache/system
disk1          2.30T   341G      184K  /mnt/disk1
disk1/backup   2.30T   341G     2.30T  /mnt/disk1/backup
root@nas:~# 

 

and yes, there is no other data on the disk:

 

root@nas:~# ls -la /mnt/disk1/
total 17
drwxrwxrwx  3 nobody users   3 Feb 23 04:40 ./
drwxr-xr-x 10 root   root  200 Feb 22 13:46 ../
drwxrwxrwx  5 nobody users   5 Feb 22 19:50 backup/
root@nas:~# 
root@nas:~# 
Edited by nicx
Link to comment

oh shit... I think I found my mistake by myself: I copied the data via the webgui of unraid (Dynamic File Manager). The source data includes a lot of symlinks. I think all symlinks are now "real data" and no more just links. That is why the data is now a lot bigger on the destination disk. Funny coincidence that the compressed data has an identical size as the source uncompressed data with symlinks :D

 

Edited by nicx
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...