Monday, August 8, 2016

HP Data Protector : Error post installation & cannot start omni

I have installed HP DP 9.0 on my VM with a bit customize installation script (omnisetup.sh) because I want to install in my local notebook and lack of memory which require 4GB as minimum.

After I finished the installation, I saw error in post-installation part but I ignored it. Try to start omni but it was failed.

Here is error : 
08/08/2016 10:47:26 PM  OMNISV.41507.0 ["/lib/cmn/unix.c $Rev: 41801 $ $Date:: 2014-03-26 06:59:59":1413] A.09.00 b88
execvp failed! (/etc/init.d/hpdp-idb-cp) errno=2
Arg list:
        /etc/init.d/hpdp-idb-cp
        start

08/08/2016 10:47:27 PM  OMNISV.41523.0 ["/lib/cmn/unix.c $Rev: 41801 $ $Date:: 2014-03-26 06:59:59":1413] A.09.00 b88
execvp failed! (/etc/init.d/hpdp-as) errno=2
Arg list:
        /etc/init.d/hpdp-as
        quick

I will share the solution for this error into 2 part, hpdp-idb-cp and hpdp-as.

1. hpdp-idb-cp


I create the new script as /etc/init.d/hpdp-as with following script :-

#!/bin/sh
# chkconfig: 35 99 08
# description: HP Data Protector Application Server.
# processname: hpdp-as

### BEGIN INIT INFO
# Provides: hpdp-as
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Short-Description: HP Data Protector Application Server
### END INIT INFO

#Defining AS_HOME
AS_HOME=/opt/omni/AppServer

case "$1" in
start)
echo "Starting the HP Data Protector Application Server..."
nohup su - hpdp -c "${AS_HOME}/bin/standalone.sh -b vmrhel65 &"
;;
quick)
nohup su - hpdp -c "${AS_HOME}/bin/standalone.sh -b vmrhel65 > /dev/null &"
;;
stop)
echo "Stopping the HP Data Protector Application Server..."
su - hpdp -c "${AS_HOME}/bin/jboss-cli.sh --connect command=:shutdown"
;;
log)
echo "Showing server.log..."
tail -1000f /var/opt/omni/log/AppServer/server.log
;;
*)
echo "Usage: /etc/init.d/hpdp-as {start|stop|log}"
exit 1
;; esac
exit 0

Note: you have to edit [vmrhel65] into your hostname.

2. hpdp-as

Run following command,
# su hpdp -c "LD_LIBRARY_PATH=/opt/omni/idb/lib:$LD_LIBRARY_PATH /opt/omni/idb/bin/pgbouncer -d /etc/opt/omni/server/idb//hpdp-idb-cp.cfg"

Next, re-install once again.
# ./omnisetup.sh -IS

Then, change owner of these directories
# chown hpdp /var/opt/omni/log/AppServer \ 
  /var/opt/omni/server/AppServer  \
  /opt/omni/AppServer/standalone/deployments \
  /etc/opt/omni/server/AppServer

Finish! Try to start omni once again
# omnisv start

Check the process
# /opt/omni/sbin/omnisv status
    ProcName      Status  [PID]  
===============================
    crs         : Active  [49846]
    mmd         : Active  [49844]
    kms         : Active  [49845]
    hpdp-idb    : Active  [49829]
    hpdp-idb-cp : Active  [41805]
    hpdp-as     : Active  [49890]
    omnitrig    : Active
    Sending of traps disabled.
===============================
Status: All Data Protector processes/services up and running.

Now, error of above 2 errors have been fixed.


Note : as I mentioned above, I install in my tiny VM. There is a lot of problem about memory, postgres is also. I have to edit the configuration script /var/opt/omni/server/db80/pg/postgresql.conf and change shared_buffers as it should be proper with my resource.

Test startup postgres by following command (with & as background process but it no need because when you startup omni process it also be started)
# /opt/omni/idb/bin/postgres -D /var/opt/omni/server/db80/pg & 

Done!

No comments:

Post a Comment