Description: For iSCSI storage devices with two or more controllers, or for systems with Openfiler with two network adapters. You need to configure Multipath to improve availability.
This article uses Openfiler to implement the installation and testing of iSCSI devices.
This article NAS uses Openfiler 2.99.1 X64 as an experimental environment to prepare for a recent backup environment deployment.
1. And install the iSCSI Launcher package
RPM-IVH iscsi-initiator-utils-6.2.0.871-0.10.el5.i386.rpm
Chkconfig--level 2345 iSCSI on
Chkconfig--level 2345 Iscsid on
Service iSCSI Start
Service Iscsid Start
2. Multi-path Software Installation Preparation
# RPM-QA |grep Mapper
Device-mapper-event-1.02.55-2.el5
Device-mapper-1.02.55-2.el5
Device-mapper-multipath-0.4.7-42.el5
#
Set to power-on self-starter MULTIPATHD
# chkconfig--level 2345 MULTIPATHD on
To check if the installation is OK
# lsmod |grep Dm_multipath
Dm_multipath 25421 0
SCSI_DH 12097 1 Dm_multipath
Dm_mod 63097 Dm_multipath,dm_raid45,dm_snapshot,dm_zero,dm_mirror,dm_log
3. Discover storage devices
# iscsiadm-m Discovery-t st-p 192.168.100.238
192.168.100.238:3260,1 iqn.2006-01.com.openfiler:tsn.f9d59aaffe9c
192.168.100.239:3260,1 iqn.2006-01.com.openfiler:tsn.f9d59aaffe9c
4. Connect two nodes, connect through two IP respectively
(1) connection to the first IP login
# iscsiadm-m Node-t iqn.2006-01.com.openfiler:tsn.f9d59aaffe9c-p 192.168.100.238-l
Logging in to [Iface:default, target:iqn.2006-01.com.openfiler:tsn.f9d59aaffe9c, portal:192.168.100.238,3260]
Login to [Iface:default, target:iqn.2006-01.com.openfiler:tsn.f9d59aaffe9c, portal:192.168.100.238,3260] Successful .
(2) Connection login second IP
# iscsiadm-m Node-t iqn.2006-01.com.openfiler:tsn.f9d59aaffe9c-p 192.168.100.239-l
Logging in to [Iface:default, target:iqn.2006-01.com.openfiler:tsn.f9d59aaffe9c, portal:192.168.100.239,3260]
Login to [Iface:default, target:iqn.2006-01.com.openfiler:tsn.f9d59aaffe9c, portal:192.168.100.239,3260] Successful .
5. View connection Status
(1) View connection Status 1
# ISCSIADM-M Session
TCP: [1] 192.168.14.180:3260,1 iqn.2006-01.com.openfiler:tsn.355d1613342d
TCP: [2] 192.168.14.181:3260,1 iqn.2006-01.com.openfiler:tsn.355d1613342d