[Linux-HA] Antw: Re: automatic fsck in ocf:heartbeat:Filesystem
bernd.schubert at fastmail.fm
Mon Jan 9 01:44:10 MST 2012
On 01/09/2012 08:56 AM, Ulrich Windl wrote:
>> However, I'm not going to write a patch for the filesystem agent, as I'm
>> right now not working with pacemaker anyway and as I think the generic
>> filesystem agent is far too complex for a shell script anyway.
> ??? Check the filesystem, and if it's OK, mount it. Ist that so very much complicated?
Yes it is, as you don't know how much time fsck will take.
Unless you configured infinity timeouts... But even with infinity
timeouts it is not HA, if the mount process (including fsck ) takes ages.
Also, if an underlying hardware problem causes the filesystem corruption
you definitely do not want to fsck at all, but want to manually
investigate, if you just blindly fsck you might cause more damage than
there has been before (and yes, I had to deal with such issues a few
So all together, it is not as simply as you think and needs to be
configurable for the admin. As you then also need advanced fsck options
(at least for e2fsck) to know about corruption, patching the general
filesystem agent is not so easy any more.
More information about the Linux-HA