Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

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

Proper 'cleartool mkview' for ClearCase Snapshot view creation

Good afternoon,

Seems like I am somewhat stuck in CC-land these days, but I have one (hopefully) final question regarding proper CC-handling:

When using the CC View Creation Wizard, I can create a proper Snapshot view on my machine perfectly fine, however when trying to do the same with the mkview command, it fails...

Using the the view creation wizard results into the (working) following view:

cleartool> lsview battjo6r_view2
  battjo6r_view2       \Eh40yd4cViewsattjo6r_view2.vws
cleartool> lsview -long battjo6r_view2
Tag: battjo6r_view2
  Global path: \Eh40yd4cViewsattjo6r_view2.vws
  Server host: Eh40yd4c
  Region: CT_WORK
  Active: NO
  View tag uuid:f34cf43f.b4d048df.845d.ed:21:a2:9c:45:ff
View on host: Eh40yd4c
View server access path: D:Viewsattjo6r_view2.vws
View uuid: f34cf43f.b4d048df.845d.ed:21:a2:9c:45:ff
View attributes: snapshot
View owner: WW005attjo6r

However, when trying to create the view manually via

mkview -snapshot -tag battjo6r_view2 -vws \Eh40yd4cViewsattjo6r_view2.vws -host Eh40yd4c -hpath D:Viewsattjo6r_view2.vws -gpath \Eh40yd4cViewsattjo6r_view2.vws battjo6r_view2

... I get the following error:

cleartool> mkview -snapshot -tag battjo6r_view2 -vws \Eh40yd4cViewsattjo6r_view2.vws -host Eh40yd4c -hpath D:Viewsattjo6r_view2.vws -gpath \Eh40yd4cViewsattjo6r_view2.vws battjo6r_view2
Created view.
Host-local path: Eh40yd4c:D:Viewsattjo6r_view2.vws
Global path:     \Eh40yd4cViewsattjo6r_view2.vws
cleartool: Error: Unable to find view by uuid:6f99f7ae.6a5d40e4.ba32.37:8e:e5:a4:ed:18, last known at "<viewhost>:<stg_path>".
cleartool: Error: Unable to establish connection to snapshot view "6f99f7ae.6a5d40e4.ba32.37:8e:e5:a4:ed:18": ClearCase object not found
cleartool: Warning: Unable to open snapshot view "D:SnapShotViewsattjo6r_view2".
cleartool: Error: Unable to create snapshot view "battjo6r_view2".
Removing the view ...

Any idea why this is happening? Am I missing something?

See Question&Answers more detail:os

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

1 Answer

0 votes
by (71.8m points)

This is usually due to the albd not running.
Actually, it is running, but ClearCase tries to contact the wrong host.

Here: Host-local path: Eh40yd4c:D:Viewsattjo6r_view2.vws is highly suspicious.

Try:

mkview -snapshot -tag battjo6r_view2 -vws \Eh40yd4cViewsattjo6r_view2.vws -host Eh40yd4c -hpath \Eh40yd4cViewsattjo6r_view2.vws -gpath \Eh40yd4cViewsattjo6r_view2.vws battjo6r_view2

That is: hpath = gpath.

or, if the first command fails, also (it is simpler and may work)

mkview -snapshot -tag battjo6r_view2 -vws \Eh40yd4cViewsattjo6r_view2.vws battjo6r_view2

Hopefully, ClearCase could determine for itself the host, hpath and gpath.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...