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: View space/Locked stream</title>
14 <link rel="start" href="http://defaria.com/blogs/Status/" title="Home" />
15 <link rel="prev" href="http://defaria.com/blogs/Status/archives/000649.html" title="Removed views/documented customizing Unix environments" />
16 <link rel="next" href="http://defaria.com/blogs/Status/archives/000652.html" title="Help Desk Cleanup" />
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/000650.html"
24 trackback:ping="http://defaria.com/mt/mt-tb.cgi/38"
25 dc:title="View space/Locked stream"
26 dc:identifier="http://defaria.com/blogs/Status/archives/000650.html"
27 dc:subject="General Dynamics"
28 dc:description=" Resolved a ticket where the user was unable to deliver due to lock on activity - which is really a lock on the stream Did an analysis of view disk space usage Assisted Kirk and Tom with Clearcase 7.0.1.0..."
30 dc:date="2007-07-11T17:11:16-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/000649.html">« Removed views/documented customizing Unix environments</a> |
57 <a href="http://defaria.com/blogs/Status/">Main</a>
58 | <a href="http://defaria.com/blogs/Status/archives/000652.html">Help Desk Cleanup »</a>
62 <div class="entry" id="entry-650">
63 <h3 class="entry-header">View space/Locked stream</h3>
64 <div class="entry-content">
65 <div class="entry-body">
67 <li>Resolved a ticket where the user was unable to deliver due to lock on activity - which is really a lock on the stream</li>
69 <li>Did an analysis of view disk space usage</li>
71 <li>Assisted Kirk and Tom with Clearcase 7.0.1.0 installation on Linux</li>
73 <li>Fixed problem with ssh public key authentication</li>
76 <div id="more" class="entry-more">
79 <p>I looked into the disk space usage on the view2 server (partitions view2a, view2b and view2c0 and find the following:</p>
81 <img src="/blogs/images/view2a.jpg"><br>
82 <img src="/blogs/images/view2a_list.jpg"><br>
83 <img src="/blogs/images/view2b.jpg"><br>
84 <img src="/blogs/images/view2b_list.jpg"><br>
85 <img src="/blogs/images/view2c.jpg"><br>
86 <img src="/blogs/images/view2c_list.jpg"><br>
88 <h2>View Policy and view_db.crs_file size</h2>
90 <p>When you use use dynamic view and <tt>clearmake(1)</tt> to utilize <i>build
91 avoidance</i> by <i>winking </i>in <i>derived objects</i>, Clearcase
92 stores <i>configuration records</i> in the view's storage directory
97 <p><small class="AllCaps Text"><b>CONFIGURATION RECORDS.</b></small>
98 The file <b>view_db.crs_file</b> in the <b>.s</b> subdirectory is actually part of the view's database, as described inthe following section. It is the part that stores the configuration records of derived objects built in the view.</p>
102 <p><b>view_db.crs_file</b></p>
104 <p>Stores the configuration records of nonshareable and unshared derived objects. This file resides in subdirectory <b>.s</b> of the view storage directory, allowing it to be remote.</p>
106 <p>Compressed copies of the configuration records are cached in a view-private file, <b>.cmake.state</b>, located in the directory that was current when the build started. This speeds up configuration lookup during subsequent builds in the view.</p>
110 <p>The view_db.crs_file can get fairly large over time. This is another reason why Rational says that "views should be used like Kleenex".</p>
112 <h2>Recovering View Space</h2>
115 href="http://members.cox.net/ejostrander/clearteam/cc_howto.html">Eric J. Ostrander's ClearCase / ClearQuest pages</a>:</p>
119 <h3> Release view database disk space back to the system.</h3>
121 <p>As data is collected in a view, the view's database increases in size. Commands such as view_scrubber that remove DOs from a view merely release logical space inside the view's database. That is, the disk space taken by the database does not shrink. This is true for the <i>view-storage</i>/db/* files and the <i>view-storage</i>/.s/view_db.crs_file file (which contains the derived object configuration records). To actually release that
122 space back to the system, one needs to run recoverview twice on that view. Normally recoverview is only needed when a VOB is no longer available and the view's view-private files that once belonged to the VOB are now stranded. However, it has the added benefit that it calls reformatview, which in turn cleans up the database.</p>
124 <p>The recoverview must be run twice. The first pass releases any unused space in the database back to the system and cleans up CRs no longer attached to a DO. The second pass releases the now newly unused space (freed up in the first pass) back to the system. A third run has no affect.</p>
126 <p>An attempt to run reformatview by itself (which is actually the only part that is really needed) will result in the message "reformat not needed for view". Unfortunately, reformatview does not have a -force option, but recoverview does.</p>
128 <div class=code><pre>
129 # ct recoverview -force -tag <i>view-tag</i>
130 # ct recoverview -force -tag <i>view-tag</i>
133 <p><b>NOTE:</b> Running recoverview does not affect view-private files.</p>
135 <p><b><font color="red">WARNING!</font></b> Rational recommends not being
136 anywhere in the <i>view-storage</i>area during the recoverview/reformatview (reason unknown).</p>
139 <h3>Clearcase 7.0.1.0 Installation on Linux</h3>
141 <p>In installing Clearcase 7.0.1.0 on Linux, Kirk and Tom were having problems getting it set up as a registry server. One problem was that they incorrectly named the config file rgy_srv.conf instead of rgy_svr.conf (I always get those wrong myself). There also seems to be an issue where there are two directories, both under /var/adm/rational/clearcase, one named rgy (where the registry is stored) and one named config (where other config files are stored). And there are additional config files related to the registry, rgy_hosts.conf and rgy_region.conf. As it seems to turn out those three files (rgy_svr.conf, rgy_hosts.conf and rgy_region.conf) need to be in both the rgy and config directories under /var/adm/rational/clearcase. Is this new for 7.0.1.0?</p>
143 <p>Turns out I was mistaken. While I was working on this so was Kirk. So our actions overlapped and effected each other. The real thing is that these rgy_*.conf files rightfully moved from the rgy directory to the conf directory for 7.0.</p>
146 <p class="entry-footer">
147 <span class="post-footers">Posted by on July 11, 2007 5:11 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000650.html">Permalink</a>
152 <div class="trackbacks">
153 <h3 id="trackback" class="trackbacks-header">TrackBack</h3>
154 <div id="trackbacks-info">
155 <p>TrackBack URL for this entry:<br />http://defaria.com/mt/mt-tb.cgi/38</p>
157 <div class="trackbacks-content">