Friday, July 20, 2012

CloudLinux and r1soft

If your server is running r1soft after upgrading your kernel you need to install r1soft module using the command  r1soft-cki

If you are having difficulties to run r1soft-cki.

[~]# /etc/init.d/buagent status
/etc/init.d/buagent status: buagent (no pid file) not running
root@hyrule [~]# /etc/init.d/buagent restart

/etc/init.d/buagent restart: buagent not running, trying to start
/etc/init.d/buagent restart: buagent could not be started
root@hyrule [~]# r1soft-cki
Checking for binary module
Waiting                       |         
No binary module found
Gathering kernel information
Gathering kernel information complete.
Creating kernel headers package
Checking '/lib/modules/2.6.18-408.el5.lve0.8.61.1/source/' for kernel headers
Checking '/usr/src/kernels/2.6.18-408.el5.lve0.8.61.1-x86_64/' for kernel headers
Checking '/lib/modules/2.6.18-408.el5.lve0.8.61.1/build/' for kernel headers
Unable to find a valid source directory.
Please install the kernel headers for your operating system.

root@hyrule [~]# uname -a
Linux server.ajeeshbkannan.com 2.6.18-408.el5.lve0.8.61.1 #1 SMP Wed Apr 18 07:47:15 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux

Here you can see iam using  el5.lve0.8.61.1

So the solution is
 [~]# yum install kernel-devel
Installing:
 kernel-devel                        x86_64                        2.6.18-408.el5.lve0.8.61.1                          cloudlinux-x86_64-server-5                        5.4 M

After this

[~]# r1soft-cki

Compressing...
uploading kernel package                                                                                                                      99% 4879KB   4.8MB/s   00:00 ETA
Starting module build...
Complete.                               
Saving kernel module to '/lib/modules/buagent/backupdriver-cki-2.6.18-408.el5.lve0.8.61.1.ko'
Kernel module is now installed.




And if your kernel is PAE

Then yum install kernel-PAE-devel






1 comment: