Alan Warwick [MSFT]
Guest
|
Posted:
Wed Nov 02, 2005 5:17 pm Post subject:
Re: Iscsicli - Problems removing Targets |
|
|
It sounds as if your targets were discovered via SendTargets (ie, using
AddTargetPortal). In this case RemoveTarget is not used to remove the target
but instead you would remove the target portal and then refresh the target
list using the command
iscsicli listtargets t
RemoveTarget will remove targets added by AddTarget but not targets found
via SendTargets, iSNS, or HBA discovery.
--
--------------------------------------------------------------------------------------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
<julian.marsalis@gmail.com> wrote in message
news:1130880866.887705.148170@g49g2000cwa.googlegroups.com...
| Quote: | I have been scripting some iscsi targets and everything works as
expected except for logging then off.
To logon I use:
iscsicli AddTargetPortal 192.168.1.1 3260 * 1 * * * * * * * * * *
iscsicli LoginTarget <targetname> * 192.168.1.1 3260 * 1 * * * * * * *
* * * * 0
Which logs me in and my devices work but I cannot seem to remove the
targets from the system:
iscsicli logouttarget <sessionid
Works to close the session
iscsicli RemoveTarget <targetname
Fails states my targets do not exist states The Target name is not
found or is marked hidden from login. Not sure why this is failing I
use listTargets for the names and they display correctly.
iscsicli RemoveTargetPortal 192.168.1.1 3260 * 1
This removes the target portal ok
Now using the gui this removes the targets from the Available Targets
list but fails with my script if any one has a clue to what is going on
any help would be greatly appreciated.
|
|
|