This section describes two common procedures:
The following procedure describes how to move the VOB \libpub from storage directory C:\ClearCaseStorage\VOBs\libpub.vbs on VOB server host \\sol to a storage directory shared as vobstg on VOB server host \\vobsvr01.
C:\ClearCaseStorage\VOBs> net use E: \\vobsvr01\vobstgC:\ClearCaseStorage\VOBs> ccopy libpub.vbs E:\libpub.vbs
cleartool register –vob –replace \\vobsvr01\vobstg\libpub.vbs cleartool mktag –vob –replace –tag \libpub \\vobsvr01\vobstg\libpub.vbs
On Windows, VOBs formatted with schema version 54 store Windows security identifiers (SIDs) to represent users, groups, and resources (hosts). When you move a VOB to a different domain, these SIDs become invalid and must be changed (mapped) to SIDs that are valid in the new domain. ClearCase includes a utility program, vob_sidwalk, that provides a flexible means of mapping SIDs after you move a VOB to a different domain. We strongly recommend that you review the vob_sidwalk reference page before continuing with this procedure.
The following procedure moves the VOB \libpub from storage directory C:\ClearCaseStorage\VOBs\libpub.vbs on VOB server host \\sol, which is in the OLD domain, to a storage directory shared as vobstg on VOB server host \\vobsvr-new, which is in the NEW domain. To execute this procedure, you must be able to log in to both the OLD and NEW domains as the VOB owner of \libpub or as a privileged user.
ccase-home-dir\etc\utils\vob_siddump \libpub ^
C:\ClearCaseStorage\VOBs\libpub.vbs\libpub.csv
We suggest creating the SID file in the VOB storage directory so that it is available on the new VOB host after the storage directory has been moved. (You need it in Step 10.)
C:\ClearCaseStorage\VOBs> net use E: \\vobsvr-new\vobstg C:\ClearCaseStorage\VOBs> xcopy libpub.vbs E:\libpub.vbs /s
Note: Because the existing VOB storage directory ACLs are invalid in the new domain, you may use xcopy or another copy utility that does not preserve ACLs for this step.
ccase-home-dir\etc\utils\fix_prot –root –r –chown vobadm –chgrp ccusers ^
V:\vobstg\libpub.vbs
cleartool register –vob –replace \\vobsvr-new\vobstg\libpub.vbs cleartool mktag –vob –replace –tag \libpub \\vobsvr-new\vobstg\libpub.vbs
If \\vobsvr-new is not in the same registry region as \\sol, you do not need to use the –replace option to cleartool register and cleartool mktag, but you should remove the old registration and tag for \libpub, which will be invalid after the move.
For each line in the file, replace the string IGNORE in the New-name field with a string made up of the new domain name and the user name from the Old-name field; then delete the last three fields (Type, New-SID, and Count). In this example, old domain’s name is OLD and the new domain’s name is NEW, so the line would change, as shown here:
Although this example shows a user name that is the same in the old and new domains, the procedure can also be used to map a user or group name from the old domain to a different user or group name in the new domain.
After you have edited all the rows of the SID file, save it as a comma-separated-value file and use it as the mapping file required when you run vob_sidwalk –map. Each line of the mapping file must have exactly four fields, separated by commas. The example row created in this step would look like this in .csv form:
OLD\akp,USER,NT:S-1-2-21-532...,NEW\akp
Note: You can reassign ownership of any object in a VOB to the VOB owner by placing the string DELETE in the New-name field. You may also reassign ownership of all objects in a VOB to the VOB owner without creating a mapping file. See Reassigning Ownership to the VOB Owner.
ccase-home-dir\etc\utils\vob_sidwalk –map ^
\\vobsvr-new\vobstg\libpub.vbs\libpub-map.csv \libpub libpub-test.csv
ccase-home-dir\etc\utils\vob_sidwalk –execute –map ^
\\vobsvr-new\vobstg\libpub.vbs\libpub-map.csv \libpub libpub-exec.csv
vob_sidwalk remaps ownership as specified in the map file and records the changes made in libpub-exec.csv.
ccase-home-dir\etc\utils\vob_sidwalk –recover_filesystem \libpub recov.csv
vob_sidwalk logs changes made during this step to the file recov.csv
Note: If the user’s name in the new domain is not the same as in the old domain, the user loses rights (for example, the right to remove a version that you created) associated with the creator of a version or a branch. These operations can still be executed by a more privileged user (VOB owner, member of the ClearCase administrators group).