sap_suse_cl...r_connector(8)
πΈ sap_suse_cluster_connector(8) β SAP High Availability πΈ
π NAME π
okay bestie, this is sap_suse_cluster_connector β the connector that handles sapstartsrv cluster calls. no cap, that's the whole name-vibe β¨
π¦ SYNOPSIS π¦
sap_suse_cluster_connector command [options-and-parameters]
sap_vendor_cluster_connector command [options-and-parameters]
β¨ DESCRIPTION β¨
So sap_suse_cluster_connector β or, more generally, sap_vendor_cluster_connector β is literally the interface between the SAP HA cluster library and the cluster software. Right now it has to serve calls like queries about cluster status or requests for cluster resource actions. main character connector energy, honestly π
π COMMANDS π
helpor--helpβ print help text and usage.initβ check cluster installation and do some optional initialization.cpa --res RES --act ACTβ check for specified pending/active actions in the cluster.fra --res RES --act ACT [ --nod NODE ]β fire/initiate a cluster action likestart/stop/migratea resource.gvi [ --out FILE ]β get version information.hcc [ --out FILE ] --sid SID --ino INOβ high availability config check.lsn [ --out FILE ] --res RESβ list SAP nodes for the specified resource.lsr [ --out FILE ] --sid SID --ino INOβ list SAP resources matching the search criteria.smm [ --out FILE ] --sid SID --ino INO --mod NMODEβ set or get maintenance mode.
π PARAMETERS π
SIDβ SAP system identifier (3 alphanum)INOβ SAP instance number (2 digits)ACTβ Cluster action ("start"or"stop")FILEβ Output file for result parsingRESβ Cluster resource identifier (f.e.rsc_SAPInstance_EN2_ERS10)NODEβ Cluster node nameNMODEβ Maintenance mode ("0"or"1")
π OUTPUT FIELDS π
All parameter identifiers like SID might also be referenced in output formats (see the detailed command description). Additionally, there are some referenced output fields that are not used as parameters:
GRPβ Cluster Group IdentifierCLUSTER_NODESβ List ofNODE(separated with comma (,)) within the cluster that could run the resourceCURR_NODEβNODEwhich is currently running the resourcePRIO_NODESβ Priorized List ofNODE(separated with comma (,)) within the cluster that could run the resource
π₯ COMMANDS IN DETAIL π₯
π
init (initialize)
This is the lil' vibe check: perform some basic tests to see if the cluster software is installed and the cluster framework is started. Bestie, this is not intended to do a cluster validation. The command should only check whether the cluster commands used are available.
The check βcluster framework started?β might be ignored β maybe it does not fit for some cluster architectures. In that case, the check only needs to test the availability of the external and needed cluster commands.
Optionally, this command could also implement some initializations, if needed.
Parameters β None.
Return Codes
0: cluster software seems to be installed properly and cluster framework is started on local node.1: error during detection of cluster status2: script notified bad parameters3: cluster commands are not installed correctly (missing commands)4: cluster commands are installed correctly but cluster framework is not running (optional)
Output β None.
π cpa (check for pending actions)
This command should check properly against the running cluster whether a given action on a SAP Instance is already running.
Parameters β all parameters are mandatory.
--res RESβ Cluster resource to be queried--act ACT [ start | stop ]β Action type to be queried.
Return Codes
0: found pending action of queried type1: did not find pending action of queried type2: script notified bad parameters
Output β None.
π§ lsr (list sap resources)
This command is used to figure out the cluster resource and optionally group name for a specific SAP system and instance.
Parameters β all parameters are mandatory.
--out FILEβ Output file to be used.--sid SIDβ SAP system identifier to be queried.--ino INOβ SAP instance number to be queried.
Return Codes
0: success1: no success / internal error2: script notified bad parameters
Output β Formatted query answer to the given FILE.
- Multiple rows (data sets) allowed even if typically there should only be one resource matching the query.
- Each row / data set covers its values in a colon-separated (
':') list. - Format:
SID:INO:RES:GRP:CLUSTER_NODES
The format is used by multiple cluster vendors. In the SUSE implementation the fields GRP and CLUSTER_NODES are not needed. sap_suse_cluster_connector prints GRP and CLUSTER_NODES as empty fields.
π fra (fire resource action)
This command fires/initiates a cluster change like βstop resource XXβ or βstart resource XXβ. It is not intended to wait till the cluster has processed the resource change. The SAP instance is specified by the cluster resource name.
Parameters β only NODE is optional.
--res RESβ Cluster resource to be controlled.--act ACTβ Cluster action (start/stop/migrate) to be βfiredβ.[ --nod NODE ]β For migrations this defines the destination node.
Return Codes
0: success1: no success / internal error2: script notified bad parameters
Output β None.
πΈ lsn (list sap nodes)
This command should list the current node and a priorized list of possible cluster nodes for a specific SAP instance. In this case the SAP instance is queried by the cluster resource name.
Parameters
--out FILEβ Output file for results.--res RESβ Cluster resource to be queried.
Return Codes
0: success1: no success / internal error2: script notified bad parameters
Output β Formatted query answer to the given FILE.
- One single row (data set).
- Values are separated by a colon (
':'). - Format:
RES:GRP:CURR_NODE:PRIO_NODES
π¦ smm (set maintenance mode)
Set or get maintenance mode for a specific SAP instance.
Parameters
--out FILEβ Output file for results.--sid SIDβ SAP system identifier.--ino INOβ SAP instance number.--mod [ 1 | 0 | -1 ]0: set maintenance mode off1: set maintenance mode on-1: get maintenance mode
Return Codes
0: success1: no success / internal error2: script notified bad parameters
Output
0: maintenance mode is off1: maintenance mode is on2: maintenance mode is unclear
π EXIT STATUS π
See the detailed description of the command. In general:
0β successful command termination or βyesβ to a yes-no-query1β unsuccessful command termination or βnoβ to a yes-no-query2β error occurred during command termination β mostly bad parameters
π EXAMPLES π
sap_suse_cluster_connector initβ Do a minor check, if the cluster framework command line interface is available.sap_suse_cluster_connector lsr -out - -sid C11 -ino 02β Look for the SAP instance number02of the SAP systemC11and return the cluster resource name.
E.g. C11:02:rsc_sap_C11_D02:grp_sap_C11_Dialog2:ls3198,ls3199 .
sap_suse_cluster_connector fra -res rsc_sap_C11_D02 -act startβ Start the cluster resourcersc_sap_C11_D02. While thelsrcommand returned the resource namersc_sap_C11_D02, the matching SAP instance isC11, instance number02(see example before).sap_suse_cluster_connector cpa -res rsc_sap_C11_D02 -act startβ Check, if the cluster action to start the SAP instance for systemC11and instance number02is already in progress.sap_suse_cluster_connector lsn -out - -res rsc_sap_C11_D02β Look for the current cluster node and all possible cluster nodes to run the cluster resource namedrsc_sap_C11_D02.
E.g. rsc_sap_C11_D02:grp_sap_C11_Dialog2:ls3198:ls3198,ls3199 .
sapcontrol -nr 00 -function StartService EN2β Load thesapstartsrvforEN2instance00. Useful to activate the HA script connector library.sapcontrol -nr 00 -function HAGetFailoverConfigβ Show HA configuration info for SAP instance00. Useful to check if the HA script connector has been activated successfully.
SAP instance profile entry to use the HA script connector library:
service/halib = $(DIR_EXECUTABLE)/saphascriptco.so
service/halib_cluster_connector =
/usr/bin/sap_suse_cluster_connector
π FILES π
/usr/bin/sap_suse_cluster_connectorβ main connector executable/usr/share/sap_suse_cluster_connector/run_checksβ helper script/usr/sap/$SID/$INST/work/sap_suse_cluster_connector.logβ logfile of currently loaded cluster connector/tmp/sapha-tmp-$PIDβ temporary file from connector invocation, interface tosapstartsrv
π REQUIREMENTS π
- Perl
5.18runtime environment or compatible. - SAP instance numbers are unique on the Linux cluster nodes.
- Linux user
<sid>admis member of grouphaclient. Thus the SAP instance'ssapstartsrvhas sufficient permissions. sap_suse_cluster_connectorneeds SAP'ssaphascriptco.soinstalled, configured for the SAP instances, and loaded by the respectivesapstartsrvprocesses.sap_suse_cluster_connectorneeds theSAPInstanceRA with featureIS_ERS=true.- Cluster pending action logging enabled by setting
record-pending=true, log entries in defined format. - Sufficient space and read/write permissions in the Linux
/tmpfilesystem. - Reliable access to
/sapmnt/$SIDand/usr/sap/$SIDfilesystems is crucial. - The connector executable's and helper script's runtime almost completely depends on call-outs to
sapstartsrvand Linux cluster. The infrastructure needs to allow these call-outs to return in time. - No firewall rules must block any needed port.
- No SELinux rules must block any needed action.
π BUGS π
In case of any problem, please use your favourite SAP support process to open a request for the component BC-OP-LNX-SUSE.
π«Ά SEE ALSO π«Ά
ocf_heartbeat_SAPInstance(7)ocf_suse_SAPStartSrv(7)crm(8)crm_mon(8)stonith_sbd(7)sbd(8)stonith(8)ClusterTools2(7)ha_related_sap_notes(7)ha_related_suse_tids(7)supportconfig(8)firewalld(8)selinux(8)
π AUTHOR π
Fabian Herschel (fabian.herschel@suse.com), Distinguished SAP Architect & Technical Manager
π COPYRIGHT π
okay bestie, legal era β but make it cute π
(c) 2011-2016 SUSE Linux Products GmbH(c) 2016-2017 SUSE Linux GmbH(c) 2018-2025 SUSE LLC
And the big one, no cap: sap_suse_cluster_conenctor comes with ABSOLUTELY NO WARRANTY. Like, none. Zero. Zip. If it breaks, that's between you and the universe π
For the full deets, the whole thing lives in the GNU General Public License at http://www.gnu.org/licenses/gpl.html β go read it, it's giving required reading fr fr πβ¨
and that's the whole page, bestie!! π«Ά you made it to the very end, which is honestly iconic of you π
this was sap_suse_cluster_connector version 3.1, dated 24 Jul 2025, and yeah β the header up top calls it sap_suse_cl...r_connector(8) because manpage titles gotta stay short and mysterious π
now go be a main character with your cluster, mwah πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: sap-suse-cluster-connector 3.1.4-160000.1.1 Β· GPL-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms