I found this thread related to my problem. The suggestion there was to delete /var/spool/pbs and start afresh. Is it possible to avoid this, i would like to get the information on the jobs run for the past week for accounting purposes.
The function responsible to update the db is in /opt/pbs/libexec/pbs_habitat
upgrade_db() {
if [ ! -x "${inst_dir}/bin/pg_upgrade" ]; then
echo "${inst_dir}/pg_upgrade not found"
return 1
fi
Why is this using inst_dir which is set to /opt/pbs instead of the Postgres binary path? The pgsql environments is set from /opt/pbs/libexec/pbs_pgsql_env.sh, which sets the PGSQL_DIR variable correctly.
You could backup the /var/spool/pbs/server_priv/accounting folder, this has all the accounting information of the jobs that are run on the cluster till the PBS was active.
Once you have backed up , you can delete and re-initiate it again. Copy back the accounting logs back to the same location , if required.
I downgraded to pbs-pro-server-ohpc-14.1.0-30.2.x86_64 from 14.1.2-9.1.x86_64, and have working PBS now. What directories do i need to delete in /var/spool/pbs to re-initialize after upgrading to 14.1.2-9.1 ?
Hello adarsh,
“You could backup the /var/spool/pbs/server_priv/accounting folder, this has all the accounting information of the jobs that are run on the cluster till the PBS was active.”,but I can’t find the value of job’s Output_Path attribute,can find it using qstat -f.From which file we can find the job’s Output_Path property value for job?