用于 ClearCase 快照视图创建的正确“cleartool mkview" [英] Proper 'cleartool mkview' for ClearCase Snapshot view creation

查看:19
本文介绍了用于 ClearCase 快照视图创建的正确“cleartool mkview"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下午好,

这些天我似乎有点被困在 CC 领域,但我有一个(希望如此)关于正确处理 CC 的最后一个问题:

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

当使用 CC 视图创建向导时,我可以在我的机器上完美地创建正确的快照视图,但是当尝试使用 mkview 命令执行相同操作时,它失败了...

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

但是,当尝试通过

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?

推荐答案

这通常是由于 albd 没有运行.
实际上,它正在运行,但 ClearCase 尝试联系错误的主机.

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

这里:主机-本地路径:Eh40yd4c:D:Viewsattjo6r_view2.vws 高度可疑.

试试:

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

即:hpath = gpath.

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

希望 ClearCase 可以自行确定主机、hpath 和 gpath.

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

这篇关于用于 ClearCase 快照视图创建的正确“cleartool mkview"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