1828340 Members
3932 Online
109976 Solutions
New Discussion

Re: redhat cluster suite

 
SOLVED
Go to solution
avik
Valued Contributor

redhat cluster suite

i am trying to install redhat cluster suite v 4.0 for 64bit intel itanium. The OS is RHEL AS 4. During the cluster installation, its says the below package is required by the cman & dlm kernel.

('/lib/modules/2.6.9-22.EL', None)
('/lib/modules/2.6.9-22.EL', None)

I guess installing the kernel-2.6.9-22.EL.ia64.rpm should fix the problem (or am i missing a point?) but I dont find this patch anymore downloadable. Anyone has any clue whats happening ? Please help.
21 REPLIES 21
Ivan Ferreira
Honored Contributor

Re: redhat cluster suite

Yes, that is a general confusion that creates the Red Hat Cluster Suite packages. And the solution is just that, install the kernel 2.9.9-22.EL.

If you want to know that are the dependencies for a package use:

rpm -R package.rpm

All dependencies will be listed and you can download them if you don't already have them.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
avik
Valued Contributor

Re: redhat cluster suite

but where can i download this rpm from? up2date is not able to find this package out from redhat site, also i couldnt find this rpm in any of the rpm download site.
Ivan Ferreira
Honored Contributor

Re: redhat cluster suite

About the package availability, according to:

https://rhn.redhat.com/errata/RHSA-2005-514.html

The package was replaced by kernel-2.6.9-42.0.2.EL. This could be a problem if you cannot find an updated version of cluster suite.

What I did last time is:

Download the latest kernel source. Modify the Makefile to name the kernel as the cluster suite packages want. Then install cluster-suite using --nodeps.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
avik
Valued Contributor

Re: redhat cluster suite

I am sorry but i quite new to linux. Can you please explain the steps involved including the commands to be executed please. Thanks in anticipation
avik
Valued Contributor

Re: redhat cluster suite

I am sorry but i am quite new to linux. Can you please explain the steps involved including the commands to be executed please. Thanks in anticipation
Steven E. Protter
Exalted Contributor

Re: redhat cluster suite

Shalom,

Lets download the Red Hat Cluster suite to a directory /tmp/rhcs

Lets say the name is rhcs.iso, use the actual name below

Download the iso there and then begin

mkdir /rhcs

mount -o loop /tmp/rhcs/rhcs.iso /rhcs

cd /rhcs

Move down until you find the directory with the rpms.

rpm -ivh *.rpm

You will probably be prompted for the hugemem kernel. Download that into the same directory and re-run the rpm command.

Now RHCS is installed and you are ready to configure it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ivan Ferreira
Honored Contributor
Solution

Re: redhat cluster suite

# rpm -Uvh kernel-.src.rpm
T
his writes the RPM contents into usr/src/redhat/SOURCES and /usr/src/redhat/SPECS.

Prepare the kernel sources using the commands:

# cd /usr/src/redhat/SPECS
# rpmbuild -bp --target $(arch) kernel.spec

The kernel source tree will be located in the /usr/src/redhat/BUILD/kernel- directory. It is common practice to move the resulting linux- directory to the
/usr/src tree; while not strictly necessary, we suggest that you do this to match the generally-available documentation.

# cd /usr/src/redhat/BUILD/kernel- /usr/src/
# mv linux- /usr/src/
# cd /usr/src
# ln -s ./linux- linux
# cd /usr/src/linux
# cd /usr/src/linux
# make mrproper

Copy your current config file:
#cp /boot/config- .config

Edit the Makefile and change the VERSION, PATHLEVEL, SUBLEVEL, EXTRAVERSION to match the one requiered for the cluster suite package. For example:
VERSION=2
PATCHLEVEL=6
SUBLEVEL=9
EXTRAVERSION=-22.EL

Configure the kernel options (Optional)
# make menuconfig

If you don't want to configure the kernel options just run:
# make oldconfig

Build the kernel and modules

make dep clean bzImage modules modules_install

Install the kernel
make install

reboot and ensure that you boot with the new kernel.

The first time this won't be easy.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
avik
Valued Contributor

Re: redhat cluster suite

have executed the steps till # make mrproper
. in /boot i have list of kernel files including config-2.6.9-42.0.2.EL.

Where is the make file located ?
Alexander Chuzhoy
Honored Contributor

Re: redhat cluster suite

I'll use the lines from Ivan's reply:
# cd /usr/src/redhat/BUILD/kernel- /usr/src/
# mv linux- /usr/src/
# cd /usr/src
# ln -s ./linux- linux
# cd /usr/src/linux
# cd /usr/src/linux
# make mrproper

