Linux iSCSI Initiator Commands

From DFWLPiki
Revision as of 16:40, 29 December 2016 by Jhorne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


A Stub page that i will clean up later, dedicated to the client side of iSCSI set up in linux.

iSCSI commands

stuff i documented while i was figuring out iscsi


on the client, start the iscsi daemon
/etc/init.d/iscsid start
discover the iscsi targets
iscsiadm -m discovery -t sendtargets -p 192.168.125.230
log into the target
iscsiadm -m node -T iqn.2010-04.local.dfwlp:storage.zeus.iscsi_tcp -p 192.168.125.230 -l
the device now shows up as a /dev/sd[x]. format it to your hearts content.
make sure iscsid starts automatically
chkconfig iscsid on


later, logging out:
iscsiadm -m node -p 192.168.125.230 --logout
iscsiadm -m discoverydb -t sendtargets -p 192.168.125.230 -o delete