I'm fooling around with FreeBSD as a storage server. I have iSCSI target LUNs that are actually files on ZFS datasets (i.e. not zvols).
Something cool/unusual is how
Especially neat is how these cbb stats reflect all LUN traffic regardless of back-end zpool/ARC/cache activity. Thus I can watch data "ingest" via cbb then watch said data again when it's time for ZFS to close the current txg. Similarly ARC [hit] reads against these target LUNs are typically invisible to iostat but these cbb lines reveal all!
Unfortunately I've yet to find another utility with awareness of file-backed iSCSI LUNs.
What is
Something cool/unusual is how
iostat
displays these as cbb<x> devices alongside the rest of my [actual] block devices. This seems to be a re-cycling of the old naming convention for PCCard devices.Especially neat is how these cbb stats reflect all LUN traffic regardless of back-end zpool/ARC/cache activity. Thus I can watch data "ingest" via cbb then watch said data again when it's time for ZFS to close the current txg. Similarly ARC [hit] reads against these target LUNs are typically invisible to iostat but these cbb lines reveal all!
Unfortunately I've yet to find another utility with awareness of file-backed iSCSI LUNs.
gstat-rs
is particularly interesting but it, too, is oblivious. There are no cbb devices in my /dev tree:
Code:
[root@bsd /]# find / -name cbb*
/boot/kernel/cbb.ko
/usr/lib/debug/boot/kernel/cbb.ko.debug
/usr/share/man/man4/cbb.4.gz
What is
iostat
doing that's special and might there be any quick hacks for gaining visibility with other tools?