How to connect a Linux host to an Equallogic volume.
Summary: How to connect a Linux host to an Equallogic volume.
Symptoms
| Article Summary: | This article provides information on how to connect a Linux host to an Equallogic volume. |
Environment:
- Red Hat Enterprise Linux 5\6
- Equallogic PS series array.
- The steps below assume that a volume has already been create on the Equlalogic array and the host has been granted access to it.
Steps:
-
Installing the iSCSI initiator:
-
Run the commands:
-
# yum list | grep iscsi to check if the iscsi-initiator-utils package is already installed or needs to be installed.
-
# yum install iscsi-initiator-utils.xxx_xx to install the iscsi-initiator-utils package if it is not already installed
-
# service iscsi start to start the iSCSI Initiator daemon.
-
# chkconfig iscsi on to enable the service to start at boot.
-
-
-
Configure disk timeout settings from 30 to 60 Seconds:
-
For Red Hat operatig systems, use the follwoing script to update the timeout value:
-
for i in ‘ls /sys/class/scsi_device‘;
do echo "60" > /sys/class/scsi_device/$i/device/timeout;
done -
For Red Hat operatig systems, use the follwoing script to update the timeout value:
-
for i in ‘ls /sys/class/scsi_disk‘;
do echo "60" > /sys/class/scsi_disk/$i/device/timeout;
done
-
-
Discover and login to the Equallogic volume from the Linux host:
-
Run the commands:
-
# iscsiadm -m discovery -t sendtargets -p <Equallogic group's IP address> To discover the volumes presented to the Linux host.
-
# iscsiadm -m node -T <iqn> -p <Equallogic group's IP address> --login Replace <iqn> with iqn returned by the discovery command above.
-
-
-
Find the newly created device:
-
Run the command:
-
# iscsiadm -m session -P3
-
-
Now you can create the file system using the mkfs command, or you can partition the disk first if you'd like. Alternatively, the LVM tool could be used to initialize the volume and assign the space to a logical volume.
Reference: 24.13. Logging In to an iSCSI Target