我有两个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.
答案 0 :(得分:0)
一旦成功迁移了新的Vob,最好将其现有的导入标签重命名。
要完全重命名ClearCase VOB(已复制或未复制)或View,需要将存储和标签都重命名。
按照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