NASLite Network Attached Storage

www.serverelements.com
Task-specific simplicity with low hardware requirements.
It is currently Fri Mar 29, 2024 5:22 am

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: rsync Disk to Disk
PostPosted: Mon Jul 10, 2006 6:43 pm 
Offline

Joined: Thu Jan 12, 2006 7:30 pm
Posts: 17
can the rsync be used to copy from one mounted disk to another. Right now with NasLite I run the rsync off of another computer (redat) but it is not very fast as it has to go back & forth accoss the network. I was hoping for someway to either telnet or ssh and call the rsync command on the NasLite2 box. Yes / No or am I nuts (probably but it make life more interesting).


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 11, 2006 8:32 am 
Offline
Site Admin

Joined: Tue Jul 13, 2004 4:11 pm
Posts: 1771
Location: Server Elements
The NASLite-2 is an rsync server only. Client requests have to be issued via a client PC. There is no way to use rsync manually within NASLite-2


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 11, 2006 10:44 am 
Offline

Joined: Thu Jan 12, 2006 7:30 pm
Posts: 17
Ok I'm a little slow. Now if it's a rsync server I should be able to from my linux box(redhat) connect to it and initiate a command like

rsync -a /mnt/Disk-1/ /mnt/Disk-3/ --- (Or where ever the mounts are)

which would sync Disk-3 to Disk-1

Or are you saying there is no way to connect to it?

I'm hoping to this from the cron on the Linux Box(redhat)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 11, 2006 10:52 am 
Offline
Site Admin

Joined: Tue Jul 13, 2004 4:11 pm
Posts: 1771
Location: Server Elements
That's correct. First make sure rsync is RW. By default it's RO.

Secondly, the rsync command should not be accessing the local mounts since that defeats the purpose. use the modules exported by NASLite's rsync server.

Makes sense?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 11, 2006 11:02 am 
Offline
Site Admin

Joined: Tue Jul 13, 2004 4:11 pm
Posts: 1771
Location: Server Elements
You can get a list of exported modules using the following command:

Code:
rsync IP::


where IP is your NASLite-2 IP address.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 11, 2006 11:10 am 
Offline

Joined: Thu Jan 12, 2006 7:30 pm
Posts: 17
Ok I think I get it. Its more for like If I have a PC and I want to sync my local files on my PC to the NasLite (correct?).

Is there a way that I can sync or copy from one disk to another. I'm trying to have a duplicate disk of everthing. I don't want raid as I have had problems with it. I just want a second disk of everything. If anyone has ever lost a disk(stopped working) they know why I am doing this. I want to be able to remove and store this second disk in a safe place. In the future I may have it sync to another Nas box, but for now I'm just rotating disks.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 11, 2006 11:25 am 
Offline

Joined: Thu Jan 12, 2006 7:30 pm
Posts: 17
Boy, I know just enough to be dangerous. OK if I
rsync IP:: I get

Disk-1
Disk-3

How do I construct an rsync comand (on my linux box) to mirror the 2.

Sorry for being kinda slow Tony, and thanks for your knowledge and input.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 11, 2006 11:26 am 
Offline
Site Admin

Joined: Tue Jul 13, 2004 4:11 pm
Posts: 1771
Location: Server Elements
Ah,

The best way to do what you want is to rsync module to local mount since one of the rsync points has to be local. Use NFS for the local mount if you are to do that in order to keep network traffic to minimum.

This is not ideal, but will work. Also keep in mind that rsync loves RAM (approximately 100K/file in queue). It’s also CPU intensive so when going disk to disk, what you don’t use in network resources, you’ll pay in processor time especially if you have large drives with lots of files.

Regardless, the approach will do what you want.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 11, 2006 11:31 am 
Offline
Site Admin

Joined: Tue Jul 13, 2004 4:11 pm
Posts: 1771
Location: Server Elements
guymon wrote:
Boy, I know just enough to be dangerous. OK if I
rsync IP:: I get

Disk-1
Disk-3

How do I construct an rsync comand (on my linux box) to mirror the 2.

Sorry for being kinda slow Tony, and thanks for your knowledge and input.


Mount the destination disk locally via NFS. Then lets assume that the remote module is Disk-1 and the local mount is /mnt/Disk-3.

Do the following (going from memory here so verify my syntax)
Code:
rsync -av IP::Disk-1/files /mnt/Disk-3/files


Something of that effect...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 11, 2006 11:39 am 
Offline

Joined: Thu Jan 12, 2006 7:30 pm
Posts: 17
Well now we are getting somehere.

currently with NasLite1.* I mount both disks locally on the linux box and execute the rsync command. If I go with the NasLite 2, I can mount one disk locally and the execute the rsync comand. Will that be faster than having both mounted? Can you show me what the rsync comand would look like

local mounted NasLite disk is /mnt/Disk-1
Naslite2 box would be 192.168.1.251
Disk to be mirrored to in on NasLite2 box called Disk-3


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 11, 2006 11:41 am 
Offline

Joined: Thu Jan 12, 2006 7:30 pm
Posts: 17
Well If I would have just waited a second....

Dah!

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 11, 2006 11:51 am 
Offline
Site Admin

Joined: Tue Jul 13, 2004 4:11 pm
Posts: 1771
Location: Server Elements
I'll bench doing this through rsync against doing a straight copy through NFS and see what you get. The problem is that the client rsync has to crawl the local mount via NFS to determine differences before the transfer. The gains may be a wash, based on the content type.

Just a thought….


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 11, 2006 11:59 am 
Offline

Joined: Thu Jan 12, 2006 7:30 pm
Posts: 17
The fog is clearing now. I have it all worked out. I'm not sure about the speed. I'll have to live with it now and upgrade to Gigabit. So is NFS faster than Samba?



I'm off to buy NasLite2 thanks for a great product....and excellent support!!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 47 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group