Logging out from targets

This section describes how to log out from a specific target or from all established sessions.

After you log out from a Storwize® V7000 system target, the iSCSI volumes that it serves are no longer available to the host.

To log out from a specific Storwize V7000 system target, run the following command:

iscsiadm --mode node --target <IQN> --portal 192.0.2.* --logout 

To log out from all your established sessions, run the following command:

iscsiadm --mode node --logoutall=all 
# iscsiadm --mode node --target iqn.2012-02.com.ibm.de.boeblingen:2145.v7k01.node1 --portal
192.0.2.* --logout 
Logging out of session [sid: 2, target: iqn.2012-02.com.ibm.de.boeblingen:2145.v7k01.node1,  
portal: 192.0.2.*,3260]  
Logout of [sid: 2, target: iqn.2012-02.com.ibm.de.boeblingen:2145.v7k01.node1, 
portal: 192.0.2.*,3260] successful. 
iscsiadm --mode node --logoutall=all
Logging out of session [sid: 5, target: iqn.2012-02.com.ibm.de.boeblingen:2145.v7k01.node1,  
portal: 192.0.2.*,3260]  
Logout of [sid: 5, target: iqn.2012-02.com.ibm.de.boeblingen:2145.v7k01.node1, 
portal: 192.0.2.*,3260] successful.