Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZFS list and du / df report incorrect storage size/used #2561

Closed
louwrentius opened this issue Aug 1, 2014 · 1 comment
Closed

ZFS list and du / df report incorrect storage size/used #2561

louwrentius opened this issue Aug 1, 2014 · 1 comment

Comments

@louwrentius
Copy link
Contributor

Note the reported storage Size / Used by df,du and zfs.

root@nano:/storage# df -h
Filesystem                                              Size  Used Avail Use% Mounted on
rootfs                                                  107G  1.5G  100G   2% /
udev                                                     10M     0   10M   0% /dev
tmpfs                                                   1.6G  592K  1.6G   1% /run
/dev/disk/by-uuid/94dbf4ac-67db-45bc-b560-51830587f561  107G  1.5G  100G   2% /
tmpfs                                                   5.0M     0  5.0M   0% /run/lock
tmpfs                                                   3.9G     0  3.9G   0% /run/shm
/dev/md0                                                184M   23M  152M  14% /boot
storage                                                  11T   11T     0 100% /storage   
root@nano:/storage# du -h 
11T . 
root@nano:/storage# zfs list 
NAME      USED  AVAIL  REFER  MOUNTPOINT
storage  10.0T    30K  10.0T  /storage

I've checked all the numbers based on sectors and it seems that DF and DU do calculate free space correctly for ext3 for example, but seem to mix up 'TiB and TB'. I'm not sure if this is a ZFSonLinux or DF / DU issue that does not interpret the numbers reported by ZFSonLinux correctly.

Hope this makes sense.

@louwrentius
Copy link
Contributor Author

It seems an issue with DU / DF to me. Sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant