Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Sep 30, 2008 8:05 pm 
Offline
Senior Member

Joined: Fri Sep 21, 2007 4:12 pm
Posts: 78
I've got two linodes, both in atlanta. They've both got internal IPs and run IPSEC on said internal IPs.

What would be the best way of moving data from linode to linode here? Namely largeish files, anywhere from 100MB to 1GB.

So far, I've just been using scp from linode to linode. This works, but it also means I'm eating the CPU doing IPSEC + SSH crypto. I also may be doing quite a bit more of copying from linode to linode in the future, and invoking scp either a lot of times or with a huge amount of arguments doesn't sound all that awesome.

Seeing as I have IPSEC from linode to linode, high security protocols are not required. I've got that down. I'm leaning towards just using NFS, but as a whole I don't really like NFS due to my experiences in the past with it. It's also looking like the only real option, as I really don't want to install and configure samba instead.

Just curious what you guys collective either (1) use yourselves or (2) can come up with. :)

Both linodes are running centos.


Top
   
 Post subject: netcat/tar or rsync
PostPosted: Tue Sep 30, 2008 8:17 pm 
Offline
Junior Member

Joined: Tue Sep 30, 2008 8:07 pm
Posts: 26
Website: http://www.nivex.net/
Location: Hillsborough, NC, US
if you need to move things right now, you can use tar and netcat:

server1$ tar cf - path_to_files | nc -l -p 12345
server2$ nc server1 12345 | tar xf -

If you want a more permanent solution, set up rsyncd and tell it to listen only on the private IPs. rsyncd doesn't do encryption, and you get the bonus of changes-only transmission if you're routinely moving the same files around.


Top
   
PostPosted: Tue Sep 30, 2008 11:20 pm 
Offline
Junior Member

Joined: Wed Sep 03, 2008 9:51 am
Posts: 25
Even faster, use ssh:

For the first copy, use tar, it's fastest:
$ tar -cpf - -C /path/to/files . | ssh user@otherlinode "tar -xvf - -C /path/to/files"

For incremental updates, use rsync over ssh, no need for rsyncd:
$ rsync -avz /path/to/files/* user@otherlinode:/path/to/files/


Top
   
 Post subject:
PostPosted: Tue Sep 30, 2008 11:26 pm 
Offline
Junior Member

Joined: Wed Sep 03, 2008 9:51 am
Posts: 25
Doh.

That'll teach me to read the whole post. You specifically didn't want ssh...

For the best raw file transfer speeds, I usually fall back to good 'ol FTP. lftp is a great command-line FTP client that's fully scriptable, and available in most every distro I've ever used.

If these files are largely the same each time, with say 20% of the file contents changing each sync, then you really need to setup and rsyncd on the source host. This will allow rsync to do binary deltas - ie if you have a 1GB file where only 10MB of the file has changed, it will only transfer 10MB.

HTH,

Justin


Top
   
 Post subject:
PostPosted: Wed Oct 01, 2008 12:56 am 
Offline
Senior Member

Joined: Sun Nov 14, 2004 6:37 pm
Posts: 138
Website: http://oldos.org
WLM: jasonlfaulkner@hotmail.com
Yahoo Messenger: jasonfncsu
AOL: jaylfaulkner
Location: NC, USA
We did benchmarks about the "double encryption" stuff at my old job... and we discovered it really doesn't cause a slowdown at all.

I wouldn't fix it if it ain't broke.

_________________
Jay Faulkner
http://oldos.org


Top
   
PostPosted: Wed Oct 01, 2008 5:49 am 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
kbrantley wrote:
What would be the best way of moving data from linode to linode here? Namely largeish files, anywhere from 100MB to 1GB.


I have heard system administrators at my office rave about some data transfer program named SneakerNet. It seems they use SneakerNet all the time and it works well.

James


Top
   
PostPosted: Wed Oct 01, 2008 9:25 am 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
zunzun wrote:
I have heard system administrators at my office rave about some data transfer program named SneakerNet. It seems they use SneakerNet all the time and it works well.

Sneakernet at the Newark datacenter has huge latency - you have to wait while caker puts on his sneakers and drives up there.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Wed Oct 01, 2008 1:53 pm 
Offline
Senior Member

Joined: Fri Sep 21, 2007 4:12 pm
Posts: 78
Jay wrote:
We did benchmarks about the "double encryption" stuff at my old job... and we discovered it really doesn't cause a slowdown at all.

I wouldn't fix it if it ain't broke.


That and how old it gets moving data with long and nasty ssh commands, that's the real problem here.

And sneakernet from the midwest to Atlanta is amazingly poor latency :)


Top
   
 Post subject:
PostPosted: Wed Oct 01, 2008 5:07 pm 
Offline
Senior Member

Joined: Sun Nov 30, 2003 2:28 pm
Posts: 245
I can hate on NFS as much as anyone, but for reducing typing, it's the way to go :-). If you don't mind having to move files on the destination, rsyncd isn't a bad solution.
That said, mostly I just rsync via ssh. Mostly I do NOT use the -z option; on a fast net, it doesn't buy much, and a lot of big files are already compressed.

_________________
The irony is that Bill Gates claims to be making a stable operating system and Linus Torvalds claims to be trying to take over the world.
-- seen on the net


Top
   
PostPosted: Thu Oct 02, 2008 11:46 am 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
zunzun wrote:
I have heard system administrators at my office rave about some data transfer program named SneakerNet. It seems they use SneakerNet all the time and it works well.


Never underestimate the bandwidth of a trunk full of disks (to update an old joke).

Latency may suck, but bandwidth is massive!

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group