zpool list : expandsz value

All your general support questions for OpenZFS on OS X.

zpool list : expandsz value

Postby scasady » Mon Nov 09, 2015 9:33 am

cyclone:~ cap$ zpool list
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
big 7.27T 2.92T 4.35T - 17% 40% 1.00x ONLINE -
fast 1.36T 317G 1.05T 16.0E 11% 22% 1.00x ONLINE -
internal 1.82T 1.44T 385G - - 79% 1.00x ONLINE -

The value of 16.0E is a little strange. The pool consists of 3 mirrors and is working fine.
Just wondering if this is a bug or if it is trying to tell me something.
scasady
 
Posts: 3
Joined: Thu Mar 26, 2015 11:59 am

Re: zpool list : expandsz value

Postby ilovezfs » Sat Nov 14, 2015 3:42 am

That's two-bugs-in-one. 16E would mean 16 exabytes. lundman suggested on IRC that it may be trying to format a -1. Quick proof of concept

Code: Select all
uint64_t x = -1;
char buf[100];
zfs_nicenum(x, buf, sizeof(buf));
printf("buf is %s\n", buf);

prints "buf is 16.0E" and the same is printed for -2, ...

So the first bug is a "cosmetic" bug. Bad expand size values should be printed as "-" not 16.0E. If you do "zpool get expandsize," it probably is printing it as "-" already, so the bug may be limited to zpool list.

The non-cosmetic bug is why is it getting a bad value for expand size in the first place? It probably isn't able to determine expand size for anyone right now for some reason.
ilovezfs
 
Posts: 232
Joined: Thu Mar 06, 2014 7:58 am


Return to General Help

Who is online

Users browsing this forum: Google [Bot] and 27 guests