On Mon, Feb 28, 2011 at 7:26 PM, Marcelo Roccasalva marcelo-centos@irrigacion.gov.ar wrote:
On Mon, Feb 28, 2011 at 09:44, Rudi Ahlers Rudi@softdux.com wrote:
On Mon, Feb 28, 2011 at 12:02 PM, Rudi Ahlers Rudi@softdux.com 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 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!
I think your node names are wrong. I can logout and delete a target exactly with this two lines:
iscsiadm -m node -T iqn.1992-08.com.netapp:sn.151737287 -p 172.16.1.10 --logout iscsiadm -m node -T iqn.1992-08.com.netapp:sn.151737287 -p 172.16.1.10 -o delete
note that the parameter to -T is the string starting with iqn up to the space.
Hope this helps
--
I don't understand, how are the node names wrong? They're get wrapped in this email though, but those are setup on the SAN device and I don't have much control over them, other than the date (i.e. 2011.01.22) the ".freenas.nvr" gets edded automatically ( that's the server's name) and then I need to specify a unique name to the target itself (i.e. the "500gb") - from "2011.01.22.freenas.nvr:500gb"