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
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
i want to install rdac driver. after compile source, by using "make". we have to install "make install" or what have to do.
ReplyDelete■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