Backups to Synology NAS

Availability for the Always-On Enterprise

Backups to Synology NAS

Veeam Logoby dburris » Tue Oct 13, 2009 5:39 pm

Hi,

I am trying to configure a Synology DS209+II as a Linux backup destination for
Veeam backups.  I was able to get scp loaded and working on the Synology,
however Veeam is failing to connect to the Synology as a backup server.  When I try
to access the Synology from Veeam Backup & FastSCP 3.1.1, I get this error:

Timed out waiting for operation "(cd /tmp && perl
veeam_soap926aa553-44f5-4b9c-997b-3ef139d65f6d.pl -d -c -l
lib926aa553-44f5-4b9c-997b-3ef139d65f6d -e
/tmp/veeam_error926aa553-44f5-997b-3ef139d65f6d 2>>
/tmp/veeam_error926aa553-44f5-4b9c-997b-3ef139d65f6d) || cat
/tmp/veeam_error926aa553-44f5-4b9c-997b-3ef139d65f6d 2>&1"

The error file in /tmp on the Synology shows:
tar: lib: Not found in archive
Can't open perl script "veeam_soap2d566c77-f611-4038-8b6a-c12ceff49828.pl": No
such file or directory

Perl is in the path and working on the Synology. Is there a way to make this work?

Thanks,
Dave
dburris
Novice
 
Posts: 6
Liked: never
Joined: Wed Jun 03, 2009 4:24 pm
Full Name: Dave Burris

Re: Backups to Synology NAS

Veeam Logoby Gostev » Tue Oct 13, 2009 5:55 pm

Dave, yes it should be possible to make it work. Actually, recently I've got the same error recently on minimal install of the latest Debian Lenny (which also had perl, but still did not work), and it did not work until I have installed build-essential package (I needed it for something else), but this package also made it working. Obviously this package contains tons of stuff, and most is not needed for us... by the way, what I noticed is that it installs some additional perl modules too.

I will consult with our Linux devs tomorrow and update this thread.
Gostev
Veeam Software
 
Posts: 21355
Liked: 2334 times
Joined: Sun Jan 01, 2006 1:01 am
Full Name: Anton Gostev

Re: Backups to Synology NAS

Veeam Logoby Gostev » Wed Oct 14, 2009 12:06 pm

Dave, this looks to be tar issue, probably some "exotic" tar version on your device that does not understand standard command line keys.

Please copy veeam_soap.tar manually to /tmp and run the following command:
Code: Select all
tar -x -f veeam_soap.tar lib veeam_soap.pl

Also please check what is the tar version:
Code: Select all
tar --version

Please let me know the results, thank you.
Gostev
Veeam Software
 
Posts: 21355
Liked: 2334 times
Joined: Sun Jan 01, 2006 1:01 am
Full Name: Anton Gostev

Re: Backups to Synology NAS

Veeam Logoby dburris » Wed Oct 14, 2009 3:43 pm

I copied the veeam_soap.tar to /tmp on the Synology and ran:

tar -x -f veeam_soap.tar lib veeam_soap.pl
gives this error:
tar: lib: Not found in archive

lib is in the tar archive. I went ahead and untarred the whole archive. The lib directory and veeam_soap.pl were extracted to /tmp successfully.

tar --version gives me a usage error. I don't see a switch that would give us the version.
/bin/tar is a symbolic link to busybox.

I still cannot connect to the Synology in Veeam. Gives the same timeout error.
The error in /tmp is:
tar: lib: Not found in archive
Can't open perl script "veeam_soap6a13bf8f-caa9-4bb0-ab13-b94afd14c912.pl": No such file or directory

The name of the veeam_soap.pl file name changes each time I try to connect.
dburris
Novice
 
Posts: 6
Liked: never
Joined: Wed Jun 03, 2009 4:24 pm
Full Name: Dave Burris

Re: Backups to Synology NAS

Veeam Logoby Gostev » Wed Oct 14, 2009 4:00 pm

Definitely tar version issue, since even --version command fails.

Could you please send output of the following commands:
Code: Select all
tar –usage
tar –help
ls –la `which tar`
Gostev
Veeam Software
 
Posts: 21355
Liked: 2334 times
Joined: Sun Jan 01, 2006 1:01 am
Full Name: Anton Gostev

Re: Backups to Synology NAS

Veeam Logoby dburris » Wed Oct 14, 2009 6:37 pm

DiskStation> tar -usage
tar: invalid option -- u
BusyBox v1.1.0 (2009.09.03-17:10+0000) multi-call binary

Usage: tar -[czjxtvO] [-f TARFILE] [-C DIR] [FILE(s)] ...

DiskStation> ls -la `which tar`
lrwxrwxrwx 1 root root 7 Oct 9 14:28 /bin/tar -> busybox
dburris
Novice
 
Posts: 6
Liked: never
Joined: Wed Jun 03, 2009 4:24 pm
Full Name: Dave Burris

Re: Backups to Synology NAS

Veeam Logoby Gostev » Wed Oct 14, 2009 11:12 pm

Dave, our Linux dev has reviewed the BusyBox 1.1 sources (3 years old release btw).
It appears that tar version used there is outdated and does not work as our code expects tar to work.

Could you please check a few more things:

Does this command unpack the tar correctly (please pay special attention to lib directory):
Code: Select all
tar -x –v -f veeam_soap.tar

What are the other busybox applets NAS distro has installed - you can use this command to show all:
Code: Select all
/bin/busybox
Gostev
Veeam Software
 
