1 |
production |
1.1 |
/home/production/cvs/JSOC/doc/whattodo_dcs.txt 14Apr2010 |
2 |
|
|
|
3 |
|
|
-------------------------------------------------------- |
4 |
|
|
Summary of starting a dcs0 or dcs1 machine after a reboot |
5 |
|
|
-------------------------------------------------------- |
6 |
|
|
|
7 |
|
|
NOTE:IMPORTANT: Please keep in mind that each data capture machine has its |
8 |
|
|
own independent /home/production and is accessed via j0. |
9 |
|
|
Note the SUMS database is jsocdc. This is a separate DB on each dcs. |
10 |
|
|
|
11 |
|
|
dcs0 = AIA |
12 |
|
|
dcs1 = HMI |
13 |
|
|
|
14 |
|
|
1. Login as user postgres: |
15 |
production |
1.3 |
(This s/b running from the boot of the machine: |
16 |
|
|
/usr/local/pgsql-8.4/bin/postgres -D /var/lib/pgsql/dcs1_data) |
17 |
production |
1.1 |
|
18 |
|
|
> ssh-agent | head -2 > /var/lib/pgsql/ssh-agent.env |
19 |
|
|
> chmod 600 /var/lib/pgsql/ssh-agent.env |
20 |
production |
1.3 |
> source /var/lib/pgsql/ssh-agent.env (NOTE: ^D if you went into csh earlier) |
21 |
production |
1.1 |
> ssh-add |
22 |
|
|
(The password is written on my whiteboard (old production prod... passwd)) |
23 |
|
|
|
24 |
|
|
2. Login as user production: |
25 |
|
|
|
26 |
|
|
> ssh-agent | head -2 > /var/tmp/ssh-agent.env |
27 |
|
|
> chmod 600 /var/tmp/ssh-agent.env |
28 |
|
|
> source /var/tmp/ssh-agent.env |
29 |
|
|
> ssh-add |
30 |
|
|
(The password is written on my whiteboard (old production prod... passwd)) |
31 |
|
|
NOTE: cron jobs use this /var/tmp/ssh-agent.env file |
32 |
|
|
|
33 |
|
|
3. Start sum_svc and related programs: |
34 |
|
|
|
35 |
|
|
> sum_start_dc |
36 |
|
|
|
37 |
|
|
4. Start the vncserver: |
38 |
|
|
|
39 |
production |
1.2 |
> cd /home/production/cvs/JSOC/proj/datacapture |
40 |
production |
1.1 |
> vncserver -geometry 1280x1024 |
41 |
|
|
|
42 |
|
|
You will require a password to access your desktops. |
43 |
|
|
|
44 |
|
|
Password: production password (basically no ....) |
45 |
|
|
Verify: |
46 |
|
|
Would you like to enter a view-only password (y/n)? n |
47 |
|
|
|
48 |
|
|
New 'X' desktop is dcs0.Stanford.EDU:1 |
49 |
|
|
|
50 |
|
|
5. Login as production on j0: |
51 |
|
|
|
52 |
|
|
> vncviewer |
53 |
|
|
|
54 |
|
|
(answer what vncserver told you, e.g. dcs0.Stanford.EDU:1) |
55 |
production |
1.3 |
(password is the 'basically no data') |
56 |
production |
1.1 |
|
57 |
|
|
6. In the window that vncviewer opened do: |
58 |
|
|
|
59 |
|
|
> cd /home/production/cvs/JSOC/proj/datacapture/scripts> |
60 |
|
|
> ./socdc |
61 |
|
|
|
62 |
|
|
All you would normally do is hit "Start Instances for HMI" or AIA for |
63 |
|
|
what datacapture machine you are on. |
64 |
|
|
|
65 |
production |
1.2 |
============================================================================= |
66 |
|
|
|
67 |
|
|
Stopping a dcs machine: |
68 |
|
|
----------------------- |
69 |
|
|
|
70 |
|
|
Hit the red "Exit" button on the VNC display of the socdc gui. |
71 |
production |
1.3 |
If you are not local ps and kill socdc. !!NOTE: If you |
72 |
|
|
directly kill socdc you MUST also kill the 2 ingest_tlm processes. |
73 |
|
|
|
74 |
production |
1.2 |
|