Software >> iSCSI >> MHVTL >> what are the various commands can be run on MHVTL target or from Linux initator to Linux MHVTL target

 

1. check target status on MHVTL server:-

# tgtadm --lld iscsi --op show --mode target  ( lld is twice small-letter-el followed by a 'd')
 

2.   discover and connect from Initiator to Target and show status

# iscsiadm --m discovery -t st -p 10.10.2.6

 

eg.

10.10.2.6:3260,1 iqn.2001-04.com.mhvtl:vtl

=> the node name is iqn.2001-04.com.hvtl:vtl

 

login to the node

# iscsiadm -m node -n iqn.2001-04.com.mhvtl:vt --login

confirm the session is established

# iscsiadm -m session

# service iscsi status

# iscsiadm -m session -P1

# iscsiadm -m session -P2

# iscsiadm -m session -P3