version 1.1, 2008/09/30 17:45:29
|
version 1.2, 2008/10/16 18:28:44
|
|
|
/home/production/cvs/JSOC/doc/whattodolev0.txt 28Jul2008 |
/home/production/cvs/JSOC/doc/whattodolev0.txt 08Oct2008 |
| |
| |
------------------------------------------------------ | ------------------------------------------------------ |
Line 18 own independent /home/production. |
|
Line 18 own independent /home/production. |
|
If the spare dcs2 is to be put in place, it is renamed dcs0 or dcs1, and the | If the spare dcs2 is to be put in place, it is renamed dcs0 or dcs1, and the |
original machine is renamed dcs2. | original machine is renamed dcs2. |
| |
|
1a. The spare dcs2 normally servers as a backup destination of the postgres |
|
running on dcs0 and dcs1. You should see this postgres cron job: |
|
|
|
0,20,40 * * * * /var/lib/pgsql/rsync_pg_dcs1_to_dcs2.pl |
|
|
|
For this to work, this must be done on dcs2 after any reboot: |
|
|
|
> ssh-agent | head -2 > /var/lib/pgsql/ssh-agent.env |
|
> chmod 600 /var/lib/pgsql/ssh-agent.env |
|
> source /var/lib/pgsql/ssh-agent.env |
|
> ssh-add |
|
(The password is written on my whiteboard (same as production's)) |
|
|
2. Login as user production via j0. (password is on Jim's whiteboard). | 2. Login as user production via j0. (password is on Jim's whiteboard). |
| |
3. The Postgres must be running and is started automatically on boot: | 3. The Postgres must be running and is started automatically on boot: |
Line 163 You will be advised that to cleanly stop |
|
Line 176 You will be advised that to cleanly stop |
|
| |
> stop_lev0.pl | > stop_lev0.pl |
| |
For now, every hour (might be 1/2hr) the ingest_lev0 processes are |
It may take awhile for all the ingest_lev0 processes to get to a point |
automatically restarted. |
where they can stop cleanly. |
|
|
|
For now, every hour, the ingest_lev0 processes are automatically restarted. |
| |
| |
4. The output is for the series: | 4. The output is for the series: |