安装多路访问软件
两台台服务器和磁盘阵列的四个光纤通道都连接在光纤交换机上,这样会使操作系统对每一个映射的LUN都发现四遍,这不是我们所希望的。通过使用多路访问软件维护LUN的映射,使每个LUN映射只对应一个设备,且使应用与数据的访问链路冗余并对数据访问流量进行负载均衡优化。
从IBM下载最新的RDAC软件,这里我们使用rdac_LINUX_09.00.A5.09.tar.gz
以root身份执行以下操作:
设置Linux支持多个LUN,编辑/etc/modules.conf
例如:
新增以下一行
options scsi_mod max_scsi_luns=255
安装RDAC软件
#tar zxvf rdac_LINUX_09.00.A5.09.tar.gz
#cd linuxrdac
#make install
我们的引导管理器使用grub,所以编辑/boot/grub/menu.lst,修改包含initrd的行,使其使用刚才软件安装产生的内核镜像文件
例如:
注释以下一行
initrd /initrd-2.4.21-27.EL.img
新增以下一行
initrd /mpp-2.4.21-27.EL.img
重新启动系统,我们就获得了对SAN多路访问的能力。
[root@newsdb2 grub]# cat menu.lst
# 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,0)
# kernel /vmlinuz-version ro root=/dev/cciss/c0d0p8
# initrd /initrd-version.img
#boot=/dev/cciss/c0d0
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Linux (2.6.9-78.ELsmp) with MPP support
root (hd0,0)
kernel /vmlinuz-2.6.9-78.ELsmp ro root=LABEL=/ rhgb quiet
initrd /mpp-2.6.9-78.ELsmp.img
title Red Hat Enterprise Linux AS (2.6.9-78.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.6.9-78.ELsmp ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-78.ELsmp.img
title Red Hat Enterprise Linux AS-up (2.6.9-78.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-78.EL ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-78.EL.img
两台台服务器和磁盘阵列的四个光纤通道都连接在光纤交换机上,这样会使操作系统对每一个映射的LUN都发现四遍,这不是我们所希望的。通过使用多路访问软件维护LUN的映射,使每个LUN映射只对应一个设备,且使应用与数据的访问链路冗余并对数据访问流量进行负载均衡优化。
从IBM下载最新的RDAC软件,这里我们使用rdac_LINUX_09.00.A5.09.tar.gz
以root身份执行以下操作:
设置Linux支持多个LUN,编辑/etc/modules.conf
例如:
新增以下一行
options scsi_mod max_scsi_luns=255
安装RDAC软件
#tar zxvf rdac_LINUX_09.00.A5.09.tar.gz
#cd linuxrdac
#make install
我们的引导管理器使用grub,所以编辑/boot/grub/menu.lst,修改包含initrd的行,使其使用刚才软件安装产生的内核镜像文件
例如:
注释以下一行
initrd /initrd-2.4.21-27.EL.img
新增以下一行
initrd /mpp-2.4.21-27.EL.img
重新启动系统,我们就获得了对SAN多路访问的能力。
[root@newsdb2 grub]# cat menu.lst
# 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,0)
# kernel /vmlinuz-version ro root=/dev/cciss/c0d0p8
# initrd /initrd-version.img
#boot=/dev/cciss/c0d0
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Linux (2.6.9-78.ELsmp) with MPP support
root (hd0,0)
kernel /vmlinuz-2.6.9-78.ELsmp ro root=LABEL=/ rhgb quiet
initrd /mpp-2.6.9-78.ELsmp.img
title Red Hat Enterprise Linux AS (2.6.9-78.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.6.9-78.ELsmp ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-78.ELsmp.img
title Red Hat Enterprise Linux AS-up (2.6.9-78.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-78.EL ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-78.EL.img
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/611609/viewspace-614703/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/611609/viewspace-614703/
本文介绍如何通过安装多路访问软件实现服务器与磁盘阵列之间的高效数据交互。通过使用该软件可以避免操作系统重复发现同一LUN的问题,并实现数据访问链路的冗余及负载均衡。文中详细记录了在Linux环境下配置过程,包括编辑配置文件、安装软件及修改引导管理器等步骤。
1万+

被折叠的 条评论
为什么被折叠?



