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">
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="generator" content="Movable Type 5.2.3" />
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" />
12 <title>Status for Andrew DeFaria: Migrating colocated views from 6.0 -> 7.0</title>
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" />
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/">
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 -> 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..."
30 dc:date="2008-03-28T15:44:47-06:00" />
37 <script type="text/javascript" src="http://defaria.com/blogs/Status/mt-site.js"></script>
39 <body class="layout-one-column" onload="individualArchivesOnLoad(commenter_name)">
41 <div id="container-inner" class="pkg">
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>
51 <div id="pagebody-inner" class="pkg">
53 <div id="alpha-inner" class="pkg">
55 <p class="content-nav">
56 <a href="http://defaria.com/blogs/Status/archives/000701.html">« 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 »</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>
71 <p>Here's what the view looks like:</p>
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>
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
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)
101 Additional groups: rantest/east
104 <p>Here's what I did</p>
107 <li>cd'ed into this snapshot view
108 ~p6258c/p6258c_SIMCQ00000392_intview/vobs/simdev/bin</li>
110 <li>Checked out a script named east.</li>
112 <li>cd'ed out of the snapshot view to my home directory.</li>
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
120 <li>Moved the view database over to cclinux under it's gdviews
123 <div class=code><pre>
124 <font color="#ff6600"><b>Cclinux:</b></font><u>mv /home/p6258c/p6258c_SIMCQ00000392_intview/.view.stg \</u>
125 > <u>/gdviews/p6258c/p6258c_SIMCQ00000392_intview.vws</u>
130 <li>In the above command we also renamed .view.stg ->
131 <viewname>.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
143 <li>Reregistered the view:
145 <div class=code><pre>
146 <font color="#ff6600"><b>Cclinux:</b></font><u>ct register -view -replace -host cclinux \</u>
147 > <u>-hpath /gdviews/p6258c/p6258c_SIMCQ00000392.vws \</u>
148 > <u>/net/cclinux/gdviews/p6258c/p6258c_SIMCQ00000392.vws</u>
154 <li>The -host changed from seast1 -> cclinux</li>
156 <li>The -hpath changed to be relative to /gdviews (where we moved
160 <li>Retaged the view:</li>
162 <div class=code><pre>
163 <font color="#ff6600"><b>Cclinux:</b></font><u>ct mktag -replace -view -tag p6258c_SIMCQ00000392_intview \</u>
164 > <u>-host cclinux \</u>
165 > <u>-gpath /net/cclinux/gdviews/p6258c/p6258c_SIMCQ00000392_intview.vws \</u>
166 > </tt><u>/net/cclinux/gdviews/p6258c/p6258c_SIMCQ00000392_intview.vws</u>
170 <li>Again the -host changed from seast1 -> cclinux</li>
171 <li>The -gpath changed to a global path to /gdviews<br>
175 <li>Stop the view server:</li>
177 <div class=code><pre>
178 <font color="#ff6600"><b>Cclinux:</b></font><u>ct endview -server p6258c_SIMCQ00000392_intview</u>
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>
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 > /dev/null 2>&1</u>
191 <p>Now we have the following view:</p>
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>
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
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
218 Properties: snapshot ucmview readwrite
219 Owner: rantest/p6258c : rwx (all)
220 Group: rantest/cclinux : r-x (read)
222 Additional groups: rantest/east<br>
226 <p>Which is clearly on cclinux now.</p>
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>
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" >> 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
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>
250 <p>It would not be that difficult to cook up a script to migrate all snapshot views...</p>
252 <div id="more" class="entry-more">
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>
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>
267 <div class="trackbacks-content">