
How to load CIB configuration for SAP CM platform resources?

Version 0.2 2024-04-24



0) Content

1) install packages

2) adapt mzadmin´s .bashrc

3) show cib
3.1) show cib basic config
3.2) show sbd config
3.3) show already configure primitive resources and groups

4) update cib
4.1) update cib basic config
4.2) update cib sbd resource config
4.3) update cib platform resource config

5) check cib




1) install packages

# zypper in ClustertTools2
# rpm -F ./sap-convergent-resource-agents
# rpm -ql sap-convergent-resource-agents | grep man



2) adapt mzadmin´s .bashrc

# su - mzadmin
# cp .bashrc backup.bashrc
# cat /usr/share/sap-convergent-resource-agents/samples/bashrc >>.bashrc 
# cat .bashrc



3) show cib

3.1) show cib basic config

# crm configure show cib-bootstrap-options
# crm configure show rsc-options
# crm configure show op-options

3.2) show sbd config

# crm configure show | grep primitive.*stonith
# crm configure show rsc_stonith_sbd

3.3) show already configure primitive resources and groups 

# crm configure show | grep primitive
# crm configure show rsc_ip_C11
# echo "azure_lb ?"

# crm configure show | grep group
# crm configure show grp_cz_C11



4) update cib

4.1) update cib basic config

# crm configure load update 10_cib-bootstrap-options.txt
# crm configure load update 20_op-options.txt
# crm configure load update 30_rsc-options.txt

4.2) update cib sbd resource config

# vi 40_rsc_stonith_sbd.txt
# crm configure load update 40_rsc_stonith_sbd.txt

4.3) update cib platform resource config

# vi 60_rsc_cz_C11.txt
# vi 70_rsc_ip_C11.txt
# vi 80_grp_cz_C11.txt

# crm configure load update 60_rsc_cz_C11.txt
# crm configure load update 70_rsc_ip_C11.txt
# crm configure load update 80_grp_cz_C11.txt

# crm configure show rsc_cz_C11
# crm configure show rsc_ip_C11
# crm configure show grp_cz_C11

# crm resource maintenance grp_cz_C11 off

# watch -n5 "crm_mon -1r;echo;cs_clusterstate -i|grep -v '#'"



5) check cib

# crm_mon -1r

# crm configure show cib-bootstrap-options
# crm configure show rsc-options
# crm configure show op-options

# crm configure show | grep primitive.*stonith
# crm configure show rsc_stonith_sbd

# crm configure show | grep primitive
# crm configure show | grep group

# crm configre show rsc_cz_C11
# crm configre show rsc_ip_C11
# crm configre show grp_cz_C11


