This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Help setting rsync

Synchronize files & directories to/from XigmaNAS with minimal data transfer.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
User avatar
ChriZathens
Forum Moderator
Forum Moderator
Posts: 758
Joined: 23 Jun 2012 09:14
Location: Athens, Greece
Contact:
Status: Offline

Help setting rsync

Post by ChriZathens »

Hi, guys!
I have never used the Rsync service.. I need some help setting a job.. :oops:
OK, so I have two nas4free machines:
1. Source: 192.168.1.102
2. Destination: 192.168.1.103
The source has a directory /mnt/Media2/Video/MOVIES with my movies inside
The destination has a directory /mnt/Main_Pool/Video/MOVIES which is empty
What I am doing:
From destination machine:
--- Services|Rsync|Server --> I select a user, check "enable" then save & restart
--- Services|Rsync|Server|Module|Add --> In "Path" I enter the destination (/mnt/Main_Pool/Video/MOVIES/) then Add+Apply changes
And then I'm stuck....
In Source machine:
--- Services|Rsync|Client|Add it writes Local share (destination). But this is the source not the destination... So I thought about leaving it empty) In Remote Rsync server I enter 192.168.1.103 (this is the destination n4f machine). In remote module I enter /mnt/Media2/Video/MOVIES/ (this is the local directory with the movies inside). When I click add it reports an error that I haven't entered Local share...

I am a bit confused...
A step by step guide by someone who is familiar with the procedure would be much appreciated.. :oops: :oops:
My Nas
  1. Case: Fractal Design Define R2
  2. M/B: Supermicro x9scl-f
  3. CPU: Intel Celeron G1620
  4. RAM: 16GB DDR3 ECC (2 x Kingston KVR1333D3E9S/8G)
  5. PSU: Chieftec 850w 80+ modular
  6. Storage: 8x2TB HDDs in a RaidZ2 array ~ 10.1 TB usable disk space
  7. O/S: XigmaNAS 11.2.0.4.6625 -amd64 embedded
  8. Extra H/W: Dell Perc H310 SAS controller, crosflashed to LSI 9211-8i IT mode, 8GB Innodisk D150SV SATADOM for O/S

Backup Nas: U-NAS NSC-400, Gigabyte MB10-DS4 (4x4TB Seagate Exos disks in RaidZ configuration - 32GB RAM)

davidb
Starter
Starter
Posts: 55
Joined: 05 Jul 2012 17:51
Status: Offline

Re: Help setting rsync

Post by davidb »

Hello!
For the "local share" you do want to put in your "/mnt/Media2/Video/MOVIES" directory, but from the sound of what you are trying to do (and the way you have it set up), you want to check the box that says "Reverse Direction". This will cause the client to push to the server.
By default, the client pulls from the server: viewtopic.php?f=28&t=1634#p7319

User avatar
ChriZathens
Forum Moderator
Forum Moderator
Posts: 758
Joined: 23 Jun 2012 09:14
Location: Athens, Greece
Contact:
Status: Offline

Re: Help setting rsync

Post by ChriZathens »

Well I actually managed to make it work, but thanks a lot for your reply, anyway!
The thing I didn't like was that although I told from command line to stop rcyncd it continued to push files until it finished :evil:
That I found annoying, so I finally followed a different approach:
I mounted my shares via nfs and run a cp command
The reason I wanted to use rsync was that I want to move all data from my raid5 to my n40l, convert my raid5 to Raidz1 and then move data back.
I did this for the first raid5 I have and it took 3 days via samba. Also needed to have my windows PC on which was somewhat stupid in the first place. Plus it could not transfer faster than 40 MB/s with speeds varying from 3 to 40MB/s.. :evil:
I did a quick test with NFS mounts and the speed is constant at 65-70 MB/s - which is not ultra fast ( I have seen reports for 110MB/s around here..) but in any case it is at least two times faster than before..
Plus I will shutdown my windows PC which is in my bedroom and not silent... :?
My Nas
  1. Case: Fractal Design Define R2
  2. M/B: Supermicro x9scl-f
  3. CPU: Intel Celeron G1620
  4. RAM: 16GB DDR3 ECC (2 x Kingston KVR1333D3E9S/8G)
  5. PSU: Chieftec 850w 80+ modular
  6. Storage: 8x2TB HDDs in a RaidZ2 array ~ 10.1 TB usable disk space
  7. O/S: XigmaNAS 11.2.0.4.6625 -amd64 embedded
  8. Extra H/W: Dell Perc H310 SAS controller, crosflashed to LSI 9211-8i IT mode, 8GB Innodisk D150SV SATADOM for O/S

Backup Nas: U-NAS NSC-400, Gigabyte MB10-DS4 (4x4TB Seagate Exos disks in RaidZ configuration - 32GB RAM)

davidb
Starter
Starter
Posts: 55
Joined: 05 Jul 2012 17:51
Status: Offline

Re: Help setting rsync

Post by davidb »

ChriZathens wrote: The thing I didn't like was that although I told from command line to stop rcyncd it continued to push files until it finished :evil:
i feel your pain there, i had difficulties getting rsync to stop as well, plus there was the issue with the webgui locking up if you initiated rsync there (this has been fixed, although you have to use a different browser to access the webgui while the rsync is running)

btw, the rsyncd process is the server (deamon) process, and its really the client doing all the push/pull work.
i suspect once it opens up the socket to the remote share, it doesn't let go even if the server process is killed, as the server is just broadcasting what files/locations are available. But i really don't know, im guessing here.

Anyways, glad you have found a solution to your massive file moves, good luck!

Post Reply

Return to “RSYNC”