Skip to content

Commit ef06363

Browse files
authored
Merge pull request #725 from marcelmamula/simple-mount
sap_ha_pacemaker_cluster: ASCS ERS Simple Mount
2 parents 54aa486 + 2ab9439 commit ef06363

13 files changed

+687
-69
lines changed

roles/sap_ha_pacemaker_cluster/README.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,20 @@ Inherits the value of `ha_cluster_hacluster_password`, when defined.<br>
322322
Parameter for the 'SAPHana' cluster resource.<br>
323323
Define if a former primary should be re-registered automatically as secondary.<br>
324324

325+
### sap_ha_pacemaker_cluster_hana_colocation_hana_vip_primary_name
326+
327+
- _Type:_ `string`
328+
- _Default:_ `col_saphana_vip_<SID>_HDB<Instance Number>_primary`
329+
330+
Customize the cluster constraint name for VIP and SAPHana primary clone colocation.<br>
331+
332+
### sap_ha_pacemaker_cluster_hana_colocation_hana_vip_secondary_name
333+
334+
- _Type:_ `string`
335+
- _Default:_ `col_saphana_vip_<SID>_HDB<Instance Number>_readonly`
336+
337+
Customize the cluster constraint name for VIP and SAPHana secondary clone colocation.<br>
338+
325339
### sap_ha_pacemaker_cluster_hana_duplicate_primary_timeout
326340

327341
- _Type:_ `int`
@@ -410,6 +424,27 @@ The instance number of the SAP HANA database which this role will configure in t
410424
Inherits the value of `sap_hana_instance_number`, when defined.<br>
411425
Mandatory for SAP HANA cluster setups.<br>
412426

427+
### sap_ha_pacemaker_cluster_hana_order_hana_vip_primary_name
428+
429+
- _Type:_ `string`
430+
- _Default:_ `ord_saphana_vip_<SID>_HDB<Instance Number>_primary`
431+
432+
Customize the cluster constraint name for VIP and SAPHana primary clone order.<br>
433+
434+
### sap_ha_pacemaker_cluster_hana_order_hana_vip_secondary_name
435+
436+
- _Type:_ `string`
437+
- _Default:_ `ord_saphana_vip_<SID>_HDB<Instance Number>_readonly`
438+
439+
Customize the cluster constraint name for VIP and SAPHana secondary clone order.<br>
440+
441+
### sap_ha_pacemaker_cluster_hana_order_topology_hana_name
442+
443+
- _Type:_ `string`
444+
- _Default:_ `ord_saphana_saphanatop_<SID>_HDB<Instance Number>`
445+
446+
Customize the cluster constraint name for SAPHana and Topology order.<br>
447+
413448
### sap_ha_pacemaker_cluster_hana_prefer_site_takeover
414449

415450
- _Type:_ `bool`
@@ -551,6 +586,14 @@ Mandatory for NetWeaver AAS cluster configuration.<br>
551586
The standard NetWeaver ASCS/ERS cluster will be set up as ENSA2.<br>
552587
Set this parameter to 'true' to configure it as ENSA1.<br>
553588

589+
### sap_ha_pacemaker_cluster_nwas_abap_ascs_ers_simple_mount
590+
591+
- _Type:_ `bool`
592+
- _Default:_ `True`
593+
594+
Enables preferred method for ASCS ERS ENSA2 clusters - Simple Mount<br>
595+
Set this parameter to 'true' to configure ENSA2 Simple Mount.<br>
596+
554597
### sap_ha_pacemaker_cluster_nwas_abap_ascs_filesystem_resource_name
555598

