User Tools

Site Tools


unix:linux:iscsi_tricks_and_techniques

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
unix:linux:iscsi_tricks_and_techniques [2020/10/05 17:30] rodolicounix:linux:iscsi_tricks_and_techniques [2022/12/17 14:05] (current) – [Adding new target on target device] rodolico
Line 121: Line 121:
 </code> </code>
  
-Edit /etc/iet/ietd.conf and add the following lines+Edit /etc/iet/ietd.conf (Linux) or /etc/ctl.conf (BSD) and add the following lines
  
 <code>   <code>  
Line 129: Line 129:
 </code> </code>
 Restart iet Restart iet
-<code bash>  /etc/init.d/iscsitarget restart</code>+<code bash>/etc/init.d/iscsitarget restart # Linux 
 +service ctld reload # FreeBSD 
 +</code>
  
 ==== Adding new target to initiator ==== ==== Adding new target to initiator ====
Line 176: Line 178:
 # first, log out of the session # first, log out of the session
 iscsiadm -m node --target='name of target' --portal "ip:port" --logout iscsiadm -m node --target='name of target' --portal "ip:port" --logout
-# now, do a discovery and delete the entry from your local database +# now, do a remove it from the session 
-iscsiadm -m discovery --target='name of target' --portal "ip:port" -o delete+iscsiadm -m node --target='name of target' --portal "ip:port" -o delete
 </code> </code>
  
unix/linux/iscsi_tricks_and_techniques.1601937052.txt.gz · Last modified: 2020/10/05 17:30 by rodolico