mdb zfs metaslab statistics are unavailable
I tried to look at per-vdev metaslab data using mdb today, and this is what I saw:
> ::walk spa | ::spa_vdevs -m ADDR STATE AUX DESCRIPTION fffffe038b589800 HEALTHY - root fffffe039d3a7000 HEALTHY - /dev/dsk/c2t1d0s0 ADDR ID OFFSET FREE FRAGMENTATION mdb: could not find member sm_alloc of type space_map_t fffffe0387359800 HEALTHY - root fffffe038735d000 HEALTHY - /dev/dsk/c2t0d0s0 ADDR ID OFFSET FREE FRAGMENTATION mdb: could not find member sm_alloc of type space_map_t
It looks like one of our recent ports from ZoL removes the sm_alloc member from the space_map_t struct. sm_alloc was a cached representation of allocated space for the metaslab. I believe we have to change the mdb module to use the space_map_phys_t's smp_alloc field instead.
zdb is not affected by this bug.