556599
- _Type:_ `string`
@@ -601,6 +644,7 @@ Only used for ENSA1 setups (see `sap_ha_pacemaker_cluster_nwas_abap_ascs_ers_ens
601644

602645
The name of the ASCS instance, typically the profile name.<br>
603646
Mandatory for the NetWeaver ASCS/ERS cluster setup<br>
647+
Recommended format <SID>_ASCS<ASCS-instance-number>_<ASCS-hostname>.<br>
604648

605649
### sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_resource_name
606650

@@ -623,6 +667,13 @@ NetWeaver ASCS instance resource stickiness attribute.<br>
623667
The full path and name of the ASCS instance profile.<br>
624668
Mandatory for the NetWeaver ASCS/ERS cluster setup.<br>
625669

670+
### sap_ha_pacemaker_cluster_nwas_abap_ascs_sapstartsrv_resource_name
671+
672+
- _Type:_ `string`
673+
- _Default:_ `rsc_SAPStartSrv_<SID>_ASCS<ASCS-instance-number>`
674+
675+
Name of the ASCS SAPStartSrv resource for simple mount.<br>
676+
626677
### sap_ha_pacemaker_cluster_nwas_abap_ers_filesystem_resource_name
627678

628679
- _Type:_ `string`
@@ -650,6 +701,7 @@ NetWeaver ERS instance resource option "AUTOMATIC_RECOVER".<br>
650701

651702
The name of the ERS instance, typically the profile name.<br>
652703
Mandatory for the NetWeaver ASCS/ERS cluster setup.<br>
704+
Recommended format <SID>_ERS<ERS-instance-number>_<ERS-hostname>.<br>
653705

654706
### sap_ha_pacemaker_cluster_nwas_abap_ers_sapinstance_resource_name
655707

@@ -665,6 +717,13 @@ Name of the ERS instance resource.<br>
665717
The full path and name of the ERS instance profile.<br>
666718
Mandatory for the NetWeaver ASCS/ERS cluster.<br>
667719

720+
### sap_ha_pacemaker_cluster_nwas_abap_ers_sapstartsrv_resource_name
721+
722+
- _Type:_ `string`
723+
- _Default:_ `rsc_SAPStartSrv_<SID>_ERS<ERS-instance-number>`
724+
725+
Name of the ERS SAPstartSrv resource for simple mount.<br>
726+
668727
### sap_ha_pacemaker_cluster_nwas_abap_pas_instance_nr
669728

670729
- _Type:_ `string`
@@ -681,6 +740,20 @@ Mandatory for NetWeaver cluster configuration.<br>
681740
Uses `sap_swpm_sid` if defined.<br>
682741
Mandatory for NetWeaver cluster setups.<br>
683742

743+
### sap_ha_pacemaker_cluster_nwas_colocation_ascs_no_ers_name
744+
745+
- _Type:_ `string`
746+
- _Default:_ `col_ascs_separate_<SID>`
747+
748+
Customize the cluster constraint name for ASCS and ERS separation colocation.<br>
749+
750+
### sap_ha_pacemaker_cluster_nwas_order_ascs_first_name
751+
752+
- _Type:_ `string`
753+
- _Default:_ `ord_ascs_first_<SID>`
754+
755+
Customize the cluster constraint name for ASCS starting before ERS order.<br>
756+
684757
### sap_ha_pacemaker_cluster_nwas_sapmnt_filesystem_resource_clone_name
685758

686759
- _Type:_ `string`

roles/sap_ha_pacemaker_cluster/defaults/main.yml

Lines changed: 37 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,20 @@ sap_ha_pacemaker_cluster_hana_filesystem_resource_name: >-
135135
sap_ha_pacemaker_cluster_hana_filesystem_resource_clone_name: >-
136136
cln_SAPHanaFil_{{ sap_ha_pacemaker_cluster_hana_sid }}_HDB{{ sap_ha_pacemaker_cluster_hana_instance_nr }}
137137
138+
# SAP HANA - Constraint names
139+
sap_ha_pacemaker_cluster_hana_order_topology_hana_name: >-
140+
ord_saphana_saphanatop_{{ sap_ha_pacemaker_cluster_hana_sid }}_HDB{{ sap_ha_pacemaker_cluster_hana_instance_nr }}
141+
142+
sap_ha_pacemaker_cluster_hana_colocation_hana_vip_primary_name: >-
143+
col_saphana_vip_{{ sap_ha_pacemaker_cluster_hana_sid }}_HDB{{ sap_ha_pacemaker_cluster_hana_instance_nr }}_primary
144+
sap_ha_pacemaker_cluster_hana_colocation_hana_vip_secondary_name: >-
145+
col_saphana_vip_{{ sap_ha_pacemaker_cluster_hana_sid }}_HDB{{ sap_ha_pacemaker_cluster_hana_instance_nr }}_readonly
146+
147+
sap_ha_pacemaker_cluster_hana_order_hana_vip_primary_name: >-
148+
ord_saphana_vip_{{ sap_ha_pacemaker_cluster_hana_sid }}_HDB{{ sap_ha_pacemaker_cluster_hana_instance_nr }}_primary
149+
sap_ha_pacemaker_cluster_hana_order_hana_vip_secondary_name: >-
150+
ord_saphana_vip_{{ sap_ha_pacemaker_cluster_hana_sid }}_HDB{{ sap_ha_pacemaker_cluster_hana_instance_nr }}_readonly
151+
138152
# Multiple VIP parameters can be defined and will be combined.
139153
# See tasks/include_construct_vip_resources.yml
140154
#
@@ -172,6 +186,9 @@ sap_ha_pacemaker_cluster_hana_global_ini_path: "/usr/sap/{{
172186
# set this parameter to 'true'.
173187
sap_ha_pacemaker_cluster_nwas_abap_ascs_ers_ensa1: false
174188

189+
# Enable ENSA2 simple mount configuration
190+
sap_ha_pacemaker_cluster_nwas_abap_ascs_ers_simple_mount: true
191+
175192
# Enable/Disable sap_cluster_connector.
176193
# Ref.: https://access.redhat.com/solutions/3606101
177194
sap_ha_pacemaker_cluster_enable_cluster_connector: true
@@ -239,12 +256,6 @@ sap_ha_pacemaker_cluster_nwas_sys_filesystem_resource_clone_name: >-
239256
# Set this parameter to "true" to configure the 3 shared filesystems as part of the cluster.
240257
sap_ha_pacemaker_cluster_nwas_shared_filesystems_cluster_managed: false
241258

242-
# SAP NetWeaver resource group names as convenience parameters
243-
sap_ha_pacemaker_cluster_vip_nwas_abap_ascs_resource_group_name: >-
244-
grp_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_ASCS{{ sap_ha_pacemaker_cluster_nwas_abap_ascs_instance_nr }}
245-
sap_ha_pacemaker_cluster_vip_nwas_abap_ers_resource_group_name: >-
246-
grp_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_ERS{{ sap_ha_pacemaker_cluster_nwas_abap_ers_instance_nr }}
247-
248259
################################################################################
249260
# ASCS resource defaults
250261
################################################################################
@@ -262,7 +273,18 @@ sap_ha_pacemaker_cluster_nwas_abap_ascs_filesystem_resource_name: >-
262273
rsc_fs_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_ASCS{{ sap_ha_pacemaker_cluster_nwas_abap_ascs_instance_nr }}
263274
sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_resource_name: >-
264275
rsc_SAPInstance_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_ASCS{{ sap_ha_pacemaker_cluster_nwas_abap_ascs_instance_nr }}
265-
# sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_resource_clone_name: "{{ sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_resource_name }}-clone"
276+
sap_ha_pacemaker_cluster_nwas_abap_ascs_sapstartsrv_resource_name: >-
277+
rsc_SAPStartSrv_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_ASCS{{ sap_ha_pacemaker_cluster_nwas_abap_ascs_instance_nr }}
278+
279+
sap_ha_pacemaker_cluster_vip_nwas_abap_ascs_resource_group_name: >-
280+
grp_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_ASCS{{ sap_ha_pacemaker_cluster_nwas_abap_ascs_instance_nr }}
281+
282+
sap_ha_pacemaker_cluster_nwas_colocation_ascs_no_ers_name: >-
283+
col_ascs_separate_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}
284+
285+
sap_ha_pacemaker_cluster_nwas_order_ascs_first_name: >-
286+
ord_ascs_first_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}
287+
266288
sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_automatic_recover_bool: false
267289
sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_resource_stickiness: 5000
268290
sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_ensa1_migration_threshold: 1
@@ -281,13 +303,18 @@ sap_ha_pacemaker_cluster_nwas_abap_ers_sapinstance_instance_name: ''
281303
# Full path with instance profile name - mandatory to be user-defined
282304
sap_ha_pacemaker_cluster_nwas_abap_ers_sapinstance_start_profile_string: ''
283305

306+
# SAP NetWeaver ABAP ERS - Resource IDs (names) as convenience parameters.
284307
sap_ha_pacemaker_cluster_nwas_abap_ers_filesystem_resource_name: >-
285-
rsc_fs_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_ERS{{ sap_ha_pacemaker_cluster_nwas_abap_ascs_instance_nr }}
308+
rsc_fs_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_ERS{{ sap_ha_pacemaker_cluster_nwas_abap_ers_instance_nr }}
286309
sap_ha_pacemaker_cluster_nwas_abap_ers_sapinstance_resource_name: >-
287-
rsc_SAPInstance_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_ERS{{ sap_ha_pacemaker_cluster_nwas_abap_ascs_instance_nr }}
288-
# sap_ha_pacemaker_cluster_nwas_abap_ers_sapinstance_resource_clone_name: "{{ sap_ha_pacemaker_cluster_nwas_abap_ers_sapinstance_resource_name }}-clone"
310+
rsc_SAPInstance_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_ERS{{ sap_ha_pacemaker_cluster_nwas_abap_ers_instance_nr }}
311+
sap_ha_pacemaker_cluster_nwas_abap_ers_sapstartsrv_resource_name: >-
312+
rsc_SAPStartSrv_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_ERS{{ sap_ha_pacemaker_cluster_nwas_abap_ers_instance_nr }}
289313
sap_ha_pacemaker_cluster_nwas_abap_ers_sapinstance_automatic_recover_bool: false
290314

315+
sap_ha_pacemaker_cluster_vip_nwas_abap_ers_resource_group_name: >-
316+
grp_{{ sap_ha_pacemaker_cluster_nwas_abap_sid }}_ERS{{ sap_ha_pacemaker_cluster_nwas_abap_ers_instance_nr }}
317+
291318
292319
################################################################################
293320
# PAS/AAS resource defaults

roles/sap_ha_pacemaker_cluster/meta/argument_specs.yml

Lines changed: 63 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,11 @@ argument_specs:
352352
description:
353353
- Customize the cluster resource name of the SAP HANA Filesystem clone.
354354

355+
sap_ha_pacemaker_cluster_hana_order_topology_hana_name:
356+
default: "ord_saphana_saphanatop_<SID>_HDB<Instance Number>"
357+
description:
358+
- Customize the cluster constraint name for SAPHana and Topology order.
359+
355360
sap_ha_pacemaker_cluster_vip_hana_primary_ip_address:
356361
description:
357362
- The virtual IP of the primary HANA instance.
@@ -373,6 +378,26 @@ argument_specs:
373378
- Customize the name of the resource managing the Virtual IP of read-only access to the
374379
secondary HANA instance.
375380

381+
sap_ha_pacemaker_cluster_hana_order_hana_vip_primary_name:
382+
default: "ord_saphana_vip_<SID>_HDB<Instance Number>_primary"
383+
description:
384+
- Customize the cluster constraint name for VIP and SAPHana primary clone order.
385+
386+
sap_ha_pacemaker_cluster_hana_order_hana_vip_secondary_name:
387+
default: "ord_saphana_vip_<SID>_HDB<Instance Number>_readonly"
388+
description:
389+
- Customize the cluster constraint name for VIP and SAPHana secondary clone order.
390+
391+
sap_ha_pacemaker_cluster_hana_colocation_hana_vip_primary_name:
392+
default: "col_saphana_vip_<SID>_HDB<Instance Number>_primary"
393+
description:
394+
- Customize the cluster constraint name for VIP and SAPHana primary clone colocation.
395+
396+
sap_ha_pacemaker_cluster_hana_colocation_hana_vip_secondary_name:
397+
default: "col_saphana_vip_<SID>_HDB<Instance Number>_readonly"
398+
description:
399+
- Customize the cluster constraint name for VIP and SAPHana secondary clone colocation.
400+
376401
sap_ha_pacemaker_cluster_hana_hooks:
377402
type: list
378403
default: []
@@ -425,6 +450,13 @@ argument_specs:
425450
# NetWeaver specific parameters
426451
##########################################################################
427452

453+
sap_ha_pacemaker_cluster_nwas_abap_ascs_ers_simple_mount:
454+
type: bool
455+
default: true
456+
description:
457+
- Enables preferred method for ASCS ERS ENSA2 clusters - Simple Mount
458+
- Set this parameter to 'true' to configure ENSA2 Simple Mount.
459+
428460
sap_ha_pacemaker_cluster_nwas_abap_ascs_ers_ensa1:
429461
type: bool
430462
default: false
@@ -603,16 +635,6 @@ argument_specs:
603635
- Change this parameter to 'true' if the 3 shared filesystems `/usr/sap/trans`,
604636
`/usr/sap/<SID>/SYS` and '/sapmnt' shall be configured as cloned cluster resources.
605637

606-
sap_ha_pacemaker_cluster_vip_nwas_abap_ascs_resource_group_name:
607-
default: grp_<SID>_ASCS<ASCS-instance-number>
608-
description:
609-
- Name of the NetWeaver ASCS resource group.
610-
611-
sap_ha_pacemaker_cluster_vip_nwas_abap_ers_resource_group_name:
612-
default: grp_<SID>_ERS<ERS-instance-number>
613-
description:
614-
- Name of the NetWeaver ERS resource group.
615-
616638
##########################################################################
617639
# NetWeaver ASCS specific parameters
618640
##########################################################################
@@ -621,6 +643,7 @@ argument_specs:
621643
description:
622644
- The name of the ASCS instance, typically the profile name.
623645
- Mandatory for the NetWeaver ASCS/ERS cluster setup
646+
- Recommended format <SID>_ASCS<ASCS-instance-number>_<ASCS-hostname>.
624647

625648
sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_start_profile_string:
626649
description:
@@ -637,6 +660,26 @@ argument_specs:
637660
description:
638661
- Name of the ASCS instance resource.
639662

663+
sap_ha_pacemaker_cluster_nwas_abap_ascs_sapstartsrv_resource_name:
664+
default: rsc_SAPStartSrv_<SID>_ASCS<ASCS-instance-number>
665+
description:
666+
- Name of the ASCS SAPStartSrv resource for simple mount.
667+
668+
sap_ha_pacemaker_cluster_vip_nwas_abap_ascs_resource_group_name:
669+
default: grp_<SID>_ASCS<ASCS-instance-number>
670+
description:
671+
- Name of the NetWeaver ASCS resource group.
672+
673+
sap_ha_pacemaker_cluster_nwas_colocation_ascs_no_ers_name:
674+
default: "col_ascs_separate_<SID>"
675+
description:
676+
- Customize the cluster constraint name for ASCS and ERS separation colocation.
677+
678+
sap_ha_pacemaker_cluster_nwas_order_ascs_first_name:
679+
default: "ord_ascs_first_<SID>"
680+
description:
681+
- Customize the cluster constraint name for ASCS starting before ERS order.
682+
640683
sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_automatic_recover_bool:
641684
type: bool
642685
default: false
@@ -677,6 +720,7 @@ argument_specs:
677720
description:
678721
- The name of the ERS instance, typically the profile name.
679722
- Mandatory for the NetWeaver ASCS/ERS cluster setup.
723+
- Recommended format <SID>_ERS<ERS-instance-number>_<ERS-hostname>.
680724

681725
sap_ha_pacemaker_cluster_nwas_abap_ers_sapinstance_start_profile_string:
682726
description:
@@ -699,6 +743,15 @@ argument_specs:
699743
description:
700744
- Name of the ERS instance resource.
701745

746+
sap_ha_pacemaker_cluster_nwas_abap_ers_sapstartsrv_resource_name:
747+
default: rsc_SAPStartSrv_<SID>_ERS<ERS-instance-number>
748+
description:
749+
- Name of the ERS SAPstartSrv resource for simple mount.
750+
751+
sap_ha_pacemaker_cluster_vip_nwas_abap_ers_resource_group_name:
752+
default: grp_<SID>_ERS<ERS-instance-number>
753+
description:
754+
- Name of the NetWeaver ERS resource group.
702755

703756
##########################################################################
704757
# PAS specific parameters

0 commit comments

Comments
 (0)