我使用 ClearCase 管理 SCM 环境,其中包含大量 VOBS。
其中许多 VOBS 很久以前就不再使用了。我想知道是否可以确定这些 vobs 的最后修改时间。
另一个疑问是:如果我只注销这些VOBS,VOB Server的CPU和内存消耗会减少吗?
理论上,要让这些 vobs 重新上线,我只需要运行一个注册命令,对吧?
你们是否可以向我推荐任何其他方法来管理这种情况(VOB 很长一段时间没有使用)?
最佳答案
Many of these VOBS are not used since a long time ago. I would like to know whether it is possible to determine the last modification time on these vobs.
您可以尝试使用cleartool lshis -all
在 vob 标签上。
我有一个脚本可以过滤最后的事件:
cleartool lshis -fmt "%Xn\t%Sd\t%e\t%h\t%u \n" -since 01-Oct-2010 -all <vobname>| grep -v lock | head -1 | grep -o '20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]'
Another doubt is: if I only unregister these VOBS, the CPU and Memory consumption will decrease in the VOB Server?
是的,因为不再有与该 vob 关联的 vob_server 进程。
In theory, to put these vobs online again, I will only have to run a register command, right?
是的,尽管我更喜欢在注册和 mktagging 之前取消注册/rmtag(如“Removing ClearCase vobs ”)。
关于ClearCase VOB 长期未使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28590589/