Home Blog
en|ru

Admin notes

Instruction on how to connect iSCSI on the server

  1. Install packages: yum install -y libiscsi-utils iscsi-initiator-utils device-mapper-multipath
  2. On the server, change the iSCSI ID: iscsi-iname -p SERVER_NAME, the obtained string is written in the file /etc/iscsi/initiatorname.iscsi
  3. Restart iscsi (if it did not start because of “not fulfilled conditions”, it will be fine)
  4. Execute iscsiadm --mode discovery --type sendtargets --portal STORAGE_IP --login (STORAGE_IP from Manage network).
  5. Go to the storage interface, under Hosts/initiators, our host’s name should appear.
  6. In this same interface, create a “host”, specify the name, IP address, and in the list of initiators should be one with our iSCSI-ID, select it.
  7. On the storage, create luns or groups of luns (optional)
  8. Assign access to our host for created or previously existing groups of luns (or individual luns).
  9. On the server, execute rescan-scsi-bus.sh from sg3_utils, all luns should appear.
  10. Create a configuration for multipath: mpathconf --enable.
  11. In most cases, the default configuration works. To exclude some luns/disks, write them in the section blacklist.
  12. Start the service: systemctl enable multipathd; systemctl start multipathd
  13. Now execute multipath -ll and see all devices from mapper-а (mpathXX)

If something went wrong:

  1. Logout from host: iscsiadm -m node -u
  2. Re-login: iscsiadm --mode discovery --type sendtargets --portal STORAGE_IP --login
en|ru
Home Blog
Nickname sergzhum is registered!