[CentOS] FSCK on mounted filesystem (LVM/DRBD)?

Thu Apr 12 18:17:00 UTC 2012
Devin Reade <gdr at gno.org>

--On Thursday, April 12, 2012 03:17:37 PM +0200 Dennis Jacobfeuerborn
<dennisml at conversis.de> wrote:

> On 04/12/2012 09:50 AM, Rafał Radecki wrote:
>> 
>> I have two running servers (drbd primary, drbd secondary). When there is
>> a problem with one of them we switch to the second one. [...]
>> 
>> Is there a way to make fsck -a on mounted filesystem for ext3?
> 
> No. None of the popular Filesystems support online fsck.

However, if you're using pacemaker the RA (IIRC) has the option
of doing an 'fsck -p' before mounting. OTOH, since an fsck has
no predicatable run time limit, a long fsck might cause a 
'failed start' condition, causing a cascade from one node to 
another to another ...

(more details on this mechanism are probably more appropriate to the 
applicable HA lists)

Devin