Ben Stienstra

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

User Tools

Site Tools


iscsiadm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
iscsiadm [2013/05/14 05:55]
admin
iscsiadm [2013/05/14 09:13]
admin
Line 1: Line 1:
 Discover targets Discover targets
-<​code>​ +  ​iscsiadm --mode discoverydb --type sendtargets --portal <​ip-address>​ --discover
-iscsiadm --mode discoverydb --type sendtargets --portal <​ip-address>​ --discover +
-</​code>​+
  
 Target log in Target log in
-<​code>​ +  ​iscsiadm --mode node --targetname iqn.2000-01.com.synology:​rackstation.LUN --portal <​ip-address>​ --login
-iscsiadm --mode node --targetname iqn.2000-01.com.synology:​rackstation.LUN --portal <​ip-address>​ --login +
-</​code>​+
  
 Set portal to manual Set portal to manual
Line 15: Line 11:
  
 Session log out Session log out
-<​code>​ +  ​iscsiadm -m session --logout iqn.2000-01.com.synology:​rackstation.LUN
-iscsiadm -m session --logout iqn.2000-01.com.synology:​rackstation.LUN +
-</​code>​+
  
 Log out all sessions Log out all sessions
-<​code>​ +  ​iscsiadm -m node --logout all 
-iscsiadm -m node --logout all +
-</​code>​+
  
 Rescan target for new LUNs Rescan target for new LUNs
-<​code>​ +  ​iscsiadm -m session --rescan 
-iscsiadm -m session --rescan + 
-</​code>​+Show sessions 
 +  iscsiadm -m session
iscsiadm.txt · Last modified: 2014/06/10 14:57 by admin