Thursday, 17 September 2009

iscsi issues

CentOS does not do all the SLES automagic things you want with iSCSI so... here we go:

# iSCSI Target Discovery
iscsiadm –-mode discovery –-type sendtargets --portal

# Login to the target portal
iscsiadm –-mode node --target --portal --login

# Show all the iSCSI Sessions on the host
iscsiadm --mode session

# To logout all the sessions
iscsiadm --mode node -U all
# To logout from a particular session
Iscsiadm --mode node -u --portal

# Rescan the session you want:
iscsiadm -m session -r <session_id> -R


Thanks for playing :)

No comments:

Post a Comment