WARNING: This web is not used anymore. Please use PDBService.CheckSpareMachine instead! |
Before putting a spare machine in a production environment, don't forget to check the following list in order to see if the follows the configuration.
The commands should be performed from the machine logged in as oracle.
To stop application server use:
sudo /etc/init.d/oracle_ias stop
If not all opmn processes are killed, then you can either kill them or just reboot (send an e-mail to Computer.Operations@cern.ch and Sysadmin.Support@cern.ch
or phone 75011 before) the machine:sudo reboot
Note: After a reboot, the HTTP Server and the VOs that were up and running are automatically restarted. Don't forget to stop them.
- Check: existing containers and their state:
dcmctl getstate -v
- Check: all with the "In Sync Status" as True. If not, try to run:
dcmctl updateconfig -v -d
- Check: All containers should have 2 applications (LRC and RMC).
dcmctl listapplications -co cms
- If need to undeploy and deploy web-apps.
- Check: datasources point to the right database host and sid, for each VO you should check the file: $ORACLE_HOME/j2ee/<VO>/config/data-sources.xml
- Check: Exists one <data-source> for each catalog (LRC and RMC).
- in the url attributes it specify the database host and the sid. In the example
bellow:
url="jdbc:oracle:thin:@lxshare071d:1521:rls1"
- in the username and password attributes you can check if they correspond to the existing database users.
- Compare the information with the one in the Excel sheet. If necessary to change the data-sources check the instructions to Datasource Reconfiguration
Is necessary to edit the file /etc/iastab and put a Y in front of the containers should run on this machine. For example:
home:N
alice:N
atlas:Y
cms:N
lhcb:N
sudo /etc/init.d/oracle_ias start
If that does not work you can always run:
dcmctl start -co <container>
To validate please use the Validation page in the RLS installations and deployment section.
Update the file .bash_profile file with the correct message, setting:
- correct VO and alias
- "PRODUCTION MACHINE" instead of "STAND-BY MACHINE"
It should look something like:
STATUS: OS installed after 16.Oct.2003
iAS installed after 17.Oct.2003 (manjo)
installed RLS 2.0.2: alice, atlas, cms, dteam, lhcb
running endpoints: alice LRC, alice RMC
-> lxshare0217 - PRODUCTION MACHINE - rlsalice <-
To change with a currently production machine, use DNS switch.
If you switch the machine, don' t forget to change the banner in .bash_profile in the old machine to SPARE MACHINE