WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] can't disconnec iSCSI targets, please help

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] can't disconnec iSCSI targets, please help
From: Henrik Langos <hlangos-xen@xxxxxxxxxxxxxx>
Date: Mon, 28 Feb 2011 14:37:14 +0100
Delivery-date: Mon, 28 Feb 2011 05:38:02 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <sig.0040c7c7db.AANLkTims_GaJrZ4TA25ix9eof1-otworH6zfEYswGewT@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <sig.0040c7c7db.AANLkTims_GaJrZ4TA25ix9eof1-otworH6zfEYswGewT@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
Hi Rudi,


logout from individual targets:

# iscsiadm -m node -p '192.168.2.200:3260' --logout -T 
'iqn.2011.01.22.freenas.nvr:500gb'



no more auto-login:

for newly discovered targets:
/etc/iscsi/iscsid.conf
...
node.startup = manual
...

for the known targets check:
find /etc/iscsi/ -type f -exec grep -H startup \{\} \;



I don't know of the top of my head if you need to change the old target config 
files or if
it is enough to change the default in /etc/iscsi/iscsid.conf and do a discover 
again.


cheers
-henrik


On Mon, Feb 28, 2011 at 12:02:11PM +0200, Rudi Ahlers wrote:
> Hi,
> 
> I'm trying to disconnect some iSCSI targets, but can't seem to.
> 
> [root@localhost ~]# iscsiadm -m session
> tcp: [1] 192.168.2.202:3260,1 iqn.2011.01.22.freenas.nvr:500gb
> tcp: [3] 192.168.2.200:3260,1 
> iqn.2011-2.za.co.securehosting:RAID.thin3.vg0.1tba
> tcp: [4] 192.168.2.202:3260,1 iqn.2011.01.22.freenas.nvr:extent0
> tcp: [5] 192.168.2.200:3260,1
> iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb
> 
> I need to disconnect all 4 of these
> 
> [root@localhost ~]# iscsiadm -m node -T   192.168.2.200:3260,1
> iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb -p 196.34.136.200
> --logout
> 
> The target is still there, even though I tell it to disconnect.
> 
> [root@localhost ~]# iscsiadm -m session
> tcp: [1] 192.168.2.202:3260,1 iqn.2011.01.22.freenas.nvr:500gb
> tcp: [3] 192.168.2.200:3260,1 
> iqn.2011-2.za.co.securehosting:RAID.thin3.vg0.1tba
> tcp: [4] 192.168.2.202:3260,1 iqn.2011.01.22.freenas.nvr:extent0
> tcp: [5] 192.168.2.200:3260,1
> iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb
> 
> I can't delete it either:
> [root@localhost ~]# iscsiadm -m node --op delete --targetname
> 192.168.2.202:3260,1 iqn.2011.01.22.freenas.nvr:500gb
> iscsiadm: no records found!
> 
> Restarting iscsi gives some odd errors:
> 
> 
> [root@localhost ~]# /etc/init.d/iscsi restart
> Logging out of session [sid: 1, target:
> iqn.2011.01.22.freenas.nvr:500gb, portal: 192.168.2.202,3260]
> Logging out of session [sid: 3, target:
> iqn.2011-2.za.co.securehosting:RAID.thin3.vg0.1tba, portal:
> 192.168.2.200,3260]
> Logging out of session [sid: 4, target:
> iqn.2011.01.22.freenas.nvr:extent0, portal: 192.168.2.202,3260]
> Logging out of session [sid: 5, target:
> iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb, portal:
> 192.168.2.200,3260]
> Logout of [sid: 1, target: iqn.2011.01.22.freenas.nvr:500gb, portal:
> 192.168.2.202,3260]: successful
> Logout of [sid: 3, target:
> iqn.2011-2.za.co.securehosting:RAID.thin3.vg0.1tba, portal:
> 192.168.2.200,3260]: successful
> Logout of [sid: 4, target: iqn.2011.01.22.freenas.nvr:extent0, portal:
> 192.168.2.202,3260]: successful
> Logout of [sid: 5, target:
> iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb, portal:
> 192.168.2.200,3260]: successful
> Stopping iSCSI daemon:
> iscsid dead but pid file exists                            [  OK  ]
> Starting iSCSI daemon:                                     [  OK  ]
>                                                            [  OK  ]
> Setting up iSCSI targets: Logging in to [iface: default, target:
> iqn.2011.01.22.freenas.nvr:500gb, portal: 192.168.2.202,3260]
> Logging in to [iface: default, target:
> iqn.2011-2.za.co.securehosting:RAID.thin1.vg0.2tb, portal:
> 192.168.2.200,3260]
> Logging in to [iface: default, target:
> iqn.2011-2.za.co.securehosting:RAID.thin3.vg0.1tba, portal:
> 192.168.2.200,3260]
> Logging in to [iface: default, target:
> iqn.2011.01.22.freenas.nvr:extent0, portal: 192.168.2.202,3260]
> Logging in to [iface: default, target:
> iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb, portal:
> 192.168.2.200,3260]
> Logging in to [iface: default, target:
> iqn.2011-2.za.co.securehosting:RAID.thin2.vg0.1tb, portal:
> 192.168.2.200,3260]
> Login to [iface: default, target: iqn.2011.01.22.freenas.nvr:500gb,
> portal: 192.168.2.202,3260]: successful
> iscsiadm: Could not login to [iface: default, target:
> iqn.2011-2.za.co.securehosting:RAID.thin1.vg0.2tb, portal:
> 192.168.2.200,3260]:
> iscsiadm: initiator reported error (19 - encountered non-retryable
> iSCSI login failure)
> Login to [iface: default, target:
> iqn.2011-2.za.co.securehosting:RAID.thin3.vg0.1tba, portal:
> 192.168.2.200,3260]: successful
> Login to [iface: default, target: iqn.2011.01.22.freenas.nvr:extent0,
> portal: 192.168.2.202,3260]: successful
> Login to [iface: default, target:
> iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb, portal:
> 192.168.2.200,3260]: successful
> iscsiadm: Could not login to [iface: default, target:
> iqn.2011-2.za.co.securehosting:RAID.thin2.vg0.1tb, portal:
> 192.168.2.200,3260]:
> iscsiadm: initiator reported error (19 - encountered non-retryable
> iSCSI login failure)
> iscsiadm: Could not log into all portals. Err 19.
> 
> 
> 
> 
> Interestingly, the targets which iscsi reports as not existing, does exist:
> 
> [root@localhost ~]# iscsiadm -m discovery -t sendtargets -p  192.168.2.200
> 192.168.2.200:3260,1 iqn.2011-2.za.co.securehosting:RAID.thin1.vg0.2tb
> 192.168.2.200:3260,1 iqn.2011-2.za.co.securehosting:RAID.thin3.vg0.1tba
> 192.168.2.200:3260,1 iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb
> 192.168.2.200:3260,1 iqn.2011-2.za.co.securehosting:RAID.thin2.vg0.1tb
> 
> 
> 
> 
> 
> Is there any other way to force these disconnects, and re-connect them?
> The machine runs on CentOS 5.5 x64 + XEN:
> 
> [root@localhost ~]# cat /etc/redhat-release
> CentOS release 5.5 (Final)
> [root@localhost ~]# uname -a
> Linux localhost.localdomain 2.6.18-194.el5xen #1 SMP Fri Apr 2
> 15:34:40 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
> [root@localhost ~]#
> 


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>