Dear All,
I have the following setup which is the heart of our organistion and runs the following for a long time
Centos 5.0 server which is used as a
Primary Mailserver running sendmail about 400 users mailScanner Primary DNS server using bind Webserver running apache squirrel mail web server
i also do have a another centos secondary DNS server and same machine used as my secondary mail server with no mail users
Currently i have been following a little crude way of backup i shut down the Primary machine and I use clone Gozilla to make a duplicate of the original disk and keep it standby
i do it weekly basis which is really a crude way
i am jus googling arround for a solution in where i could have online mirroring of another machine
i could have an identical hardware machine which could be running online so if the first machine fails the second one is avaliable instantly
also if i create a new user or a new mail user ther user is replicated on both machine
if i upgraded or install any software on one machine it is replicated on the other automaticalu.. so we have total redundancy
can it be done
i was googling arround and actually found linux heartbeat but could not really get the hang of it. to my understanding heartbeat works on service which one would like to mirror but for me i would like disk mirroring on different servers
any body has done the above apprecite your advice and help
regards
fabian
Take a look at drbd and heatbeat for this.
Best regards, Gabriel Rosca
www.genxvoip.com
2009/8/1 fabian fabian@baladia.gov.kw
Dear All,
I have the following setup which is the heart of our organistion and runs the following for a long time
Centos 5.0 server which is used as a
Primary Mailserver running sendmail about 400 users mailScanner Primary DNS server using bind Webserver running apache squirrel mail web server
i also do have a another centos secondary DNS server and same machine used as my secondary mail server with no mail users
Currently i have been following a little crude way of backup i shut down the Primary machine and I use clone Gozilla to make a duplicate of the original disk and keep it standby
i do it weekly basis which is really a crude way
i am jus googling arround for a solution in where i could have online mirroring of another machine
i could have an identical hardware machine which could be running online so if the first machine fails the second one is avaliable instantly
also if i create a new user or a new mail user ther user is replicated on both machine
if i upgraded or install any software on one machine it is replicated on the other automaticalu.. so we have total redundancy
can it be done
i was googling arround and actually found linux heartbeat but could not really get the hang of it. to my understanding heartbeat works on service which one would like to mirror but for me i would like disk mirroring on different servers
any body has done the above apprecite your advice and help
regards
fabian
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
2009/8/1 fabian fabian@baladia.gov.kw:
Dear All,
I have the following setup which is the heart of our organistion and runs the following for a long time
Centos 5.0 server which is used as a
Primary Mailserver running sendmail about 400 users mailScanner Primary DNS server using bind Webserver running apache squirrel mail web server
[snip]
to my understanding heartbeat works on service which one would like to mirror but for me i would like disk mirroring on different servers
any body has done the above apprecite your advice and help
Setting up DRBD and a heartbeat for a service is not at all difficult. Take a look at HowtoForge for a simple example using Apache.
DRBD does mirror a block device on two servers. It takes two local filesystems and creates a virtual filesystem that you can then subdivide with LVM. Writes to the virtual filesystem is then mirrored to both.
The heartbeat service does a few things, but in a nutshell it can move a virtual IP address between two machines. Users will use the virtual address as the web server.
There are more complex ways if you want to load-balance the servers.
DNS is also pretty simple. You can either load the same zone files on both and then use one as a primary and one as a secondary. No heartbeart or anything special is required. There are better methods with replication that are slightly more involved to configure, but shouldn't take more than a few hours.
Squirrelmail is also not too bad to configure. If you have the home directories on DRBD it works transparently.
The mail setup is the only thing that I've not done.
Hi,
2009/8/1 fabian fabian@baladia.gov.kw:
Centos 5.0 server which is used as a
If it really is 5.0, I suggest you schedule a maintenance window to apply all the security updates, you should be running the latest release which is 5.3 and apply updates regularly. If you don't, your server might be vulnerable to known exploits.
i am jus googling arround for a solution in where i could have online mirroring of another machine
DRBD seems to be the way to go for you. Just make sure you do your tests in a separate environment, and do benchmarks to see if the I/O performance you get is enough for your needs, as DRBD may have some impact on that.
You should look into storing your mailboxes on the DRBD volume, most of the others (DNS, password database, etc.) have their own ways of replication, and the mail queue should be almost empty at most times, and if it's not empty it is usually acceptable to delay the e-mails on the queue until you can recover that box.
i could have an identical hardware machine which could be running online so if the first machine fails the second one is avaliable instantly
Heartbeat is what you want to use to test if the other node is alive and switch the services to the secondary once the primary dies.
I suggest you go with an active-passive setup, where the filesystem is not mounted and the services are stopped on the second node (backup node). Then you set up a heartbeat script to mount the filesystem, start the services, and switch the virtual IP to that machine when the other one dies.
also if i create a new user or a new mail user ther user is replicated on both machine
Are you talking about Unix users? I believe so... In that case, I suggest you set up an LDAP database (OpenLDAP should be enough for your needs) and set up LDAP replication. You can do that on the same nodes you are using for all the other services. Then configure NSS and PAM to have all your services use the user database and authenticate passwords to those LDAP servers. Set your first node as a master LDAP database (read-write), and your second node as a replica of that one (read-only). If your first node goes down, you will be unable to create new users or change passwords, but that is generally acceptable in a degraded situation.
if i upgraded or install any software on one machine it is replicated on the other automaticalu..
No, that will not be done with DRBD/Heartbeat, and I don't really think you'd want that, otherwise a bad upgrade or a bad command would kill both your master and your backup. The situation where both your machines are managed independently is much better in that sense, as long as you are organized to manage them.
HTH, Filipe