Author Topic: Mirroring in an external server  (Read 225 times)

pitbr

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Mirroring in an external server
« on: July 06, 2012, 12:00:14 »
Hi All,

I want to have a mirror backup of a Zentyal server running on a backup server, so in case the server crash, I could just change the HD. Unfortunatlly I'm having problem by mirroring a Zentyal installation, mainly with the LDAP module.

Does anyone have tried that?


christian

  • Zen Hero
  • *****
  • Posts: 3666
  • Karma: +83/-14
    • View Profile
Re: Mirroring in an external server
« Reply #1 on: July 06, 2012, 09:49:44 »
With current version (meaning before 3.0) this is not easy because LDAP slave content doesn't reflect LDAP master. This may change with 3.0 but I didn't check yet. Furthermore, relying on master/slave will not provide 100% mirror (due to difference between master & slave status)

You have different way to achieve your goal but most likely not using "mirroring" at module level:
- Zentyal running as VM from file stored on highly available storage
- DRBD to mirror Zentyal disk(s). I really don't know what would be impact in term of performance especially if everything runs from one single disk. There is most likely some clever storage design so that you do not mirror logs and other files that are not mandatory for Zentyal to run "up to date".

pitbr

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Mirroring in an external server
« Reply #2 on: July 06, 2012, 10:20:34 »
Unfortunatelly I don't have a storeage.
I used a rsync to backup the home folders. But I would like to include configuration of the server as well. I know how to do it using the web interface, but I have no clue how to get it though batch script.

« Last Edit: July 06, 2012, 10:23:20 by pitbr »

christian

  • Zen Hero
  • *****
  • Posts: 3666
  • Karma: +83/-14
    • View Profile
Re: Mirroring in an external server
« Reply #3 on: July 06, 2012, 11:17:26 »
LDAP doesn't contain configuration but accounts, groups, mail alias...
If goal is to backup LDAP content, then the easiest way is to export everything to an LDIF file.
Restoring will never be faulty disk replacement but at least you can import again accounts and groups.

Why not relying on Zentyal backup which permit to backup Zentyal server using either FTP or rsync?