Proxmox-Host und Synology DSM7 ActiveBackupAgent for Linux 2.2.0 Installationsproblem

Jan 9, 2021
29
11
8
45
Update: siehe nächste Message

---------------------------

Hallo Leute,

mit Begeisterung mußte ich heute feststellen, daß es mit der ActiveBackup Beta 2.2.0 bei Synology jetzt volle Linux "Baremetal" Unterstützung gibt.
Genau wie auf Windows Rechnern oder Windows VMs wird auch hier ein Agent-Service installiert und dann gibt es komplette Backups. Habe das auch mit
einer Debian10 VM in Proxmox ausprobiert inkl. Wiederherstellung, perfekt.

Jetzt aber die Frage, habe das auch in einer VM in Virtualbox ausprobiert, da ist die AgentInstallation fehlgeschlagen, under der Proxmox gehosteten VM einwandfrei. Proxmox macht die Virtualisierung halt einfach besser. Die entscheidende Frage ist jetzt aber, ob dieser Agent auch mit dem Proxmox Host selbst kompatibel ist.
Weil das wäre eine extrem coole Backup-Lösung für den Host selbst inkl. aller Konfigdaten, etc. Es wird bei der Installation glaub eine DKMS kompeliert und installiert, beißt sich das mit dem Proxmox Kernel?

Hatte noch keine Zeit das auf echter Hardware auszuprobieren da ich momentan nur eine Produktivmaschine da habe und keine zum Spielen.

Hat das von euch schon jemand getestet?

LG
Martin
 
Last edited:
So, nachdem ja DSM7 jetzt veröffetnlich wurde und auch Linux-Hosts mit ActiveBackup sichern kann, wollte ich den Thread wieder hoch holen. Mit "normalen" Linux Maschinen oder VMs funktioniert das ganz wunderbar, allerdings hätte ich gehofft damit auch endlich eine perfekte Proxmox-Host Sicherung durchführen zu können. Leider spiest sich der ActiveBackupAgent-Installer gleich mal relativ am Anfang wegen linux-headers-pve-xxx die nicht gefunden werden. Konnte das Problem schon jemand von euch lösen? Ich finde ActiveBackup jetzt für Linux-Hosts eine wirklich gute Lösung um direkt den Host zu backupen auch im laufenden Betrieb mit allem was benötigt wird.

Danke!

LG Martin
 
Last edited:
Moin.

Die Kernel-Header werden nicht per Detault installiert, sind aber vorhanden:
Code:
~# apt show  pve-headers-5.4
Package: pve-headers-5.4
Version: 6.4-4

Depends: pve-headers-5.4.124-1-pve

Description: Latest Proxmox VE Kernel Headers
 This is a metapackage which will install the kernel headers
 for the latest available proxmox kernel from the 5.4
 series.

Einfach installieren...


Viel Erfolg!
 
Bin ein bischen weitergekommen, das Problem ist, daß hier öfter mal auf linux-headers-xxx referenziert wird, und am proxmox host ja alles auf pve-headers-xxx geht.

Aktuell habe ich das Problem, daß er den Synology Snapshotdriver kompelieren will bei der Installation. Diese Kompelierung schlägt dann fehl. :confused:

Code:
dpkg -i synosnap-0.10.16.deb
(Reading database ... 94922 files and directories currently installed.)
Preparing to unpack synosnap-0.10.16.deb ...
installed synosnap version is newer or equal
dpkg: warning: old synosnap package pre-removal script subprocess returned error exit status 1
dpkg: trying script from the new package instead ...
dpkg: ... it looks like that went OK
Unpacking synosnap (0.10.16) over (0.10.16) ...
Setting up synosnap (0.10.16) ...
Removing old synosnap-0.10.16 DKMS files...

------------------------------
Deleting module version: 0.10.16
completely from the DKMS tree.
------------------------------
Done.
Loading new synosnap-0.10.16 DKMS files...
Building for 5.11.21-1-pve
Building initial module for 5.11.21-1-pve
Error! Bad return status for module build on kernel: 5.11.21-1-pve (x86_64)
Consult /var/lib/dkms/synosnap/0.10.16/build/make.log for more information.
dpkg: error processing package synosnap (--install):
 installed synosnap package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 synosnap

Bash:
/var/lib/dkms/synosnap/0.10.16/build/dattobd.c:5890:35: error: ‘MS_SHARED’ undeclared (first use in this function); did you mean ‘MNT_SHARED’?
  }else if(real_flags & (MS_BIND | MS_SHARED | MS_PRIVATE | MS_SLAVE | MS_UNBINDABLE | MS_MOVE) || ((real_flags & MS_RDONLY) && !(real_flags & MS_REMOUNT))){
                                   ^~~~~~~~~
                                   MNT_SHARED
/var/lib/dkms/synosnap/0.10.16/build/dattobd.c:5890:47: error: ‘MS_PRIVATE’ undeclared (first use in this function); did you mean ‘S_PRIVATE’?
  }else if(real_flags & (MS_BIND | MS_SHARED | MS_PRIVATE | MS_SLAVE | MS_UNBINDABLE | MS_MOVE) || ((real_flags & MS_RDONLY) && !(real_flags & MS_REMOUNT))){
                                               ^~~~~~~~~~
                                               S_PRIVATE
/var/lib/dkms/synosnap/0.10.16/build/dattobd.c:5890:60: error: ‘MS_SLAVE’ undeclared (first use in this function); did you mean ‘QC_SPACE’?
  }else if(real_flags & (MS_BIND | MS_SHARED | MS_PRIVATE | MS_SLAVE | MS_UNBINDABLE | MS_MOVE) || ((real_flags & MS_RDONLY) && !(real_flags & MS_REMOUNT))){
                                                            ^~~~~~~~
                                                            QC_SPACE
/var/lib/dkms/synosnap/0.10.16/build/dattobd.c:5890:71: error: ‘MS_UNBINDABLE’ undeclared (first use in this function); did you mean ‘MNT_UNBINDABLE’?
  }else if(real_flags & (MS_BIND | MS_SHARED | MS_PRIVATE | MS_SLAVE | MS_UNBINDABLE | MS_MOVE) || ((real_flags & MS_RDONLY) && !(real_flags & MS_REMOUNT))){
                                                                       ^~~~~~~~~~~~~
                                                                       MNT_UNBINDABLE
/var/lib/dkms/synosnap/0.10.16/build/dattobd.c:5890:87: error: ‘MS_MOVE’ undeclared (first use in this function)
  }else if(real_flags & (MS_BIND | MS_SHARED | MS_PRIVATE | MS_SLAVE | MS_UNBINDABLE | MS_MOVE) || ((real_flags & MS_RDONLY) && !(real_flags & MS_REMOUNT))){
                                                                                       ^~~~~~~
/var/lib/dkms/synosnap/0.10.16/build/dattobd.c: In function ‘agent_init’:
/var/lib/dkms/synosnap/0.10.16/build/dattobd.c:6300:51: error: passing argument 4 of ‘proc_create’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  info_proc = proc_create(INFO_PROC_FILE, 0, NULL, &dattobd_proc_fops);
                                                   ^~~~~~~~~~~~~~~~~~
/var/lib/dkms/synosnap/0.10.16/build/dattobd.c:589:142: note: expected ‘const struct file_operations *’ but argument is of type ‘const struct proc_ops *’
 static inline struct proc_dir_entry *proc_create(const char *name, mode_t mode, struct proc_dir_entry *parent, const struct file_operations *proc_fops){
                                                                                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/var/lib/dkms/synosnap/0.10.16/build/dattobd.c: In function ‘bio_overlap’:
/var/lib/dkms/synosnap/0.10.16/build/dattobd.c:2493:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
At top level:
/var/lib/dkms/synosnap/0.10.16/build/dattobd.c:3610:24: warning: ‘snap_mrf’ defined but not used [-Wunused-function]
 static MRF_RETURN_TYPE snap_mrf(struct request_queue *q, struct bio *bio){
                        ^~~~~~~~
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:287: /var/lib/dkms/synosnap/0.10.16/build/dattobd.o] Error 1
make: *** [Makefile:1848: /var/lib/dkms/synosnap/0.10.16/build] Error 2
make: Leaving directory '/usr/src/linux-headers-5.11.21-1-pve'
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!