
07-02-2009, 03:16 AM
|
|
|
|
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).
|

07-02-2009, 03:57 AM
|
|
|
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.
|

07-02-2009, 09:46 AM
|
|
|
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/
|

07-02-2009, 11:03 AM
|
|
|
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..
|

07-03-2009, 12:22 AM
|
|
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)
|

07-03-2009, 12:30 AM
|
|
|
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
|

07-03-2009, 06:03 AM
|
|
|
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..
|

07-03-2009, 06:12 AM
|
|
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)
|

07-03-2009, 06:20 AM
|
|
|
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
|

07-03-2009, 11:05 AM
|
|
|
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..
|

07-03-2009, 11:54 AM
|
|
|
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.
|

07-03-2009, 03:58 PM
|
|
|
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..
|

07-04-2009, 07:11 AM
|
|
|
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 ?
|

07-04-2009, 12:29 PM
|
|
|
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..
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| 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
HTML code is Off
|
|
|
|
|