Standalone backup agents for Linux, Mac, AIX & Solaris workloads on-premises or in the public cloud
Post Reply
techcat
Influencer
Posts: 10
Liked: never
Joined: Dec 04, 2017 10:46 am
Contact:

Feature: Automatically rebuild veeamsnap kernel module

Post by techcat »

Hi,

as it is, installing a new kernel version using the distribution's package management system will break Agent for Linux every time because the veeamsnap module needs to be rebuilt, which doesn't happen automatically.

In my opinion, there should be an option like this in Veeam: "Install kernel source/headers for current kernel and rebuild veeamsnap module if necessary".

If you don't intend to do this, I suggest you create a knowledge base article explaining the issue and provide a script to automate this. We do it on Debian/Ubuntu by running the following script on reboot (there might be more elegant ways to do this, but it works):

Code: Select all

#!/usr/bin/env bash

# Check if veeamsnap kernel module is loaded
modprobe veeamsnap

# If module is not loaded, install kernel headers and 
# reconfigure veeamsnap package (build kernel module)
if [ "$?" -ne "0" ]; then
  echo "Reinstalling veeamsnap kernel module"
  apt-get -y install linux-headers-$(uname -r)
  dpkg-reconfigure veeamsnap
  exit
else
  echo "Kernel module veeamsnap OK"
fi
Regards,
JW
PTide
Product Manager
Posts: 6551
Liked: 765 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: Feature: Automatically rebuild veeamsnap kernel module

Post by PTide »

Hi,

Do you have dkms installed (as one of the dependencies of veeamsnap package)? Please check if there is AUTOINSTALL="yes" string in /usr/src/veeamsnap-1.0.1.364/dkms.conf
file

Thanks
techcat
Influencer
Posts: 10
Liked: never
Joined: Dec 04, 2017 10:46 am
Contact:

Re: Feature: Automatically rebuild veeamsnap kernel module

Post by techcat »

Hi,

sorry for replying so late - I missed your reply.

I think something changed in v2 - I just tried this: updated the kernel and veeamsnap seems to have been recompiled for the new kernel version automatically.

Cheers,
JW
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests