Learn about Centmin Mod LEMP Stack today
Register Now

Best way to sync data on two dedicated servers

Discussion in 'System Administration' started by pamamolf, Jan 4, 2015.

  1. pamamolf

    pamamolf Well-Known Member

    2,720
    242
    63
    May 31, 2014
    Ratings:
    +433
    Local Time:
    10:53 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Hi

    I am looking for the best way to sync live if it is possible data between two dedicated servers as i don't want to run every minute the Rsync...

    Any ideas?

    Thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,144
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,132
    Local Time:
    5:53 PM
    Nginx 1.13.x
    MariaDB 5.5
    many ways but you're on your own in researching them

    they include
    I usually use one of the first 3 listed above - NFS is most commonly used.

    Just setup 5x server GlusterFS 3.6.1 storage over my 5x VaporNode 512MB KVM VPS :)

    Code:
    [root@g01 ~]# gluster pool list
    UUID                                    Hostname        State
    ed80c169-8ead-46f7-a514-9d45c262837b    g02            Connected
    d0bc3e0f-4957-4793-bd8c-8d8a9ad7159e    g03            Connected
    ce9d8af7-ba58-4f53-8f09-1d3fc92fd3ec    g04            Connected
    be652076-4cec-4c19-a5ef-9ce6e8ffa937    g05            Connected
    1dda8458-01bd-4e57-9d8f-31d491f0123e    localhost       Connected
    
    Code:
    [root@g01 ~]# gluster peer status                                                 
    Number of Peers: 4
    
    Hostname: g02
    Uuid: ed80c169-8ead-46f7-a514-9d45c262837b
    State: Peer in Cluster (Connected)
    
    Hostname: g03
    Uuid: d0bc3e0f-4957-4793-bd8c-8d8a9ad7159e
    State: Peer in Cluster (Connected)
    
    Hostname: g04
    Uuid: ce9d8af7-ba58-4f53-8f09-1d3fc92fd3ec
    State: Peer in Cluster (Connected)
    
    Hostname: g05
    Uuid: be652076-4cec-4c19-a5ef-9ce6e8ffa937
    State: Peer in Cluster (Connected)
     
    • Like Like x 1
  3. pamamolf

    pamamolf Well-Known Member

    2,720
    242
    63
    May 31, 2014
    Ratings:
    +433
    Local Time:
    10:53 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Is GlusterFS able to be used on Centminmod environment or not as i want to use it for the public folder only if it is possible ?
     
    Last edited: Jan 5, 2015
  4. eva2000

    eva2000 Administrator Staff Member

    30,144
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,132
    Local Time:
    5:53 PM
    Nginx 1.13.x
    MariaDB 5.5
    GlusterFS can be used in any environment as you configure where and how to configure it. My 5x VaporNode 512MB KVM VPS is using Centmin Mod LEMP stack with .08 beta build
     
  5. pamamolf

    pamamolf Well-Known Member

    2,720
    242
    63
    May 31, 2014
    Ratings:
    +433
    Local Time:
    10:53 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Ok one last question :)

    Can i configure it to sync only the public folder or i must set it to sync a partition on the disk?
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,144
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,132
    Local Time:
    5:53 PM
    Nginx 1.13.x
    MariaDB 5.5
    you can configure it to sync any specific folder or directory you want :) Ideally the directory or folder should be mounted to a separate disk/partition but doesn't have to be.
     
    • Like Like x 1
  7. pamamolf

    pamamolf Well-Known Member

    2,720
    242
    63
    May 31, 2014
    Ratings:
    +433
    Local Time:
    10:53 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Ok great i will try to find out how to so it per directory now without formatting and creating partitions for it :)

    That's great !!!!