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

richard chou zxb1345 at gmail.com
Thu Jul 31 09:35:56 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.


Thanks, Lars

But heartbeat did not configure dopd.


Here is drbd.conf

*resource r0 {

  protocol C;

  handlers
  {
    pri-on-incon-degr "echo '!DRBD! pri on incon-degr' | wall ; sleep 60 ;
halt -f";
  }

  startup {
    wfc-timeout  120;

    degr-wfc-timeout 120;    # 2 minutes.
  }

  disk {
    on-io-error   detach;

    fencing resource-only;
    no-disk-flushes;
    no-md-flushes;
  }

  net {
    after-sb-0pri discard-older-primary;
    after-sb-1pri call-pri-lost-after-sb;
    after-sb-2pri call-pri-lost-after-sb;
  }

  syncer {
    rate 10M;

    al-extents 257;
  }

  on register1 {
    device     /dev/drbd0;
    disk       /dev/md1;
    address    192.168.3.196:7788;
    meta-disk  internal;
  }

  on register3 {
    device    /dev/drbd0;
    disk      /dev/md1;
    address   192.168.3.195:7788;
    meta-disk internal;
  }
}*


ha.cf:
*debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility     local0
keepalive 2
deadtime 30
warntime 10
initdead 120
serial /dev/ttyS0
#udpport 694
#bcast   eth1  #local heartbeat eth
auto_failback on
node    register1  ## make sure both names are accessible - check /etc/hosts
node    register3
#ping 192.168.100.1  ## peer node ipaddress
apiauth ipfail gid=haclient uid=hacluster*


haresources:
*register1  LVSSyncDaemonSwap::master
IPaddr::192.168.3.197/24/eth0drbddisk::r0
Filesystem::/dev/drbd0::/mydisk/opt/data::ext3 mysql jettyd
*


ha-debug:

*heartbeat: 2008/07/30_11:59:38 debug: StartNextRemoteRscReq(): child count
2
heartbeat: 2008/07/30_11:59:38 debug: StartNextRemoteRscReq(): child count 1
heartbeat: 2008/07/30_11:59:38 debug: notify_world: setting SIGCHLD Handler
to SIG_DFL
heartbeat: 2008/07/30_11:59:39 debug: Starting
/etc/ha.d/resource.d/LVSSyncDaemonSwap master start
heartbeat: 2008/07/30_11:59:39 debug: /etc/ha.d/resource.d/LVSSyncDaemonSwap
master start done. RC=0
heartbeat: 2008/07/30_11:59:39 debug: Starting /etc/ha.d/resource.d/IPaddr
192.168.3.197/24/eth0 start
ls: cannot access /var/lib/heartbeat/rsctmp/IPaddr/eth0:*: No such file or
directory
heartbeat: 2008/07/30_11:59:39 debug: /etc/ha.d/resource.d/IPaddr
192.168.3.197/24/eth0 start done. RC=0
heartbeat: 2008/07/30_11:59:39 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
*


On Wed, Jul 30, 2008 at 7:44 PM, richard chou <zxb1345 at gmail.com> 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!
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20080731/7be2af91/attachment.htm>


More information about the drbd-user mailing list