Internet Small Computer System Interface (iSCSI) is an IP-based standard for connecting storage devices. iSCSI uses IP networks to encapsulate SCSI commands, allowing data to be transferred over long distances. iSCSI provides shared storage among a number of client systems. Storage devices are attached to servers (targets). Client systems (initiators) access the remote storage devices over IP networks. To the client systems, the storage devices appear to be locally attached. iSCSI uses the existing IP infrastructure and does not require any additional cabling, as is the case with Fibre Channel (FC) storage area networks.


If you no longer need the iSCSI storage from a particular target, you can disable/delete the target on the initiator node. Follow the steps below to log out and delete the target IQN on the initiator node


1. Umount iSCSI device/filesystems


Before deleting the target, make sure the iSCSI devices from that target are not in use. Umount and/or delete the filesystems using the iSCSI devices esported from the target.


2. Logout


First step is to logout of the iSCSI target.

# iscsiadm -m node -T --portal -u


3. Delete Target’s Record ID


When you discover the targets and log into it, the information is stored in the node database found in /var/lib/iscsi. In order to delete the target, we have to delete the target’s record ID out of /var/lib/iscsi:

# iscsiadm -m node -o delete -T --portal


4. Stop the iSCSI service (optional)


Follow this step only if you have no other target left on the system and do not want to use iSCSI. Stop the iSCSI service and disable it to start at boot using chkconfig or systemctl commands.


For RHEL 6


# service iscsi stop</
# chkconfig iscsi off


For RHEL 7


# systemctl stop iscsi
# systemctl disable iscsi


Was this answer helpful? 0 Users Found This Useful (0 Votes)