Hi Everyone, I need to keep 2 systems identical. Mostly e-mail directories, web directories, mysql, etc. The goal here is to have a 2nd system ready to go it the first one starts to exhibit hardware issues. What are options to have this happen? I'm going out on a limb and thinking rsync but I haven't used it past just simple use cases. Can anyone provide some insight for me? CentOS 6.5. Jason
On 10/9/2014 10:39 AM, Jason T. Slack-Moehrle wrote:> I need to keep 2 systems identical. Mostly e-mail directories, web > directories, mysql, etc. The goal here is to have a 2nd system ready to go > it the first one starts to exhibit hardware issues. > > What are options to have this happen? I'm going out on a limb and thinking > rsync but I haven't used it past just simple use cases. > > Can anyone provide some insight for me?drbd is the live replication system, this does block level replication of logical volumes. rsync doesn't handle changing-on-the-fly stuff very well, especially stuff like a database file system which is undergoing constant random write activity. but note, the drbd slave copy can't be mounted until drbd is stopped, or all heck breaks loose. -- john r pierce 37N 122W somewhere on the middle of the left coast
On 2014-10-09, Jason T. Slack-Moehrle <slackmoehrle at gmail.com> wrote:> > I need to keep 2 systems identical. Mostly e-mail directories, web > directories, mysql, etc. The goal here is to have a 2nd system ready to go > it the first one starts to exhibit hardware issues. > > What are options to have this happen? I'm going out on a limb and thinking > rsync but I haven't used it past just simple use cases.You can try lsyncd. https://code.google.com/p/lsyncd/ It's basically a daemon monitoring inotify events and sending them to an rsync, so it can keep things up to date more easily. (I have never used it myself, so caveat emptor.) --keith -- kkeller at wombat.san-francisco.ca.us
On Thu, October 9, 2014 12:39 pm, Jason T. Slack-Moehrle wrote:> Hi Everyone, > > I need to keep 2 systems identical. Mostly e-mail directories, web > directories, mysql,With databases you can not make sync of their data directories (on a filesystem level) while the daemon is running and accessing them in general. You may think of mysql redundant server or replication... Take a look here: https://dev.mysql.com/doc/refman/5.0/en/replication.html Valeri> etc. The goal here is to have a 2nd system ready to go > it the first one starts to exhibit hardware issues. > > What are options to have this happen? I'm going out on a limb and thinking > rsync but I haven't used it past just simple use cases. > > Can anyone provide some insight for me? > > CentOS 6.5. > > Jason > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++