Thanks, ok when running the commands one-by-one we get the following. I ran the commands in 2 different command prompt windows, Standard User and Elevated Command prompt (Administrator)
These commands were run with the Veeam service account on the MaxDB VM
Standard User: First command failed, so no need to run the rest.
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\removed>D:\SAPDB\PBD\DB\PGM\dbmcli.exe -d PBD -u control,<removed>
Can not open file 'D:\sapdb\data\wrk\dbmsrv_removed.err'.
(System error 5; Access is denied.)
Error! Connection failed to node (local) for database PBD:
-24700,ERR_DBMSRV_NOSTART: Could not start DBM server.
-24832,ERR_SHMNOTAVAILABLE: Shared memory not available
-24827,ERR_SHMALLOCFAILED: ID D:\sapdb\data\wrk\PBD.dbm.shi, requested size 2608
6,Creating shared memory file D:\sapdb\data\wrk\PBD.dbm.shi failed, rc = 183.
C:\Windows\system32>D:\SAPDB\PBD\DB\PGM\dbmcli.exe -d PBD -u control,removed
D:\SAPDB\PBD\DB\PGM\dbmcli.exe on PBD>util_connect control,removed
D:\SAPDB\PBD\DB\PGM\dbmcli.exe on PBD>util_execute suspend logwriter
IO SEQUENCE = 28870124
D:\SAPDB\PBD\DB\PGM\dbmcli.exe on PBD>
The assumption here is, that Veeam is trying to run the script on the MaxDB VM as a Standard user without Elevated rights. The service account and "System" have full access to the folder where the scripts are stored.