[Linux-HA] when Filesystem script fails because fs is mounted,
heartbeat still starts
Michael Will
mwill at penguincomputing.com
Tue Jun 1 17:19:36 MDT 2004
two servers with one shared storage /dev/sda1 mounted at /home:
haresource looks like this:
primary 10.1.1.10 httpd Filesystem::/dev/sda1::/home::xfs mysqld applicationd mon
A user error unexpectedly damaged the filesystem:
/home was mounted by hand, resource.d/Filesystem fails, and heartbeat complains
about it but still starts. At failover time, it does not unmount the filesystem,
probably because it had failed at start-time, and the secondary mounts the
already mounted filesystem - just like in a split brain situation that we
carefully avoided by having a serial and an ethernet heartbeat.
Is there a way to tell heartbeat to not startup if one of the services fails,
or do I need to hack resource.d/Filesystem to prevent this error by having it go
through the stop-code before the start-code if it finds the filesystem to be
already mounted?
Michael
More information about the Linux-HA
mailing list