SUSE Support

Here When You Need Us

HA - Pacemaker - Creating a cluster resource with a systemd service

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

Environment

SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server 15 SP3
SUSE Linux Enterprise Server 15 SP2


Situation

A given service needs to be configured as a part of cluster resource, for example CUPS.

Resolution

If there is not any specific Resource Agent for the service, like CUPS, for instance, then it is possible to configure it by clustering the systemd service. With the systemd unit file already loaded by systemd, the below command can be used to configure the resource:
 
crm configure primitive my-resource-name systemd:service.name

Replace the service.name by the systemd service to be clustered. This needs to be available on both nodes.  Remember to disable the service on boot on all the nodes since the cluster is responsible to control it.
 
systemctl disable service.name ; systemctl start service.name

Additional Information

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:000020739
  • Creation Date: 31-Aug-2022
  • Modified Date:14-Sep-2022
    • SUSE Linux Enterprise High Availability Extension
    • SUSE Linux Enterprise Server
    • SUSE Linux Enterprise Server for SAP Applications

< 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.