PDA

View Full Version : Linux agent for True Image: snapapi DKMS/linux source problem


redlex
May 14th, 2007, 07:01 AM
I'm trying to install the Linux agent for TrueImage. During install (running as root), I get the message:

-----8<-----
Acronis True Image Enterprise Server Setup failed to build
ernel modules. Consult /var/log/trueimage-setup.log and
/var/lib/dkms/snapapi26/0.7.10/build/make.log for error
messages.
-----8<-----

The file /var/log/trueimage-setup.log contains the following:

-----8<-----
Detected mdk10: 0x0000

Detected mdk10: 0x0000

Detected mdk: 0x0000

Detected mdk: 0x0000

Detected deb: 0x0000

Detected deb: 0x0000

Detected suse91: 0x0000

Detected suse92: 0x0000

Detected suse93: 0x0000

Detected fc4: 0x0000

Detected fc5: 0x0000

Detected virtuozzo: 0x0000

Detected virtuozzo: 0x0000

Running 'rpm -U --percent --force --nodeps /tmp/RPMS.pADsLm/dkms-2.0.4-2.noarch.rpm':
finished
Running 'rpm -U --percent --force --nodeps /tmp/RPMS.pADsLm/snapapi26_modules-0.7.10-1.noarch.rpm':
finished
Running 'rpm -e trueimage':
error: package trueimage is not installed
finished
Running 'rpm -U --percent --force --nodeps /tmp/RPMS.pADsLm/TrueImageAgent-9.1.3854-1.i386.rpm':
finished
Running 'rpm -U --percent --force --nodeps /tmp/RPMS.pADsLm/TrueImageSecZone-9.1.3854-1.i386.rpm':
finished
Launching '/usr/sbin/dkms install -m snapapi26 -v 0.7.10 2>&1'.

Error! DKMS tree does not contain: snapapi26-0.7.10
Build cannot continue without the proper tree.

Launching '/usr/sbin/dkms ldtarball --force --archive /usr/lib/Acronis/kernel_modules/snapapi26-0.7.10-all.tar.gz 2>&1'.

Warning! This tarball was created with dkms < 2.0 and contains
no arch info. DKMS will assume the arch: i686

Loading tarball for module: snapapi26 / version: 0.7.10

Loading /usr/src/snapapi26-0.7.10...
Creating /var/lib/dkms/snapapi26/0.7.10/source symlink...

DKMS: ldtarball Completed.

Launching '/usr/sbin/dkms install -m snapapi26 -v 0.7.10 2>&1'.

Error! Could not locate snapapi26.ko for module snapapi26 in the DKMS tree.
You must run a dkms build for kernel 2.6.17-1.2187_FC5 (i686) first.


Error! Your kernel source for kernel 2.6.17-1.2187_FC5 cannot be found at
/lib/modules/2.6.17-1.2187_FC5/build or /lib/modules/2.6.17-1.2187_FC5/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
exited with status 1.
Acronis True Image Enterprise Server Setup failed to build kernel modules. Consult /var/log/trueimage-setup.log and /var/lib/dkms/snapapi26/0.7.10/build/make.log for error messages.
Detected mdk10: 0x0000

Detected mdk10: 0x0000

Detected mdk: 0x0000

Detected mdk: 0x0000

Detected deb: 0x0000

Detected deb: 0x0000

Detected suse91: 0x0000

Detected suse92: 0x0000

Detected suse93: 0x0000

Detected fc4: 0x0000

Detected fc5: 0x0000

Detected virtuozzo: 0x0000

Detected virtuozzo: 0x0000

Running 'rpm -U --percent --force --nodeps /tmp/RPMS.dhbeUS/dkms-2.0.4-2.noarch.rpm':
finished
Running 'rpm -U --percent --force --nodeps /tmp/RPMS.dhbeUS/snapapi26_modules-0.7.10-1.noarch.rpm':
finished
Running 'rpm -e trueimage':
error: package trueimage is not installed
finished
Running 'rpm -U --percent --force --nodeps /tmp/RPMS.dhbeUS/TrueImageAgent-9.1.3854-1.i386.rpm':
finished
Running 'rpm -U --percent --force --nodeps /tmp/RPMS.dhbeUS/TrueImageSecZone-9.1.3854-1.i386.rpm':
finished
Launching '/usr/sbin/dkms install -m snapapi26 -v 0.7.10 2>&1'.

Error! Could not locate snapapi26.ko for module snapapi26 in the DKMS tree.
You must run a dkms build for kernel 2.6.17-1.2187_FC5 (i686) first.


Error! Your kernel source for kernel 2.6.17-1.2187_FC5 cannot be found at
/lib/modules/2.6.17-1.2187_FC5/build or /lib/modules/2.6.17-1.2187_FC5/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
exited with status 1.
Acronis True Image Enterprise Server Setup failed to build kernel modules. Consult /var/log/trueimage-setup.log and /var/lib/dkms/snapapi26/0.7.10/build/make.log for error messages.
-----8<-----

I've tried updating the kernel and installing the kernel-devel package (by running "yum update kernel kernel-devel" then rebooting), as this seemed like it might help, but no dice, I still get the same error.
So I take it I need the full kernel source installed? Or do I need to get snapapi26.ko located in the DKMS tree (however that is done)? Or both?

I've seen posts about almost identical problems here on the board, but the information didn't help me resolve this...

thanks for reading!
lex

redlex
May 14th, 2007, 10:43 AM
Ok, I've downloaded the kernel source and put it in the correct place.
I get further this time, but compiling snapapi fails:

-----8<-----
DKMS make.log for snapapi26-0.7.10 for kernel 2.6.20-1.2316.fc5 (i686)
Mon May 14 16:21:06 BST 2007
make: Entering directory `/usr/src/kernels/2.6.20-1.2316.fc5-i686'

WARNING: Symbol version dump /usr/src/kernels/2.6.20-1.2316.fc5-i686/Module.symvers
is missing; modules will have no dependencies and modversions.

find: /linux: No such file or directory
CC [M] /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.o
/var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:205: warning: ākmem_cache_tā is deprecated
/var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c: In function ācleanup_snapshotā:
/var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:614: error: void value not ignored as it ought to be
/var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c: In function āsa_cache_emlist_initā:
/var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:781: error: āSLAB_KERNELā undeclared (first use in this funct
ion)
/var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:781: error: (Each undeclared identifier is reported only once
/var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:781: error: for each function it appears in.)
/var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c: In function āsa_cache_emgetā:
/var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:815: error: āSLAB_ATOMICā undeclared (first use in this funct
ion)
make[1]: *** [/var/lib/dkms/snapapi26/0.7.10/build/snapapi26.o] Error 1
make: *** [_module_/var/lib/dkms/snapapi26/0.7.10/build] Error 2
make: Leaving directory `/usr/src/kernels/2.6.20-1.2316.fc5-i686'
-----8<-----


Any ideas anyone? SLAB_ATOMIC obviously causing problems, but can't get much further than that....

AaronAnderson
May 14th, 2007, 01:12 PM
What OS / verison are you using?

See my howto for Ubuntu / Debian

http://www.wilderssecurity.com/showthread.php?t=173463

redlex
May 15th, 2007, 04:08 AM
Hi Aaron
Sorry, I forgot to say: Fedora Core 5.
And yes, you have hit the nail on the head: installing snapapi (with the DKMS stuff) is the problem, I think.

redlex
May 15th, 2007, 05:34 AM
Here's another little query about compiling snapapi...

I am using FC5 and according to http://docs.fedoraproject.org/release-notes/fc5/:

----8<----
8.7. Preparing for Kernel Development

Fedora Core does not include the kernel-source package provided by older versions since only the kernel-devel package is required now to build external modules. Configured sources are available, as described in this kernel flavors section.
----8<----

Am I right in thinking that the kernel-devel package will be enough to compile snapapi, and that I don't need the full kernel source for FC5?

redlex
May 15th, 2007, 05:47 AM
Hi all
Think I've almost got it, what I'm doing is similar to what everyone else is doing now - I've installed Acronis package on FC5 /without/ installing snapapi, then am attempting to compile snapapi using dkms using the following command:

dkms build -m snapapi26 -v 0.7.10 --config /boot/config-2.6.20-1.2316.fc5 --arch i686 --kernelsourcedir /usr/src/kernels/2.6.20-1.2316.fc5-i686

