Package Details: veeamsnap 5.0.0.4318-1

Git Clone URL: https://aur.archlinux.org/veeamsnap.git (read-only, click to copy)
Package Base: veeamsnap
Description: Veeam Agent for Linux kernel modules (DKMS)
Upstream URL: http://repository.veeam.com/backup/linux/agent
Keywords: backup dkms veeam veeamsnap
Licenses: GPLv2
Conflicts: veeamsnap
Submitter: CodeImp
Maintainer: theokonos
Last Packager: theokonos
Votes: 4
Popularity: 0.000359
First Submitted: 2019-01-25 08:49
Last Updated: 2021-04-20 04:24

Pinned Comments

dekart811 commented on 2020-10-03 17:12

As stated here for the time being veeamsnap does not work with kernel 5.8! Do not ask me for a fix, there's nothing I can do about that! If you want to blame someone for that blame Veeam directly not me.

Latest Comments

theokonos commented on 2021-04-20 04:26

Hey all, I'm taking over maintenance of this AUR package and the primary veeam one since they went stale enough to get orphaned.

This update brings veeam and veeamsnap to 5.0, which includes changes to how the job information databases are formatted (moved from SQLite to SQL) but is backward compatible with existing installations.

Cheers!

dekart811 commented on 2020-10-03 17:12

As stated here for the time being veeamsnap does not work with kernel 5.8! Do not ask me for a fix, there's nothing I can do about that! If you want to blame someone for that blame Veeam directly not me.

terrigan commented on 2020-10-03 15:35

I've gotten Veeamsnap to download with a modified BUILDFILE but it fails to build on the 5.8 kernel.


# Maintainer: dekart811
# Updated by: RoderickVM (June 21 2020)
# Updates: 1) Patch file name, 2) SHA256SUM for the patch filename

_pkgbase=veeamsnap
pkgname=veeamsnap
pkgver=4.0.1.2365
pkgrel=1
pkgdesc="Veeam Agent for Linux kernel modules (DKMS)"
arch=('i686' 'x86_64')
url="http://repository.veeam.com/backup/linux/agent"
license=('GPLv2')
depends=('dkms')
conflicts=("${_pkgbase}")
install=${pkgname}.install
source=("${url}/rpm/el/7/x86_64/veeamsnap-${pkgver}-1.noarch.rpm"
        'dkms.conf')
sha256sums=('439fa156a9166125b43d4a4395ae720571a43d95ea6987dc96f8b70f618ad1c5'
            '7d2a83f28b7c41797fadf06f29ab124ae63d662f2dba4e81e1eb4d1ef15bee7c')

prepare() {
  cd "${srcdir}/usr/src/${pkgname}-${pkgver}"
  chmod 644 *
  # Convert line endings to LF to prevent patch from failing
  sed -i -e 's/\r$//g' cbt_storage.c
  sed -i -e 's/\r$//g' cbt_storage.h
}

