We have uploaded debug logs (and more) to VMware support, the case has been escalated by account executive, but remains stuck with no progress, hoping the community can help.
Our goal is to run a custom script provided by the DB vendor (Intersystems Iris DB) to freeze/thaw the DB prior/after the VM snapshot. This is vSphere 7 environment (ESXi U2, vCenter U3).
Our goal is to use the latest RHEL 8 and latest v12 tools.
Background:
This is the Error in the vmware.log on the guest VM:
2023-01-05T20:45:20.591Z| vmx| | I005: SNAPSHOT: SnapshotPrepareTakeDoneCB: Prepare phase complete (The operation completed successfully).
2023-01-05T20:45:20.613Z| vcpu-1| | I005: ToolsBackup: changing quiesce state: IDLE -> STARTED
2023-01-05T20:45:40.627Z| vmx| | I005: Msg_Post: Warning
2023-01-05T20:45:40.627Z| vmx| | I005: [msg.snapshot.quiesce.vmerr] The guest OS has reported an error during quiescing.
2023-01-05T20:45:40.627Z| vmx| | I005+ The error code was: 2
2023-01-05T20:45:40.627Z| vmx| | I005+ The error message was: Custom quiesce script failed.
2023-01-05T20:45:45.732Z| vmx| | I005: SnapshotVMXTakeSnapshotComplete: Snapshot 0 failed: Failed to quiesce the virtual machine (29).
We know the script returns an exit code zero -0- and cannot determine why VMware Tools are passing exit code 2.
Any help appreciated.
Turns out this was a ID10T problem.
Summarizing the essential engineering recommendation:
Remove duplicate freeze/thaw scripts present on the server in these directories:
'"/etc/vmware-tools/backupScripts.d/freezethaw" freeze'
'/usr/sbin/pre-freeze-script'
and
'"/etc/vmware-tools/backupScripts.d/freezethaw" thaw'
'/usr/sbin/post-thaw-script'
Today the action was to delete the directory /etc/vmware-tools/backupScripts.d/ (which we believe was empty) and Quiesce Snapshot incorporating desired freeze was successful.
Turns out this was a ID10T problem.
Summarizing the essential engineering recommendation:
Remove duplicate freeze/thaw scripts present on the server in these directories:
'"/etc/vmware-tools/backupScripts.d/freezethaw" freeze'
'/usr/sbin/pre-freeze-script'
and
'"/etc/vmware-tools/backupScripts.d/freezethaw" thaw'
'/usr/sbin/post-thaw-script'
Today the action was to delete the directory /etc/vmware-tools/backupScripts.d/ (which we believe was empty) and Quiesce Snapshot incorporating desired freeze was successful.