Open-E Knowledgebase

[JDSS][DSS V7] How can I connect to a iSCSI target from Linux console?

Article ID: 3191
Last updated: 09 Apr, 2020

Additional information:

  • product name: JovianDSS / DSSv7
  • product version: all
  • build: all

Subject: 

In this article, we look into connecting to a remote iSCSI target.

Contents:

  • Installing open-iSCSI / iSCSI-initiator-utils

Debian based distributions:

sudo apt-get install open-iscsi

RHEL based distributions:

sudo yum install iscsi-initiator-utils
 

.

.

  • Discovering targets
iscsiadm -m discovery -t sendtargets -p 192.168.234.10

Where 192.168.234.10 is the IP address of your iSCSI host.

Now we should get a output similar to the one below:

192.168.234.10:3260,1 iqn.2020-04.iscsi:node-e88c5a8b.target0

Where 192.168.234.10:3260 is the portal IP and after the 1 the target name.

iscsiadm --mode node --targetname iqn.2020-04.iscsi:node-e88c5a8b.target0 --portal 192.168.234.10:3260 --login

Now the target should be attached to our client. To check we can do:

tail -f /var/log/messages​​​​​​

We should get an output containing a similar lane like below:

[sdb] 314572800 512-byte logical blocks: (161 GB/150 GiB)

Where sdb is the name of the disk in the device manager
.

.

  • Formating the iSCSI Volume

Fdisk will allow us to format the volume.

fdisk /dev/sdb

Formatting the volume.

mkfs.ext4 /dev/sdb1

Mounting the volume:

mkdir /mnt/iscsi
mount /dev/sb1 /mnt/iscsi
This article was:   Helpful | Not helpful Report an issue


Article ID: 3191
Last updated: 09 Apr, 2020
Revision: 10
Views: 0
Posted: 09 Apr, 2020 by Andrusiak D.
Updated: 09 Apr, 2020 by Rybak M.
print  Print email  Subscribe email  Email to friend share  Share pool  Add to pool
Tags
JovianDSS iscsi target jdss linux dssv7 debian rhel console open-iscsi portal ip iscsiadm
Also listed in
folder JovianDSS -> JovianDSS Information -> General info -> iSCSI

Prev     Next
[DSS V7] iSCSI target tuning settings in DSS V7       [DSS V6][DSS V7] How to connect to iSCSI target using Solaris 10?

The Knowledge base is managed by Open-E data storage software company.