Posts: 21355
Liked: 2334 times
Joined: Sun Jan 01, 2006 1:01 am
Full Name: Anton Gostev

Re: Backups to Synology NAS

Veeam Logoby Gostev » Thu Oct 15, 2009 2:42 pm

Dave, we did some further research on Synology NAS, and it appears that its hardware is not x86-based (PowerPC). So even if we can make the above work, our file transfer agent will not work there :(
Gostev
Veeam Software
 
Posts: 21355
Liked: 2334 times
Joined: Sun Jan 01, 2006 1:01 am
Full Name: Anton Gostev

Re: Backups to Synology NAS

Veeam Logoby dburris » Fri Oct 16, 2009 1:08 pm

Is there any way to get a PowerPC version of the transfer agent?
dburris
Novice
 
Posts: 6
Liked: never
Joined: Wed Jun 03, 2009 4:24 pm
Full Name: Dave Burris

Re: Backups to Synology NAS

Veeam Logoby Gostev » Fri Oct 16, 2009 1:15 pm

I will talk to devs about this once v4 is out ;)
Gostev
Veeam Software
 
Posts: 21355
Liked: 2334 times
Joined: Sun Jan 01, 2006 1:01 am
Full Name: Anton Gostev

Re: Backups to Synology NAS

Veeam Logoby dburris » Fri Oct 16, 2009 6:30 pm

Gostev,

Rather than trying to add the Synology as a backup destination using the "Add Server" button, I ended up just backing up to a shared folder on the Synology. That seems to work well. So instead of using scp, Veeam is using SMB correct? Assuming the Synology (or a Linux server) could be added using the "Add Server" button, are there advantages to backing up via scp rather than SMB?

Thanks for all your help!

Dave
dburris
Novice
 
Posts: 6
Liked: never
Joined: Wed Jun 03, 2009 4:24 pm
Full Name: Dave Burris

Re: Backups to Synology NAS

Veeam Logoby Gostev » Fri Oct 16, 2009 7:27 pm

Dave - yes, this way it backups to share using SMB. This is most typical way of intergrating Veeam Backup with network attached storage devices.

There is two thing which can be considered benefits if you backup to Linux servers:

1. If you are using "Best" compression option, actual compression will be offloaded to the target Linux server from Veeam Backup proxy. Such "distributed processing" may help in some scenarios, for instance you can now run multiple jobs in parallel if writing to different Linux targets. Without this, single job with "Best" compression will load most modern CPUs on Veeam Backup server to 100%.

If you are using lower compression level, then it does not matter because "Optimal" (light) compression is always done by Veeam Backup server as part of network traffic compression, so in this case target server just stores the incoming data without repackaging it.

Anyway, in your specific case, the target server does not have powerful CPU, so you can disregard this bullet alltogether.

2. If you use "full" ESX (not ESXi) and "Network" backup mode, this gives you direct-to-target backups. In other words, Veeam Backup agent running in ESX service console will send data direct to you target Linux box, instead of data going through the Veeam Backup proxy.
Gostev
Veeam Software
 
Posts: 21355
Liked: 2334 times
Joined: Sun Jan 01, 2006 1:01 am
Full Name: Anton Gostev

[MERGED] Will it work: Linux Agent on Synology NAS devices?

Veeam Logoby adamswann » Fri Feb 15, 2013 7:16 pm

We're considering purchasing a Synology device to place in one of our offices to receive backups from Veeam B&R from our data center.

Our ideal scenario is that we would let Veeam B&R connect directly to the Synology using SSH and run the Linux backup agent directly on the Synology device.

Is this setup known to work? From my research, at least as of a few years ago, the Synology devices include Perl 5.8.6. Are there any other requirements we should be aware of? Are there any Synology models (we're looking at the DS412+ but wouldn't mind going with one of the cheaper models) that might handle this better than others?

Thanks,

Adam Swann
adamswann
Lurker
 
Posts: 2
Liked: never
Joined: Fri Feb 15, 2013 7:08 pm
Full Name: Adam Swann

Re: Backups to Synology NAS

Veeam Logoby Vitaliy S. » Fri Feb 15, 2013 7:59 pm

Hi Adam,

If Synology NAS satisifes these requirements, then you will be able to add it as a Linux repository:
1. The server must have Perl installed
2. The server supports password authentication
3. The root password should not contain certain symbols (such as space)

Thanks!
Vitaliy S.
Veeam Software
 
Posts: 19450
Liked: 1092 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: Backups to Synology NAS

Veeam Logoby adamswann » Fri Feb 15, 2013 8:41 pm

Earlier posts on this thread (which looks like it dates back to 2009) indicate that x86 is also a requirement. Is that still the case? Or will an ARM-based Linux work as long as it meets the three requirements you listed?

For reference, Synology has a mix of ARM and x86 models:

http://forum.synology.com/wiki/index.ph ... y_NAS_have

The "+" models generally (though apparently with some exceptions) run x86 (Intel Atom) CPUs.

I'm probably going to pick up at DS412+ to try out -- just hoping someone could chime in and say, "yes I've made this work!" and save me some surprises. :)

We're using a Synology at our datacenter with Veeam with no problems, but in that case, it's just exposed as an SMB share.

Thanks,

Adam Swann
adamswann
Lurker
 
Posts: 2
Liked: never
Joined: Fri Feb 15, 2013 7:08 pm
Full Name: Adam Swann

Next

Return to Veeam Backup & Replication



Who is online

Users browsing this forum: adapterer, Bing [Bot] and 24 guests