User Tools

This is an old revision of the document!


Linux

iSCSI Initiator

Oracle Linux
  1. Install the package
    # dnf install iscsi-initiator-utils
  2. Discover targets
    # iscsiadm -m discovery -t sendtargets -p SCSI_TARGET_SERVER
  3. Display target information
    # iscsiadm -m discoverydb -t st -p SCSI_TARGET_SERVER
  4. Establish a session
    # iscsiadm -m node -T iqn.XXX... -p SCSI_TARGET_SERVER:3260 -l
  5. Verify session
    # iscsiadm -m session -P 3
  6. When adding an iSCSI LUN to the fstab, use the _netdev option
    UUID=xxx... /MP ext4 _netdev 0 0
  7. Log out of session
    # iscsiadm -m node -T iqn.XXX... -p SCSI_TARGET_SERVER:3260 --logout
  8. Remove target from database
    # iscsiadm -m node -T iqn.XXX... -p SCSI_TARGET_SERVER:3260 -o delete
  9. If target server has gone away, entries can be removed manually
    # rm -rf /var/lib/iscsi/nodes/TARGET

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information