View Categories

ISCSI Client and connecting to a target on Debian or Ubuntu

< 1 min read

Configure Initiator (client)

 

Step 1 #

Please run apt-get update and install open-iscsi package:

$ apt-get update
$ apt-get install open-iscsi

 

Step 2 #

Assuming your server IP address is 10.0.0.1, please run:

$ iscsiadm -m discovery -t st -p 10.0.0.1

iscsi-discovery.png

Step 3 #

Now please edit file: /etc/iscsi/nodes/client.iscsi:lun1/10.0.0.1,3260,1/default

Now locate and change/add following values:

node.startup = automatic
node.session.auth.authmethod = CHAP
node.session.auth.username = client-scsi
node.session.auth.password = client-password
node.session.auth.username_in = server-scsi
node.session.auth.password_in = server-password

 

Step 4 #

Now restart open-iscsi:

$ service open-iscsi restart

 

Step 5 #

Please check now if your iscsi drive is visible on the client side by using lsblk

iscsi-lsblk.png