如何使用 New/Different VOB 名称将 VOB 移动到新服务器 (CentOS)

How to move a VOB to new server(CentOS) with New/Different VOB name

我有两个 CentOS Clearcase VOB 服务器,我需要将所有 VOB 移动到新的 CentOS 服务器。使用以下命令,我可以成功移动 VOB。但是我需要使用新名称移动到新服务器的几个 VOB。

CentOS VOB 旧服务器:-

1. Lock the vob
2. Unregister the vob
3. Remove the vob tag
4. cleartool reformatvob -dump -force -host oldcentos-host -hpath hpath
5. Tar and copy using scp commad.

CentOS VOB 新服务器:-

1. cleartool reformatvob -load -host newcentos-host -hpath hpath
2. Register the vob
3. Make tag
4. Unlock the vob

下面我试过了

1.  Untarred the vob storage folder.
2.  Renamed the vob storage folder
3.  cleartool reformatvob -load -host newcentos-host -hpath hpath (with new VOB name path)
4.  cleartool register -vob –replace (New vob name storage location)
5.  Make tag -vob -tag new-tag-name (failing) saying VOB with tag already existing.

最好在成功迁移新 Vob 后重命名其现有的导入标签。

To completely rename a ClearCase VOB (replicated or non-replicated) or View requires that both the storage and the tag be renamed.

遵循提到的过程in that page(同样,一旦 Vob 被迁移)

这将涉及卸载 vob,kill the vob server,删除 vob 标签,删除 ClearCase 注册表项,重命名 vob 存储,注册并重新标记。

cleartool umount \<VOB-tag> # on clients
albd_list [-s <vob_or_view_storage>] 
kill -9 #theVobProcess
cleartool rmtag -vob -all \<VOB-tag>
cleartool unregister -vob <VOB-storage-pname>.vbs
mv <old-VOB-storage> <new-VOB-storage>.vbs
cleartool register -vob <new-VOB-storage>.vbs
cleartool mktag -vob -public -tag \<new-VOB-tag> <new-VOB-storage>.vbs
cleartool mount <new-VOB-tag> # on all clients to remount the VOB