[DRBD-user] FSCK on DRBD resource.

Rasto Levrinc rasto.levrinc at gmail.com
Thu Apr 12 19:42:40 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.


2012/4/12 Rafał Radecki <radecki.rafal at gmail.com>:
> Hi all.
>
> 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 beetwen two nodes, then run fsck on primary. Then when I
> will have problems on primary I will be able to use the secondary node with
> its /dev/drbd0 (no changes from fsck).
>
> I plan to:
> primary&secondary: drbdadm disconnect r0
> primary: umount /xxx
> primary: e2fsck -y /dev/drbd0
> after fsck:
> primary: drbdadm connect r0
> secondary: drbdadm -- --discard-my-data connect r0

You can omit --discard-my-data, the fsck repairs will be replicated to
the secondary. Also make sure that a resource manager doesn't come in
the way.


> primary: mount /xxx
>
> http://www.gossamer-threads.com/lists/drbd/users/14980

your case is a little bit simpler.

Rasto

-- 
Dipl.-Ing. Rastislav Levrinc
rasto.levrinc at gmail.com
Linux Cluster Management Console
http://lcmc.sf.net/



More information about the drbd-user mailing list