Today I am testing and playing with my Linux Lite 3.0 dekstop. Its fun and interesting to work with Linux Lite 3.0. Here I want to share about how to connect to iSCSI target from my Linux Lite 3.0. I know this task is not kind of a usual desktop users but in case you are working with Linux Lite and willing to connect to your existing iSCSI target, this tutorial may help.
Please take a note that this tutorial uses the existing iscsi target server. So, if you don’t have any iscsi target enabled on your network, you should create a new one first before attempting to connect to it. Ok, here is my setup:
- iscsi target server IP address: 10.34.0.9
- iscsi initiator: my Linux Lite 3.0 desktop
First we need to install iscsi administration package via Terminal.
sudo apt-get install open-iscsi
That is the only package we need to connect to an iscsi target. Still in Terminal, execute this command:
sudo iscsiadm -m discovery -t sendtargets -p 10.34.0.9
You may change the ip address with your target server. And please also note that my iscsi target does not require any authentication. And the output will looks like this:
Make a note of the iscsi target detail from the output and then execute this command. Change the iqn*** part with yours.
sudo iscsiadm --mode node --targetname iqn.2011-08.com.asustor:as3102t-8b2081.asustor001 --portal 10.34.0.9:3260 --login
Logging in to [iface: default, target: iqn.2011-08.com.asustor:as3102t-8b2081.asustor001, portal: 10.34.0.9,3260] (multiple)
Login to [iface: default, target: iqn.2011-08.com.asustor:as3102t-8b2081.asustor001, portal: 10.34.0.9,3260] successful.
Now check if your iscsi target disk is listed from fdisk -l command
sudo fdisk -l