Skip to main content

RDAC Multipath Failover Driver for Linux OS

Installing the RDAC Driver


The following procedure describes how to install the RDAC driver for Red Hat RHEL 5, Red Hat Advanced Server 4, and Red Hat SuSE.



•Red Hat RHEL 5 package: rdac-LINUX-09.03.0B05.0042-source.tar.gz



•Red Hat Advanced Server 4 package: rdac-LINUX-09.03.0C02.0042-source.tar.gz



1. Unpack the source code using the tar command:



# tar -zxvf rdac-LINUX-xx.xx.xxxx.xxxx-source.tar.gz

where xx.xx.xxxx.xxxx is the RDAC version you downloaded.



The files are copied to the linuxrdac-xx.xx.xx.xx directory.



2. Change to the directory containing the unpacked files. For example,



# cd linuxrdac-09.03.C2.13

3. Remove any earlier version drivers that are in this directory by running the make clean command:





# make clean -r

make V=0 -C/lib/modules/2.6.18-8.el5xen/build M=/PTS/linuxrdac-09.03.C2.13 MODVERDIR=/lib/modules/2.6.18-8.el5xen/build/.tmp_versions SUBDIRS=/PTS/linuxrdac-09.03.C2.13 clean

make[1]: Entering directory ‘/usr/src/kernels/2.6.18-8.el5-xen-x86_64’

make[1]: Leaving directory ‘/usr/src/kernels/2.6.18-8.el5-xen-x86_64’

rm -f ./mpp_linux_sys_headers/mppLnx26p_spinlock.h mppLnx_Spinlock_Size

rm -f Module.symvers

rm -f mppUtil

rm -f genuniqueid

#







4. Compile all driver modules and utilities by running the make command:





# make

make V=0 -C/lib/modules/2.6.18-8.el5xen/build M=/PTS/linuxrdac-09.03.C2.13 MODVERDIR=/lib/modules/2.6.18-8.el5xen/build/.tmp_versions SUBDIRS=/PTS/linuxrdac-09.03.C2.13 modules

make[1]: Entering directory ‘/usr/src/kernels/2.6.18-8.el5-xen-x86_64’

CC [M] /PTS/linuxrdac-09.03.C2.13/MPP_hba.o

CC [M] /PTS/linuxrdac-09.03.C2.13/mppLnx26p_upper.o

CC [M] /PTS/linuxrdac-09.03.C2.13/mppLnx26p_sysdep.o

CC [M] /PTS/linuxrdac-09.03.C2.13/mppCmn_s2tos3.o

CC [M] /PTS/linuxrdac-09.03.C2.13/mppCmn_SysInterface.o

CC [M] /PTS/linuxrdac-09.03.C2.13/mppLnx26p_vhbamisc.o

CC [M] /PTS/linuxrdac-09.03.C2.13/mppLnx26p_vhbatask.o

CC [M] /PTS/linuxrdac-09.03.C2.13/mppLnx26p_vhba.o

CC [M] /PTS/linuxrdac-09.03.C2.13/mppLnx26p_vhbaproc.o

CC [M] /PTS/linuxrdac-09.03.C2.13/mppLnx26p_vhbalib.o

CC [M] /PTS/linuxrdac-09.03.C2.13/mppLnx26p_vhbaio.o

LD [M] /PTS/linuxrdac-09.03.C2.13/mppUpper.o

LD [M] /PTS/linuxrdac-09.03.C2.13/mppVhba.o

Building modules, stage 2.

MODPOST

CC /PTS/linuxrdac-09.03.C2.13/mppUpper.mod.o

LD [M] /PTS/linuxrdac-09.03.C2.13/mppUpper.ko

CC /PTS/linuxrdac-09.03.C2.13/mppVhba.mod.o

LD [M] /PTS/linuxrdac-09.03.C2.13/mppVhba.ko

make[1]: Leaving directory ‘/usr/src/kernels/2.6.18-8.el5-xen-x86_64’

make V=0 -C/lib/modules/2.6.18-8.el5xen/build M=/PTS/linuxrdac-09.03.C2.13 MODVERDIR=/lib/modules/2.6.18-8.el5xen/build/.tmp_versions SUBDIRS=/PTS/linuxrdac-09.03.C2.13 modules

make[1]: Entering directory ‘/usr/src/kernels/2.6.18-8.el5-xen-x86_64’

Building modules, stage 2.

MODPOST

make[1]: Leaving directory ‘/usr/src/kernels/2.6.18-8.el5-xen-x86_64’

gcc -D__KERNEL__ -I/lib/modules/2.6.18-8.el5xen/build/include mppLnx26p_spinlock_size.c -o mppLnx_Spinlock_Size







Sample output continued from previous page



gcc -I/PTS/linuxrdac-09.03.C2.13 -I/PTS/linuxrdac-09.03.C2.13/mpp_linux_headers/ -I/PTS/linuxrdac-09.03.C2.13/mpp_linux_sys_headers/ -c ./utility/mppUtil.c -o mppUtil.o

/bin/bash ./genfileattributes bld

gcc -I/PTS/linuxrdac-09.03.C2.13 -I/PTS/linuxrdac-09.03.C2.13/mpp_linux_headers/ -I/PTS/linuxrdac-09.03.C2.13/mpp_linux_sys_headers/ -c ./utility/mppUtil26p_sysdep.c -o mppUtilSysdep.o

gcc mppUtil.o mppUtilSysdep.o -o mppUtil

gcc -o genuniqueid genuniqueid.c







5. Uninstall any existing RDAC drivers using the make uninstall command:



# make uninstall

MPP driver is currently not installed on the system

[root@va64-x4100d-sca11 linuxrdac-09.03.C2.13]

6. Install the new RDAC driver using the make install command. This command:



■Copies the driver modules to the kernel module tree.



■Builds the new RAMdisk image (mpp-‘uname -r‘.img) which includes the RDAC driver modules and all driver modules that are needed at boot time.





# make install

make V=0 -C/lib/modules/2.6.18-8.el5xen/build M=/PTS/linuxrdac-09.03.C2.13 MODVERDIR=/lib/modules/2.6.18-8.el5xen/build/.tmp_versions SUBDIRS=/PTS/linuxrdac-09.03.C2.13 modules

make[1]: Entering directory ‘/usr/src/kernels/2.6.18-8.el5-xen-x86_64’

Building modules, stage 2.

MODPOST

make[1]: Leaving directory ‘/usr/src/kernels/2.6.18-8.el5-xen-x86_64’

make V=0 -C/lib/modules/2.6.18-8.el5xen/build M=/PTS/linuxrdac-09.03.C2.13 MODVERDIR=/lib/modules/2.6.18-8.el5xen/build/.tmp_versions SUBDIRS=/PTS/linuxrdac-09.03.C2.13 modules

make[1]: Entering directory ‘/usr/src/kernels/2.6.18-8.el5-xen-x86_64’

Building modules, stage 2.

MODPOST

make[1]: Leaving directory ‘/usr/src/kernels/2.6.18-8.el5-xen-x86_64’

/bin/bash ./genfileattributes bld

gcc -I/PTS/linuxrdac-09.03.C2.13 -I/PTS/linuxrdac-09.03.C2.13/mpp_linux_headers/ -I/PTS/linuxrdac-09.03.C2.13/mpp_linux_sys_headers/ -c ./utility/mppUtil26p_sysdep.c -o mppUtilSysdep.o

gcc mppUtil.o mppUtilSysdep.o -o mppUtil

Checking Host Adapter Configuration...

Unsupported Host Adapter Model: Product ID fc10(rev01)

Unsupported Host Adapter Model: Product ID fc10(rev01)

Detected 2 Emulex Host Adapter Port(s) on the system

Detected 1 LSI Host Adapter Port(s) on the system

Detected 2 QLogic Host Adapter Port(s) on the system

Host Adapters from different supported vendors co-exists on your system.

Unsupported model from Vendor Emulex exists.

Please make sure that only one supported model of HBA is connected to Storage Array.







7. Type yes when you are prompted to continue:





Do you want to continue (yes or no) ? yes

Please wait while we modify the system configuration files.

Your kernel version is 2.6.18-8.el5xen

Preparing to install MPP driver against this kernel version...

Generating module dependencies...

Warning: Duplicate module options detected.

Option in /etc/modprobe.conf ( max_luns=256 ) takes precedence over MPP default setting ( max_luns=512 ).

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-8.el5xen.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-8.el5xen) with MPP support

root (hd0,5)

kernel /vmlinuz-2.6.18-8.el5xen ro root=LABEL=RH9

initrd /mpp-2.6.18-8.el5xen.img

...

MPP driver package has been successfully installed on your system.







8. Follow the on-screen instructions to modify the grub.conf file. Change the module and initrd names as follows:





Original Name

Revised Name



module /initrd-2.6.18-8.el5xen.img

module /mpp-2.6.18-8.el5xen.img



initrd /initrd-2.6.18-8.el5.img

initrd /mpp-2.6.18-8.el5xen.img







The content of the grub.conf file looks similar to the following. (The revised module and initrd names are shown in bold text.)





# boot=/dev/sda

default=0

timeout=5

title Red Hat Enterprise Linux Server (2.6.18-8.el5xen)

root (hd0,0)

kernel /xen.gz-2.6.18-8.el5 com1=9600n8

module /vmlinuz-2.6.18-8.el5xen ro root=LABEL=/ console=ttyS0,9600n8 rhgb quiet

module /mpp-2.6.18-8.el5xen.img

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

root (hd0,0)

kernel /vmlinuz-2.6.18-8.el5 ro root=LABEL=/ console=ttyS0,9600n8 rhgb quiet

initrd /mpp-2.6.18-8.el5xen.img







9. Reboot the Linux server.



# reboot

Comments

  1. i want to install rdac driver. after compile source, by using "make". we have to install "make install" or what have to do.

    ■Copies the driver modules to the kernel module tree.

    ■Builds the new RAMdisk image (mpp-‘uname -r‘.img) which includes the RDAC driver modules and all driver modules that are needed at boot time. this is unable to understand explain clearly. we have to ramdisk ? my mail id is jvaurajecil@gmil.com
    jvanuraja_2007@yahoo.co.in

    ReplyDelete

Post a Comment

Popular posts from this blog

How to configure multipath Debian CentOS for IBM Storage

This detailed how to guides to achieve high availability and performance on Debian and CentOS for accessing storage space at IBM DS8300 Data Storage Systems. Tested on Debian GNU/Linux 5.x Lenny 64 bits and CentOS 5.3 64 bits running on 8 cores blades, with Host Bus Adapters Qlogic and Emulex Light Pulse Fiber Channel in deployed systems at SERPRO . Observations showed that Debian Lenny has the best performance, for our app load profile and hardware. Also, there are listed a number of previously not clearly documented critical pitfalls to avoid. STUDY whole articles, hints, implications, and cited resources before planning your deployment. Every detail matters . Before start, you must have LUNs at IBM DS8300 storage configured for high availability and performance as explained at the article How to configure maximum performance storage space for Debian GNU/Linux on IBM DS 8300 Data Storage Systems . Multipath and storage basic concepts In order t...

Squid Access Lists

Access Lists There are a number of different access lists: http_access : Allows HTTP clients (browsers) to access the HTTP port. This is the primary access control list. http_reply_access : Allows HTTP clients (browsers) to receive the reply to their request. This further restricts permissions given by http_access , and is primarily intended to be used together with rep_mime_type acl for blocking different content types. icp_access : Allows neighbor caches to query your cache with ICP. miss_access : Allows certain clients to forward cache misses through your cache. This further restricts permissions given by http_access , and is primarily intended to be used for enforcing sibling relations by denying siblings from forwarding cache misses through your cache. cache : Defines responses that should not be cached. url_rewrite_access : Controls which requests are sent through the redirector pool. ident_lookup_access : Controls which requests need an Ident lookup. always_dire...

ipsec tunnel pfSense and Centos

pfSense 1.2.3 -------- external ip: 1.1.1.1 internal ip: 172.20.1.20 internal network: 172.20.1.0/24 Centos 5.5 -------- external ip: 2.2.2.2 internal ip: 172.20.2.1 internal network: 172.20.2.0/24 pfSense config from a reset. Firewall rule to allow all ipsec communication (all protocols). pfSense ipsec config -------------------- Mode: Tunnel Interface: WAN (I'm not sure this should be WAN, but changing it to LAN makes no difference) Local subnet: 172.20.1.0/24 Remote subnet: 172.20.2.0/24 Remote gateway: 2.2.2.2 Phase 1 Negotiation mode: agressive My identifier: My IP adress Encryption algorithm: 3DES Hash algorithm: SHA1 DH key group: 2 Authentication method: Pre-shared key Pre-Shared Key: secret Phase 2 Protocol: ESP Encryption algorithms: Rijndael (AES) Hash algorithms: SHA1 PFS key group: 2   Centos ipsec config ------------------- /etc/sysconfig/network-scripts/ifcfg-ipsec0 TYPE=IPSEC ...