RedHat, Amazon AMI or Centos 6.5
First install the iscsi initiator using yum
# yum install iscsi-initiator-utils
Please note, that your cloud image / AMI might have the iSCSI Initiator software pre-installed. In this case, the IQN will be set to some standard hard-coded value and all your other instances spawned from this image will have the same IQN.
The VPSA will not allow two different instances with the same IQN to connect to the VPSA. In order to fix it, execute the following (for RedHat):
echo "InitiatorName=iqn.1994-05.com.redhat"`iscsi-iname -p ""` > /etc/iscsi/initiatorname.iscsi
service iscsi restart
Start the service
# service iscsi start
check the IQN of the initiator
# cat /etc/iscsi/initiatorname.iscsi
InitiatorName=iqn.1994-05.com.redhat:3131e417923
At this point iSCSI initiator is installed. Next, in order to attach VPSA volumes need to use iscsiadm to discover the target and add the CHAP Auth.
In order to restart iSCSI after boot do chkconfig
# chkconfig iscsi on
Follow the instructions to login using CHAP: How to connect a linux server to a VPSA using CHAP authentication.
Ubuntu
To install the iSCSI initiator in Ubuntu linux, run the following two commands.
$ sudo apt-get update
$ sudo apt-get install open-iscsi open-iscsi-utils
check the initiator name:
cat /etc/iscsi/initiatorname.iscsi
Follow the instructions to login using CHAP: How to connect a linux server to a VPSA using CHAP authentication.
Suse Linux 11
To install the iSCSI initiator in Suse linux, run the following two commands.
- Yast
- Select Network Services --> iSCSI Initiator
- you will be prompted to install open iscsi press Install
Follow the instructions to login using CHAP: How to connect a linux server to a VPSA using CHAP authentication.