[DRBD-user] FSCK on DRBD resource.

Matt Graham danceswithcrows at usa.net
Thu Apr 12 20:09:06 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.


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.  (I've never had
e2fsck do that, but it could happen.)  Also:  Where are the backups?  DRBD is
nice, but like softRAID, it's not a substitute for actual backups.

> Also make sure that a resource manager doesn't [get] in the way.

Yes.  Before doing this, stop pacemaker/whatever on both nodes so it doesn't
do something stupid.

-- 
Matt G / Dances With Crows
The Crow202 Blog:  http://crow202.org/wordpress/
There is no Darkness in Eternity/But only Light too dim for us to see




More information about the drbd-user mailing list