How to share directories between independent servers?

Discussion in 'Site & Server Administration' started by UCDaZ, Nov 5, 2010.

  1. #1
    I have two servers: Srv A and Srv B
    They're on separate networks and they have public ip addresses

    How can I allow Srv A have read, write, execute rights to Srv B?
    Where would I start?

    Thanks!
     
    UCDaZ, Nov 5, 2010 IP
  2. darvil

    darvil Active Member

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #2
    Need more info.

    But if I were to suggest something, I would do something like NFS share or samba or just a network share.
     
    darvil, Nov 5, 2010 IP
  3. lazcorp

    lazcorp Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It's ease if the servers are both linux. As darvil wrote the best way is to use NFS (Network File Sysmem). But if the network between the servers gone you will have big problem.
    May be it's better to synchronize the files between the servers (for example using rsync).
     
    lazcorp, Nov 6, 2010 IP
  4. UCDaZ

    UCDaZ Active Member

    Messages:
    180
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #4
    Well here's the scenario
    My web application allow users to upload images on Server A.
    I want to serve those images on Server B.
    What is the best way to allow Server A to write to Server B's image directory?

    Thanks!
     
    UCDaZ, Nov 6, 2010 IP
  5. darvil

    darvil Active Member

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #5
    you can use NFS. Just mount server B NFS share (for images) on server A in a directory where you are going to save the images.

    But are these 2 servers connected to each other? IE same datacenter? or at least on the same switch? Otherwise you're going to have delays as it needs to fetch the files from another server.
    I guess you can minimize by using caching software too.
     
    darvil, Nov 6, 2010 IP