Subject:
Here are the steps that are needed if you want to create an iSCSI LUN on a QuantaStor system and present it to a Linux system.
Detail:
You will first need to get the IQN for the RedHat system so you can provide that to the Quantastor system when setting up a iSCSI host.
1. Use the command below to find the IQN of the RedHat host:
# cat /etc/iscsi/initiatorname.iscsi
*
InitiatorName=iqn.1993-08.org.debian:01:a5e51c60bc33
2. Take the IQN that is in the "initiatorname.iscsi" file and create a host on the QuantaStor, see the attached screen shot.
3. Once the host has been created you will need to right click on the host name and select "Assign Volume" from the dropdown menus to assign a volume to the iSCSI LUN.
4. Then go to the RedHat system and check to see if the LUN is avalible, see the example below:
iscsiadm -m discovery -t st -p (IPaddress)
EXAMPLE:
# iscsiadm -m discovery -t st -p 10.0.65.195
*
10.0.65.195:3260,1 iqn.2009-10.com.osnexus:10191f14-0527b0a7084db492:LogVol01
192.168.65.195:3260,1 iqn.2009-10.com.osnexus:10191f14-0527b0a7084db492:LogVol01
5. You will then need to log into the target LUN using the command below:
iscsiadm -m node -T (targetname) -p (ipaddress) -l
EXAMPLE:
# iscsiadm -m node -T iqn.2009-10.com.osnexus:10191f14-0527b0a7084db492:LogVol01 192.168.65.195 -l
*
Logging in to [iface: default, target: iqn.2009-10.com.osnexus:10191f14-0527b0a7084db492:LogVol01, portal: 10.0.65.195,3260] (multiple)
Logging in to [iface: default, target: iqn.2009-10.com.osnexus:10191f14-0527b0a7084db492:LogVol01, portal: 192.168.65.195,3260] (multiple)
Login to [iface: default, target: iqn.2009-10.com.osnexus:10191f14-0527b0a7084db492:LogVol01, portal: 10.0.65.195,3260] successful.
To verify connection use this command:
# iscsiadm -m session
*
tcp: [1] 10.0.65.195:3260,1 iqn.2009-10.com.osnexus:10191f14-0527b0a7084db492:LogVol01
Please review this link for additional detail on these steps:
QuantaStor_Users_Guide#Step_3._Assigning_iSCSI_Storage_Volume.28s.29_to_your_Host.2FServer
Comments