CentOS 5.3 XEN Host – IBM DS3300 iSCSI – SuSE Linux Enterprise 10 XEN Guests – Part 1

Hardware :

  • IBM x3650 – 7979C3G – 2x XEON x5355 – 18GB RAM
  • IBM x3650 – 7979A2G – 2x XEON E5335 – 12GB RAM
  • IBM DS3300 iSCSI Storage

Software :

  • CentOS 5.3 – XEN Hosts
  • SuSE Linux Enterprise 10 – XEN Guests
  • LSI rdac Multipath Modules

CentOS XEN Host + Multipath (MPP) LSI RDAC

[roo@xen-host-1 ~]# cat /etc/redhat-release
CentOS release 5.3 (Final)
[roo@xen-host-1 ~]# yum install iscsi-initiator-utils.x86_64

Edit the iscsi.conf

DiscoveryAddress = 192.168.xxx.xxx:3260
HeaderDigest = always
DataDigest = always
Targetname = iqn.1992-01.com.lsi:1535.600a0b8000370e0b00000000xxxxxxxx

[roo@xen-host-1 ~]# service iscsid start
[roo@xen-host-1 ~]# service iscsi start
[roo@xen-host-1 ~]# chkconfig iscsid on
[roo@xen-host-1 ~]# chkconfig iscsi on
[roo@xen-host-1 ~]# iscsiadm -m discovery -t st -p 192.168.xxx.xxx

[roo@xen-host-1 ~]# cat /etc/iscsi/initiatorname.iscsi
InitiatorName=iqn.1994-05.com.redhat:d0e7f7xxxxx

Download RDAC driver from : http://www.lsi.com/rdac/ds3000.html

Install glibc & kernel headers and devel files

[roo@xen-host-1 ~]# yum install glibc-devel.x86_64 glibc-headers.x86_64 kernel-xen-devel.x86_64 kernel-headers.x86_64 kernel-devel.x86_64 gcc-4.1.2-44.el5

[roo@xen-host-1 ~]# mkdir -p /root/software && cd /root/software

[roo@xen-host-1 ~]# wget http://www.lsi.com/rdac/rdac-LINUX-09.03.0C05.0030-source.tar.gz

[roo@xen-host-1 ~]# tar -xzvf rdac-LINUX-09.03.0C05.0030-source.tar.gz

[roo@xen-host-1 ~]# cd linuxrdac-09.03.0C05.0030

[roo@xen-host-1 ~]# make && make install

Checking Host Adapter Configuration…
iSCSI software initiator found. Do you want MPP to manage an iSCSI storage
array?
Do you want to continue (yes or no) ? y
Wait while we modify the system configuration files.
Your kernel version is 2.6.18-92.el5
Preparing to install MPP driver against this kernel version…
Generating module dependencies…
Creating new MPP initrd image…

Edit your bootlolader config :

title CentOS_XEN_MPP (2.6.18-128.el5xen) with MPP support

root (hd0,0)
kernel /boot/xen.gz-2.6.18-128.el5 dom0_mem=512M
module /boot/vmlinuz-2.6.18-128.el5xen ro root=LABEL=/
module /boot/mpp-2.6.18-128.el5xen.img

[roo@xen-host-1 ~]# chkconfig iscsi on

Have configured a Hostgroup, Hosts, LogicalDrives and Host access ? OK reboot now !


[roo@xen-host-1 ~]# ls -lR /proc/mpp
/proc/mpp/:
insgesamt 0
dr-xr-xr-x 4 root root 0 10. Jul 12:49 DS3300

/proc/mpp/DS3300:
insgesamt 0
dr-xr-xr-x 4 root root 0 10. Jul 12:49 controllerA
dr-xr-xr-x 4 root root 0 10. Jul 12:49 controllerB
-rw-r–r– 1 root root 0 10. Jul 12:49 virtualLun0
-rw-r–r– 1 root root 0 10. Jul 12:49 virtualLun1

/proc/mpp/DS3300/controllerA:
insgesamt 0
dr-xr-xr-x 2 root root 0 10. Jul 12:49 iscsi_tcp_h4c0t0
dr-xr-xr-x 2 root root 0 10. Jul 12:49 iscsi_tcp_h5c0t0

/proc/mpp/DS3300/controllerA/iscsi_tcp_h4c0t0:
insgesamt 0
-rw-r–r– 1 root root 0 10. Jul 12:49 LUN0
-rw-r–r– 1 root root 0 10. Jul 12:49 LUN1

/proc/mpp/DS3300/controllerA/iscsi_tcp_h5c0t0:
insgesamt 0
-rw-r–r– 1 root root 0 10. Jul 12:49 LUN0
-rw-r–r– 1 root root 0 10. Jul 12:49 LUN1

/proc/mpp/DS3300/controllerB:
insgesamt 0
dr-xr-xr-x 2 root root 0 10. Jul 12:49 iscsi_tcp_h3c0t0
dr-xr-xr-x 2 root root 0 10. Jul 12:49 iscsi_tcp_h6c0t0

/proc/mpp/DS3300/controllerB/iscsi_tcp_h3c0t0:
insgesamt 0
-rw-r–r– 1 root root 0 10. Jul 12:49 LUN0
-rw-r–r– 1 root root 0 10. Jul 12:49 LUN1

/proc/mpp/DS3300/controllerB/iscsi_tcp_h6c0t0:
insgesamt 0
-rw-r–r– 1 root root 0 10. Jul 12:49 LUN0
-rw-r–r– 1 root root 0 10. Jul 12:49 LUN1

As you can see i have configured 2 logical drives.

[roo@xen-host-1 ~]# fdisk -l

Disk /dev/sdc: 214.7 GByte, 214748364800 Byte
255 heads, 63 sectors/track, 26108 cylinders
Units = cylinders of 16065 × 512 = 8225280 Bytes

Disk /dev/sdc doesn’t contain a valid partition table

Disk /dev/sdd: 322.1 GByte, 322122547200 Byte
255 heads, 63 sectors/track, 39162 cylinders
Units = cylinders of 16065 × 512 = 8225280 Bytes

Disk /dev/sdd doesn’t contain a valid partition table

In Part 2 we will install the guest OS.

This entry was posted in Linux and tagged , , , , . Bookmark the permalink.

Comments are closed.