Redhat 5.3挂载IBM DS4800存储并安装RDAC多路径软件

一、 按照计划,在光纤交换机上配置zone。

二、 光纤线连接;按照预先计划,把服务器的两个FC HBA连接到指定的光纤交换机的指定端口(在上一步中划zone的端口)。

三、 在存储上定义host及host group,分配需要的lun。

四、 在服务器上安装多路径软件RDAC

a) 在IBM网站下载相应版本的RDAC软件,rdac-LINUX-09.03.0C05.0214-source.tar.gz

http://www-947.ibm.com/systems/support/supportsite.wss/selectproduct?brandind=5000028&familyind=5329626&osind=5365487&oldbrand=5000028&oldfamily=5329626&oldtype=0&taskind=2&matrix=Y&psid=ap&continue.x=13&continue.y=16

b) 解压

tar zxvf rdac-LINUX-09.03.0C05.0214-source.tar.gz

c) 安装

cd linuxrdac-09.03.0C05.0214/

ls

make

make install

(输出信息:)

Please wait while we modify the system configuration files.

Your kernel version is 2.6.18-128.el5

Preparing to install MPP driver against this kernel version…

Generating module dependencies…

Creating new MPP initrd image…

You must now edit your boot loader configuration file, /boot/grub/menu.lst, to

add a new boot menu, which uses mpp-2.6.18-128.el5.img as the initrd image.

Now Reboot the system for MPP to take effect.

The new boot menu entry should look something like this (note that it may

vary with different system configuration):

title Red Hat Linux (2.6.18-128.el5) with MPP support

root (hd0,5)

kernel /vmlinuz-2.6.18-128.el5 ro root=LABEL=RH9

initrd /mpp-2.6.18-128.el5.img

(如果在没有安装RDAC之前重新启动过服务器,这个过程时间会比较长)

d) 修改grub启动列表:把default=0改为default=1,在最后添加红色部分。

vi /etc/grub.conf

# grub.conf generated by anaconda

#

# Note that you do not have to rerun grub after making changes to this file

# NOTICE: You have a /boot partition. This means that

# all kernel and initrd paths are relative to /boot/, eg.

# root (hd0,2)

# kernel /vmlinuz-version ro root=/dev/VolGroup_ID_19060/LogVol1

# initrd /initrd-version.img

#boot=/dev/sda3

default=1

timeout=5

splashimage=(hd0,2)/grub/splash.xpm.gz

hiddenmenu

title Red Hat Enterprise Linux Server (2.6.18-128.el5)

root (hd0,2)

kernel /vmlinuz-2.6.18-128.el5 ro root=/dev/VolGroup_ID_19060/LogVol1 rhgb quiet

initrd /initrd-2.6.18-128.el5.img

title Red Hat Enterprise Linux Server (2.6.18-128.el5)

root (hd0,2)

kernel /vmlinuz-2.6.18-128.el5 ro root=/dev/VolGroup_ID_19060/LogVol1 rhgb quiet

initrd /mpp-2.6.18-128.el5.img

e) 重新启动服务器,查看是否检测到分配给该服务器的lun

fdisk -l | more,可以看到类似如下的内容,其中/dev/sda是服务器本身的硬盘,从/dev/sdb开始就是ds4800的了,每个42.9GB。

Disk /dev/sda: 292.3 GB, 292326211584 bytes

255 heads, 63 sectors/track, 35539 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

/dev/sda1 1 5 40131 de Dell Utility

/dev/sda2 6 755 6024375 8e Linux LVM

/dev/sda3 * 756 780 200812+ 83 Linux

/dev/sda4 781 35539 279201667+ 5 Extended

/dev/sda5 781 35539 279201636 8e Linux LVM

Disk /dev/sdb: 42.9 GB, 42949672960 bytes

64 heads, 32 sectors/track, 40960 cylinders

Units = cylinders of 2048 * 512 = 1048576 bytes

Disk /dev/sdc: 42.9 GB, 42949672960 bytes

64 heads, 32 sectors/track, 40960 cylinders

Units = cylinders of 2048 * 512 = 1048576 bytes

Disk /dev/sdd: 42.9 GB, 42949672960 bytes

64 heads, 32 sectors/track, 40960 cylinders

Units = cylinders of 2048 * 512 = 1048576 bytes

f) 创建PV

pvcreate /dev/sd[b-d] 该命令创建了3个PV,也可以一个一个创建。

g) 查看一下创建的PV

pvdisplay

应该能看到创建的3个PV。

h) 接下来就可以使用vgcreate创建VG,使用lvcreate创建LV。

示例:

vgcreate testvg /dev/sdb /dev/sdc /dev/sdd 使用上面创建的3个PV创建一个名为testvg的VG。

lvcreate testlv -L 2048M testvg 在testvg中创建一个名为testlv的2G大小的LV。

1 comment to Redhat 5.3挂载IBM DS4800存储并安装RDAC多路径软件

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>