package() {
  # Copy dkms.conf
  install -Dm644 dkms.conf "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf

  # Set name and version
  sed -e "s/@_PKGBASE@/${_pkgbase}/" \
      -e "s/@PKGVER@/${pkgver}/" \
      -i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf

  # Copy sources (including Makefile)
  cp -r ${srcdir}/usr/src/${_pkgbase}-${pkgver}/* "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/
}

  GNU nano 5.2                                                                               make.log                                                                                         
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/blk_util.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/blk_direct.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/blk_redirect.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/blk_deferred.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/defer_io.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/cbt_storage.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/cbt_map.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/cbt_notify.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/cbt_params.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/cbt_persistent.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/ext4_check.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/cbt_checkfs.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/tracker.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/tracker_queue.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/snapimage.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/snapdata_collect.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/blk_descr_mem.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/blk_descr_file.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/blk_descr_multidev.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/blk_descr_pool.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/blk_descr_array.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/snapstore.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/snapstore_device.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/snapstore_file.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/snapstore_mem.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/snapstore_multidev.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/snapshot.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/tracking.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/ctrl_fops.o
/var/lib/dkms/veeamsnap/4.0.1.2365/build/snapstore_mem.c: In function ‘snapstore_mem_get_block’:
/var/lib/dkms/veeamsnap/4.0.1.2365/build/snapstore_mem.c:76:23: error: too many arguments to function ‘__vmalloc’
   76 |     buffer_el->buff = __vmalloc( SNAPSTORE_BLK_SIZE * SECTOR_SIZE, GFP_NOIO, PAGE_KERNEL );
      |                       ^~~~~~~~~
In file included from ./include/asm-generic/io.h:911,
                 from ./arch/x86/include/asm/io.h:375,
                 from ./include/linux/scatterlist.h:9,
                 from ./include/linux/blkdev.h:28,
                 from /var/lib/dkms/veeamsnap/4.0.1.2365/build/stdafx.h:15,
                 from /var/lib/dkms/veeamsnap/4.0.1.2365/build/snapstore_mem.c:1:
./include/linux/vmalloc.h:111:14: note: declared here
  111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
      |              ^~~~~~~~~
make[1]: *** [scripts/Makefile.build:280: /var/lib/dkms/veeamsnap/4.0.1.2365/build/snapstore_mem.o] Error 1
make[1]: *** Waiting for unfinished jobs....
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/ctrl_pipe.o
make: *** [Makefile:1752: /var/lib/dkms/veeamsnap/4.0.1.2365/build] Error 2
make: Leaving directory '/usr/lib/modules/5.8.11-1-MANJARO/build'

timemaster commented on 2020-08-08 01:35

It seems the sha256sum validation of the patch file fails. One could refactor this but it's not useful : there is a new version available 4.0.1.2365 both in the official git page in the main branch as well as a rpm on the veeam website. It does not needs the patch anymore to work on kernel 5.7. I have flagged this package out of date and modified locally the pkg to work with the newer and remove the patch and everything working fine.

RoderickVM commented on 2020-06-23 04:35

@dekart811 The following renders the pinned comment ineffective. In order to make the veaamsnap module install on kernels 5.7.x, can you please update de PKGBUILD with the following? Confirmed successful installation on both 5.7.4 "standard" and zen kernels. Tested veeam on 5.7.4-zen1-1-zen kernel and worked fine.

# Maintainer: dekart811
# Updated by: RoderickVM (June 21 2020)
# Updates: 1) Patch file name, 2) SHA256SUM for the patch filename

_pkgbase=veeamsnap
pkgname=veeamsnap
pkgver=4.0.0.1961
pkgrel=1
pkgdesc="Veeam Agent for Linux kernel modules (DKMS)"
arch=('i686' 'x86_64')
url="http://repository.veeam.com/backup/linux/agent"
license=('GPLv2')
depends=('dkms')
conflicts=("${_pkgbase}")
install=${pkgname}.install
source=("${url}/rpm/el/7/x86_64/veeamsnap-${pkgver}-1.noarch.rpm"
        'fix-compilation-on-linux-5.7.patch::https://github.com/veeam/veeamsnap/pull/5.patch'
        'dkms.conf')
sha256sums=('40857406899712576e233dd76e54fa5fb9e73e45f6c616d5a9facdb4bcea6d8c'
            '492ae08fe620184d015574da9e0b1b3fab695318c1d81dd6b7a885ac0703281e'
            '7d2a83f28b7c41797fadf06f29ab124ae63d662f2dba4e81e1eb4d1ef15bee7c')

prepare() {
  cd "${srcdir}/usr/src/${pkgname}-${pkgver}"
  chmod 644 *
  # Convert line endings to LF to prevent patch from failing
  sed -i -e 's/\r$//g' cbt_storage.c
  sed -i -e 's/\r$//g' cbt_storage.h
  patch -l -p2 -i "$srcdir/fix-compilation-on-linux-5.7.patch"
}

package() {
  # Copy dkms.conf
  install -Dm644 dkms.conf "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf

  # Set name and version
  sed -e "s/@_PKGBASE@/${_pkgbase}/" \
      -e "s/@PKGVER@/${pkgver}/" \
      -i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf

  # Copy sources (including Makefile)
  cp -r ${srcdir}/usr/src/${_pkgbase}-${pkgver}/* "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/
}

timemaster commented on 2020-06-06 22:00

The kernel module would not build under the 5.6.15-arch1-1 kernel. You can find some info in this address "https://forums.veeam.com/veeam-agents-for-linux-unix-f41/kernel-5-6-7-veeamsnap-compile-errors-t66615.html"

I suggest a patch file (the sed from rokko74) for the packages or doing it yourself.

After this patch and a install, my veem backup was succesful.

GusevAG commented on 2020-06-06 17:53

Does any one gets the error 'snapshot overflow' ? there is a topic in veeam community forum, but they don't publish the sulution

dekart811 commented on 2020-05-05 07:52

I can confirm this patch works with kernel 5.4.36

elgaton commented on 2020-05-03 08:47

This module currently does not build with Linux 5.6 kernels due to the migration to 64-bit time structures.

A Veeam user has contributed a pull request which fixes this (I haven't tested this with linux-lts). In case you would like to use it, you can alter the PKGBUILD as follows:

# Maintainer: dekart811

_pkgbase=veeamsnap
pkgname=veeamsnap
pkgver=4.0.0.1961
pkgrel=1
pkgdesc="Veeam Agent for Linux kernel modules (DKMS)"
arch=('i686' 'x86_64')
url="http://repository.veeam.com/backup/linux/agent"
license=('GPLv2')
depends=('dkms')
conflicts=("${_pkgbase}")
install=${pkgname}.install
source=("${url}/rpm/el/7/x86_64/veeamsnap-${pkgver}-1.noarch.rpm"
        'fix-compilation-on-linux-5.6.patch::https://github.com/veeam/veeamsnap/pull/5.patch'
        'dkms.conf')
sha256sums=('40857406899712576e233dd76e54fa5fb9e73e45f6c616d5a9facdb4bcea6d8c'
            '5dc26eec94242d87f193d6b99b1cc6fc36c322a5deb75a8cb329a537f828687d'
            '7d2a83f28b7c41797fadf06f29ab124ae63d662f2dba4e81e1eb4d1ef15bee7c')

prepare() {
  cd "${srcdir}/usr/src/${pkgname}-${pkgver}"
  chmod 644 *
  # Convert line endings to LF to prevent patch from failing
  sed -i -e 's/\r$//g' cbt_storage.c
  sed -i -e 's/\r$//g' cbt_storage.h
  patch -l -p2 -i "$srcdir/fix-compilation-on-linux-5.6.patch"
}

package() {
  # Copy dkms.conf
  install -Dm644 dkms.conf "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf

  # Set name and version
  sed -e "s/@_PKGBASE@/${_pkgbase}/" \
      -e "s/@PKGVER@/${pkgver}/" \
      -i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf

  # Copy sources (including Makefile)
  cp -r ${srcdir}/usr/src/${_pkgbase}-${pkgver}/* "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/
}

Ataraxy commented on 2019-08-05 13:24

==> ERROR: One or more files did not pass the validity check!
Error downloading sources: veeamsnap