0

I used iscsicli commands to configure the iscsi configuration for windows. When i logged out of target, it is happening successfully. But when i am rebooting my system again i can see those previously configure iscsi details. And also i am not able to use the "RemoveTarget" or any "persistant" related commands.

Sam 333
  • 61
  • 2
  • 8

1 Answers1

0

There is a difference between targets that were added manually (addtarget), and those that were added via discovery. For the latter, you need to remove the target portal, then refresh the list of targets. You can see the list of target portals with:

iscsicli listtargetportals

It's likely your target is listed here. Remove it with the following command (this example is for 172.16.1.1):

iscsicli RemoveTargetPortal 172.16.1.1 3260

Then rebuild the list of targets (with "t" to force update):

iscsicli listtargets t

Another possibility: There are also persistent or "favorite targets", which you can view with

iscsicli listpersistenttargets

The command line to remove these is very complex. You may have better luck using the iSCSI Initiator GUI application (iscsicpl), and removing them manually from under the "Favorite Targets" tab.

Reference: http://www.mombu.com/microsoft/windows-storage/t-iscsicli-problems-removing-targets-350229.html

Mike Andrews
  • 3,045
  • 18
  • 28
  • Sorry gubblebozer, i didn't get it what you are telling. Can you be more specific. And also i am facing one more issue where for "iscsicli RemoveTarget " when i execute this command, i am getting an error as "RemoveTarget is not recognised as internal or external command". – Sam 333 Jun 05 '15 at 04:12
  • I just edited my answer... see if that makes more sense? – Mike Andrews Jun 05 '15 at 15:54