[DRBD-user] ERROR: Return code 20 from /etc/ha.d/resource.d/drbddisk

Chip Burke cburke at innova-partners.com
Tue Jan 31 15:18:57 CET 2006

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


Seeing that you truncated the original thread, here is from your original
post:

haresources
debian2 192.168.254.165 drbddisk::drbd0 
Filesystem::/dev/drbd0::/mnt/debian::ext3 apache

Your resource is named r0, not drbd0!.

Change drbddisk::drbd0 to drbddisk:r0 and everything will be happy. The
argument after drbddisk:: is the name of the resource you defined in the
drbd.conf, NOT the actual device name. That is why it worked when you used
r0 below.



________________________________________
Chip Burke


-----Original Message-----
From: Thomas Johnson [mailto:tjohnson at pacwill.ca] 
Sent: Tuesday, January 31, 2006 8:52 AM
To: cburke at innova-partners.com
Subject: Re: [DRBD-user] ERROR: Return code 20 from
/etc/ha.d/resource.d/drbddisk

Interesting,

debian1:~# /etc/ha.d/resource.d/drbddisk /dev/drbd0 start
'/dev/drbd0' not defined in your config.
'/dev/drbd0' not defined in your config.
'/dev/drbd0' not defined in your config.
'/dev/drbd0' not defined in your config.
'/dev/drbd0' not defined in your config.
'/dev/drbd0' not defined in your config.
debian1:~# /etc/ha.d/resource.d/drbddisk r0 start
debian1:~# cat /proc/drbd
version: 0.7.10 (api:77/proto:74)
SVN Revision: 1743 build by phil at mescal, 2005-01-31 12:22:07
  0: cs:WFConnection st:Primary/Unknown ld:Consistent
     ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0

So the drdbdisk script worked when the argument was 'r0' but not when it
'drbd0' ?


debian1:~# drbdadm dump
resource r0 {
     protocol               C;
     incon-degr-cmd       "echo '!DRBD! pri on incon-degr' | wall ; sleep 60
; halt -f";
     on debian1 {
         device           /dev/drbd0;
         disk             /dev/hda6;
         address          192.168.254.169:7788;
         meta-disk        internal;
     }
     on debian2 {
         device           /dev/drbd0;
         disk             /dev/hdd10;
         address          192.168.254.168:7788;
         meta-disk        internal;
     }
     disk {
         on-io-error      detach;
     }
     syncer {
         rate             10M;
         group              1;
         al-extents       257;
     }
     startup {
         wfc-timeout       10;
         degr-wfc-timeout  10;
     }
}

Chip Burke wrote:
> What happens if you run the heartbeat DRBD resource script manually? I am
> wondering if it throws any errors that might help. Could you also post
your
> drbd.conf?
> 
> ________________________________________
> Chip Burke
> 
> 





More information about the drbd-user mailing list