Migrating PBS Pro from 14.2 to 18.2.3

  • Job history is stored in the pbs datastore (postgres database)
  • To make sure 18.2.3 to be upgraded with job history and node / queue configuration
    • you have to make sure /etc/hosts and /etc/pbs.conf and hostnames are exactly the same.

Solution 1:
1. Stop the PBS Services of 14.2
2. Take a backup of $PBS_HOME and $PBS_EXEC
3. Upgrade this production server to 18.2.3

From here :
Case 1:

                   - Take a pg_dump from the upgraded server 
                   - import this pd_dump onto  your 18.2.3 Server
                  - (make sure you always back the $PBS_HOME with pbs service stopped, so that you can revert back ) 

OR

        Case 2:

                 - copy the $PBS_HOME  with permission intact  to  18.2.3 Server (make sure you backup its $PBS_HOME after stopping the services , so that you can revert back) 
                 - after copying the $PBS_HOME , make sure permissions are intact
                 - start the services

Please note you have to do the above just to have the job history migrated.

  1. You can get the job history from the accounting logs but not in a formatted way that is disposed by qstat -fx / qstat -f etc. Also, it is not recommended to have infinite time job history, job history is limited to couple of weeks to couple of months (rare).

  2. You can do a qstat -fx on 14.2 server and save it to a web page , so that users can check them directly for a time period. You can use the new system with migrated configuration only
    a. qmgr < output_of_qmgr_p_s_of_14.2.txx
    b. copy the sched_config file to $PBS_HOME/sched_priv/sched_config
    c. update the $PBS_HOME/mom_priv/config
    You are all set

Hope this helps.