How to test database update

If you are not interested in preserving the job-id sequence and accounting logs , but only the configuration , then you can follow the below steps:

On the PBS Pro 13.x :

  1. qmgr -c “print server” > print_server.txt
  2. qmgr -c “print node @default” > print_node.txt
  3. qmgr -c “print sched @default” > print_sched.txt
  4. $PBS_HOME/server_priv/resourcedef # backup this file
  5. $PBS_HOME/sched_priv/sched_config # backup this file
  6. $PBS_HOME/server_priv/hooks #backup this file
  7. Take a backup of /etc/pbs.conf

Deploy PBS Pro 19.x on the test cluster

Make sure the PBS Server is up and running , so that you can import the configuration of PBS Pro 13.x as below into 19.x

a. qmgr < print_server.txt
b. qmgr < print_node.txt ( make sure the /etc/hosts file has all the hostname of the compute nodes)
c. qmgr < print_sched.txt
d. copy the $PBS_HOME/sched_priv/sched_config to the same location ( back-up the original)
e. adjust the attributes /etc/pbs.conf to suite the new cluster
d. restart the pbs services

Another way:

  1. Take a pgdump of the PBS Pro 13.x
  2. Install PBS Pro 19.x on the test cluster
  3. import the dump in the postgres

Hope this helps