On 02/11/2011 01:30 AM, Ulrich Windl wrote:
Hi,

somehow I got stuck: I have a new machine with SLES11 SP1, and I'm trying to 
use openiscsi after a long time (and the first time with SLES11).

Discovery doesn't work for some unknown reason:
# iscsiadm -m discovery -t sendtarget -p name.domain.uni-regensburg.de
iscsiadm: discovery record [name.domain.uni-regensburg.de,3260] not found!
#

It looks like it is looking up the discovery record instead of doing discovery. What version of open-iscsi tools is this?

What does

iscsiadm -m discovery -t sendtarget -p name.domain.uni-regensburg.de -l

do?


Trying to run iscsid in debug mode seems to suggest that the daemon isn't even 
contacted:
# iscsid -d8 -f

iscsid is not really used for discovery. iscsiadm will just ask it for the initiator name it is using and that is it. So iscsiadm with -d 8 is more helpful in this case.



As a side-note: "rcopen-iscsi" doesn't want to stop or restart the daemon:
# rcopen-iscsi stop
Stopping iSCSI initiator service:                                    skipped

But the daemon was ruinning:
11442 ?        Ss     0:01 /sbin/iscsid -c /etc/iscsi/iscsid.conf -n
11443 ?        S<Ls   0:03 /sbin/iscsid -c /etc/iscsi/iscsid.conf -n


Do I have to populate the directory /etc/iscsi/send_targets/ by hand?

No.


Maybe it's a configuration error on SLES11 SP1: That directory 
(/etc/iscsi/send_targets/) doesn't exist!

iscsiadm and iscsid will create the dirs it needs for you.


Another side-note: Doing strace on iscsiadm it seems you are using files for 
accieving mutual exclusion:
open("/etc/iscsi/lock", O_RDWR|O_CREAT, 0666) = 3
close(3)                                = 0
link("/etc/iscsi/lock", "/etc/iscsi/lock.write") = 0
/* critical section */
unlink("/etc/iscsi/lock.write")         = 0


Why not use something like open("/etc/iscsi/lock.write", O_RDWR|O_CREAT|O_EXCL, 
0666)
and unlink("/etc/iscsi/lock.write")?

How would that work? Would you loop on the open instead of the link then?

--
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.

Reply via email to