Re: Problem when logging out from specific interface
shreyas wrote: > Hi Mike, > > Thanks a lot for your help > It is working with version 2.0-870. I have some small queries, > > 1) whether open-iscsi version 2.0-870 is usable and well tested? ( i > know its development version but still thought of asking it to you) I was actually going to switch it to the semi-stable version next week. I am waiting to try and figure out what is going with the nops in some other thread (the nops problem is in semi-stable release: open-iscsi-2.0-869.2.tar.gz too). > > 2) As you told i did "whereis iscsiadm" before doing make && make > install of 2.0-870, it was present in /sbin/ and i just removed it and Do a whereis iscsid too > reinstalled new version. Is this sufficient or do i need to remove any > other files at other locations. Also, are u planning to provide make > uninstall which will remove required files of older version > automatically? > Yes, one day. I have not had time. There is one problem with detecting our older versions some distro version though. > 3)While starting open-iscsi service it sets up all targets by login to > all available targets, while if there are no targets available it says > "No records found!". where does it actually search for these targets? > In my case i installed this version on 2 machines on first i did > discovery and thenit logged in on all available targets when i do > service open-iscsi start. > while on sencond one it just said "No records found!". When you do discovery it stores the targets and portals found in /etc/iscsi/nodes. When you do "iscsiadm -m node" it prints those out what is in /etc/iscsi/nodes. > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "open-iscsi" group. To post to this group, send email to open-iscsi@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/open-iscsi -~--~~~~--~~--~--~---
Re: Problem when logging out from specific interface
Hi Mike, Thanks a lot for your help It is working with version 2.0-870. I have some small queries, 1) whether open-iscsi version 2.0-870 is usable and well tested? ( i know its development version but still thought of asking it to you) 2) As you told i did "whereis iscsiadm" before doing make && make install of 2.0-870, it was present in /sbin/ and i just removed it and reinstalled new version. Is this sufficient or do i need to remove any other files at other locations. Also, are u planning to provide make uninstall which will remove required files of older version automatically? 3)While starting open-iscsi service it sets up all targets by login to all available targets, while if there are no targets available it says "No records found!". where does it actually search for these targets? In my case i installed this version on 2 machines on first i did discovery and thenit logged in on all available targets when i do service open-iscsi start. while on sencond one it just said "No records found!". --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "open-iscsi" group. To post to this group, send email to open-iscsi@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/open-iscsi -~--~~~~--~~--~--~---
Re: Problem when logging out from specific interface
shreyas wrote: > [EMAIL PROTECTED] ~]# iscsiadm -m session -P 3 > iSCSI Transport Class version 2.0-724 > iscsiadm version 2.0-869 It looks like you are not using the kernel modules from the tarball, and using older tools. Both do not support the bind by iqn name feature. You want: iSCSI Transport Class version 2.0-870 iscsiadm version 2.0-870 The bind by iqn feature is only supported with the iscsi modules in that devel tarball or the kernel modules in 2.6.27-rc*. The older modules only support binding by whaterver was supported in those release (mac address, or netdevice name). Same goes for the tools. You need the tools in that release. Are you using http://www.open-iscsi.org/bits/open-iscsi-2.0-870-rc1.tar.gz and did you do a "make" and "make install" to install it? Make sure you did not have older tools or distro ones by doing a "whereis iscsiadm". If there are other iscsiadm copies then you need to remove them before installing the tarball tools. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "open-iscsi" group. To post to this group, send email to open-iscsi@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/open-iscsi -~--~~~~--~~--~--~---
Re: Problem when logging out from specific interface
[EMAIL PROTECTED] ~]# iscsiadm -m session -P 3 iSCSI Transport Class version 2.0-724 iscsiadm version 2.0-869 Target: iqn.1992-08.com.netapp:s3002 Current Portal: 172.17.12.70:3260,1000 Persistent Portal: 172.17.12.70:3260,1000 ** Interface: ** Iface Name: default Iface Transport: tcp Iface Initiatorname: iqn. 2008-07.com.calsoftinc.nHosts:iface0001 Iface IPaddress: 172.17.12.54 Iface HWaddress: default Iface Netdev: default SID: 5 iSCSI Connection State: LOGGED IN iSCSI Session State: Unknown Internal iscsid Session State: NO CHANGE Negotiated iSCSI params: HeaderDigest: None DataDigest: None MaxRecvDataSegmentLength: 131072 MaxXmitDataSegmentLength: 65536 FirstBurstLength: 65536 MaxBurstLength: 65536 ImmediateData: Yes InitialR2T: No MaxOutstandingR2T: 1 Attached SCSI devices: Host Number: 7 State: running scsi7 Channel 00 Id 0 Lun: 1 Attached scsi disk sdc State: running scsi7 Channel 00 Id 0 Lun: 0 Attached scsi disk sdb State: running On Aug 19, 3:27 pm, Mike Christie <[EMAIL PROTECTED]> wrote: > shreyas wrote: > > I am using 2.6.23 kernel > > > here are the outputs of the commands, > > [EMAIL PROTECTED] ~]# iscsiadm -m session -P 1 > > Ooops. I meant "-P 3". Do not bother logging into targets. Just run the > command and send the output. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "open-iscsi" group. To post to this group, send email to open-iscsi@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/open-iscsi -~--~~~~--~~--~--~---
Re: Problem when logging out from specific interface
shreyas wrote: > I am using 2.6.23 kernel > > here are the outputs of the commands, > [EMAIL PROTECTED] ~]# iscsiadm -m session -P 1 Ooops. I meant "-P 3". Do not bother logging into targets. Just run the command and send the output. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "open-iscsi" group. To post to this group, send email to open-iscsi@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/open-iscsi -~--~~~~--~~--~--~---
Re: Problem when logging out from specific interface
I am using 2.6.23 kernel here are the outputs of the commands, [EMAIL PROTECTED] ~]# iscsiadm -m session -P 1 Target: iqn.1992-08.com.netapp:s3002 Current Portal: 172.17.12.70:3260,1000 Persistent Portal: 172.17.12.70:3260,1000 ** Interface: ** Iface Name: default Iface Transport: tcp Iface Initiatorname: iqn. 2008-07.com.calsoftinc.nHosts:iface0001 Iface IPaddress: 172.17.12.54 Iface HWaddress: default Iface Netdev: default SID: 5 iSCSI Connection State: LOGGED IN iSCSI Session State: Unknown Internal iscsid Session State: NO CHANGE [EMAIL PROTECTED] ~]# ls /sys/class/iscsi_session/session5/ data_pdu_in_order erl initial_r2t password subsystem uevent data_seq_in_order first_burst_len max_burst_lenpassword_in targetname username device immediate_data max_outstanding_r2t recovery_tmo tpgtusername_in --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "open-iscsi" group. To post to this group, send email to open-iscsi@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/open-iscsi -~--~~~~--~~--~--~---
Re: Problem when logging out from specific interface
shreyas wrote: > > iscsiadm: sysfs_attr_get_value: add to cache '/sys/class/iscsi_session/ > session4/ifacename' > > iscsiadm: sysfs_attr_get_value: stat '/sys/class/iscsi_session/ > session4/ifacename' failed: No such file or directory > > iscsiadm: Could not read attr ifacename on path /class/iscsi_session/ > session4 > > iscsiadm: could not read iface name for sid 4 > Could you run "iscsiadm -m session -P 1" when you are logged into the target? Could you also do cat ls /sys/class/iscsi_session/sessionX and send the output. and what kernel are you using? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "open-iscsi" group. To post to this group, send email to open-iscsi@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/open-iscsi -~--~~~~--~~--~--~---
Re: Problem when logging out from specific interface
shreyas wrote: > Hi, > I am putting it once again, as i dint get any response for my previous > post. can anyone please reply to this mail so i can have some idea > where the things are going wrong? Did not see the post on the list. > > My query is- > > I am trying to use interface facility in development version. > i created 2 interfaces (iface0001,and iface0002) , binded them with > some iqn name , then did discovery (so database gets updated) and > logged in to some iscsi target through that interfaces. > now when i want to log out from only one interface (say iface0001). > its not working. > i used command > as per the information in open-iscsi doc. > > "iscsiadm -m node -p {my.ip.addr.: 3260} -I iface0001 -u" this command > do not log out but sends zero exit status. That is the right command. > > when i use "iscsiadm -m node -p {my.ip.addr.: 3260} -u" it correctly > log out from all interfaces. > > I am not getting why it is not working when i want to logout from only > one/specific interface. It looks like a bug. Are you using the iscsi modules from the development tarball or the ones from the kernel you are using? Could you do: iscsiadm -m iface and send that outpout and then login and try the logout command but with debuugging on like this (pass the command the -d 8): iscsiadm -m node -p {my.ip.addr.: 3260} -I iface0001 -u -d 8 and send all the the output that gets printed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "open-iscsi" group. To post to this group, send email to open-iscsi@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/open-iscsi -~--~~~~--~~--~--~---