BVD PostgreSQL process can't start in Linux env with root user

  • KM03127005
  • 21-Mar-2018
  • 21-Mar-2018

This document has not been formally reviewed for accuracy and is provided "as is" for your convenience.

Summary

In Linux environment, if only user bvd has permission to access *.sh file then with root user it can't be started

Error

[root@abcxyz tmp]# /opt/OV/bin/ovc -start bvdpg -debug
bvdpg:Starting component.
bvdpg:Checking the dependent component 'ovconfd'.
ovconfd:Component is already running.
bvdpg:Executing the action => 'CommandLine:/opt/HP/BVD/pgsql/bin/pg_ctl start -D /var/opt/HP/BVD/pgsql -l /var/opt/HP/BVD/log/pgsql.log'.
bvdpg:Action => 'CommandLine:/opt/HP/BVD/pgsql/bin/pg_ctl start -D /var/opt/HP/BVD/pgsql -l /var/opt/HP/BVD/log/pgsql.log' completed.
bvdpg:Scanning the OS process table to find a process that has the process description `postgres`
bvdpg:Failed to find an entry in the OS process table.Component will be moved to ABORTED state. Check ProcessDescription and CommandLine tag value in the control registration file.
bvdpg:Component failed to start.
ovbbccb:Component is already running.

Cause

If logged-in user doesn't have required permission to access process file then process can not be started

Fix

su to bvd user & then start the process:

[root@abcxyz tmp]# su bvd

[bvd@abcxyz tmp]# /opt/OV/bin/ovc -start bvdpg