Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / 000541.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
4 <head>
5    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6    <meta name="generator" content="Movable Type 5.2.3" />
7
8    <link rel="stylesheet" href="http://defaria.com/blogs/Status/styles-site.css" type="text/css" />
9    <link rel="alternate" type="application/atom+xml" title="Atom" href="http://defaria.com/blogs/Status/atom.xml" />
10    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://defaria.com/blogs/Status/index.xml" />
11
12    <title>Status for Andrew DeFaria: Production User Database Migrated</title>
13
14    <link rel="start" href="http://defaria.com/blogs/Status/" title="Home" />
15    <link rel="prev" href="http://defaria.com/blogs/Status/archives/000540.html" title="More fun with SQL ANYWHERE" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/000543.html" title="Ant Rant" />
17
18    
19
20    
21
22    <script type="text/javascript" src="http://defaria.com/blogs/Status/mt-site.js"></script>
23 </head>
24 <body class="layout-one-column" onload="individualArchivesOnLoad(commenter_name)">
25    <div id="container">
26       <div id="container-inner" class="pkg">
27
28          <div id="banner">
29             <div id="banner-inner" class="pkg">
30                <h1 id="banner-header"><a href="http://defaria.com/blogs/Status/" accesskey="1">Status for Andrew DeFaria</a></h1>
31                <h2 id="banner-description">Searchable status reports and work log</h2>
32             </div>
33          </div>
34
35          <div id="pagebody">
36             <div id="pagebody-inner" class="pkg">
37                <div id="alpha">
38                   <div id="alpha-inner" class="pkg">
39
40                      <p class="content-nav">
41                         <a href="http://defaria.com/blogs/Status/archives/000540.html">&laquo; More fun with SQL ANYWHERE</a> |
42                         <a href="http://defaria.com/blogs/Status/">Main</a>
43                         | <a href="http://defaria.com/blogs/Status/archives/000543.html">Ant Rant &raquo;</a>
44                      </p>
45
46                      <a id="a000541"></a>
47                      <div class="entry" id="entry-541">
48                         <h3 class="entry-header">Production User Database Migrated</h3>
49                         <div class="entry-content">
50                            <div class="entry-body">
51                               <ul>
52   <li>Managed to migrate the production user database</li>
53
54   <li>Clearquest desktop users need to upgrade their software. Meantime they can use the web interface</li>
55
56   <li>Verified cqd and triggers work</li>
57
58   <li>Documented how to switch a desktop to the new server</li>
59
60   <li>Documented how to build on the new server</li>
61 </ul>
62
63 <p><b>Time Spent:</b> 4 Hours</p>
64                            </div>
65                            <div id="more" class="entry-more">
66                               <h2>Production User Database Migrated!</h2>
67
68 <p>More progress in this area.</p>
69
70 <p>I decided to try to use the Sybase Central tool to see if I could
71 verify or otherwise fix this potentially bad database. I also looked at
72 running Chkdisk as the eventlog was reporting some bad sectors on the
73 disk. Unfortunately chkdisk cannot fully check the disk since the
74 database is on the C drive and the C drive is currently busy. Normally
75 you just set a flag and chkdisk will run after next boot. But such a
76 chkdisk will take a long time on a big disk.</p>
77
78 <p>Meantime in Sybase Central I decide to do fresh backups of the
79 databases which seem to go OK. These backup databases look no different
80 really than the regular databases so I run validate on the backup
81 database. Hmmm.... Doesn't seem to have any errors. So I tried the
82 installutil copyuserdb to copy the <b>backup</b> database <b>as if is
83 was the real production database</b> to the new server. Hmmm.... That
84 worked!</p>
85
86 <p>Next I had to go into Clearquest Maintenance Tool and select Schema
87 Respository: Upgrade: Selected Connection and upgrade the production
88 user database. That worked!</p>
89
90 <p>I checked the Clearquest web (<a href="http://sons-sc-cc/cqweb/login">http://sons-sc-cc/cqweb/login</a>) and the
91 new database is indeed there and working!</p>
92
93 <h2>Clearquest Desktop Clients Need to Upgrade</h2>
94
95 <p><font color="#ff0000"><b>Problem:</b> Clearquest 2002.05.00 desktop
96 clients cannot access this new database!</font></p>
97
98 <p>I tried creating a connection profile to this new database and then
99 importing it on the old server running 2002.05.00.This did not work!
100 Later I read in the Rational Suite Migration Guide:</p>
101
102 <blockquote>Your network environement can contain misxed versions of
103 ClearCase and ClearQuest clients (where some clients are at v2003 and
104 some clients are at ealier versions) if these products are in a
105 standalone environment, that is:</p>
106 <p></p>
107 ....
108 <p></p>
109
110 <p>If your vendor database is SQL Anywhere, you do not plan to upgrade to
111 SQL Anywhere 8.0 until all ClearQuest clients and databases have been
112 upgraded to version 2003.</p>
113 </blockquote>
114
115 <p>So we'll have to upgrade desktop clients to 2003.06.00! Luckily people
116 can use the Clearquest Web Client...</p>
117
118 <h2>Clearquest Daemon Works with Minor Tweaks</h2>
119
120 <p>Checked that cqd and cqc work with the new server. All that need to be
121 changed is to change the default server from sons-clearcase -&gt;
122 sons-sc-cc in cqc.pm.</p>
123
124 <h2>Checked and Triggers Work in New Environment</h2>
125
126 <p>I was able to check to see that the triggers function in the new
127 environment.</p>
128
129 <h2>Switching Your Desktop to the New Server</h2>
130
131 <p>Use the following steps switch your desktop to the new server:</p>
132
133 <ol>
134   <li>Stop all Clearcase activity. Close any Clearcase Explorer windows
135 and any shells in Clearcase views.</li>
136   <li>In a Cygwin shell type ct umount -all to unmount all vobs.</li>
137   <li>Go to Control Panel: Clearcase</li>
138   <li>Click on the Services tab then Stop Clearcase</li>
139   <li>Click OK to the dialog saying Clearcase has stopped</li>
140   <li>Click OK to <b>close</b> the Clearcase Control Panel Applet</li>
141   <li>Start the Clearcase Control Panel <b>again</b></li>
142   <li>On the registry tag, change the registry server to sons-sc-cc</li>
143   <li>Click OK to close the Clearcase Control Panel <b>again</b></li>
144   <li>On the Registry tab click the drop down arrow for Windows Region.
145 You should see the new SC region. Select it.</li>
146   <li>Click on <b>Apply</b></li>
147   <li>Click on the Services Startup tab and then Start Clearcase</li>
148   <li>Close the Clearcase Control Panel</li>
149   <li>Start a Cygwin shell and type ct hostinfo -l. You should see
150 something like:<br>
151     <br>
152 <div class=code><pre>
153 <font color="blue"><b>[ccadmin] adefaria:</b></font><u>ct hostinfo -l</u>
154 Client: adefaria
155   Product: ClearCase 2002.05.00+
156   Operating system: Windows NT 5.1 (build 2600) Service Pack 2
157   Hardware type: Pentium
158   Registry host: <b>sons-sc-cc</b>
159   Registry region: <b>SC</b>
160   License host: sons-clearcase
161 </pre></div>
162
163     <p>As you can see we are now pointing to the sons-sc-cc registry
164 host and the SC region. Sons-clearcase is still the license server at
165 this time. Type ct lsview and you should see:</p>
166
167 <div class="code"><pre>
168 <font color="blue"><b>[ccadmin] adefaria:</b></font><u>ct lsview</u>
169   official             \\sons-sc-cc\Views\SALIRA\ccadmin\official.vws
170   3.1.ccadmin     \\sons-sc-cc\Views\SALIRA\ccadmin\3.1.ccadmin.vws
171   szhu_view_2     \\sons-sc-cc\Views\SALIRA\szhu\szhu_view_2.vws
172     </pre></div>
173
174     <p>A noticeably smaller list of views that are on sons-sc-cc in
175 the SC region</li>
176 </ol>
177
178 <p>Follow a similar set of steps to switch back to the old registry server
179 (sons-clearcase) and region (US). No reboots required (provided you
180 properly stop Clearcase and do things like get out of views and umount
181 vobs).</p>
182
183 <h2>Attempting an Official Build on sons-sc-cc</h2>
184
185 <p>This procedure can be done either by following the procedure above to
186 switch your desktop to the new server or simply use rsh/telnet to log
187 into sons-sc-cc. Once there:</p>
188
189 <ol>
190   <li>Make user that the 3.1.ccadmin view is started<br>
191 <div class=code><pre>
192 $ ct startview 3.1.ccadmin
193 </pre></div></li>
194   <li>Make sure the salira vob is mounted:<br>
195     <br>
196 <div class=code><pre>
197 $ ct mount \\salira
198 </pre></div></li>
199   <li>Change directory to the build area:<br>
200     <br>
201 <div class=code><pre>
202 $ cd /dview/3.1.ccadmin/salira/neopon/build
203 </pre></div></li>
204   <li>Type make:<br>
205 <div class=code><pre>
206 $ make
207 </pre></div></li>
208 </ol>
209
210                            </div>
211                         </div>
212                         <p class="entry-footer">
213                            <span class="post-footers">Posted by  on April 15, 2006  6:55 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000541.html">Permalink</a>
214                         </p>
215                      </div>
216
217                      
218
219                      
220                   </div>
221                </div>
222             </div>
223          </div>
224       </div>
225    </div>
226 </body>
227 </html>