Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / 000702.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: Migrating colocated views from 6.0 -> 7.0</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/000701.html" title="EAST Automation" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/000703.html" title="Rantest 0.9.2" />
17
18    <!--
19 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
20          xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
21          xmlns:dc="http://purl.org/dc/elements/1.1/">
22 <rdf:Description
23     rdf:about="http://defaria.com/blogs/Status/archives/000702.html"
24     trackback:ping="http://defaria.com/mt/mt-tb.cgi/89"
25     dc:title="Migrating colocated views from 6.0 -&gt; 7.0"
26     dc:identifier="http://defaria.com/blogs/Status/archives/000702.html"
27     dc:subject="General Dynamics"
28     dc:description="I performed a test of my snapshot view p6258c_SIMCQ00000392_intview. This view is a colocated view and exists in my home directory (~p6258c). Clearcase administration of the registry can be tricky - you need to get several things correct before it..."
29     dc:creator=""
30     dc:date="2008-03-28T15:44:47-06:00" />
31 </rdf:RDF>
32 -->
33
34
35    
36
37    <script type="text/javascript" src="http://defaria.com/blogs/Status/mt-site.js"></script>
38 </head>
39 <body class="layout-one-column" onload="individualArchivesOnLoad(commenter_name)">
40    <div id="container">
41       <div id="container-inner" class="pkg">
42
43          <div id="banner">
44             <div id="banner-inner" class="pkg">
45                <h1 id="banner-header"><a href="http://defaria.com/blogs/Status/" accesskey="1">Status for Andrew DeFaria</a></h1>
46                <h2 id="banner-description">Searchable status reports and work log</h2>
47             </div>
48          </div>
49
50          <div id="pagebody">
51             <div id="pagebody-inner" class="pkg">
52                <div id="alpha">
53                   <div id="alpha-inner" class="pkg">
54
55                      <p class="content-nav">
56                         <a href="http://defaria.com/blogs/Status/archives/000701.html">&laquo; EAST Automation</a> |
57                         <a href="http://defaria.com/blogs/Status/">Main</a>
58                         | <a href="http://defaria.com/blogs/Status/archives/000703.html">Rantest 0.9.2 &raquo;</a>
59                      </p>
60
61                      <a id="a000702"></a>
62                      <div class="entry" id="entry-702">
63                         <h3 class="entry-header">Migrating colocated views from 6.0 -> 7.0</h3>
64                         <div class="entry-content">
65                            <div class="entry-body">
66                               <p>I performed a test of my snapshot view p6258c_SIMCQ00000392_intview.
67 This view is a colocated view and exists in my home directory
68 (~p6258c). Clearcase administration of the registry can be tricky - you
69 need to get several things correct before it will work.</p>
70
71 <p>Here's what the view looks like:</p>
72
73 <div class=code><pre>
74 $ ct lsview -l -full -properties
75 p6258c_SIMCQ00000392_intview 
76   Tag: p6258c_SIMCQ00000392_intview
77    Global path: <b>/net/cclinux/export/home/p6258c/p6258c_SIMCQ00000392_intview/.view.stg</b>
78    Server host: <b>seast1</b>
79    Region: cclinux
80    Active: NO
81    View tag uuid:90c8b0d3.d9c311dc.92fe.00:09:3d:14:f4:70
82   View on host: <b>seast1</b>
83   View server access path: <b>/home/p6258c/p6258c_SIMCQ00000392_intview/.view.stg</b>
84   View uuid: 90c8b0d3.d9c311dc.92fe.00:09:3d:14:f4:70
85   View attributes: snapshot,ucmview
86   View owner: rantest/p6258c
87
88   Created 2008-02-12T16:31:00-07 by p6258c.cclinux@ranlin04
89   Last modified 2008-03-28T13:53:02-07 by p6258c.cclinux@raneast
90   Last accessed 2008-03-28T13:53:02-07 by p6258c.cclinux@raneast
91   Last read of private data 2008-03-28T13:53:02-07 by
92 p6258c.cclinux@raneast
93   Last config spec update 2008-03-28T13:22:18-07 by
94 p6258c.cclinux@raneast
95   Last view private object update 2008-03-28T13:53:02-07 by
96 p6258c.cclinux@raneastText mode: unix
97   Properties: snapshot ucmview readwrite
98   Owner: rantest/p6258c : rwx (all)
99   Group: rantest/cclinux : r-x (read)
100   Other: : r-x (read)
101   Additional groups: rantest/east
102 </pre></div>
103
104 <p>Here's what I did</p>
105
106 <ul>
107   <li>cd'ed into this snapshot view
108 ~p6258c/p6258c_SIMCQ00000392_intview/vobs/simdev/bin</li>
109
110   <li>Checked out a script named east.</li>
111
112   <li>cd'ed out of the snapshot view to my home directory.</li>
113 </ul>
114
115 <p>We now have a colocated snapshot view created on CC 6.0 and hosted by
116 seast1. The storage (my home directory) oddly enough is served by
117 cclinux...</p>
118
119 <ul>
120   <li>Moved the view database over to cclinux under it's gdviews
121 partition:
122
123 <div class=code><pre>
124 <font color="#ff6600"><b>Cclinux:</b></font><u>mv /home/p6258c/p6258c_SIMCQ00000392_intview/.view.stg \</u>
125 &gt; <u>/gdviews/p6258c/p6258c_SIMCQ00000392_intview.vws</u>
126 </pre></div>
127
128   <b>Note:</b>
129     <ul>
130       <li>In the above command we also renamed .view.stg -&gt;
131 &lt;viewname&gt;.vws.</li>
132       <li>We did a mv instead of cp. I suspect that if you are in the
133 snapshot view storage area and you perform a Clearcase operation,
134 cleartool will notice the .view.stg directory at the snapshot view's
135 root and not bother to attempt to contact the registry server to find
136 out where the view database is. Instead it just says "Well the view
137 database is right here". This would allow a disconnected, but colocated
138 snapshot view to be able to perform Clearcase operations while
139 disconnected.</li>
140     </ul>
141   </li>
142
143   <li>Reregistered the view:
144
145 <div class=code><pre>
146 <font color="#ff6600"><b>Cclinux:</b></font><u>ct register -view -replace -host cclinux \</u>
147 &gt; <u>-hpath /gdviews/p6258c/p6258c_SIMCQ00000392.vws \</u>
148 &gt; <u>/net/cclinux/gdviews/p6258c/p6258c_SIMCQ00000392.vws</u>
149 </pre></div>
150
151     <b>Note:</b>
152
153     <ul>
154       <li>The -host changed from seast1 -&gt; cclinux</li>
155
156       <li>The -hpath changed to be relative to /gdviews (where we moved
157 the .view.stg)</li>
158   </ul>
159
160   <li>Retaged the view:</li>
161
162 <div class=code><pre>
163 <font color="#ff6600"><b>Cclinux:</b></font><u>ct mktag -replace -view -tag p6258c_SIMCQ00000392_intview \</u>
164 &gt; <u>-host cclinux \</u>
165 &gt; <u>-gpath /net/cclinux/gdviews/p6258c/p6258c_SIMCQ00000392_intview.vws \</u>
166 &gt; </tt><u>/net/cclinux/gdviews/p6258c/p6258c_SIMCQ00000392_intview.vws</u>
167 </pre></div>
168     <b>Note:</b>
169   <ul>
170     <li>Again the -host changed from seast1 -&gt; cclinux</li>
171     <li>The -gpath changed to a global path to /gdviews<br>
172       <br>
173     </li>
174   </ul>
175   <li>Stop the view server:</li>
176
177 <div class=code><pre>
178 <font color="#ff6600"><b>Cclinux:</b></font><u>ct endview -server p6258c_SIMCQ00000392_intview</u>
179 </pre></div>
180   </li>
181
182   <li>Set the config spec to current since the compiled config spec
183 still thinks it's on the old server. Note this will involve a ct update
184 too. Also, we need to cd to the snapshot view storage area:</li>
185
186 <div class=code><pre>
187 <font color="#ff6600"><b>Cclinux:</b></font><u>cd ~/p6258c_SIMCQ00000392_intview</u>
188 <font color="#ff6600"><b>Cclinux:</b></font><u>ct setcs -current &gt; /dev/null 2&gt;&amp;1</u>
189 </ul>
190
191 <p>Now we have the following view:</p>
192
193 <div class=code><pre>
194 $ ct lsview -l -full -properties p6258c_SIMCQ00000392_intview
195   Tag: p6258c_SIMCQ00000392_intview
196    Global path: <b>/net/cclinux/gdviews/p6258c/p6258c_SIMCQ00000392_intview.vws</b>
197    Server host: <b>cclinux</b>
198    Region: cclinux
199    Active: NO
200    View tag uuid:90c8b0d3.d9c311dc.92fe.00:09:3d:14:f4:70
201   View on host: <b>cclinux</b>
202   View server access path:
203 /gdviews/p6258c/p6258c_SIMCQ00000392_intview.vws
204   View uuid: 90c8b0d3.d9c311dc.92fe.00:09:3d:14:f4:70
205   View attributes: snapshot,ucmview
206   View owner: rantest/p6258c
207
208   Created 2008-02-12T16:31:00-07 by p6258c.cclinux@ranlin04
209   Last modified 2008-03-28T14:32:44-07 by p6258c.cclinux@ranlin04
210   Last accessed 2008-03-28T14:32:44-07 by p6258c.cclinux@ranlin04
211   Last read of private data 2008-03-28T14:32:44-07 by
212 p6258c.cclinux@ranlin04
213   Last config spec update 2008-03-28T14:32:42-07 by
214 p6258c.cclinux@ranlin04
215   Last view private object update 2008-03-28T14:32:44-07 by
216 p6258c.cclinux@ranlin04
217   Text mode: unix
218   Properties: snapshot ucmview readwrite
219   Owner: rantest/p6258c : rwx (all)
220   Group: rantest/cclinux : r-x (read)
221   Other: : r-x (read)
222   Additional groups: rantest/east<br>
223
224 </pre></div>
225
226 <p>Which is clearly on cclinux now.</p>
227
228 <p>Further, we can see that east is still checked out, we can modify it and even unco thus showing that our newly relocated snapshot view on cclinux works, from seast1, like it did before:</p>
229
230 <div class=code><pre>
231 <font color="#3333ff"><b>[p6258c@seast1 p6258c]$</b></font> <u>cd p6258c_SIMCQ00000392_intview/vobs/simdev/bin</u>
232 <b><font color="#3333ff">[p6258c@seast1 bin]$</font></b> <u>ct ls east</u>
233   east@@/main/simdev_integration/east_scripts_build1_integration/CHECKEDOUT from
234 /main/simdev_integration/east_scripts_build1_integration/0               Rule: CHECKEDOUT
235   <b><font color="#3333ff">[p6258c@seast1 bin]$</font></b> <u>echo "A change" &gt;&gt; east</u>
236   <b><font color="#3333ff">[p6258c@seast1 bin]$</font></b> <u>ct unco east</u>
237   Save private copy of "east"?  [yes]
238   Private version of "east" saved in "east.keep".
239   Loading "vobs/simdev/bin/east" (353 bytes).
240   ClearTrigger removing empty branch
241 "/home/p6258c/p6258c_SIMCQ00000392_intview/vobs/simdev/bin/east@@/main/simdev_integration/east_scripts_build1_integration"...Updating
242 web view with
243 (/home/p6258c/p6258c_SIMCQ00000392_intview/vobs/simdev/bin/east)...
244   Loading "vobs/simdev/bin/east" (353 bytes).
245   Done loading "/vobs/simdev/bin/east" (1 objects, copied 0 KB).
246   Checkout cancelled for "east".
247   <b><font color="#3333ff">[p6258c@seast1 bin]$</font></b>
248 </pre></div>
249
250 <p>It would not be that difficult to cook up a script to migrate all snapshot views...</p>
251                            </div>
252                            <div id="more" class="entry-more">
253                               
254                            </div>
255                         </div>
256                         <p class="entry-footer">
257                            <span class="post-footers">Posted by  on March 28, 2008  3:44 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000702.html">Permalink</a>
258                         </p>
259                      </div>
260
261                      
262                      <div class="trackbacks">
263                         <h3 id="trackback" class="trackbacks-header">TrackBack</h3>
264                         <div id="trackbacks-info">
265                            <p>TrackBack URL for this entry:<br />http://defaria.com/mt/mt-tb.cgi/89</p>
266                         </div>
267                         <div class="trackbacks-content">
268                            
269                         </div>
270                      </div>
271                      
272
273                      
274                   </div>
275                </div>
276             </div>
277          </div>
278       </div>
279    </div>
280 </body>
281 </html>