Unfortunately does not seem to solve completely. After some tests I realized that.
When I turn off the primary server the secondary take control and mounts the /dev/drbd0 and everything seems fine, but about 10 seconds later I get this:
/var/log/ha-log:
ResourceManager[4421]: 2008/01/04_15:18:33 info: Running /etc/ha.d/resource.d/filesystem /dev/drbd0 /replicado start
ResourceManager[4421]: 2008/01/04_15:18:33 ERROR: Return code 32 from /etc/ha.d/resource.d/filesystem
ResourceManager[4421]: 2008/01/04_15:18:33 CRIT: Giving up resources due to failure of filesystem::/dev/drbd0::/replicado
And then heartbeat goes down stopping all services/filesystems, and then I got no working server.
I guess it is a problem with the filesystem script that Vitor posted (sorry, I know I am not supposed to rely on this one).
Any ideas of how to get an Filesystem script that works?
Unfortunately does not seem to solve completely. After some tests I realized that.
When I turn off the primary server the secondary take control and mounts the /dev/drbd0 and everything seems fine, but about 10 seconds later I get this:
/var/log/ha-log: [4421]: 2008/01/04_15:18:33 info: Running /etc/ha. d/resource. d/filesystem /dev/drbd0 /replicado start [4421]: 2008/01/04_15:18:33 ERROR: Return code 32 from /etc/ha. d/resource. d/filesystem [4421]: 2008/01/04_15:18:33 CRIT: Giving up resources due to failure of filesystem: :/dev/drbd0: :/replicado
ResourceManager
ResourceManager
ResourceManager
And then heartbeat goes down stopping all services/ filesystems, and then I got no working server.
I guess it is a problem with the filesystem script that Vitor posted (sorry, I know I am not supposed to rely on this one).
Any ideas of how to get an Filesystem script that works?