LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 09-22-2018, 07:36 PM   #1
louisb
Member
 
Registered: Aug 2003
Posts: 199

Rep: Reputation: 15
How to remove iSCSI targets from client


I just recently create an iSCSI Target and was abel to discovery the Target on my client. however since I'm learning about iSCSI I've create multiple Targets that show up on my client initiator. I'm seeing an old Target that no longer exist on the host machine, but does show up on the client.

How do I remove/prevent the Targets that no longer exist from showing when I do a discovery from the client initiator?

Thanks
 
Old 09-22-2018, 07:44 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by louisb View Post
How do I remove/prevent the Targets that no longer exist from showing when I do a discovery from the client initiator?
Assuming you used sendtargets to discover the targets, you can remove them from your local iSCSI database like this:
Code:
iscsiadm -m discoverydb -o delete -t sendtargets -p PORTAL_ADDRESS
I don't know if there are other methods or if it is the "best" way, but it has worked for me.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iscsi targets no device name found. littleball Linux - Server 0 02-11-2015 04:44 PM
How to setup ISCSI targets on Cent OS usao Linux - Server 4 09-22-2014 10:11 AM
Unable to get iSCSI targets working usao Linux - Server 3 09-02-2014 04:48 AM
[SOLVED] pacemaker - iscsi: how to set up iscsi targets/logical units? eantoranz Linux - Server 9 01-02-2013 08:38 AM
Loading iscsi targets on reboot Neruocomp *BSD 0 06-28-2010 10:03 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 02:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration