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

Typical Oracle RAC configurations

All configurations are based on the following building blocks: Hardware Server nodes Storage Networking Software Operating system Cluster software Oracle RAC (application) Application architecture Oracle9i RAC on RAW devices is based on a shared disk architecture. Figure 2-1 shows a two-node cluster. The lower solid line is the primary Oracle interconnect, the middle dashed line is the secondary Oracle interconnect. For high availability, both these networks should be defined in the HACMP as "private". HACMP/ESCRM provides Oracle9i RAC with the infrastructure for concurrent access to disks. Although HACMP provides concurrent access and a disk locking mechanism, this mechanism is not used. Oracle, instead, provides its own locking mechanism for concurrent data access, integrity, and consistency. Volume groups are varied on all the nodes, thus ensuring short failover time. This type of concurrent access can only be provided for RAW ...

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...

IBM SAN Multipath installation on Red Hat Enterprise Linux 5.X

This section describes the steps for installing Red Hat Enterprise Linux 5.2 on a multipath device. 1.Determine which multipath device your machine boots from. To do this, note down the LUN (Logical Unit) number of the bootable device that is made available by your Fibre Channel Adapter card during firmware boot. In the test environment, the firmware displays the boot disk, showing lun number 0.                           2.Start the installation by providing the keyword mpath in the kernel command line. In the test environment, linux mpath vnc was used. The Partitioning screen displays a list of multipath devices as mapper/mpath*. 3. Determine the multipath device that corresponds to the bootable device for the host being installed. Go back to the console window if using VNC, or start an alternate console. In the test environment, the System x® is hooked up to an RSA. In the remote control console,...