Update SDM Binaries With New Location

The update procedure is described in the SDM documentation as shown below.

http://wikis.sun.com/display/GridEngine/Upgrade+procedure+for+SDM

However this only works when you completely replace the existing binaries with the new ones.

If you want to redirect to the new location for the latest binaries instead of overwriting the existing binaries, below is something you may consider:

0. Suppose that you have installed SDM 1.0 release under the following directory: /opt/sdm/sdm1.0. Before moving on to the next step, shut down all the SDM JVM's.

# sdmadm sdj -all

1. Create sub-directories for each SDM release. For example, I have created the following directories under the /opt/sdm directory:

/opt/sdm/sdm1.0
/opt/sdm/sdm1.0u1

Then, create a symbolic link to the directory that contains the latest SDM binaries and make sure to set your PATH  so that  the /opt/sdm/latest comes first.

# ln -s /opt/sdm/sdm1.0u1 /opt/sdm/latest

2. Modify the bootstrap information.

Although we are pointing to the new binaries, we need to modify the bootstrap information so that the JVM can find the correct jar files. This information is stored in the following file on EACH managed host.

/etc/sdm/bootstrap/sdm62fcs/prefs.properties:dist=/opt/sdm/sdm1.0

So edit this parameter as following:

/etc/sdm/bootstrap/sdm62fcs/prefs.properties:dist=/opt/sdm/latest

From now on, you can easily patch SDM binaries to the binaries that is directed by the /opt/sdm/latest symbolic link.  The following example shows the JVM versions on the SDM master host when the JVM are restarted.

# sdmadm suj
jvm         host  result  message
--------------------------------------------------------
cs_vm       node0 STARTED
executor_vm node0 STARTED
rp_vm       node0 STARTED

# sdmadm sm
module             version vendor
-------------------------------------------
common             1.0u1   Sun Microsystems
gridengine-adapter 1.0u1   Sun Microsystems
security           1.0u1   Sun Microsystems


Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Chansup Byun

Search

Categories
Archives
« September 2015
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today