www.redhawk.org

Apr 23, 2017 at 04:01 AM
Home arrow Blog arrow Red Hat arrow ::ClearCase Module Rebuild - RHEL4 Linux::
::ClearCase Module Rebuild - RHEL4 Linux:: PDF Print E-mail
Contributed by William R. Welty   
Sep 21, 2007 at 02:52 PM
A quick HOWTO wikiImage ClearCase module rebuild after intalling a new kernel. LINUX only!!!

First you need to make sure you have the matching kernel-dev or kernel-source package on the system and have rebooted to the new kernel. After this you begin to rebuild the kernel modules as follows.

Stop Clearcase.

 > sudo /etc/init.d/clearcase stop

Change directory to the rational source directory.

> cd /var/adm/rational/clearcase/mvfs/vnode_src/

Do a "make clean" this deletes previously created binaries. This will prompt you for the modules src build directory and should pick up the default for the running kernel. You can verify this with "uname -a". Be sure you have rebooted to the new kernel before you build the modules.

> sudo make clean

Makefile:99: vnode_param.mk.config: No such file or directory cd . && /opt/rational/clearcase/install/kernel_guess

Enter path to your toplevel kernel source directory. Default is [/lib/modules/2.6.9-42.0.2.ELsmp/build]:[ENTER]

User specified:Linux source directory: /lib/modules/2.6.9-42.0.2.ELsmp/build

rm -rf *.o *.kobj *.obj *.ko *.mod.? .*.cmd .tmp_versions rm -f vnode_param.mk.config

>

The next step is to verify the configuration parameters for the kernel. This matches the installed kernel config from the /usr/src/kernel directory and should have no errors or changes.

> sudo make vnode_param.mk.config

Makefile:99: vnode_param.mk.config: No such file or directory cd . && /opt/rational/clearcase/install/kernel_guess

Enter path to your toplevel kernel source directory. Default is [/lib/modules/2.6.9-42.0.2.ELsmp/build]:[ENTER]

User specified:Linux source directory: /lib/modules/2.6.9-42.0.2.ELsmp/build

make: `vnode_param.mk.config' is up to date.

>

Now that we have done the config, we need to build the modules with "make".

> sudo make

make -C /lib/modules/2.6.9-42.0.2.ELsmp/build SUBDIRS=`pwd` make[1]: Entering directory `/usr/src/kernels/2.6.9-42.0.2.EL-smp-x86_64' LD /var/adm/rational/clearcase/mvfs/vnode_src/built-in.o cp /opt/rational/clearcase/etc/conf/binary_x86_64/mvfs.o /var/adm/rational/clearcase/mvfs/vnode_src/mvfs.obj CC /var/adm/rational/clearcase/mvfs/vnode_src/mvfs_insmod_wrapper.o ld -m elf_x86_64 -r -o /var/adm/rational/clearcase/mvfs/vnode_src/mvfs.kobj /var/adm/rational/clearcase/mvfs/vnode_src/mvfs.obj /var/adm/rational/clearcase/mvfs/vnode_src/mvfs_insmod_wrapper.o CC [M] /var/adm/rational/clearcase/mvfs/vnode_src/mvfs_param.o CC [M] /var/adm/rational/clearcase/mvfs/vnode_src/mvfs_linux_asops.o CC [M] /var/adm/rational/clearcase/mvfs/vnode_src/mvfs_linux_builtins.o CC [M] /var/adm/rational/clearcase/mvfs/vnode_src/mvfs_linux_dops.o CC [M] /var/adm/rational/clearcase/mvfs/vnode_src/mvfs_linux_fops.o CC [M] /var/adm/rational/clearcase/mvfs/vnode_src/mvfs_linux_glue.o CC [M] /var/adm/rational/clearcase/mvfs/vnode_src/mvfs_linux_iops.o CC [M] /var/adm/rational/clearcase/mvfs/vnode_src/mvfs_linux_mvops.o CC [M] /var/adm/rational/clearcase/mvfs/vnode_src/mvfs_linux_rpcglue.o CC [M] /var/adm/rational/clearcase/mvfs/vnode_src/mvfs_linux_shadow.o CC [M] /var/adm/rational/clearcase/mvfs/vnode_src/mvfs_linux_sops.o CC [M] /var/adm/rational/clearcase/mvfs/vnode_src/mvfs_linux_utils.o CC [M] /var/adm/rational/clearcase/mvfs/vnode_src/mvfs_linux_mdki.o CC [M] /var/adm/rational/clearcase/mvfs/vnode_src/mvfs_linux_xdr_opaque.o CC [M] /var/adm/rational/clearcase/mvfs/vnode_src/mvfs_linux_subr_prf.o GENERATE /var/adm/rational/clearcase/mvfs/vnode_src/timestamp.c CC [M] /var/adm/rational/clearcase/mvfs/vnode_src/timestamp.o GENERATE /var/adm/rational/clearcase/mvfs/vnode_src/mdki_ksyms.c CC [M] /var/adm/rational/clearcase/mvfs/vnode_src/mdki_ksyms.o LD [M] /var/adm/rational/clearcase/mvfs/vnode_src/vnode.o Building modules, stage 2. MODPOST CC /var/adm/rational/clearcase/mvfs/vnode_src/vnode.mod.o LD [M] /var/adm/rational/clearcase/mvfs/vnode_src/vnode.ko make[1]: Leaving directory `/usr/src/kernels/2.6.9-42.0.2.EL-smp-x86_64' >

Assuming the build went well, now do a "make install" to put the modules in the proper place for the kernel.

> sudo make install

mkdir -p /lib/modules/`uname -r`/kernel/fs/mvfs install --backup --suffix=.save vnode.ko /lib/modules/`uname -r`/kernel/fs/mvfs/vnode.ko install --backup --suffix=.save mvfs.kobj /lib/modules/`uname -r`/kernel/fs/mvfs/mvfs.ko /sbin/depmod >

In these instances we have seen some problem with automount, so restart it to make sure that /net works correctly.

> sudo /etc/init.d/autofs restart

Stopping automount: [ OK ] Starting automount: [ OK ]

>

Finally start Clearcase, if all goes well you are done.

> sudo /etc/init.d/clearcase start

 ClearCase daemons: albd_server lockmgr -q 1024 -u 256 -f 256
 Mounting public VOBs...
> 
Last Updated ( Oct 01, 2007 at 02:48 PM )
<Previous   Next>