# Migrating PBS Pro from 14.2 to 18.2.3

**URL:** <https://community.openpbs.org/t/migrating-pbs-pro-from-14-2-to-18-2-3/1743>\
**Category:** Users/Site Administrators\
**Created:** [August 23, 2019, 6:27pm UTC](https://community.openpbs.org/t/migrating-pbs-pro-from-14-2-to-18-2-3/1743 "2019-08-23T18:27:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![adarsh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarsh](https://community.openpbs.org/u/adarsh)\
**Post date:** [August 23, 2019, 9:47pm UTC](https://community.openpbs.org/t/migrating-pbs-pro-from-14-2-to-18-2-3/1743/2 "2019-08-23T21:47:40Z")

</div>

- 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.

---

_[View the full topic](https://community.openpbs.org/t/migrating-pbs-pro-from-14-2-to-18-2-3/1743)._
