Ben Stienstra

Linux, Unix, network, radio and more...

User Tools

Site Tools


iscsiadm

iSCSI CentOS

Discover targets

iscsiadm --mode discoverydb --type sendtargets --portal <ip-address> --discover

Target log in

iscsiadm --mode node --targetname iqn.2000-01.com.synology:rackstation.LUN --portal <ip-address> --login

Set portal to manual

iscsiadm -m node --targetname iqn.2000-01.com.synology:rackstation.LUN -p <ip-address>:3260 -o update -n node.startup -v manual

Session log out

iscsiadm -m session --logout iqn.2000-01.com.synology:rackstation.LUN

Log out all sessions

iscsiadm -m node --logout all

Rescan target for new LUNs

iscsiadm -m session --rescan

Show sessions

iscsiadm -m session
iscsiadm.txt · Last modified: 2014/06/10 14:57 by admin