0

ISCSI : how to delete iscsi target in centos

i need to delete the iscsi target which command will work for this .......?

CentOS ISCSI Add a comment
tommyhilten
asked Oct 27 2017

Answer

0

first logout the target session.

iscsiadm --mode node --targetname iqn.2017-11.com.linuxhelp.server1:sys1 --portal 192.168.7.206:3260 --logout

now remove the target

 iscsiadm -m node -o delete -T iqn.2017-11.com.linuxhelp.server1:sys1 --portal 192.168.7.206:3260

check the the target session is avilable.

# iscsiadm --mode node --targetname iqn.2017-11.com.linuxhelp.server1:sys1 --portal 192.168.7.206:3260 --login
iscsiadm: No records found
Add a comment
arunkumarak
asked Oct 27 2017
edited Oct 05 2018
Post your Answer