Web Hosting Talk


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Transfer data between 2 private server (linux)
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)

 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-02-2009, 03:16 AM
howsthat howsthat is offline
View Beta Profile
Junior Guru
 
Join Date: Aug 2007
Posts: 177
Transfer data between 2 private server (linux)

I have 2 servers connected privately..
The servers have a public and private ip.
For transfer privately bandwidth is not counted.

I wanted to know how to transfer data between 2 private servers?
Also is it possible to have symlink from one server to another (both servers connected privately also).

Reply With Quote
Sponsored Links
  #2  
Old 07-02-2009, 03:57 AM
middayc middayc is offline
View Beta Profile
Newbie
 
Join Date: Jul 2009
Posts: 12
If I understand the question and you want to transfer some files you could use rsync of scp (ssh copy).

http : //everythinglinux.org/rsync/
http : //en.wikipedia.org/wiki/Secure_copy
(I can't link yet)

If you want to transfer some live data in realtime then I it's probably more app specific. In anyway, then your apps will communicate over TCP.

Reply With Quote
  #3  
Old 07-02-2009, 09:46 AM
Hildy Hildy is offline
View Beta Profile
Junior Guru Wannabe
 
Join Date: May 2008
Posts: 43
In reference to the symlink question, you may want to look at NFS mounting a directory from one server on the other: http://en.wikipedia.org/wiki/Network...stem_(protocol)

__________________
Dan Hildebrandt, Developer, WebGroup Media LLC. - http://twitter.com/cerb4
Cerberus Helpdesk 4.2 is a CRM toolkit. Remember anything about anybody, swiftly reply to a flood of e-mail,
capture feedback organically, track time, flag opportunities, share tasks, and more. http://www.cerb4.com/

Reply With Quote
Sponsored Links
  #4  
Old 07-02-2009, 11:03 AM
howsthat howsthat is offline
View Beta Profile
Junior Guru
 
Join Date: Aug 2007
Posts: 177
See i have 1000mbps connection between the 2 private servers..
I have my domain on one of the servers and the file stored on the other..
Now suppose a user comes to download a file then how can i supply the file to him from the other server using the same domain name..

Kindly help..

Reply With Quote
  #5  
Old 07-03-2009, 12:22 AM
mugo mugo is offline
View Beta Profile
Intangible Asset Appraiser
 
Join Date: Mar 2009
Location: Austin Tx
Posts: 1,226
you want to export an NFS share on the remote server, mount it from the main server.
It will just appear as a directory, wherever you happen to mount it, say, in /home/user/public_html/remoteuserdata/
remoteuserdata is actually mounted via NFS on the remote server.

__________________
This is the best signature in the world....Tribute!
(It is not the best signature in the world, no. This is just a tribute)


Reply With Quote
  #6  
Old 07-03-2009, 12:30 AM
Winstyn Winstyn is offline
View Beta Profile
WHT Addict
 
Join Date: Sep 2003
Posts: 123
Yes, network sharing is the way to go here. Just make sure you point via IP so you are sure its running through the private NIC. It should work fine. One of the great advantages of housing boxes in the same DC. Except for when the DC experiences downtime then not so great.

A samba share will do the job as well if im not mistaken. Could be though.

__________________
VPSHive / GigeNET Cloud
The fastest cloud control in the world.
█ Visit http://www.gigenetcloud.com/ or Email sales[at]gigenetcloud.com

Reply With Quote
  #7  
Old 07-03-2009, 06:03 AM
howsthat howsthat is offline
View Beta Profile
Junior Guru
 
Join Date: Aug 2007
Posts: 177
I tried that thing but it gives the following error on mounting on the client server
mount: trying 10.252.5.34 prog 100003 vers 3 prot tcp port 2049
mount: trying 10.252.5.34 prog 100005 vers 3 prot udp port 901
mount: 10.252.5.34:/mtest failed, reason given by server: Permission denied


Any solution for it..

Reply With Quote
  #8  
Old 07-03-2009, 06:12 AM
mugo mugo is offline
View Beta Profile
Intangible Asset Appraiser
 
Join Date: Mar 2009
Location: Austin Tx
Posts: 1,226
did you setup the export on the machine you are mounting, and name the machine that will connect?
didn't see your actual mount command...just the fails.

This should line you out:
http://nfs.sourceforge.net/nfs-howto/ar01s03.html

__________________
This is the best signature in the world....Tribute!
(It is not the best signature in the world, no. This is just a tribute)


Reply With Quote
  #9  
Old 07-03-2009, 06:20 AM
lamnk lamnk is offline
View Beta Profile
Junior Guru Wannabe
 
Join Date: Apr 2004
Posts: 65
Why dont you give the second server a subdomain, something like media.yourdomain.com, and link files from there ? It's one way to optimize page loading time and reduce load, since the browerser makes request to two servers, instead of one. It sure will be faster than using a network mount drive

__________________
Ngo Ky Lam

Reply With Quote
  #10  
Old 07-03-2009, 11:05 AM
howsthat howsthat is offline
View Beta Profile
Junior Guru
 
Join Date: Aug 2007
Posts: 177
that will be the only way possible if this doesnt works..

Actual making a subdomain and doing it will require many changes in my script so dint want that..

Reply With Quote
  #11  
Old 07-03-2009, 11:54 AM
david510 david510 is offline
View Beta Profile
At the Cliff
 
Join Date: Oct 2004
Location: India
Posts: 4,245
If you can connect the two servers between them with private IPs then rsync would be a good option. You can have a wide range of options if you use it. Look at its man page as it is highly documented.

__________________
David
www.cliffsupport.com
Affordable Server Management Solutions
Services Offered | sales AT cliffsupport DOT com

Reply With Quote
  #12  
Old 07-03-2009, 03:58 PM
howsthat howsthat is offline
View Beta Profile
Junior Guru
 
Join Date: Aug 2007
Posts: 177
actually i want it to be real time.. See suppose the file is on the other server and a user requests the file it should be readily available.. In rsync i will first have to copy the file on my current server and then supply the file to the user..

Reply With Quote
  #13  
Old 07-04-2009, 07:11 AM
lamnk lamnk is offline
View Beta Profile
Junior Guru Wannabe
 
Join Date: Apr 2004
Posts: 65
Correct me if i'm wrong but it's even more inefficient if you use NFS since the file will be first transfered over NFS to your webserver and then served to users, no ?

__________________
Ngo Ky Lam

Reply With Quote
  #14  
Old 07-04-2009, 12:29 PM
howsthat howsthat is offline
View Beta Profile
Junior Guru
 
Join Date: Aug 2007
Posts: 177
my server will act as a link for it i think.. The files wont be downloaded on the server it will be just using the servers bandwidth..

Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to find the data transfer data in the server koppan Hosting Security and Technology 6 02-20-2007 12:16 PM
$20 - cPanel/WHM - Private NS - Proven Uptime - 5gb disk /50gb data transfer net-trend Shared Hosting Offers 0 07-25-2005 02:04 PM
Backup data server, 1500GB-2000GB data transfer & 300-400GB of space for $100? Help!! a-m Dedicated Server 29 08-08-2004 03:39 PM