[DRBD-user] DRBD9 drbdadm complains about fencing being in wrong section

Igor Cicimov icicimov at gmail.com
Thu Feb 18 00:37:58 CET 2016

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, Feb 17, 2016 at 8:18 PM, Roland Kammerer <roland.kammerer at linbit.com
> wrote:

> On Wed, Feb 17, 2016 at 04:20:12PM +1100, Igor Cicimov wrote:
> > Hi,
> >
> > I'm testing 9.0.1.1 installed from git and have a resource with fencing
> in
> > the disk section:
> >
> >     disk {
> >         on-io-error detach;
> >         fencing resource-and-stonith;
> >     }
>
> It belongs to net{}, and yes, the man page is outdated, I will fix that.
>
> Additionally, drbdmanage is nice to generate cluster configs, it parses
> the output of drbdsetup, therefore it is always right, even if the man
> page is outdated ;-) Otherwise the following would not have completed at
> all:
>
> drbdmanage net-options --fencing resource-and-stonith --resource xyz
> drbdmanage list-options xyz
>
>
 Thanks Roland that worked. By the way I'm facing another issue when
starting the service:

# service drbd start
 * Starting DRBD
resources
[
     create res: vg1
   prepare disk: vg1
    adjust disk: vg1
    prepare net: vg1
adjust peer_devices: vg1
attempt to connect: vg1
]
...drbdadm: Unknown command 'sh-b-pri'

although drbdadm tells me that all is fine:

# drbdadm status
vg1 role:Primary
  disk:UpToDate
  drbd02 role:Primary
    peer-disk:UpToDate

Now this is a problem since I can't set drbd under pacemaker control:

Failed actions:
    p_drbd_vg1_start_0 (node=drbd01, call=9, rc=1, status=Timed Out,
last-rc-change=Thu Feb 18 10:07:43 2016
, queued=20004ms, exec=1ms
): unknown error
    p_drbd_vg1_start_0 (node=drbd02, call=9, rc=1, status=Timed Out,
last-rc-change=Thu Feb 18 10:07:43 2016
, queued=20005ms, exec=0ms
): unknown error

I've been running this kind of setups with 8.4.4 with no issues. Has
something changed around drbd management in version 9 or is it just
something wrong with the initd script?

Finally thanks for the drbdmanage pointer I'll do some research about it (I
think I saw some presentation of yours on the web). I don't see it
installed on my system (Ubuntu 14.04.4 LTS) so guess it is not packaged
with drbd-utils but is a separate toll. I have a question though, since I
have done the config already manually, is the drbdmanage going to take over
based on already existing configuration or I will need to reconfigure
everything all over again?

Thanks,
Igor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20160218/b9e49e00/attachment.htm>


More information about the drbd-user mailing list