On 12/03/2012 02:34 PM, Rodrigo Abrantes Antunes wrote:

> 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?

Drbd is raid-1 over the network, everything is synced. The filesystem is
mounted on one node only -- using haresources

primary.node.dom drbddisk::share_name \
Filesystem::/dev/drbd0::/mount/point::ext4::rw,noatime \
drbdlinks \
IP.AD.DR/CIDR \
httpd \
tomcat6 \
vsftpd \
mon

This will start drbd resource "share_name", mounts it on "/mount/pont",
then runs drbdlinks to create the symlinks, then brings up the ip
address and apache/tomcat/ftp services, and finally starts up mon that
does service monitoring. If the primary node fails, this will happen on
the secondary.

What happens on the primary and how you deal with it is another
question. Drbdlinks, specifically, comes with an init.d script that
checks its links at boot-up and restores files to the default state
(i.e. your primary will have a bunch of dangling symlinks after it fails
and until that script is run -- that does not happen during controlled
takeover).

So ideally you want to power off the failed node as part of the process,
but that takes extra hardware.

> I was thinking about rsync trought heartbeat's network interface to
> sincronize them too, without drbd, what do you think?

Drbd is easier and safer.

-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to