Use only one sbd_device instance attribute for SBD partitions
This document (7010925) is provided subject to the disclaimer at the end of this document.
Environment
Split Brain Detection (SBD) Partitions
Situation
# cibadmin -Q --snip-- <resources> <primitive class="stonith" id="stonith-sbd" type="external/sbd"> <instance_attributes id="stonith-sbd-instance_attributes"> <nvpair id="stonith-sbd-instance_attributes-sbd_device" name="sbd_device" value="/dev/sdb1"/> <nvpair id="stonith-sbd-instance_attributes-sbd_device-0" name="sbd_device" value="/dev/sdc1"/> <nvpair id="stonith-sbd-instance_attributes-sbd_device-1" name="sbd_device" value="/dev/sdc2"/> </instance_attributes> <meta_attributes id="stonith-sbd-meta_attributes"> <nvpair id="stonith-sbd-meta_attributes-target-role" name="target-role" value="Started"/> </meta_attributes> </primitive> </resources> --snip--
The /etc/sysconfig/sbd configuration file shows three SBD partitions.
# cat /etc/sysconfig/sbd SBD_DEVICE="/dev/sdb1;/dev/sdc1;/dev/sdc2" SBD_OPTS="-W"
Resolution
1. Remove the existing SBD resource, where --resource is the id specified in the primitive directive, as from the example above: <primitive class="stonith" id="stonith-sbd" type="external/sbd">
crm_resource --delete --resource stonith-sbd --resource-type primitive
2. Create a new SBD resource with the correct values found in the /etc/sysconfig/sbd configuration file (for this example: SBD_DEVICE="/dev/sdb1;/dev/sdc1;/dev/sdc2").
crm configure primitive stonith_sbd stonith:external/sbd params sbd_device="/dev/sdb1;/dev/sdc1;/dev/sdc2"
-OR-
crm configure primitive stonith_sbd stonith:external/sbd
The second example will cause the cluster to use the values in the /etc/sysconfig/sbd file. The resource should look like something like the following when done.
# cibadmin -Q --snip-- <primitive class="stonith" id="stonith_sbd" type="external/sbd"> <instance_attributes id="stonith_sbd-instance_attributes"> <nvpair id="stonith_sbd-instance_attributes-sbd_device" name="sbd_device" value="/dev/sdb1;/dev/sdc1;/dev/sdc2"/> </instance_attributes> </primitive> --snip--
Cause
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:7010925
- Creation Date: 12-Oct-2012
- Modified Date:07-Jun-2022
-
- SUSE Linux Enterprise High Availability Extension
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com