Debugging issues with the COMSTAR fibre channel target


I recently talked about how you can turn an opensolaris host into a fibre channel storage array. The STMF framework maintains an internal trace buffer with recent activity, which can be extremely useful for debugging problems. To view the contents of the buffer, you can send the string “*stmf_trace_buf” to mdb:

$ echo 'stmf_trace_buf/s' |mdb -k | more

0xffffff02d66ca000: emlxs0:0004363: iport is ffffff02e10a07d0
emlxs1:0004809: iport is ffffff02df3a2d90
emlxs0:0005963: port state change from 0 to e
emlxs0:0005969: Posting sol ELS 3 (PLOGI) rp_id=fffffd lp_id=11100
emlxs0:0005969: Processing sol ELS 3 (PLOGI) rp_id=fffffd
emlxs0:0005969: Sol ELS 3 (PLOGI) completed with status 0, did/fffffd
emlxs0:0005969: Posting sol ELS 62 (SCR) rp_id=fffffd lp_id=11100
emlxs0:0005969: Processing sol ELS 62 (SCR) rp_id=fffffd
.....

This will print a slew of debugging data to your screen, which can be extremely handy for solving issues.

This article was posted by Matty on 2009-05-12 01:28:00 -0400 -0400