Layout of zpool list -v

Willem Jan Withagen wjw at digiware.nl
Thu Jun 18 10:00:11 UTC 2015


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


More information about the freebsd-fs mailing list