Monday, September 24, 2007

Fix Views after Upgrading ClearCase Client

After upgrading ClearCase client from 2003.6 to 7, my local snapshot view report the following error when accessing it.

C:\ccase\views\qinl_rel14.0>cleartool update
cleartool: Error: Operation "view_get_prop(VIEW_PROP_WEBVIEW)" failed: view storage directory or control files unavailable --
additional information may be present in the view server host's view log.
cleartool: Warning: Unable to open snapshot view "C:\ccase\views\qinl_rel14.0".
cleartool: Error: 'C:\ccase\views\qinl_rel14.0' is not a valid snapshot view path.

The cause is the during ClearCase upgrade, the albd service account id and group id also changed. If the ClearCase administrators group name has changed or you have moved a view to a new domain that has a different SID for this group, then the -replace_server_process_group switch is required for fix_prot utility.

Kill the view_server process first. Then run,

C:\ccase\views\qinl_rel14.0>"C:\Program Files\Rational\ClearCase\etc\utils\fix_prot" -replace_server_process_group c:\ccase\view_stg\qinl_rel14.0.vws
Re-protect "c:\ccase\view_stg\qinl_rel14.0.vws"? [no] y
Reprotection complete.


Remove the view shortcut, and added back again. Everything is back to normal.

C:\ccase\views\qinl_rel14.0>cleartool lsview -l qinl_rel14.0
Tag: qinl_rel14.0
Global path: \\Cbad4-xcidh3\view_stg\qinl_rel14.0.vws
Server host: Cbad4-xcidh3
Region: windows
Active: NO
View tag uuid:9396be72.f06c41d3.9db4.a4:68:8d:06:15:e9
View on host: Cbad4-xcidh3
View server access path: C:\ccase\view_stg\qinl_rel14.0.vws
View uuid: 9396be72.f06c41d3.9db4.a4:68:8d:06:15:e9
View attributes: snapshot
View owner: AD\qinl