Unable to rename db to db.reformat: Permission denied
This technote explains why attempts to run the IBM® Rational® ClearCase® cleartool reformatvob command results in a permission denied error while trying to rename the database directory along with steps to resolve the problem.
Attempts to run cleartool reformatvob on a VOB, results in the following error:
cleartool: Error: Unable to rename "D:\ClearCase_Storage\vobs\documents.vbs\db" to "D:\ClearCase_Storage\vobs\documents.vbs\db.reformat": Permission denied.
The VOB is mounted and a vob_server process is currently running for the VOB.
Resolving the problem
To successfully run the cleartool reformatvob command, perform the following procedure:
- Run cleartool umount on the VOB
- Stop any vob_server process that is running for that VOB. The easiest way to do this is to restart the server after you unmounted the VOB but this might be impractical if you have users working on other VOBs hosted on the server. If you are unable to restart the server, follow these steps to find the vob_server processes for the VOB.
- Open a Microsoft® Windows® command window by clicking Start > Run. Type: cmd.exe
- Type: C:\Program Files\Rational\ClearCase\etc\utils\albd_list.exe
- Scan the command output for the vob_server process for the VOB. Output will appear similar to the following:
albd_server addr = 192.168.12.12, port= 371
vob_server, udp socket 4618: version 3; BUSY
Storage path D:\ClearCase_Storage\vobs\documents.vbs
vob_server, udp socket 1056: version 3; BUSY
Storage path D:\ClearCase_Storage\vobs\vob1.vbs
vob_server, udp socket 1069: version 3; BUSY
Storage path D:\ClearCase_Storage\vobs\adminvob.vbs
- Stop the specific vob_server process using the Windows Task Manager
- Right-click your Windows Task bar
- Click Task Manager
- Click Processes
- Find the vob_server process for your VOB using the correct Process ID (PID) and select it from the process list. If the PID column is not displayed:
- Click View > Select Columns
- Click PID (Process Identifier)
- Click OK
- Click End Process
- Run the cleartool reformatvob command again
For more information on any of the cleartool sub-commands discussed in this technote refer to the IBM Rational ClearCase Command Reference, or run cleartool man <sub-command>.
|Software Development||Rational ClearCase||Database|