[DRBD-user] drdb (8.0.12) disk couldn't be mount when only one server start

Lars Ellenberg lars.ellenberg at linbit.com
Wed Jul 30 14:43:25 CEST 2008

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


On Wed, Jul 30, 2008 at 07:44:44PM +0800, richard chou wrote:
> I have a two-server DRBD primary/secondary configuration, running
> Heartbeat. Heartbeat will management two resources: jetty(light-weight
> http/https server) and mysql.
> 
> If both servers start, jetty and mysql will work well in primary server.
> But if only one server starts, heartbeat will output error message as following:
> 
> *heartbeat: 2008/07/30_09:15:23 debug: Starting
> /etc/ha.d/resource.d/drbddisk r0 start
> /dev/drbd0: State change failed: (-2) Refusing to be Primary without
> at least one UpToDate disk
> Command '/sbin/drbdsetup /dev/drbd0 primary' terminated with exit code 17
> *
> I check the status of DRBD,
> #cat /proc/drbd
> *version: 8.0.12 (api:86/proto:86)
> 
>  0: cs:WFConnection st:Secondary/Unknown ds:Consistent/DUnknown C r---
>     ns:0 nr:0 dw:0 dr:0 al:0 bm:7 lo:0 pe:0 ua:0 ap:0
>         resync: used:0/61 hits:0 misses:0 starving:0 dirty:0 changed:0
>         act_log: used:0/257 hits:0 misses:0 starving:0 dirty:0 changed:0
> **
> **How can I start jetty and mysql if only one server starts?
> *
> Thanks for your help!

my guess is that you configured dopd,
but probably the dopd in your version of heartbeat is broken.

you can search this lists archive for dopd workaround (hot fix),
upgrade heartbeat to a version with a known working dopd (recommended),
(which distro?)
or disable dopd :(

-- 
: Lars Ellenberg                           http://www.linbit.com :
: DRBD/HA support and consulting             sales at linbit.com :
: LINBIT Information Technologies GmbH      Tel +43-1-8178292-0  :
: Vivenotgasse 48, A-1120 Vienna/Europe     Fax +43-1-8178292-82 :
__
please don't Cc me, but send to list -- I'm subscribed



More information about the drbd-user mailing list