DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2012-12-21 16:34:23

ottsm
Member
Registered: 2010-12-23
Posts: 44

How to mount a drive from another DNS located on the same network?

I'm upgrading and need to use rsync to copy from my DNS323 to my new DNS345.  Currently I have funplug installed on only the DNS323.  I use rsync all the time to backup files between the two hard drive in the DNS323.  Of course the new DNS345 can't read the files from my DNS323 even though both files systems are EXT4, amazing how complicated things can get.

I want to mount the drive that is in the DNS345 from within the DNS323, what code would I need to type in the DNS323 to do this?  Would anything need to be setup in the DNS345?

Another option may be to go ahead and install funplug in the DNS345 and then I may be able to mount the drives from the DNS323 but haven't got that far yet.

Offline

 

#2 2012-12-21 17:01:05

FunFiler
Member
Registered: 2010-05-23
Posts: 577

Re: How to mount a drive from another DNS located on the same network?

If you run rsync on both units then the answer is simple. Just run a script on single entry in cron to sync the 2 systems

rsync://[USER@]HOST[:PORT]/SRC [DEST]


3 * (DNS-323 with 2 * 2TB) = 12TB Running FW v1.08 & FFP v0.5
Useful Links: Transmission, Transmission Remote, Automatic

Offline

 

#3 2012-12-21 18:46:51

ottsm
Member
Registered: 2010-12-23
Posts: 44

Re: How to mount a drive from another DNS located on the same network?

Currently I do the following for the internal drives;
rsync -ai --stats --delete /mnt/HD_a2/ /mnt/HD_b2

So would I do;
rsync -ai --stats /mnt/HD_a2/test_file 192.168.0.198:Volume_1

Tried this and it started but failed, said something about "No space left on device (28)"
What would the remote device format look like on the DSN-345?  I also tried a user name also but go nowhere.

If I installed funplug in the DNS-345 would it work then?
I'm not a linux expert as you can tell but know my way around enough to be dangerous.

Offline

 

#4 2012-12-21 19:07:29

ottsm
Member
Registered: 2010-12-23
Posts: 44

Re: How to mount a drive from another DNS located on the same network?

I can do the following from the 323;

rsync -nr 192.168.0.198::

I can see Volume_1
I try and type;
rsync -nr 192.168.0.198::Volume_1
it ask for a password, I type in the password for the DNS345 but I get an auth failed error.
tried;
rsync -nr admin@192.168.0.198::Volume_1
same thing, password fails.

Offline

 

#5 2012-12-21 19:48:48

ottsm
Member
Registered: 2010-12-23
Posts: 44

Re: How to mount a drive from another DNS located on the same network?

Think I figured it out, I used the built in WEB interface and my DNS325 (which also has funplug installed) and the "ps -l" command shows;
root@192.168.0.198::Volume_1
root does make since, probably should have guessed that already.
I moved the drives to my DNS325 and now I'm using the built in WEB interface and hate to stop it at the moment or I'd try it just to verify I can do it.

Offline

 

#6 2012-12-21 22:12:14

FunFiler
Member
Registered: 2010-05-23
Posts: 577

Re: How to mount a drive from another DNS located on the same network?

You can get the syntax for rsync by typing "rsync --help | more"

This is one possible scenario
rsync [OPTION]... SRC [SRC]... [USER@]HOST::DEST


3 * (DNS-323 with 2 * 2TB) = 12TB Running FW v1.08 & FFP v0.5
Useful Links: Transmission, Transmission Remote, Automatic

Offline

 

#7 2012-12-22 18:48:42

ottsm
Member
Registered: 2010-12-23
Posts: 44

Re: How to mount a drive from another DNS located on the same network?

Got things working after many hours.  First I gave up using the built in WEB Remote backup options.  Actually they use rsync as well but don't give as much control (such as the --delete option to remove files that you deleted on your main copy also from your backup, at least I don't believe theirs does this).  The WEB option also causes issues with fun plug, you will get error messages when logging in because it thinks the WEB rsync function is a "middle man attack" which doesn't hurt anything but when you disable the function you will need to reboot the DNS to get funplug working again.  I'm also using my DNS to track information from a TED5000 energy monitor and may also start tracking water usage and temperatures in my house so I need to use funplug anyway. 

Biggest thing was getting the rsyncd.conf file setup correctly, the rsyncd.sh shell program has a slight error in it so if you put a space after the equals in "pid file = /var/run/rsyncd.pid" it will fail.  You either need to edit the shell command to strip out the space or remove the space from from the "pid file =/var/run/rsyncd.pid".  I never could figure out what username they wanted in the WEB rsyncd function, another reason to give up using the WEB option.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB