[DRBD-user] Getting close

David Hoskinson dhoskinson at eng.uiowa.edu
Tue Nov 18 17:31:46 CET 2008

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


I have tweaked my configurations a bit and have been able to get the primary
machine to automatically mount my replicated partition and it sees and syncs
with the secondary server.

As part of testing I am shutting down heartbeat on the primary node and
watching the logs on secondary.  It seems to be trying to hand resources off
from primary as replicated drive gets unmounted from primary machine however
it won¹t mount the replicated drive on the secondary machine and I get the
message that drbd0 is write protected, wrong medium type and generic error.


Nov 18 04:40:42 mail2 Filesystem[6010]: INFO:  Resource is stopped
Nov 18 04:40:42 mail2 ResourceManager[5983]: info: Running
/etc/ha.d/resource.d/Filesystem /dev/drbd0 /replicated ext3 start
Nov 18 04:40:42 mail2 Filesystem[6091]: INFO: Running start for /dev/drbd0
on /replicated
Nov 18 04:40:42 mail2 Filesystem[6091]: ERROR: Couldn't mount filesystem
/dev/drbd0 on /replicated
Nov 18 04:40:42 mail2 Filesystem[6080]: ERROR:  Generic error
Nov 18 04:40:42 mail2 ResourceManager[5983]: ERROR: Return code 1 from
/etc/ha.d/resource.d/Filesystem
Nov 18 04:40:42 mail2 ResourceManager[5983]: CRIT: Giving up resources due
to failure of Filesystem::/dev/drbd0::/replicated::ext3
Nov 18 04:40:42 mail2 ResourceManager[5983]: info: Releasing resource group:
mail.eng.uiowa.edu Filesystem::/dev/drbd0::/replicated::ext3
Nov 18 04:40:42 mail2 ResourceManager[5983]: info: Running
/etc/ha.d/resource.d/Filesystem /dev/drbd0 /replicated ext3 stop
Nov 18 04:40:42 mail2 Filesystem[6199]: INFO: Running stop for /dev/drbd0 on
/replicated
Nov 18 04:40:42 mail2 Filesystem[6188]: INFO:  Success

When I run /etc/ha.d/resources.d/Filesystem /dev/drbd0 /replicated ext3
start  I receive the following error message:

root at mail2 ~]# mount /dev/drbd0 /replicated
mount: block device /dev/drbd0 is write-protected, mounting read-only
mount: Wrong medium type
[root at mail2 ~]# 

Seems to me I get this going and I am in the clear but am not quite sure
what the problem on secondary machine.

Here is the line in my haresources file

mail.eng.uiowa.edu Filesystem::/dev/drbd0::/replicated::ext3  #
mail2.eng.uiowa.edu is the secondary machine

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20081118/e87bd86d/attachment.htm>


More information about the drbd-user mailing list