HPCHOST

Client Login Client Login

How to Connect to an iSCSI Volume using Linux-iscsi in Linux.

Instruction notes:
Replace the "ISCSI_USER" token with one of the values in the "username" column above.
Replace the "ISCSI_PASS" token with the corresponding value in the "password" column above.
Replace the "ISCSI_TARGET_HOST" token with the corresponding value in the "IP Address" column above.

Setup Instructions:
Install the open-iscsi package for your OS:
CentOS 4
yum install iscsi-initiator-utils

Redhat ES 4
up2date iscsi-initiator-utils

Edit /etc/iscsi.conf with your favorite text editor and replace the contents with the following:

DiscoveryAddress=ISCSI_TARGET_HOST
 UserName=ISCSI_USER
 Password=ISCSI_PASS
 LoginTimeout=15

Important: The whitespace characters in the configuration above are required. If they are not provided the configuration will fail.

Start the iscsi service:
/etc/init.d/iscsi start

You should now see an additional drive on the system. You can print out the drive device with the following command:
find /sys/devices/platform/host* -name block\* -exec ls -la '{}' \; | sed s#^.*../block/#/dev/#g



Was this answer helpful?

Add to Favourites
Print this Article

Also Read
Using chmod and chown (Views: 148)



Close Chat
HPC Host Live Chat