Iscsicli - Problems removing Targets
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
Iscsicli - Problems removing Targets

 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Storage System
Author Message
Guest






Posted: Wed Nov 02, 2005 1:24 am    Post subject: Iscsicli - Problems removing Targets Reply with 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.
Back to top
Alan Warwick [MSFT]
Guest





Posted: Wed Nov 02, 2005 5:17 pm    Post subject: Re: Iscsicli - Problems removing Targets Reply with quote

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.
Back to top
Guest






Posted: Wed Nov 02, 2005 5:17 pm    Post subject: Re: Iscsicli - Problems removing Targets Reply with quote

Thanks
Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Storage System All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB