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

Thu Apr 12 20:38:56 UTC 2012
Dennis Jacobfeuerborn <dennisml at conversis.de>

On 04/12/2012 08:17 PM, Devin Reade wrote:
> --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)

"doing an 'fsck -p' before mounting" still means you have to take the fs
offline though so this doesn't really change anything.

Regards,
  Dennis