In this article, we look into connecting to a remote iSCSI target.
Debian based distributions:
RHEL based distributions:
Where 192.168.234.10 is the IP address of your iSCSI host.
Now we should get a output similar to the one below:
Where 192.168.234.10:3260 is the portal IP and after the 1 the target name.
Now the target should be attached to our client. To check we can do:
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
Fdisk will allow us to format the volume.
Formatting the volume.
Mounting the volume: