Start/stop WITHOUT re-creation of the performance database

  1. Stop the agent:
# /opt/perf/bin/ovpa stop
# /opt/perf/bin/midaemon -T
# /opt/perf/bin/ttd -k
# /opt/OV/bin/ovc -kill
  1. Check midaemon is stopped:
# ps -ef | grep 'midaemon'
  1. Search for any midaemon active shared memory segments using ipcs and if needed use ipcrm -m to remove these entries from the shared memory table:
# ipcs -m | grep 0x0c6629c9

# ipcrm -m <ID>
  1. Execute a clean start:
# /opt/OV/bin/opcagt -cleanstart
  1. Check if all the processes are running:
# /opt/perf/bin/perfstat -p
# /opt/perf/bin/ovpa status

Start/stop WITH re-creation of the performance database

  1. Stop the agent:
# /opt/perf/bin/ovpa stop
# /opt/perf/bin/midaemon -T
# /opt/perf/bin/ttd -k
# /opt/OV/bin/ovc -kill
  1. Check midaemon is stopped:
# ps -ef | grep 'midaemon'
  1. Search for any midaemon active shared memory segments using ipcs and if needed use ipcrm -m to remove these entries from the shared memory table:
# ipcs -m | grep 0x0c6629c9

# ipcrm -m <ID>
  1. Move the below files to another temporary directory:
  • /var/opt/perf/datafiles/log*
  • /var/opt/OV/datafiles/coda*
  1. In path /var/opt/perf/datafiles/,delete the file RUN if it exist.
  1. Optional: Back up the existing database directory /var/opt/OV/databases/oa/
  1. Run the following commands to delete the current datastore:
# rm -f /var/opt/OV/databases/oa/*         
# /opt/OV/bin/sqlite3 /var/opt/OV/databases/oa/oa.db < /var/opt/OV/conf/oa/Model/DMLMetaMetaSchema
  1. Run the following command to set configuration variable UPDATED_MODEL_AVAILABLE to true:
# /opt/OV/bin/ovconfchg -ns oacore -set UPDATED_MODEL_AVAILABLE TRUE
  1. Execute a clean start:
# /opt/OV/bin/opcagt -cleanstart
  1. Check if all the processes are running:
# /opt/perf/bin/perfstat -p
# /opt/perf/bin/ovpa status

Comments