[DRBD-user] Getting close

Brian R. Hellman brian at linbit.com
Tue Nov 18 18:47:27 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.


Hi David,

It looks like you need to use drbddisk, so a line like this.

mail.eng.uiowa.edu
drbddisk::resource_name::Filesystem::/dev/drbd0::/replicated::ext3



: Brian Hellman
: brian at linbit.com
: LINBIT | Your Way to High Availability
:
: http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.

David Hoskinson wrote:
> 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
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user



More information about the drbd-user mailing list