Matty,

While playing around with COMSTAR, I noticed that the logs weren't all
that useful for debugging problems. Does anyone happen to know if
there is a way to get verbose debugging data from the STMF framework?

Within STMF there is an in-kernel trace buffer called @ stmf_trace_buf, enabled by setting 'stmf_trace_on' to 1 (the default for now).

        echo '*stmf_trace_buf/s' |mdb -k > stmftrace.txt

Some of the STMF data structures are available from MDB

# mdb -k
mdb> ::dmods -l stmf
stmf
dcmd fct_find_cmds - Find all fct_i_cmd_t for a given local port dcmd fct_icmds - Print all cached fct_i_cmd_t on fct_i_local_port dcmd fct_irps - Print all fct_i_remote_port for a given fct_i_local_port dcmd ilport2iport - Convert stmf_i_local_port to corresponding fct_i_local_port dcmd stmf_find_fct_irp - Print fct remote port information based on its wwn dcmd stmf_find_ilport - Find local port information based on its wwn dcmd stmf_find_tasks - Find all pending task for a local port or remote port
 dcmd stmf_i_lu_providers  - Print a list of stmf_i_lu_provider
 dcmd stmf_i_port_providers - Print a list of stmf_i_port_provider
 dcmd stmf_ilports         - Print a list of stmf_i_local_port
 dcmd stmf_ilus            - Print a list of stmf_i_lu
dcmd stmf_iss - List all active sessions for a given local port dcmd stmf_scsi_task - List all the active STMF SCSI tasks per worker
 dcmd stmf_worker          - List all the stmf_worker entries
 walk stmf_scsi_task       - Walk active STMF SCSI tasks per worker
 walk stmf_worker          - Walk STMF worker queue

Also, is there a way to view the SCSI commands sent from a given
initiator?

On Solaris:
        # snoop -d <Ethernet device> -o <filename>

Analyze using the tool WireShark, available on many platforms: 
http://www.wireshark.org/

- Jim

These two items would be extremely useful for isolating
problems, especially ones related to client hangs (one of my Linux
hosts periodically hangs during the device discovery process, and it
would be nice if I could see what it was doing from the target's
perspective).

Thanks for any insight,
- Ryan
--
http://prefetch.net
_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss


_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss

Reply via email to