Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / 000515.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: Stglocs/replicating perftest</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/000514.html" title="Getting log_activity/stats and pulse to work" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/000517.html" title="Clearcase Merging/CQ Time Stamp problem/CQ Help problem" />
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/000514.html">&laquo; Getting log_activity/stats and pulse to work</a> |
42                         <a href="http://defaria.com/blogs/Status/">Main</a>
43                         | <a href="http://defaria.com/blogs/Status/archives/000517.html">Clearcase Merging/CQ Time Stamp problem/CQ Help problem &raquo;</a>
44                      </p>
45
46                      <a id="a000515"></a>
47                      <div class="entry" id="entry-515">
48                         <h3 class="entry-header">Stglocs/replicating perftest</h3>
49                         <div class="entry-content">
50                            <div class="entry-body">
51                               <ul>
52   <li>Investigated stglocs</li>
53
54   <li>Replicated /vobs/perftest and set up log_activity, stats and pulse for all of:</li>
55     <ul>
56       <li>ccase-rmna-3</li>
57
58       <li>ccase-sj1-1</li>
59
60       <li>ccase-sj1-2</li>
61
62       <li>ccase-irva-2</li>
63     </ul>
64 </ul>
65                            </div>
66                            <div id="more" class="entry-more">
67                               <p>Chris, if you can spare a Windows machine to host the views (meaning to run the view_server processes on) then I believe the following stgloc would be your best answer:</p>
68
69 <div class="code"><pre>
70 $ your_filer=&lt;your_filer&gt;
71 $ your_share=&lt;your_share&gt;
72 $ your_windows_view_server=&lt;your_windows_view_server&gt;
73 $ p=\\\\$your_filer\\$your_share\\viewstore
74 $ cleartool mkstgloc -view -force -host $your_windows_view_server \
75 &gt; -hpath $p -gpath $p viewstore $p
76 </pre></div>
77
78 <p>This would create a "stgloc" which can be used in mkview:</p>
79
80 <div class="code"><pre>
81 $ cleartool mkview -tag &lt;tag&gt; -stgloc viewstore (or -auto)
82 </pre></div>
83
84 <p>Users can also select this stgloc in the Clearcase Explorer GUI. Views will be placed on $your_filer and served by $your_windows_view_server (meaning view_server processes will run there and that that machine should have a static IP).</p>
85
86 <p>Views can be cross tagged into the Linux region with:</p>
87
88 <div class="code"><pre>
89 $ cleartool mktag -view -tag defaria2 -host 10.136.65.5 -hpath \\\\fs-rmna-01\\ccstgloc-cabu\\viewstore\\BROADCOM\\adefaria\\defaria2.vws -gpath /projects/ccstgloc-cabu/viewstore/BROADCOM/adefaria/defaria2.vws
90 /projects/ccstgloc-cabu/viewstore/BROADCOM/adefaria/defaria2.vws
91 cleartool: Warning: Storage pathname "/projects/ccstgloc-cabu/viewstore/BROADCOM/adefaria/defaria2.vws"
92 may not reside on host "10.136.65.5".
93 </pre></div>
94
95 <p><b>Notes:</b></p>
96
97 <ul>
98   <li>I specified host as an IP address because the test "server" I was using was using DHCP (IOW nslookup pcrmna-ccrmt02 doesn't work from Unix)</li>
99
100   <li>Backslashes are doubled because bash collapses them</li>
101
102   <li>The host path (-hpath) must be a valid path <b>from the host's point of view</b>. The host (pcrmna-ccrmt02 in this case) is a Windows box thus a UNC style path is used for -hpath.</li>
103
104   <li>The global path (-gpath) must be a valid path <b>from the client's point of view</b>. Since we are cross tagging to Linux the path is a Unix style path (in the automount map) of /projects/ccstgloc-cabu/viewstore... You're directory under /projects would be different.</li>
105
106   <li>View creation and serving on Windows machines is Windows domain aware. What they do is create a directory for the domain (e.g. BROADCOM) then a directory for the user (e.g. adefaria) then the view directory is created (defaria2) with an  appended .vws. This is Windows specific behavior, hence you see and additional
107 .../BROADCOM/adefaria/defaria2.vws.</li>
108
109   <li>You need not use the name or directory "viewstore". This is just an example. I've seen others user the directory name of say vws. Also the stgloc need not be named viewstore - you might use bt-filer-views or whatever.</li>
110 </ul>
111
112 <p>Now you can similarly create a Unix oriented stgloc if you want:</p>
113
114 <div class="code"><pre>
115 $ your_share=&lt;your_share&gt;
116 $ your_linux_view_server=&lt;your_linux_view_server&gt;
117 $ p=/projects/$your_share/viewstore
118 $ cleartool <span>mkstgloc</span> -view -force -host $your_linux_view_server \
119 &gt; -hpath $p -gpath $p viewstore $p
120 </pre></div>
121
122 <p>And then your users can cross tag them into the Windows region using the Region Synchronize tool (Note: It will fail initially as it cannot determine what the UNC path needs to be so the users will have to specify that) or by the command line:</p>
123
124 <div class="code"><pre>
125 $ your_filer=&lt;your_filer&gt;
126 $ your_share=&lt;your_share&gt;
127 $ your_linux_view_server=&lt;your_windows_linux_server&gt;
128 $ p=\\\\$your_filer\\$your_share\\viewstore
129 $ cleartool mktag -view -tag adefaria_linux -host $your_linux_view_server \
130 &gt; -hpath /projects/$your_share/viewstore/adefaria_linux.vws \
131 &gt; -gpath $p\\adefaria_linux.vws $p\\adefaria_linux.vws
132 </pre></div>
133
134 <p>The advantages here are:</p>
135 <ul>
136   <li>Your Linux server bears the brunt of serving views since the view_server processes run there</li>
137 </ul>
138
139 <p>The disadvantages are:</p>
140
141 <ul>
142   <li>Users can't create views using this stgloc from Windows</li>
143
144   <li>Users must cross tag views to their Windows region</li>
145
146   <li>Windows users don't like the command line.</li>
147 </ul>
148
149                            </div>
150                         </div>
151                         <p class="entry-footer">
152                            <span class="post-footers">Posted by  on January 11, 2006  3:01 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000515.html">Permalink</a>
153                         </p>
154                      </div>
155
156                      
157
158                      
159                   </div>
160                </div>
161             </div>
162          </div>
163       </div>
164    </div>
165 </body>
166 </html>