2 <html lang="en-us" itemscope itemtype="http://schema.org/Article">
5 <meta name="description" content="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...">
6 <meta name="generator" content="Movable Type 5.2.3">
7 <title>Migrating colocated views from 6.0 -> 7.0 - Status</title>
8 <link rel="alternate" type="application/atom+xml" title="Recent Entries" href="http://defaria.com/blogs/Status/atom.xml">
9 <link rel="canonical" href="http://defaria.com/blogs/Status/2008/03/migrating-coloc.html">
10 <meta name="viewport" content="width=device-width,initial-scale=1">
11 <link rel="stylesheet" href="http://defaria.com/blogs/Status/styles.css">
13 <link rel="stylesheet" href="http://defaria.com/blogs/Status/styles_ie.css">
14 <script src="/mt/mt-static/support/theme_static/rainier/js/html5shiv.js"></script>
17 <link rel="start" href="http://defaria.com/blogs/Status/">
19 <link rel="prev" href="http://defaria.com/blogs/Status/2008/03/east-automation.html" title="EAST Automation">
20 <link rel="next" href="http://defaria.com/blogs/Status/2008/04/rantest-092.html" title="Rantest 0.9.2">
21 <!-- Open Graph Protocol -->
22 <meta property="og:type" content="article">
23 <meta property="og:locale" content="en-us">
24 <meta property="og:title" content="Migrating colocated views from 6.0 -> 7.0">
25 <meta property="og:url" content="http://defaria.com/blogs/Status/2008/03/migrating-coloc.html">
26 <meta property="og:description" content="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...">
27 <meta property="og:site_name" content="Status">
28 <meta property="og:image" content="/mt/mt-static/support/theme_static/rainier/img/siteicon-sample.png">
30 <meta itemprop="description" content="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...">
31 <link itemprop="url" href="http://defaria.com/blogs/Status/2008/03/migrating-coloc.html">
32 <link itemprop="image" href="/mt/mt-static/support/theme_static/rainier/img/siteicon-sample.png">
37 <div id="container-inner">
38 <header id="header" role="banner">
39 <div id="header-inner">
40 <div id="header-content">
42 <a href="http://defaria.com/blogs/Status/">
51 <nav role="navigation">
53 <li><a href="http://defaria.com/blogs/Status/">Home</a></li>
62 <div id="content-inner">
63 <ul class="breadcrumb breadcrumb-list">
64 <li class="breadcrumb-list-item"><a href="http://defaria.com/blogs/Status/">Home</a></li>
65 <li class="breadcrumb-list-item">Migrating colocated views from 6.0 -> 7.0</li>
67 <div id="individual-main" class="main" role="main">
68 <article id="entry-1949" class="entry entry-asset asset hentry">
69 <div class="asset-header">
70 <h2 itemprop="name" class="asset-name entry-title">Migrating colocated views from 6.0 -> 7.0</h2>
71 <footer class="asset-meta">
72 <ul class="asset-meta-list">
73 <li class="asset-meta-list-item">Posted on <time datetime="2008-03-28T15:44:47-08:00" itemprop="datePublished">March 28, 2008</time></li>
74 <li class="asset-meta-list-item">by <span class="author entry-author vcard"></span></li>
77 <li class="asset-meta-list-item">in <a itemprop="articleSection" rel="tag" href="http://defaria.com/blogs/Status/general-dynamics/">General Dynamics</a></li>
83 <div class="entry-content asset-content" itemprop="articleBody">
84 <p>I performed a test of my snapshot view p6258c_SIMCQ00000392_intview.
85 This view is a colocated view and exists in my home directory
86 (~p6258c). Clearcase administration of the registry can be tricky - you
87 need to get several things correct before it will work.</p>
89 <p>Here's what the view looks like:</p>
92 $ ct lsview -l -full -properties
93 p6258c_SIMCQ00000392_intview
94 Tag: p6258c_SIMCQ00000392_intview
95 Global path: <b>/net/cclinux/export/home/p6258c/p6258c_SIMCQ00000392_intview/.view.stg</b>
96 Server host: <b>seast1</b>
99 View tag uuid:90c8b0d3.d9c311dc.92fe.00:09:3d:14:f4:70
100 View on host: <b>seast1</b>
101 View server access path: <b>/home/p6258c/p6258c_SIMCQ00000392_intview/.view.stg</b>
102 View uuid: 90c8b0d3.d9c311dc.92fe.00:09:3d:14:f4:70
103 View attributes: snapshot,ucmview
104 View owner: rantest/p6258c
106 Created 2008-02-12T16:31:00-07 by p6258c.cclinux@ranlin04
107 Last modified 2008-03-28T13:53:02-07 by p6258c.cclinux@raneast
108 Last accessed 2008-03-28T13:53:02-07 by p6258c.cclinux@raneast
109 Last read of private data 2008-03-28T13:53:02-07 by
110 p6258c.cclinux@raneast
111 Last config spec update 2008-03-28T13:22:18-07 by
112 p6258c.cclinux@raneast
113 Last view private object update 2008-03-28T13:53:02-07 by
114 p6258c.cclinux@raneastText mode: unix
115 Properties: snapshot ucmview readwrite
116 Owner: rantest/p6258c : rwx (all)
117 Group: rantest/cclinux : r-x (read)
119 Additional groups: rantest/east
122 <p>Here's what I did</p>
125 <li>cd'ed into this snapshot view
126 ~p6258c/p6258c_SIMCQ00000392_intview/vobs/simdev/bin</li>
128 <li>Checked out a script named east.</li>
130 <li>cd'ed out of the snapshot view to my home directory.</li>
133 <p>We now have a colocated snapshot view created on CC 6.0 and hosted by
134 seast1. The storage (my home directory) oddly enough is served by
138 <li>Moved the view database over to cclinux under it's gdviews
141 <div class=code><pre>
142 <font color="#ff6600"><b>Cclinux:</b></font><u>mv /home/p6258c/p6258c_SIMCQ00000392_intview/.view.stg \</u>
143 > <u>/gdviews/p6258c/p6258c_SIMCQ00000392_intview.vws</u>
148 <li>In the above command we also renamed .view.stg ->
149 <viewname>.vws.</li>
150 <li>We did a mv instead of cp. I suspect that if you are in the
151 snapshot view storage area and you perform a Clearcase operation,
152 cleartool will notice the .view.stg directory at the snapshot view's
153 root and not bother to attempt to contact the registry server to find
154 out where the view database is. Instead it just says "Well the view
155 database is right here". This would allow a disconnected, but colocated
156 snapshot view to be able to perform Clearcase operations while
161 <li>Reregistered the view:
163 <div class=code><pre>
164 <font color="#ff6600"><b>Cclinux:</b></font><u>ct register -view -replace -host cclinux \</u>
165 > <u>-hpath /gdviews/p6258c/p6258c_SIMCQ00000392.vws \</u>
166 > <u>/net/cclinux/gdviews/p6258c/p6258c_SIMCQ00000392.vws</u>
172 <li>The -host changed from seast1 -> cclinux</li>
174 <li>The -hpath changed to be relative to /gdviews (where we moved
178 <li>Retaged the view:</li>
180 <div class=code><pre>
181 <font color="#ff6600"><b>Cclinux:</b></font><u>ct mktag -replace -view -tag p6258c_SIMCQ00000392_intview \</u>
182 > <u>-host cclinux \</u>
183 > <u>-gpath /net/cclinux/gdviews/p6258c/p6258c_SIMCQ00000392_intview.vws \</u>
184 > </tt><u>/net/cclinux/gdviews/p6258c/p6258c_SIMCQ00000392_intview.vws</u>
188 <li>Again the -host changed from seast1 -> cclinux</li>
189 <li>The -gpath changed to a global path to /gdviews<br>
193 <li>Stop the view server:</li>
195 <div class=code><pre>
196 <font color="#ff6600"><b>Cclinux:</b></font><u>ct endview -server p6258c_SIMCQ00000392_intview</u>
200 <li>Set the config spec to current since the compiled config spec
201 still thinks it's on the old server. Note this will involve a ct update
202 too. Also, we need to cd to the snapshot view storage area:</li>
204 <div class=code><pre>
205 <font color="#ff6600"><b>Cclinux:</b></font><u>cd ~/p6258c_SIMCQ00000392_intview</u>
206 <font color="#ff6600"><b>Cclinux:</b></font><u>ct setcs -current > /dev/null 2>&1</u>
209 <p>Now we have the following view:</p>
211 <div class=code><pre>
212 $ ct lsview -l -full -properties p6258c_SIMCQ00000392_intview
213 Tag: p6258c_SIMCQ00000392_intview
214 Global path: <b>/net/cclinux/gdviews/p6258c/p6258c_SIMCQ00000392_intview.vws</b>
215 Server host: <b>cclinux</b>
218 View tag uuid:90c8b0d3.d9c311dc.92fe.00:09:3d:14:f4:70
219 View on host: <b>cclinux</b>
220 View server access path:
221 /gdviews/p6258c/p6258c_SIMCQ00000392_intview.vws
222 View uuid: 90c8b0d3.d9c311dc.92fe.00:09:3d:14:f4:70
223 View attributes: snapshot,ucmview
224 View owner: rantest/p6258c
226 Created 2008-02-12T16:31:00-07 by p6258c.cclinux@ranlin04
227 Last modified 2008-03-28T14:32:44-07 by p6258c.cclinux@ranlin04
228 Last accessed 2008-03-28T14:32:44-07 by p6258c.cclinux@ranlin04
229 Last read of private data 2008-03-28T14:32:44-07 by
230 p6258c.cclinux@ranlin04
231 Last config spec update 2008-03-28T14:32:42-07 by
232 p6258c.cclinux@ranlin04
233 Last view private object update 2008-03-28T14:32:44-07 by
234 p6258c.cclinux@ranlin04
236 Properties: snapshot ucmview readwrite
237 Owner: rantest/p6258c : rwx (all)
238 Group: rantest/cclinux : r-x (read)
240 Additional groups: rantest/east<br>
244 <p>Which is clearly on cclinux now.</p>
246 <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>
248 <div class=code><pre>
249 <font color="#3333ff"><b>[p6258c@seast1 p6258c]$</b></font> <u>cd p6258c_SIMCQ00000392_intview/vobs/simdev/bin</u>
250 <b><font color="#3333ff">[p6258c@seast1 bin]$</font></b> <u>ct ls east</u>
251 east@@/main/simdev_integration/east_scripts_build1_integration/CHECKEDOUT from
252 /main/simdev_integration/east_scripts_build1_integration/0 Rule: CHECKEDOUT
253 <b><font color="#3333ff">[p6258c@seast1 bin]$</font></b> <u>echo "A change" >> east</u>
254 <b><font color="#3333ff">[p6258c@seast1 bin]$</font></b> <u>ct unco east</u>
255 Save private copy of "east"? [yes]
256 Private version of "east" saved in "east.keep".
257 Loading "vobs/simdev/bin/east" (353 bytes).
258 ClearTrigger removing empty branch
259 "/home/p6258c/p6258c_SIMCQ00000392_intview/vobs/simdev/bin/east@@/main/simdev_integration/east_scripts_build1_integration"...Updating
261 (/home/p6258c/p6258c_SIMCQ00000392_intview/vobs/simdev/bin/east)...
262 Loading "vobs/simdev/bin/east" (353 bytes).
263 Done loading "/vobs/simdev/bin/east" (1 objects, copied 0 KB).
264 Checkout cancelled for "east".
265 <b><font color="#3333ff">[p6258c@seast1 bin]$</font></b>
268 <p>It would not be that difficult to cook up a script to migrate all snapshot views...</p>
271 <nav class="page-navigation entry-navigation pagination content-nav">
272 <ul class="page-navigation-list">
274 <li class="page-navigation-list-item page-navigation-prev"><a rel="prev" href="http://defaria.com/blogs/Status/2008/03/east-automation.html" title="EAST Automation">Previous entry</a></li>
277 <li class="page-navigation-list-item page-navigation-next"><a rel="next" href="http://defaria.com/blogs/Status/2008/04/rantest-092.html" title="Rantest 0.9.2">Next entry</a></li>
282 <aside id="zenback" class="zenback feedback">
283 Please paste Zenback script code here.
290 <aside class="widgets related" role="complementary">
291 <nav class="widget-search widget">
292 <div class="widget-content">
293 <form method="get" id="search" action="http://defaria.com/mt/mt-search.cgi">
295 <input type="text" name="search" value="" placeholder="Search...">
297 <input type="hidden" name="IncludeBlogs" value="8">
299 <input type="hidden" name="limit" value="20">
300 <button type="submit" name="button">
301 <img alt="Search" src="/mt/mt-static/support/theme_static/rainier/img/search-icon.png">
307 <nav class="widget-archive-category widget">
308 <h3 class="widget-header">Categories</h3>
309 <div class="widget-content">
312 <ul class="widget-list">
315 <li class="widget-list-item"><a href="http://defaria.com/blogs/Status/ameriquest/">Ameriquest (99)</a>
323 <li class="widget-list-item"><a href="http://defaria.com/blogs/Status/audience/">Audience (3)</a>
331 <li class="widget-list-item"><a href="http://defaria.com/blogs/Status/broadcom/">Broadcom (76)</a>
339 <li class="widget-list-item"><a href="http://defaria.com/blogs/Status/gpdb/">GPDB (35)</a>
347 <li class="widget-list-item"><a href="http://defaria.com/blogs/Status/general-dynamics/">General Dynamics (61)</a>
355 <li class="widget-list-item"><a href="http://defaria.com/blogs/Status/general-electric/">General Electric (13)</a>
363 <li class="widget-list-item"><a href="http://defaria.com/blogs/Status/hewlett-packard/">Hewlett Packard (13)</a>
371 <li class="widget-list-item"><a href="http://defaria.com/blogs/Status/lynuxworks/">LynuxWorks (162)</a>
379 <li class="widget-list-item"><a href="http://defaria.com/blogs/Status/pqa/">PQA (35)</a>
387 <li class="widget-list-item"><a href="http://defaria.com/blogs/Status/salira/">Salira (79)</a>
395 <li class="widget-list-item"><a href="http://defaria.com/blogs/Status/tellabs/">Tellabs (2)</a>
403 <li class="widget-list-item"><a href="http://defaria.com/blogs/Status/texas-instruments/">Texas Instruments (31)</a>
415 <nav class="widget-archive-dropdown widget">
416 <h3 class="widget-header">Archives</h3>
417 <div class="widget-content">
419 <option>Select a Month...</option>
421 <option value="http://defaria.com/blogs/Status/2016/02/">February 2016</option>
425 <option value="http://defaria.com/blogs/Status/2014/09/">September 2014</option>
429 <option value="http://defaria.com/blogs/Status/2014/04/">April 2014</option>
433 <option value="http://defaria.com/blogs/Status/2014/03/">March 2014</option>
437 <option value="http://defaria.com/blogs/Status/2013/02/">February 2013</option>
441 <option value="http://defaria.com/blogs/Status/2012/09/">September 2012</option>
445 <option value="http://defaria.com/blogs/Status/2012/08/">August 2012</option>
449 <option value="http://defaria.com/blogs/Status/2012/05/">May 2012</option>
453 <option value="http://defaria.com/blogs/Status/2012/04/">April 2012</option>
457 <option value="http://defaria.com/blogs/Status/2012/02/">February 2012</option>
461 <option value="http://defaria.com/blogs/Status/2012/01/">January 2012</option>
465 <option value="http://defaria.com/blogs/Status/2011/10/">October 2011</option>
469 <option value="http://defaria.com/blogs/Status/2011/07/">July 2011</option>
473 <option value="http://defaria.com/blogs/Status/2010/09/">September 2010</option>
477 <option value="http://defaria.com/blogs/Status/2010/08/">August 2010</option>
481 <option value="http://defaria.com/blogs/Status/2010/04/">April 2010</option>
485 <option value="http://defaria.com/blogs/Status/2010/03/">March 2010</option>
489 <option value="http://defaria.com/blogs/Status/2010/02/">February 2010</option>
493 <option value="http://defaria.com/blogs/Status/2009/05/">May 2009</option>
497 <option value="http://defaria.com/blogs/Status/2009/04/">April 2009</option>
501 <option value="http://defaria.com/blogs/Status/2008/07/">July 2008</option>
505 <option value="http://defaria.com/blogs/Status/2008/05/">May 2008</option>
509 <option value="http://defaria.com/blogs/Status/2008/04/">April 2008</option>
513 <option value="http://defaria.com/blogs/Status/2008/03/">March 2008</option>
517 <option value="http://defaria.com/blogs/Status/2008/02/">February 2008</option>
521 <option value="http://defaria.com/blogs/Status/2008/01/">January 2008</option>
525 <option value="http://defaria.com/blogs/Status/2007/12/">December 2007</option>
529 <option value="http://defaria.com/blogs/Status/2007/11/">November 2007</option>
533 <option value="http://defaria.com/blogs/Status/2007/10/">October 2007</option>
537 <option value="http://defaria.com/blogs/Status/2007/09/">September 2007</option>
541 <option value="http://defaria.com/blogs/Status/2007/08/">August 2007</option>
545 <option value="http://defaria.com/blogs/Status/2007/07/">July 2007</option>
549 <option value="http://defaria.com/blogs/Status/2007/06/">June 2007</option>
553 <option value="http://defaria.com/blogs/Status/2007/05/">May 2007</option>
557 <option value="http://defaria.com/blogs/Status/2007/04/">April 2007</option>
561 <option value="http://defaria.com/blogs/Status/2007/03/">March 2007</option>
565 <option value="http://defaria.com/blogs/Status/2007/01/">January 2007</option>
569 <option value="http://defaria.com/blogs/Status/2006/12/">December 2006</option>
573 <option value="http://defaria.com/blogs/Status/2006/11/">November 2006</option>
577 <option value="http://defaria.com/blogs/Status/2006/10/">October 2006</option>
581 <option value="http://defaria.com/blogs/Status/2006/09/">September 2006</option>
585 <option value="http://defaria.com/blogs/Status/2006/07/">July 2006</option>
589 <option value="http://defaria.com/blogs/Status/2006/06/">June 2006</option>
593 <option value="http://defaria.com/blogs/Status/2006/05/">May 2006</option>
597 <option value="http://defaria.com/blogs/Status/2006/04/">April 2006</option>
601 <option value="http://defaria.com/blogs/Status/2006/03/">March 2006</option>
605 <option value="http://defaria.com/blogs/Status/2006/02/">February 2006</option>
609 <option value="http://defaria.com/blogs/Status/2006/01/">January 2006</option>
613 <option value="http://defaria.com/blogs/Status/2005/12/">December 2005</option>
617 <option value="http://defaria.com/blogs/Status/2005/11/">November 2005</option>
621 <option value="http://defaria.com/blogs/Status/2005/10/">October 2005</option>
625 <option value="http://defaria.com/blogs/Status/2005/09/">September 2005</option>
629 <option value="http://defaria.com/blogs/Status/2005/08/">August 2005</option>
633 <option value="http://defaria.com/blogs/Status/2005/07/">July 2005</option>
637 <option value="http://defaria.com/blogs/Status/2005/06/">June 2005</option>
641 <option value="http://defaria.com/blogs/Status/2005/05/">May 2005</option>
645 <option value="http://defaria.com/blogs/Status/2005/04/">April 2005</option>
649 <option value="http://defaria.com/blogs/Status/2005/03/">March 2005</option>
653 <option value="http://defaria.com/blogs/Status/2005/02/">February 2005</option>
657 <option value="http://defaria.com/blogs/Status/2005/01/">January 2005</option>
661 <option value="http://defaria.com/blogs/Status/2004/12/">December 2004</option>
665 <option value="http://defaria.com/blogs/Status/2004/09/">September 2004</option>
669 <option value="http://defaria.com/blogs/Status/2004/08/">August 2004</option>
673 <option value="http://defaria.com/blogs/Status/2004/07/">July 2004</option>
677 <option value="http://defaria.com/blogs/Status/2004/06/">June 2004</option>
681 <option value="http://defaria.com/blogs/Status/2004/05/">May 2004</option>
685 <option value="http://defaria.com/blogs/Status/2004/04/">April 2004</option>
689 <option value="http://defaria.com/blogs/Status/2004/03/">March 2004</option>
693 <option value="http://defaria.com/blogs/Status/2004/02/">February 2004</option>
697 <option value="http://defaria.com/blogs/Status/2004/01/">January 2004</option>
701 <option value="http://defaria.com/blogs/Status/2003/12/">December 2003</option>
705 <option value="http://defaria.com/blogs/Status/2003/11/">November 2003</option>
713 <div class="widget-syndication widget section">
714 <div class="widget-content">
715 <p><img src="http://defaria.com/mt/mt-static/images/status_icons/feed.gif" alt="Subscribe to feed" width="9" height="9" /> <a href="http://defaria.com/blogs/Status/atom.xml">Subscribe to this blog's feed</a></p>
723 <footer id="footer" role="contentinfo">
724 <div id="footer-inner">
725 <div id="footer-content">
726 <nav role="navigation">
728 <li><a href="http://defaria.com/blogs/Status/">Home</a></li>
734 <p class="license">© Copyright 2016.</p>
735 <p class="poweredby">Powered by <a href="http://www.movabletype.org/">Movable Type</a></p>
741 <script src="http://defaria.com/mt/mt-static/jquery/jquery.min.js"></script>
742 <script src="http://defaria.com/blogs/Status/mt-theme-scale2.js"></script>