Citando Dimitri Maziuk <[email protected]>: > On 12/03/2012 12:03 PM, Rodrigo Abrantes Antunes wrote: >> Simple > setup: put it all on one filesystem and put that on DRBD. See >>> http://www.drbd.org/users-guide-8.3/s-heartbeat-r1.html[1] >>> >>> Also recommended: drbdlinks. >>> >>> HTH >>> -- >>> Dimitri Maziuk >>> Programmer/sysadminBioMagResBank, UW-Madison -- >>> http://www.bmrb.wisc.edu >> I was reading about DRDB but it seems that it's not what I want. >> With DRDB >> you need to create a separate partition and syncronize this >> between nodes, >> but what I need is to syncronize / with all files in the disks just like >> raid1, and these disks are already using lvm with ext3 filesystem. I need >> this because I don't want to care about configuring 2 servers, i >> just want >> all configs from one server to be replicated in the other (like vmware HA >> where you don't need to care about the backup vm), if I need to configure >> 2 servers I could just do a script copying files from one server to the > This is why I mentioned drbdlinks: at failover it can rename e.g. > /etc/httpd to /etc/httpd.drbdlinks and make a symlink /etc/httpd -> > /drbd/etc/httpd on the active node & back on the passive one. (You run > it after drbd but before apache, obviously.) > > Or make a vm and run that in ha container as digimer suggested. > > You obviously can't completely share / because each node has to have > enough of the kernel+init+everything else to boot up and start your ha > stack. You'll still need to configure physical nodes to run the vm on, > too. If you don't like it, pay amazon to do physical stuff for you. > > -- > Dimitri Maziuk > Programmer/sysadminBioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu
Ok, here is my scenario. I have a server with shorewall, squid, dhcp and some other minor services with lot of scripts and config files in /etc that are always changing. To make this highly available I need to install all of these services in another server and import all the config and script files and configure heartbeat nodes with resources for these services. If the primary node fails it starts these services in the other node but with outdated config files (almost useless in this case), so these files need to be synced. For this I can use drbdlinks, but I didn't understood well when to run it. If the primary node fails how it will rename the files? I was thinking about rsync trought heartbeat's network interface to sincronize them too, without drbd, what do you think? Thanks for your attention. _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
