conky icon indicating copy to clipboard operation
conky copied to clipboard

fs_usage and fs_used_perc return incorrect values for zfs mount point

Open kubuntu-newbie opened this issue 3 years ago • 2 comments

fs_usage with the path to a zfs mount point (pool created using raidz2) returns incorrect value (in my case it reports 256K used instead of 700G), so is fs_used_perc. fs_size returns correct value

conky version 1.11.6, I haven't tested this in 1.12.2, sorry

usage in rc file: ${fs_used /path_to_zfs_pool} / ${fs_size /path_to_zfs_pool} ${alignr} ${fs_used_perc /path_to_zfs_pool}%

kubuntu-newbie avatar Jul 29 '21 22:07 kubuntu-newbie

one more thing, if I specify subvolume in the path, fs_used and fs_used_perc return correct values, but fs_size returns value larger than available

for example: zfs list output NAME USED AVAIL REFER MOUNTPOINT zfs_pool 806G 9.46T 140K /path_to_zfs_pool zfs_pool/subvol 806G 9.46T 806G /path_to_zfs_pool/subvol

using /path_to_zfs_pool as path in conky returns fs_usage 256K (incorrect) fs_size 9.46T (matches "available" property for the pool) fs_used_perc 0% (incorrect)

using /path_to_zfs_pool/subvol as path in conky returns fs_usage 806G (correct) fs_size 10.2T (larger than available) fs_used 8% (correct based on first two values, incorrect based on actual usage, should be larger number)

kubuntu-newbie avatar Jul 29 '21 22:07 kubuntu-newbie

ext4 used: #${font sans-serif:normal:size=10}SSD $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}% #${fs_bar /}

But zfs print (terminal) used / free exec zpool iostat rpool | grep G | cut -c 14-17 exec zpool iostat rpool | grep G | cut -c 21-25

${font sans-serif:normal:size=10}SSD $alignc ${exec zpool iostat rpool | grep G | cut -c 14-17} / ${exec zpool iostat rpool | grep G | cut -c 21-25} $alignr ${fs_use> ${fs_bar /}

and missing good used % I would also be interested in the solution!

zpool list | grep G | cut -c 56-60

idanka avatar Aug 13 '21 07:08 idanka

This issue is stale because it has been open 365 days with no activity. Remove stale label or comment, or this issue will be closed in 30 days.

github-actions[bot] avatar Oct 06 '22 02:10 github-actions[bot]

This issue was closed because it has been stalled for 30 days with no activity.

github-actions[bot] avatar Nov 06 '22 02:11 github-actions[bot]