Clearcase - 找出视图的创建时间

发布于 2024-09-27 00:46:41 字数 317 浏览 2 评论 0原文

我们有许多旧的快照视图,我需要找出这些快照视图的创建时间。

有一个转折 - 我们不再运行 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

优雅的叶子 2024-10-04 00:46:41

与视图关联的任何元数据都位于视图服务器端,其中保存视图存储。

距离创建日期最接近的一个文件是视图存储中的 .hostname 文件。
它仅在视图创建时创建和更新,并且永远不会更改,除非视图被取消注册,然后重新注册(非常罕见)。
view.dat 也是一个不错的候选者(但也可以重新生成,并且仅适用于快照视图)

IBM 文章 列出了所有相关文件:

重新启动视图时自动重新生成的文件:

# .access_info
# .pid

可以使用 ClearCase 命令重新生成:

# .compiled_spec -- regenerate by running cleartool setcs -current
# .hostname -- regenerate by unregistering and re-registering the view
# view.dat -- Snapshot views only:  
  can be regenerated by running the "regen_view_dot_dat.pl" script 
  found in <cc-home-dir>\etc\utils

有关重新生成 view.dat 文件的更多详细信息,请参阅 technote1204161。

可以通过在同一计算机上以同一用户创建新视图并将受影响的文件复制到视图存储来手动替换的文件:

# config_spec
# groups.sd
# identity.sd
# view_db.state (as long as the view is not in the process 
  of being reformatted); see technote 1134858 for more information
# db/view_db.dbd (for schema 9 views only; 2002.05.00 and earlier)
# db/view_db_schema_version
# .view - The copy obtained from the new view must be edited to contain the correct information for the old view as described below. The correct information can be obtained from the output of "cleartool lsview -long <old_viewtag>".
  • 第 1 行:视图存储目录的位置,在主机名中: pathname 格式
  • 第 2 行:视图的 UUID(唯一标识符),不得更改
  • 第 3 行:第 1 行中指定的 hostname

无法替换的文件:

# All other files in the db directory except the ones mentioned above 
  ( view_db_schema_version and view_db.dbd)

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:

# .access_info
# .pid

Files that can be regenerated with ClearCase commands:

# .compiled_spec -- regenerate by running cleartool setcs -current
# .hostname -- regenerate by unregistering and re-registering the view
# view.dat -- Snapshot views only:  
  can be regenerated by running the "regen_view_dot_dat.pl" script 
  found in <cc-home-dir>\etc\utils

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:

# config_spec
# groups.sd
# identity.sd
# view_db.state (as long as the view is not in the process 
  of being reformatted); see technote 1134858 for more information
# db/view_db.dbd (for schema 9 views only; 2002.05.00 and earlier)
# db/view_db_schema_version
# .view - The copy obtained from the new view must be edited to contain the correct information for the old view as described below. The correct information can be obtained from the output of "cleartool lsview -long <old_viewtag>".
  • Line 1: the location of the view storage directory, in hostname:pathname format
  • Line 2: the view's UUID (unique identifier), which must not be changed
  • Line 3: the hostname specified in line 1

Files that cannot be replaced:

# All other files in the db directory except the ones mentioned above 
  ( view_db_schema_version and view_db.dbd)
小…红帽 2024-10-04 00:46:41

如果你使用cleartool,我想你可以尝试这样:



    cleartool lsview -properties [view-name]
    * [view-name]           /net/...[path]
    Created 2014-01-07T18:05:15+02:00 by ...
    Last modified 2014-01-07T21:13:07+02:00 by .....
    Last accessed 2014-01-07T21:13:07+02:00 by .....
    Owner: [owner-name] : rwx (all)
    Group: [group-name]  : r-x (read)
    Other:                  : r-x (read)


If you use cleartool, I think you may try it this way:



    cleartool lsview -properties [view-name]
    * [view-name]           /net/...[path]
    Created 2014-01-07T18:05:15+02:00 by ...
    Last modified 2014-01-07T21:13:07+02:00 by .....
    Last accessed 2014-01-07T21:13:07+02:00 by .....
    Owner: [owner-name] : rwx (all)
    Group: [group-name]  : r-x (read)
    Other:                  : r-x (read)


~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文