Drobo

rsync: Synology NAS > Drobo FS

Hello,

I installed the DroboApps rsync package on my Drobo FS and created a backup task on my Synology 1511+ to backup all of its shares to the Drobo. The connection test succeeded but when I attempt to run the backup it errors out:

Error || 2011/01/29 15:00:35 || admin || Network Backup failed to backup task [drobo-nas] to [10.1.0.10]. ([12] Error occurred while transferring data.)

Drobo rsync log:

2011/01/29 14:30:05 [445] rsyncd version 3.0.7 starting, listening on port 873
2011/01/29 14:35:19 [473] name lookup failed for 10.1.0.1: Name or service not known
2011/01/29 14:35:19 [473] connect from UNKNOWN (10.1.0.1)
2011/01/29 14:35:19 [473] module-list request from UNKNOWN (10.1.0.1)
2011/01/29 14:35:36 [476] name lookup failed for 10.1.0.1: Name or service not known
2011/01/29 14:35:36 [476] connect from UNKNOWN (10.1.0.1)
2011/01/29 14:35:41 [477] name lookup failed for 10.1.0.1: Name or service not known
2011/01/29 14:35:41 [477] connect from UNKNOWN (10.1.0.1)

2011/01/29 15:16:45 [849] name lookup failed for 10.1.0.1: Name or service not known
2011/01/29 15:16:45 [849] connect from UNKNOWN (10.1.0.1)
2011/01/29 15:16:50 [852] name lookup failed for 10.1.0.1: Name or service not known
2011/01/29 15:16:50 [852] connect from UNKNOWN (10.1.0.1)

Thanks,

->g.

Is your Drobo able to get DNS information from the router?

[quote=“ricardo, post:2, topic:2272”]
Is your Drobo able to get DNS information from the router?
[/quote]Yes it is using the same DNS server as the rest of my network. It also is on the same network as the Synology. And I setup the Synology rsync backup task by IP anyway (rather than host name).

Can you please try to add this line to the file /etc/hosts on your DroboFS?

10.1.0.1        synology

…and see what happens?

[quote=“ricardo, post:4, topic:2272”]
Can you please try to add this line to the file /etc/hosts on your DroboFS?

10.1.0.1        synology

…and see what happens?
[/quote]How do I do that? I have the SSH package installed so do I just SSH to my drobo and cd to that directory?

Also, the acutal hostname for 10.1.0.1 is synology-nas so I’m assuming I should add that instead of just synology?

Thanks,

->g.

Ok, this step-by-step sequence should do it:

[list=1]
[]SSH in to the FS (as root)
[
]type:vi /etc/hosts
[]type:‘a’, the lower line on the screen will show ‘APPEND’ (if I remember correctly)
[
]now enter the line ‘10.1.0.1 synology-nas’
[]press ESC
[
]type ‘:wq’ (without quotes) and ENTER
[*]done!
[/list]
The changes should take effect immediately.

[quote=“ricardo, post:6, topic:2272”]
Ok, this step-by-step sequence should do it:

[list=1]
[]SSH in to the FS (as root)
[
]type:vi /etc/hosts
[]type:‘a’, the lower line on the screen will show ‘APPEND’ (if I remember correctly)
[
]now enter the line ‘10.1.0.1 synology-nas’
[]press ESC
[
]type ‘:wq’ (without quotes) and ENTER
[*]done!
[/list]
The changes should take effect immediately.
[/quote]Well I can no longer login with dropbear. When entering in the password I set for root way back when it just closes the putty window on me. I tried removing (via droboadmin webint) and reinstalling dropbear but it still closes the putty window on me when I enter the password.

Have you tried login: root, passwd: root ?

If you haven’t changed the password using the script inside the dropbear folder it was probably reset to the original ‘root’.

[quote=“ricardo, post:8, topic:2272”]
Have you tried login: root, passwd: root ?

If you haven’t changed the password using the script inside the dropbear folder it was probably reset to the original ‘root’.
[/quote]I used the script when i first set up dropbear. What I don’t understand is why it closes the putty window as soon as I enter my password but if I enter anything as the password and hit enter it stays open.

Try this instead:ssh -v root@drobo-fs

The ‘-v’ should give you a verbose log of what is going on. Post it here, if you can.

[quote=“ricardo, post:10, topic:2272”]
Try this instead:ssh -v root@drobo-fs

