Date: Thu, 18 Jun 2015 11:53:50 +0200 From: Willem Jan Withagen <wjw@digiware.nl> To: freebsd-fs@freebsd.org Subject: Layout of zpool list -v Message-ID: <5582952E.6020202@digiware.nl>
next in thread | raw e-mail | index | archive | help
Hi, Call me picky, but then it confuses me every time. I have this mirrored set with both cache and log. Looking at it with zpool it looks like: zdata 360G 50.4G 310G - 9% 14% ........ mirror 360G 50.4G 310G - 9% 14% gpt/data0 - - - - - - gpt/data1 - - - - - - mirror 496M 800K 495M - 15% 0% gpt/log0 - - - - - - gpt/log1 - - - - - - cache - - - - - - gpt/cachedata0 31.7G 118M 31.6G - 0% 0% gpt/cachedata1 31.7G 128M 31.6G - 0% 0% Which (could) suggest that there are 2 mirrors in a raid0 config, whereas it actually is a log/mirror attached. Would it not be more informative if it looks like: (if at all possible) zdata 360G 50.4G 310G - 9% 14% ........ mirror 360G 50.4G 310G - 9% 14% gpt/data0 - - - - - - gpt/data1 - - - - - - log - - - - - - mirror 496M 800K 495M - 15% 0% gpt/log0 - - - - - - gpt/log1 - - - - - - cache - - - - - - gpt/cachedata0 31.7G 118M 31.6G - 0% 0% gpt/cachedata1 31.7G 128M 31.6G - 0% 0% Note that I've also indented the cache set. I was going to add a patch, since it does not seem too complex, but I'm really lost in the zfs/zpool code to get anywhere near the code that actually does the work... Single stepping it in gdb is sort of a pain since zpool is threaded?? If somebody could give me some pointers I'll have another go at it. Thanx, --WjW
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5582952E.6020202>