John,

Here is one debugging approach I have found useful.

Adding a new storage target to the target system does not automatically 
cause the initiator side to discover it.   When I am experimenting with 
a new target setup, I usually start on a bare initiator system with all 
discovery methods turned off.   I change something on the target and 
then turn on discovery on the initiator side.  To run a new experiment, 
I turn that discovery method off on the initiator, change the target in 
the way I want, and then try again.

I describe a version of this in my blog entry 
[http://blogs.sun.com/honeycombinagarden/entry/solaris_iscsi_chap_and_radius] 
on Solaris iSCSI Chap and Radius in the section called "How to run a 
CHAP experiment".  The principles are the same.   When I do it this way, 
the new storage targets seem to show up reliably.

Note that some bug fixes in the ZVOL shareiscsi=on mode have not yet 
been ported back to Solaris 10.  But most of them apply only when trying 
to change parameters on the ZVOL target using iscsitadm, so they would 
not negatively affect your current experiments.

For item 2, as a developer hack only, I sometimes delete all the 
contents of the /etc/iscsi directory and then reboot.   It seems to be a 
pretty reliable way of getting a clean iscsiadm initiator-side state.   
Your mileage may vary.  Of course you can only do this when there are no 
client side file systems or databases that refer to the storage targets 
that you just made vanish!

Peter

John wrote:
> Hi have a slight problem here that I cannot consitently create an iscsi 
> target. 
> I create the zpool zfs etc set the shareiscsi=on and then run iscsiadm list 
> target and it will occasionaly show the target and I will think "yay" is 
> working so I delete the volume and pool etc. and try again just to make sure 
> I am doing the right thing then running iscsiadm list target -v returns 
> nothing. I am then forced to reinstall just to get the silly thing to work 
> again..but then go into the same loop..when trying to create the target!!
>
> I am currently using snv_99 bit have tried many installations from 10 05/08. 
> So my questions are
> 1) am i doing something stupid
> 2) is there a way to reset iscsiadm back to a default install
> 3) i am new to solaris so dont know how to debug this so any pointers
>
> I have seen the comstar and iser projects but want to get this simple target 
> 100% before adding complexity. btw once the target is created then i dont 
> have any problems connecting to it from clients.
>
> Many thanks for you help
> John
> --
> This message posted from opensolaris.org
> _______________________________________________
> 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