After I reboot the Head node . My new Job submission started from jobid 0,1,2..however it has few older jobs with ID 5017. You can see the command output below. Instead of starting from 5018 new Jobs started from 0.
Could anyone please guide me what need to be checked and what should be troubleshooting steps to be followed ?
$ qstat
Job id Name User Time Use S Queue
5017.ip-10-77-16* Linux_DCV_Sessi user1 03:36:46 R dcv
0.ip-10-77-162-79 Custom_DCV_Sess user2 00:06:16 R dcv
5.ip-10-77-162-79 Custom_DCV_Sess user3 00:04:08 R dcv
6.ip-10-77-162-79 Custom_DCV_Sess user4 00:01:09 R dcv
7.ip-10-77-162-79 Custom_DCV_Sess user5 00:00:17 R dcv
Is there a way to update what PBS will use as the jobid for the next job that gets submitted?
Was the headnode re-provisioned again with a fresh configuration, this might have triggered to start from 0.
You can update the job id counter to start from 5018 , by updating the counter in the database.
connect to the postgres database and update
1.make sure your pbs service service is stopped
2. connect to the postgres db using the service user
3. update as below.
pbs_datastore=# UPDATE server SET sv_jobidnumber = 5018;
pbs_datastore=#\q