SUSE Support

Here When You Need Us

sbd resource fails to start if more than one device configured in /etc/sysconfig/sbd

This document (7022477) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise High Availability Extension 12 Service Pack 3

Situation

When a STONITH resource was configured using more than one SBD device the resource fails after starting. The following messages can be seen in /var/log/messages:
 
2017-12-18T13:48:47.023696+01:00 sles12cluster1 stonith: external_status: 'sbd status' failed with rc 1
2017-12-18T13:48:47.023914+01:00 sles12cluster1 stonith: external/sbd device not accessible.
2017-12-18T13:48:47.025249+01:00 sles12cluster1 stonith-ng[1626]:  warning: fence_legacy[20407] stderr: [ You can specify up to 3 devices via the -d option. ]
2017-12-18T13:48:47.025439+01:00 sles12cluster1 stonith-ng[1626]:  warning: fence_legacy[20407] stderr: [ sbd failed; please check the logs. ]
2017-12-18T13:48:47.025574+01:00 sles12cluster1 stonith-ng[1626]:  warning: fence_legacy[20407] stderr: [ /usr/lib64/stonith/plugins/external/sbd: line 48: [: : integer expression expected ]
2017-12-18T13:48:47.025709+01:00 sles12cluster1 stonith-ng[1626]:  warning: fence_legacy[20407] stderr: [ /usr/lib64/stonith/plugins/external/sbd: line 52: *12/10: syntax error: operand expected (error token is "*12/10") ]
2017-12-18T13:48:49.066845+01:00 sles12cluster1 stonith: external_status: 'sbd status' failed with rc 1
2017-12-18T13:48:49.067055+01:00 sles12cluster1 stonith: external/sbd device not accessible. 

Resolution

Cause

Parsing the list of SBD_DEVICE in /etc/sysconfig/sbd led to reading the variable twice. 

Additional Information

Note:  When configuring multiple SBD devices in the /etc/sysconfig/sbd configuration file,  the list of devices need to be separated by semi-colon and surrounded by quotes. 
Example:
SBD_DEVICE="/dev/disk/by-id/scsi-disk1; /dev/disk/by-id/scsi-disk2; /dev/disk/by-id/scsi-disk3"

 

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7022477
  • Creation Date: 19-Dec-2017
  • Modified Date:03-Sep-2020
    • SUSE Linux Enterprise High Availability Extension

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.