Clearcase - 找出视图的创建时间
我们有许多旧的快照视图,我需要找出这些快照视图的创建时间。
有一个转折 - 我们不再运行 ClearCase,并且我们用来运行它的硬件也不再存在。但是,我们仍然保留了 ClearCase 内部使用的所有文件,因此我可以转到目录 /usr7/viewstore/some_snapshot_sv
并四处查看。
我在这些目录上有一个时间戳,但这不一定是在创建视图时。
我想知道在这个目录结构中的某个地方是否有某个文件可以在其中搜索创建日期。
我在 Unix/Linux 环境中。 ClearCase 确实在 IRIX 上运行。
谢谢。
We have many old snapshot views lying around and I need to find out when these snapshot views were created.
There is a twist - we are no longer running ClearCase and the hardware we used to run it is no longer around. However, we still have all the files used internally by ClearCase still lying around, so I can go to a directory /usr7/viewstore/some_snapshot_sv
and poke around.
I've got a timestamp on these directories, but this is not necessarily when the view was created.
I was wondering if somewhere in this directory structure there was a certain file in which I can search for a creation date.
I'm in a Unix/Linux environment. ClearCase did run on IRIX.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
与视图关联的任何元数据都位于视图服务器端,其中保存视图存储。
距离创建日期最接近的一个文件是视图存储中的
.hostname
文件。它仅在视图创建时创建和更新,并且永远不会更改,除非视图被取消注册,然后重新注册(非常罕见)。
view.dat
也是一个不错的候选者(但也可以重新生成,并且仅适用于快照视图)此IBM 文章 列出了所有相关文件:
重新启动视图时自动重新生成的文件:
可以使用 ClearCase 命令重新生成:
有关重新生成 view.dat 文件的更多详细信息,请参阅 technote1204161。
可以通过在同一计算机上以同一用户创建新视图并将受影响的文件复制到视图存储来手动替换的文件:
hostname
无法替换的文件:
Any metadata associated with the view is on the view server side, where the view storage are kept.
The one file which could be the closest from the creation date would be the
.hostname
file within a view storage.It is only created and updated on the view creation, and never change unless the view is unregistered, and then re-registered (very rare).
view.dat
is also a good candidate (but can also be regenerated, and is for snapshot view only)This IBM article lists all relevant files:
Files that are regenerated automatically when the view is restarted:
Files that can be regenerated with ClearCase commands:
See technote1204161 for more details on the regenerating the view.dat file.
Files that can be manually replaced by making a new view on the same machine as the same user, and copying the affected file(s) to the view storage:
hostname:pathname
formathostname
specified in line 1Files that cannot be replaced:
如果你使用cleartool,我想你可以尝试这样:
If you use cleartool, I think you may try it this way: