It is possible to enable a debug log for the Solaris iscsi target.
(These instructions are for OpenSolaris only.
This does not work with Solaris 10 the last time we checked.)
I've just checked this again on snv_93 (BeleniX0.7.1) and it works fine.
This debug log is designed for the developers, so the format
of the log is not particularly user friendly.
But it may give further clues to what's going wrong.
This is the recipe:

# svccfg -s iscsitgt setprop iscsitgt/qlog-lvl = integer: 0x8000FFFF 
# svccfg -s iscsitgt listprop iscsitgt/qlog-lvl
iscsitgt/qlog-lvl  integer  2147549183
# svcadm refresh iscsitgt
# svcadm restart iscsitgt 

Ok, you should now see a debug log file "/tmp/target_log"

# ls -l /tmp/target_log
-rw-r--r-- 1 root sys 97 Oct 21 21:25 /tmp/target_log

So now try to make the iscsi target do some work,
and you should see the debug log file size grow.

When the error occurs, maybe the latter part of the log file will give a clue.

Having the debug log enabled, will affect performance,
so disable it when finished debugging by removing
the "qlog-lvl" property, and refresh, and restart.

# svccfg -s iscsitgt delprop iscsitgt/qlog-lvl

Ok, let's see if that is of any use.
Regards
Nigel Smith
--
This message posted from opensolaris.org
_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss

Reply via email to