The ‘-v’ should give you a verbose log of what is going on. Post it here, if you can.
[/quote]I’m not sure where to add the “-v” in putty.

Have a look here. You will probably have to start putty from a command line (Start Menu > Search for “cmd”).

[quote=“ricardo, post:12, topic:2272”]
Have a look here. You will probably have to start putty from a command line (Start Menu > Search for “cmd”).
[/quote]Thanks I’ll use that to troubeshoot the putty issue later. In the mean time, I was able to login through ssh from my cisco router. I made the changes to /etc/hosts and tried to run the backup again. I get the same error on the synology side:

Network Backup failed to backup task [drobo-nas] to [10.1.0.10]. ([12] Error occurred while transferring data.)

And here is all I’m now getting in the drobo rysnc log:

2011/02/01 08:22:13 [462] rsyncd version 3.0.7 starting, listening on port 873
2011/02/01 08:31:08 [638] connect from synology-nas (10.1.0.1)
2011/02/01 08:31:15 [639] connect from synology-nas (10.1.0.1)

2011/02/01 08:33:56 [675] connect from synology-nas (10.1.0.1)
2011/02/01 08:34:02 [676] connect from synology-nas (10.1.0.1)
2011/02/01 08:34:07 [679] connect from synology-nas (10.1.0.1)
2011/02/01 08:34:13 [680] connect from synology-nas (10.1.0.1)

So does that mean it is now configured correctly on the drobo side? Or should something else be showing up in the log to indicate that?

Have a look here, in particular issue number 3. It basically says that rsync on the Drobo side is closing the connection before data can be transferred. It seems to me that there are at least 2 reasons between the ones given that could apply to you:
[list]
[]The remote rsync executable wasn’t found.
[
]Your remote-shell setup isn’t working right or isn’t “clean” (i.e. it is sending spurious text to rsync).
[/list]
In other words, you have to make sure that the rsync binary is on the path (you could fix this with a symlink), and you probably have to fix your login problem - that might be causing rsync to fail.

[quote=“ricardo, post:14, topic:2272”]

Have a look here, in particular issue number 3. It basically says that rsync on the Drobo side is closing the connection before data can be transferred. It seems to me that there are at least 2 reasons between the ones given that could apply to you:
[list]
[]The remote rsync executable wasn’t found.
[
]Your remote-shell setup isn’t working right or isn’t “clean” (i.e. it is sending spurious text to rsync).
[/list]
In other words, you have to make sure that the rsync binary is on the path (you could fix this with a symlink), and you probably have to fix your login problem - that might be causing rsync to fail.
[/quote]My login problem is fixed now. It had something to do with putty. I deleted the saved session I had, recreated it, deleted the key from the dropbear directory and re-ran the passwd script while I was logged in through my Cisco router and now it works (I can login again via putty).

So how do I make sure “that the rsync binary is on the path”?

This is what is in the .conf file:

uid = root
gid = root
pid file = /mnt/DroboFS/Shares/DroboApps/rsync/rsyncd.pid

[drobofs]
path = /mnt/DroboFS/Shares
comment = DroboFS Share

What am I missing?

Thanks,

->g.

Try something like this:

ln -s /mnt/DroboFS/Shares/DroboApps/rsync/rsync /usr/bin/

And then test it like this:

which rsync

Then try again. I hope it works now.

which rsync

/usr/bin/rsync

Still fails with the same error on the synology side and same log entries in the drobo.

Ok I got it working. rsyncd.conf was missing:

read only = false

[drobofs]

Now that I found out what the problem was should I remove this:

ln -s /mnt/DroboFS/Shares/DroboApps/rsync/rsync /usr/bin/

…or does it even matter? What exactly does this command do?

Thanks for the help I appreciate it.

Duh! I should have thought about that.

Initially I thought that rsync was not in the path. That command makes a symbolic link from the rsync binary to a place that I was sure was in the path. To undo it, just type this:

rm /usr/bin/rsync

Hi, I know it’s been several years, but I want to basically do the same thing: set up a backup task from my Synology (DS1819+) to my Drobo FS. I have installed rsync & SSH, opened relevant ports (remote backup), and changed the rsyncd.conf file to read only = false, but I cannot setup a backup at all, even one that errors out. Any ideas, since you actually managed it with yours? I thought it may be worth an ask. :grimacing: