With the multi-sched feature (PP-337: Multiple schedulers servicing the PBS cluster) being checked in, pbs_snapshot will need to be enhanced to capture information from all of the schedulers correctly. Right now, it captures the following information about the default scheduler:
qmgr list sched
sched_priv
sched_logs
With multisched in the picture, qmgr list sched should still work out of the box to capture info about all schedulers. But sched_priv and sched_logs of the different schedulers will need to be captured separately for each scheduler. That’s what I’m thinking is the only enhancement needed.
Right now I’m thinking to capture all the sched_privs and sched_logs in the first level of the snapshot directory itself, so they’ll appear at (snapshot name)/(sched_priv_name), this would be consistent with the default location that PBS stores them at (PBS_HOME/(sched_priv_name)).
@agrawalravi90 sched_priv and sched_log information that you are going to get from qmgr is going to be the path of those files. You can probably get the sched name and make it like “sched_priv_<sched_name>”.
Thanks for the input Arun. Will the path not include the name of the directories themselves? I was just thinking of picking out the name of the sched_priv and sched_log directories from the paths and using them to name the snapshot equivalents. Will that not work?
You are right path will include the name of the directory, but If I understand correctly you are thinking of picking up just the last directory then that might not be sufficient like if there are 2 schedulers with priv as /var/spool/pbs/sched_priv and /var/tmp/pbs/sched_priv then you might end up having same priv directory name.