Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
On Mon, Jun 29, 2015 at 05:14:10PM +0900, Hiroshi Fujishima wrote: > > I notice the following error message. > > > > Jun 26 13:41:01 sac-tkh-sv001 pacemaker_remoted[32149]: notice: operation_finished: res_drbd_r0_monitor_10000:25537:stderr [ This command will ignore resource names! ] > > > > This messages is generated by drbd_set_status_variables(). > > > > http://git.drbd.org/gitweb.cgi?p=drbd-utils.git;a=blob;f=scripts/drbd.ocf;h=0481a32a97a3b5fb814871e46d48024ea112abf4;hb=HEAD#l311 > > > > [root at sac-tkh-sv001 ~]# drbdadm -c /etc/drbd.conf sh-status r0 > /devnull > > This command will ignore resource names! > > > > I think "$DRBD_RESOURCE" argument is not required. Oh yes, it is. But the "fix", changing drbdsetup to drbdadm for "compatibility", actually broke more than it fixed :-( please change: diff --git a/scripts/drbd.ocf b/scripts/drbd.ocf index 0481a32..11e45d3 100644 --- a/scripts/drbd.ocf +++ b/scripts/drbd.ocf @@ -308,7 +308,11 @@ drbd_set_status_variables() { DRBD_DSTATE_LOCAL=() DRBD_DSTATE_REMOTE=() - eval "$($DRBDADM sh-status "$DRBD_RESOURCE")" + if $DRBD_HAS_MULTI_VOLUME ; then + eval "$($DRBDSETUP sh-status "$DRBD_RESOURCE")" + else + eval "$($DRBDSETUP "$DRBD_DEVICE" sh-status)" + fi # if there was no output at all, or a weird output # make sure the status arrays won't be empty. -- : Lars Ellenberg : http://www.LINBIT.com | Your Way to High Availability : DRBD, Linux-HA and Pacemaker support and consulting DRBD® and LINBIT® are registered trademarks of LINBIT, Austria. __ please don't Cc me, but send to list -- I'm subscribed