(Above command has been customized for my exact system, I've not just copied this blindly from elsewhere!)

The output I get is:


Preparing kernel 2.6.20-1.2316.fc5 for module build:
(This is not compiling a kernel, only just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper....(bad exit status: 2)
using /boot/config-2.6.20-1.2316.fc5
make oldconfig....
make prepare-all....

Building module:
cleaning build area....
make KERNELRELEASE=2.6.20-1.2316.fc5 -C /usr/src/kernels/2.6.20-1.2316.fc5-i686 SUBDIRS=/var/lib/dkms/snapapi26/0.7.10/build modules....(bad exit status: 2)

Error! Bad return status for module build on kernel: 2.6.20-1.2316.fc5 (i686)
Consult the make.log in the build directory
/var/lib/dkms/snapapi26/0.7.10/build/ for more information.

... and the above-mentioned make.log file contains:

DKMS make.log for snapapi26-0.7.10 for kernel 2.6.20-1.2316.fc5 (i686)
Tue May 15 13:32:11 BST 2007
make: Entering directory `/usr/src/kernels/2.6.20-1.2316.fc5-i686'
find: /linux: No such file or directory
CC [M] /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.o
/var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:205: warning: âkmem_cache_tâ is deprecated
/var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c: In function âcleanup_snapshotâ:
/var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:614: error: void value not ignored as it ought to be
/var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c: In function âsa_cache_emlist_initâ:
/var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:781: error: âSLAB_KERNELâ undeclared (first use in this functi
on)
/var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:781: error: (Each undeclared identifier is reported only once
/var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:781: error: for each function it appears in.)
/var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c: In function âsa_cache_emgetâ:
/var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:815: error: âSLAB_ATOMICâ undeclared (first use in this functi
on)
make[1]: *** [/var/lib/dkms/snapapi26/0.7.10/build/snapapi26.o] Error 1
make: *** [_module_/var/lib/dkms/snapapi26/0.7.10/build] Error 2
make: Leaving directory `/usr/src/kernels/2.6.20-1.2316.fc5-i686'

Before doing all this, I updated the kernel to latest and installed kernel-dev package and rebooted, so I have a current kernel (and kernel dev headers).
Any ideas anyone?

redlex
May 16th, 2007, 07:06 AM
Resolved. Support got in touch and pointed me at a newer rpm for snapapi whichsorted things out (as described by others here). Thanks!

RobMac
June 6th, 2007, 04:32 AM
hi redlex,

I am getting the exact same errors running dkms. Where is the updated snapapi rpm that fixed it for you? Is there a public link?

thanks,

Rob

Acronis Support
June 6th, 2007, 10:38 PM
Hello RobMac,

Thank you for choosing Acronis Disk Backup Software (http://www.acronis.com/enterprise/products/).

Please follow the link AaronAnderson provided for instructions on how to obtain the updated snapapi rpm.

Thank you.
--
Marat Setdikov

Hanzo
June 11th, 2007, 09:37 PM
I think you should install basic compile environment firstly.
If you use ubuntu 6.06,you can run this command:
Code:
sudo apt-get install build-essential
::)

99problems
June 12th, 2007, 03:52 PM
I am useing Fedora Core 6 and receiving the exact same errors as Redlex above.

Can someone explain how to install the latest snapapi rpm. I have received snapapi26_modules-0.7.19-2.noarch.rpm from support and I installed it:

rpm -Uvh snapapi26_modules-0.7.19-2.noarch.rpm
Preparing... ########################################### [100%]
1:snapapi26_modules ########################################### [100%]

Uninstall of Acronis SnapAPI Linux kernel 2.6 modules (version 0.7.10):
ERROR: Module snapapi26 does not exist in /proc/modules
ERROR: Module snumbd26 does not exist in /proc/modules

------------------------------
Deleting module version: 0.7.10
completely from the DKMS tree.
------------------------------
Done.

Now there is nothing but 1 file in /var/lib/dkms
dkms_dbversion

The snapapi26-0.7.10 directory is still in /usr/src

There is no snapapi26-0.7.19 anywhere

The only reference I see to .19 is /usr/lib/Acronis/kernel_modules/snapapi26-0.7.19-all.tar.gz

The tar file has main tree which is emtpy and source tree. I copied the files of the source tree to /usr/src/snapapi26-0.7.19 to mirror the .10 tree.

When I run the build command I receieve:
Error! DKMS tree does not contain: snapapi26-0.7.19
Build cannot continue without the proper tree.

Any help would be appreciated, thanks!!

Acronis Support
June 13th, 2007, 08:06 AM
Hello 99problems,

Thank you for choosing Acronis Linux Server Disk Backup Software (http://www.acronis.com/enterprise/products/ATISLin/).

Please note that after installing the downloaded package (snapapi26_modules-0.7.17-1.noarch.rpm) you should load the module tarball to DKMS:

#dkms ldtarball --archive=/usr/lib/Acronis/kernel_modules/snapapi26-0.7.17-all.tar.gz

Then build and install the new module:

#dkms build -m snapapi26 -v 0.7.17 \
-k <KERNEL_VERSRION> --config <CONFIG_FILE> --arch <KERNEL_ARCH> \
--kernelsourcedir <PATH_TO_KERNEL_SOURCES>
#dkms install -m snapapi26 -v 0.7.17 \
-k <KERNEL_VERSRION> --config <CONFIG_FILE> --arch <KERNEL_ARCH> \
--kernelsourcedir <PATH_TO_KERNEL_SOURCES>

Please make sure you provide the full path to the config file and to the kernel sources.

Thank you.
--
Aleksandr Isakov

99problems
June 13th, 2007, 04:40 PM
thank you!! this was the part i was missing.

ibell
June 17th, 2007, 03:04 AM
Hi I was able to install the snapapi_module v 0.7.19

However I'm not able to run True Image, if i issue a command:

trueimagecmd --list

I get an error message, that a required module is missing please reinstall the program. Any ideas? I'm using Fedora Core 6 kernel version is: 2.6.20-1.2948.fc6

Thanks,
Seth

ibell
June 17th, 2007, 03:30 AM
Also modprobe wont load it:

modprobe snapapi26
FATAL: Error inserting snapapi26 (/lib/modules/2.6.20-1.2948.fc6/kernel/drivers/block/snapapi26.ko): Invalid module format