Datastore install has status Unknown
Summary: Datastore install completes without errors but has status Unknown.
Symptoms
Datastore installation results in the state "Unknown"
Command run on datastore:
Linux: <install dir>/dpa/services/bin> dpa.sh ds status
Windows: <install dir>\dpa\services\bin> dpa ds status
Output:
EMC Data Protection Advisor The status of the Datastore Service is UNKNOWN Command completed successfully.
Starting the DPA datastore in debug mode, we see the following:
Linux: <install dir>/dpa/services/bin> dpa.sh ds --debug
Windows: <install dir>\dpa\services\bin> dpa ds --debug
Output:
EMC Data Protection Advisor Environment variables are : [] [DEBUG] This account is currently not available. [DEBUG] Service Conditions : false true false true [DEBUG] Service State : UNKNOWN [ERROR] Cannot execute command as the service state is unknown. Service must be installed
The install appears to have run successfully with no errors encountered.
Cause
This issue has been seen when attempting to complete an install on Linux using "sudo" instead of running the installer as root.
Resolution
DPA must be installed while logged in as root and installs using sudo are not support.
As per the DPA Administration and Install Guide:
If installing on UNIX/Linux, ensure that you are logged in as root. You could experience problems with the Datastore server if you install after becoming root through certain SU-type security software; for example, using the sesu command.
The installer requires the full rights of root in order to correctly create accounts and privileges for DPA. When completing an install of DPA, ensure the root (Linux) or administrator (Windows) account is used to avoid such problems.