[DRBD-user] Fencing DRBD on Poweroff of Primary

Digimer lists at alteeve.ca
Sun Apr 9 22:48:43 CEST 2017

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


On 09/04/17 03:05 PM, Marco Certelli wrote:
> Hello,
> 
> very simple question for DRBD experts. I'm configuring Pacemaker (2
> nodes Active/Standby)+DRBD shared disk with the following config:
> 
> ...
> disk {
>         fencing resource-only;

This should be 'resource-and-stonith;'

>     }
>     handlers {
>         fence-peer "/usr/lib/drbd/crm-fence-peer.sh";
>         after-resync-target "/usr/lib/drbd/crm-unfence-peer.sh";
>     }
> ...
> 
> It happen that if I poweroff the Active server (the one with DRBD
> Primary mounted on), the backup cannot promote and mount the DRBD
> anymore. This is not what I would like to happen and this problem does
> not occur if I remove the above fencing configuration (fencing,
> fence-peer and after-resync-target commands).
> 
> My only objective is to prevent promoting of a disk that is under
> resynch. Is there a solution? I was thinking to the following configuration:
> 
> ...
> disk {
>         fencing resource-only;
>     }
>     handlers {
>         before-resync-target "/usr/lib/drbd/crm-fence-peer.sh";
>         after-resync-target "/usr/lib/drbd/crm-unfence-peer.sh";
>     }
> ...
> 
> Do you think it may work, without other negative effects?
> 
> Thanks, Marco.
> 
> 
> 
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user
> 


-- 
Digimer
Papers and Projects: https://alteeve.com/w/
"I am, somehow, less interested in the weight and convolutions of
Einstein’s brain than in the near certainty that people of equal talent
have lived and died in cotton fields and sweatshops." - Stephen Jay Gould



More information about the drbd-user mailing list