Project

General

Profile

Online PUBS Database Reconfig

1. The first thing that we have to do is to stop the PUBS daemons (https://cdcvs.fnal.gov/redmine/projects/uboone-operations/wiki/Starting_the_PUBS_online_daemon).

2. Then, log in prod-ws01.

>kinit -Af <USERID>@FNAL.GOV
>ssh -XY <USERID>@ubdaq-prod-ws01.fnal.gov #where USERID is your kerberos principal ID, e.g. <USERID>@FNAL.GOV

3. Connect to near1.

>ssh -Y uboonepro@ubdaq-prod-near1.fnal.gov

4. Go to the pubs/ directory.

>cd pubs/

5. Open the config/setup_uboonepro_online.sh file and look for the line "source /home/uboonepro/.sql_access/uboonepro_prod_conf.sh;". The latter is the file where we export our variables.

6. Open the /home/uboonepro/.sql_access/uboonepro_prod_conf.sh file;

7. Under the titles "# SQL reader account config", "# SQL writer account config" and "# SQL admin account config", you will find the place where we export the IP address and we can switch between smc, smc2, near2 and seb10.

8. Comment in the lines that you are interested in and comment out the lines that you don't want any more (WATCH OUT, YOU HAVE TO DO IT UNDER ALL 3 TITLES!!!)

9. Go back to the pubs directory and source the config/setup_uboonepro_online.sh file.

>cd pubs/
>source config/setup_uboonepro_online.sh

10. Restart the PUBS daemons (https://cdcvs.fnal.gov/redmine/projects/uboone-operations/wiki/Starting_the_PUBS_online_daemon).