Debian / Ubuntu Linux Connect to an iSCSI Volume

Debian / Ubuntu Linux Connect to an iSCSI Volume

To connect to an iSCSI volume on a Debian or Ubuntu Linux system, you can follow these steps:

  1. Install the open-iscsi package using the apt command. For example:
ref‮ual:ot re‬tturi.com
apt install open-iscsi
  1. Edit the /etc/iscsi/iscsid.conf file and set the node.startup option to automatic. For example:
node.startup = automatic

This will cause the iSCSI initiator to automatically connect to iSCSI targets at startup.

  1. Restart the iscsid service using the systemctl command. For example:
systemctl restart iscsid
  1. Discover the iSCSI targets using the iscsiadm command. For example:
iscsiadm -m discovery -t st -p iscsi-target-ip-address

This will discover the iSCSI targets on the specified IP address.

  1. Login to the iSCSI targets using the iscsiadm command. For example:
iscsiadm -m node -T target-iqn -p iscsi-target-ip-address -l

This will log in to the iSCSI targets with the specified IQN and IP address.

  1. Check the status of the iSCSI targets using the iscsiadm command. For example:
iscsiadm -m session

This will display the status of the iSCSI targets.

It's important to note that you may need to have root privileges to install packages, edit configuration files, and restart services.

For more information about connecting to an iSCSI volume on a Debian or Ubuntu Linux system, you can refer to the iscsiadm manual page or use the --help option. For example:

man iscsiadm
iscsiadm --help

It's also important to note that you may need to configure the iSC

Created Time:2017-10-28 14:02:25  Author:lautturi