Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
755 views
in Technique[技术] by (71.8m points)

clearcase - how to fix or investigate 'Operation "view_ws_is_ws_view" failed'?

I stopped and started a view for which various file access actions were hanging (after killing all my terminal sessions where I was using that view), and now get:

cleartool: Error: Operation "view_ws_is_ws_view" failed: view storage directory or control files unavailable --
additional information may be present in the view server host's view log.

Two questions:

1) Is there a clearcase subsystem that can be restarted to fix this (preferably without impacting other users)?

2) the very unhelpful error message refers to a view log, but doesn't say where it is. Where can this log be found (SUSE Linux Enterprise Server 11 SP3 (x86_64))?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

clearcase subsystem that can be restarted to fix this

You can start by ending the view_server.exe associated to this view (cleartool endview):

cleartool endview -server <view_tag>

Then:

cleartool startview <view_tag>

Where can this log be found

This would use the cleartool getlog command, for local logs, but also for logs from the ClearCase view server (accessible from your client workstation)

cleartool getlog -tag <view_tag>

To display the last 10 lines of the view logs (logs for any view):

cleartool getlog -host <server_name> view

To display view log entries within 20 minutes of 4:00 P.M. on June 19:

cleartool getlog -host <server_name> -around 19-Jun.14:00 20 view

See also (in addition of the above recommendations) the IBM technote swg21131145 or technote swg21131682.

If above isn't enough, I like to fix_prot the view in order to avoid any right access issue.

If your view is on Unix, for instance:

alias sfp sudo /usr/atria/etc/utils/fix_prot
sfp -force -rec -chown <user> -chgrp <group> -chmod 775 /path/to/views/storage/<view_tag>.vws
sfp -force -root -chown <user> -chgrp <group>  /path/to/views/storage/<view_tag>.vws

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...