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: 2021/10/09 15:14 by 127.0.0.1