Attempts to create a view using cleartool mkview or make view GUI functionality, results in the following error:
cleartool: Error: A view cannot be created under another view's storage directory or snapshot view storage directory.
This error will occur when you attempt to create a new view in a directory which contains other view related files such as .view files. These files will exist in a directory that is currently (or was) in use as a view storage directory.
Cause 2
This error has also been shown to be caused by left over view.dat files from snapshot views that were not removed correctly. The view.dat file resides in the view work space or view root; the location where the files are loaded.
Cause 3
Attempts to make use of an existing (dynamic) view storage directory using cleartool mkview will result in the above error.
Solution
As specified in the error, you cannot create a new view in an existing view's storage directory.
The location you specify for storing the new view should be a ClearCase server storage location, a network share on Windows or an export on UNIX or Linux.
A network share is a location on a computer network, typically allowing multiple users on the same network to have a centralized space for storing and accessing data. You can review this Microsoft article 301198 for more information.
An export on UNIX or Linux is a way to make a local resource available for mounting by remote systems. For more information, you should refer to the man page for export or share. Otherwise, consult your systems administrator.
When creating a view, you should be sure that the directory is not in use by an existing view and that it does not contain remnants of a previous view, which may have not been properly removed.
A view directory contains the following files and directories:
- .access_info A file of view access event information that is periodically updated by the view_server.
- .pid A one-line text file that lists the process ID of the view’s view_server process.
- admin A directory that contains administrative data related to the amount of disk space a view is using. Use space –view to list this data.
- config_spec A file that stores the view’s current config spec, in the form displayed by catcs.
- .compiled_spec A modified version of config_spec, which includes accounting information.
- .identity On UNIX, a subdirectory whose zero-length files establish the view’s owner and group memberships.
- identity.sd On Windows, a binary data file that contains the security descriptor for the view storage directory.
- .s A subdirectory that implements the view’s private storage area.
- db A subdirectory containing the files that implement the view’s embedded database.
Refer to the IBM Rational ClearCase Administrator's Guide for more information on View Administration.
Solution 2
Check the selected location to store the snapshot view work space directory (view root) to see if any view.dat files exist.
Note: The view.dat files is a hidden file on Windows, so the option to show hidden files and folders in Windows Explorer will need to be enabled before a search can be conducted for these files.
If found, remove them and attempt the view creation again.
Solution 3
Use the these commands to get past this issue:
- cleartool register -view
- cleartool mktag -view -tag
The view tag will now exist and the view can be started.
Note: You will need to be the owner of the view storage directory to create a tag for the view.
No comments:
Post a Comment