iscsi¶
discovery¶
iscsiadm -m discovery -t sendtargets -p 10.10.20.3show LUNs on target
updating targets¶
tgt-admin --update ALL --forceto update your all your targets, incl. active ones (–-force)tgt-admin --update --tid=1 --forceFor updating Target ID 1
initiator side¶
iscsiadm -m session -r $SID --rescan
you get the SID from iscsiadm -m session (it is the value in the []) or if you do iscsiadm -m session -P 3 you can see which session lines with with which lun. Or
iscsiadm -m node -T target --rescan
or you can just take the lazy way and do
iscsiadm -m session --rescan
iscsiadm -m node -Ronly adds, does not delete
info¶
tgt-admin --show
tgt-admin --dumpdump konfig