Technote (FAQ)
Question
How do I rename an IBM® Rational® ClearCase® VOB or view on Microsoft® Windows®, UNIX® or Linux®?
Answer
To completely rename a ClearCase VOB (replicated or non-replicated) or View requires that both the storage and the tag be renamed.
These operations can be performed from a command line.
The instructions below are designed to provide the basic steps. Refer to the documentation listed at the bottom of this technote for further details about the commands and their options.
Network Attached Storage Considerations
Rename a VOB
- Unmount the VOB.
Run cleartool umount \<VOB-tag> on the local host.
Notes:- For ClearCase only (not CCLT), any host that has it mounted with the old name after the rename has been completed will need to be rebooted to clear the MVFS.
- All snapshot views will need to load the VOB with the new name (tag).
- Kill the vob_server process for the VOB. The command will vary on differing operating systems, refer to technote 1148639 for directions.
Note: Stopping the ClearCase services on the host will also kill the process; refer to technote 1134178 for directions on stopping the services.
- Remove the VOB tag.
Run cleartool rmtag -vob -all \<VOB-tag> to untag the VOB.
- Remove the ClearCase registry entry.
Run cleartool unregister -vob <VOB-storage-pname>.vbs to unregister the VOB object.
- Rename the VOB storage directory using operating system commands:
Example:- UNIX or Linux
mv <old-VOB-storage> <new-VOB-storage>.vbs
- Windows
rename <old-VOB-storage> <new-VOB-storage>.vbs
- UNIX or Linux
- Register the new name of the VOB storage.
Run cleartool register -vob <new-VOB-storage>.vbs
- Create a new tag for the VOB.
Run cleartool mktag -vob -public -tag \<new-VOB-tag> <new-VOB-storage>.vbs
- Mount the new VOB tag.
Run cleartool mount <new-VOB-tag> on all clients to remount the VOB
Notes:- For ClearCase only (not CCLT).
- For MultiSite® replicated VOBs, the steps are the same as above to rename the VOB. When renaming a replicated VOB it is recommended that the VOB tags match with the other sites to avoid confusion.
- Stop the view.
Run cleartool endview <view-tag>
Note: For ClearCase only, any host that has a dynamic view started with the old name after the rename has been completed will need to be rebooted to clear the MVFS.
- Kill the view_server process. Run cleartool endview -server <view-tag>
Note: Stopping the ClearCase services on the host will also kill the process; refer to technote 1134178 for directions on stopping the services.
Refer to technote 1148639 About albd_list for further information regarding how to list active ClearCase server processes.
- Remove the view-tag.
Run cleartool rmtag -view <view-tag> to untag the view.
- Remove the ClearCase registry entry.
Run cleartool unregister -view <view-storage-pname>.vws to unregister the view object.
- Rename the view storage directory using operating system commands:
Example:- UNIX or Linux
mv <old-view-storage> <new-view-storage>.vws
- Windows
rename <old-view-storage> <new-view-storage>.vws
- UNIX or Linux
- Register the new name of the view storage.
Run cleartool register -view <view-storage-pname>.vws
- Create a new tag for the view.
Run cleartool mktag -view -tag <view-tag> <view-storage-pname>.vws
- (dynamic view only) Start the View.
Run cleartool startview <new-view-tag>
- (snapshot view only) Rename the view root directory if you wish to have the name correspond with the storage directory name change.
Note: This procedure describes a rename and there are additional steps that would need to be taken if you decide to move (rather than rename) the snapshot view directory which contains special files.
Refer to the IBM Rational ClearCase Administrators Guide on the topic of Moving a View for information on moving instead of renaming a view.
Network Attached Storage (NAS) considerations
- On-line documentation can be found:
About the ClearCase Information Center
Note: The on-line ClearCase version 7.x documentation can be found in the IBM Publication Center and has been organized for you in technote 1239261.
Related information
About the MultiVersion File System (MVFS)
Remove view references from ClearCase Admin Console
| Segment | Product | Component | Platform | Version | Edition |
|---|---|---|---|---|---|
| Software Development | Rational ClearCase | VOB | |||
| Software Development | Rational ClearCase | View: Snapshot | |||
| Software Development | Rational ClearCase | View: Dynamic | |||
| Software Development | Rational ClearCase | View: Snapshot |
Rate this page:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.