How to update the SnapAPI module in Linux
Introduction
The SnapAPI module is in charge of all I/O operations on the hard disk of Acronis software. By default, SnapAPI module is updated automatically during the product update.
Below is the description of how to update the SnapAPI module in Linux when a custom rpm is provided.
Solution
To install custom SnapAPI module in Linux, do the following:
- Open terminal (console);
- Stop Acronis processes:
# /etc/init.d/acronis_mms stop
(alternatively, use # systemctl stop acronis_mms) - Remove SnapAPI module from the kernel:
# rmmod snapapi26
- Check SnapAPI version in the dkms tree:
# dkms status
=> check for the "snapapi" entry similar to:
snapapi26, 0.7.51, 2.6.31-gentoo-r6, x86_64: installed
(0.7.51 is the version of the SnapAPI module in this example)
- Remove SnapAPI from the dkms tree using the respective version:
# dkms remove -m snapapi26 -v [VERSION] --all
where [VERSION] is the version of SnapAPI found out in step 4., e.g.: # dkms remove -m snapapi26 -v 0.7.51 --all
# rm -rf /usr/src/snapapi*
- Install SnapAPI from rpm package
# rpm -Uhv snapapi26_modules-[VERSION]-1.noarch.rpm --nodeps
- Add tarball to the dkms tree:
# dkms ldtarball /usr/lib/Acronis/kernel_modules/snapapi26-[VERSION]-all.tar.gz
- Build and install SnapAPI module:
# dkms build -m snapapi26 -v [VERSION]
# dkms install -m snapapi26 -v [VERSION] -
Load the snapapi26 kernel module:
#sudo modprobe snapapi26
-
Start Acronis processes:
# systemctl start acronis_mms