[DRBD-user] FSCK on DRBD resource.

Felix Frank ff at mpexnet.de
Fri Apr 13 09:24:01 CEST 2012

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


On 04/12/2012 08:09 PM, Matt Graham wrote:
> From: Rasto Levrinc <rasto.levrinc at gmail.com>
>> > 2012/4/12 Rafał Radecki <radecki.rafal at gmail.com>:
>>> >> I have a device /dev/drbd0 on which I have an ext3 filesystem. It
>>> >> needs fsck because there are problems on it. I want to stop drbd
>>> >> between the two nodes, then run fsck on primary. Then [if] I have
>>> >> problems [after fscking the] primary, I will be able to use the
>>> >> secondary node [even though fsck failed miserably].
> [snip]
>> > You can omit --discard-my-data, the fsck repairs will be replicated to
>> > the secondary.
> Except Rafal doesn't want to do that.  He wants to stop the secondary before
> fscking, in case e2fsck destroys the data on the primary.

Yes, but still - after it's all done, you will connect the secondary,
and you will not need to discard any data.

The data *must* be discarded from the damaged (fsck'd) node in case the
OP wants to revert to the state of the former secondary.



More information about the drbd-user mailing list