VeeamHub / applications

This repository contains example scripts for freeze/thaw of applications or for running plugin based backups such as Oracle RMAN or SAP HANA
MIT License
25 stars 17 forks source link

Problem with the new format of /usr/sap/services records and pre-freeze and post-thaw HANA scripts #13

Open akx-github opened 6 months ago

akx-github commented 6 months ago

Is your feature request related to a problem? Please describe.

SAP have implemented integration of the HANA Instance records into systemd / systemctl and activates this feature with all newer implementations of HANA starting with SLES15 and HANA 2 SPS7 and changed the records of HANA Instances

from the known 'classic format': LD_LIBRARY_PATH=/usr/sap//...; export LD_LIBRARYPATH; /usr/sap//.../sapstartsrv pf=/usr/sap//... -D -u adm to 'systemd format': systemctl --no-ask-password start SAP # sapstartsrv pf=/usr/sap//...

The hana-pre-freeze.sh und hana-post-thaw.sh can not understand the nwe foramt and unable to detect HANA instances.

Describe the solution you'd like The scripts should understand both formats the newer and the old ones.

Additional context SAP Note https://me.sap.com/notes/3139184 3139184 - Linux: systemd integration for sapstartsrv and SAP Host Agent