According to this you should look for a MAKEFILE in /usr/src/linux.
while /usr/bin/make is an executable parses MAKEFILE.

BTW, to compile kernel 2.6 you need to run only these commands after editing MAKEFILE:

make all
make modules_install
make install


avik
Valued Contributor

Re: redhat cluster suite

[root@dbnode1 RPMS]# rpm -ivh *.rpm
error: Failed dependencies:
/lib/modules/2.6.9-22.EL is needed by cman-kernel-2.6.9-39.5.ia64
/lib/modules/2.6.9-22.EL is needed by dlm-kernel-2.6.9-37.7.ia64
[root@dbnode1 RPMS]# uname -a
Linux dbnode1 2.6.9-42.0.2.EL #1 SMP Thu Aug 17 17:39:33 EDT 2006 ia64 ia64 ia64 GNU/Linux
[root@dbnode1 RPMS]#
Alexander Chuzhoy
Honored Contributor

Re: redhat cluster suite

As you see there's a difference between 2.6.9-22.EL and 2.6.9-42.0.2.EL

To see just the version of installed kernel use: uname -r

Did you manage to install the required kernel?
avik
Valued Contributor

Re: redhat cluster suite

nope...I have downloaded the kernel-2.6.9-22.EL.src.rpm and installed it and executed the steps mentioned by Ivan. but its not booting with 2.6.9-22.EL version
avik
Valued Contributor

Re: redhat cluster suite

[root@dbnode1 ~]# uname -r
2.6.9-42.0.2.EL
[root@dbnode1 ~]#
Alexander Chuzhoy
Honored Contributor

Re: redhat cluster suite

Redo the whole process, but use the steps from my first reply. It should among others add the required boot entry (2.6.9-22) to your grub menu.
Let us know if it works.
avik
Valued Contributor

Re: redhat cluster suite

i dont have a linux kernel at /usr/src/redhat/BUILD/kernel- to move unless i do an rpmbuild ?
avik
Valued Contributor

Re: redhat cluster suite

root@dbnode1 SPECS]# ls -lrt
total 168
-rw-rw-r-- 1 root root 148450 Sep 20 2005 kernel-2.6.spec
-rw-rw-r-- 1 root root 7030 Apr 13 23:21 drbd.spec
[root@dbnode1 SPECS]# pwd
/usr/src/redhat/SPECS
[root@dbnode1 SPECS]#
avik
Valued Contributor

Re: redhat cluster suite

[root@dbnode1 kernel-2.6.9]# ls -lrt
total 0
[root@dbnode1 kernel-2.6.9]# pwd
/usr/src/redhat/BUILD/kernel-2.6.9
[root@dbnode1 kernel-2.6.9]#
avik
Valued Contributor

Re: redhat cluster suite

This is what the error am getting now.

[root@dbnode1 linux]# make all
Makefile:461: .config: No such file or directory
CHK include/linux/version.h
UPD include/linux/version.h
SYMLINK include/asm -> include/asm-ia64
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/split-include
HOSTCC scripts/basic/docproc
SHIPPED scripts/kconfig/zconf.tab.h
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
HOSTCC -fPIC scripts/kconfig/zconf.tab.o
HOSTLLD -shared scripts/kconfig/libkconfig.so
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/mconf.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s arch/ia64/Kconfig
***
*** You have not yet configured your kernel!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** [include/linux/autoconf.h] Error 2
[root@dbnode1 linux]#
avik
Valued Contributor

Re: redhat cluster suite

i hv run the make oldconfig and then make all
Alexander Chuzhoy
Honored Contributor

Re: redhat cluster suite

run make clean.

I suggest you to copy the config-2.6.9... file from /boot to /usr/src/linux as .config and to execute make oldconfig.

then retry the make all.
avik
Valued Contributor

Re: redhat cluster suite

I have the below error in the second node now.
out put of "make all"

LD init/built-in.o
LD .tmp_vmlinux1
kernel/built-in.o(.text+0x2aa22): In function `__exit_signal':
kernel/signal.c:410: undefined reference to `exit_thread_group_keys'
make: *** [.tmp_vmlinux1] Error 1
[root@dbnode2 linux]#
[root@dbnode2 linux]#

[root@dbnode2 linux]# make modules_install
INSTALL arch/ia64/kernel/mca_recovery.ko
cp: cannot stat `arch/ia64/kernel/mca_recovery.ko': No such file or directory
make[1]: *** [arch/ia64/kernel/mca_recovery.ko] Error 1
make: *** [_modinst_] Error 2
[root@dbnode2 linux]#