[DRBD-user] fence-peer helper broken, returned 20

Anoop anoop_mohan at geojit.com
Mon Feb 25 13:09:56 CET 2013

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


Hi,

from the script  outdate-peer.sh

  # exit codes of drbdmeata outdate:
           # 5  -> is inconsistent
           # 0  -> is outdated
          # 17 -> outdate failed because peer is primary.
          # Unfortunately 20 can have other reasons too....

Thanks
Anoop

On 2/22/2013 7:13 PM, Felix Frank wrote:
> Good. Have you looked at the script to find out what code 20 actually
> signifies?
>
> On 02/22/2013 02:34 PM, Anoop wrote:
>> Hi,
>> Its all configured.
>>
>> Thanks
>> Anoop
>>
>> On 2/22/2013 6:56 PM, Felix Frank wrote:
>>> Hi,
>>>
>>> I haven't dabbled in this functionality yet, but glancing over
>>> http://www.drbd.org/users-guide-8.3/s-heartbeat-dopd.html, it appears
>>> that you need to have dopd running, configured etc. Do you?
>>>
>>> HTH,
>>> Felix
>>>
>>> On 02/22/2013 02:17 PM, Anoop wrote:
>>>> Hi,
>>>>    Thanks for the reply. I have already tried with fence-peer option
>>>> also. It did'nt worked.  I am using drbd, mysql and heartbeat. While
>>>> continuously writing data to mysql, I tried removing network cable.
>>>> Automatic failover didn't worked, "fence-peer helper broken".  Any idea ?
>>>>
>>>> Thanks
>>>> Anoop
>
On 2/22/2013 6:29 PM, Thomas Hänig wrote:
> Hi,
> I am new here too, but while playing with a helper I saw nearly the same
> message:
>
> Feb 22 12:45:09 node1 kernel: [  822.982568] d-con drbd_test: helper
> command: /sbin/drbdadm fence-peer drbd_test exit code 0 (0x0)
> Feb 22 12:45:09 node1 kernel: [  822.982571] d-con drbd_test: fence-peer
> helper broken, returned 0
>
> This part simply means "return code 0 of the helper script is not
> expected/invalid". In your case this would be the value 20 (0x1400)
>
> for return codes see:
> http://www.drbd.org/users-guide/s-fence-peer.html
>
> I am not shure if fence-peer and oudate-peer are synonyms. My version's
> (8.4) man page says "... fence-peer (formerly oudate-peer) ...". Maybe
> simply changing the name within the handlers section will help.
>
>
> Thomas
>
> Am 22.02.2013 13:34, schrieb Anoop:
>> Can anyone help me please ..
>>
>>
>> On 2/19/2013 10:54 AM, Anoop wrote:
>>> Hi all,
>>>          I am new to drbd. I have the following error when try
>>> automatic failover with heartbeat.  dopd is not working fine. Please
>>> help.
>>>
>>> Feb 19 13:46:57 passive kernel: block drbd1: helper command:
>>> /sbin/drbdadm fence-peer minor-1 exit code 20 (0x1400)
>>> Feb 19 13:46:57 passive kernel: block drbd1: fence-peer helper broken,
>>> returned 20
>>> Feb 19 13:46:57 passive kernel: block drbd1: State change failed: Need
>>> access to UpToDate data
>>>
>>> Please find the drbd.conf file
>>>
>>> #
>>> global {
>>> usage-count no;
>>> }
>>> common {
>>> protocol C;
>>> handlers {
>>> outdate-peer "/usr/lib64/heartbeat/drbd-peer-outdater";
>>> }}
>>>
>>> resource r0 {
>>> on active.drbd.com {
>>> device /dev/drbd1;
>>> disk /dev/sda3;
>>> address 192.168.29.25:7789;
>>> meta-disk internal;
>>>
>>> }
>>> on passive.drbd.com {
>>> device /dev/drbd1;
>>> disk /dev/sda3;
>>> address 192.168.29.27:7789;
>>> meta-disk internal;
>>> }
>>> disk {
>>> fencing resource-only;
>>> }
>>> }
>>>
>>>
>>> Thanks and Regards
>>> Anoop Mohan
>>>

------------------------------------------------------------------------
The information contained in this electronic message and its attachments
  (the "message") is intended solely for the addressees and is confidential
  and privileged. If you are not the intended recipient, please notify the
  sender by reply e-mail and then destroy the message. Any dissemination,
  distribution, forwarding, copying, printing or disclosure, either whole
  or partial, is prohibited and may be unlawful.

WARNING: Computer viruses can be transmitted via email. The recipient
  should check this email and any attachments for the presence of viruses.
  The company accepts no liability for any damage caused by any virus
  transmitted by this email.

------------------------------------------------------------------------




More information about the drbd-user mailing list