MysteryMoose
MysteryMoose

Reputation: 2363

Recover ClearCase Dynamic View on New Device

Background

My company has been moving toward ClearCase for its source control solution and, to that end, I have been learning to use said tool in my daily development activities. Recently, my company-issued laptop gave up the ghost and was replaced. Unfortunately, I didn't have any say in what was copied over to the new device and the install tech ignored my ClearCase view storage directories.

Question

Is it possible to recover these views from the server, given that they were all dynamic views? I am fairly certain that this is not possible for a snapshot view, since the files are stored locally on the machine that tanked, but I have my fingers crossed for a dynamic view. For reference, the long output for a few of the views is below (some information redacted):

C:\Users\<my_id>>ct lsview -long *<my_id>*
Tag: <my_id>_Shared_FSA_Prod_Dyn
  Global path: \\<old_device_id>\Clearcase_Storage\<my_id>_Shared_FSA_Prod_Dyn.vws
  Server host: <old_device_id>
  Region: SCE
  Active: NO
  View tag uuid:edb85a16.7a564dfd.ac26.9e:d0:2f:3a:62:fe
View on host: <old_device_id>
View server access path: C:\Clearcase_Storage\<my_id>_Shared_FSA_Prod_Dyn.vws
View uuid: edb85a16.7a564dfd.ac26.9e:d0:2f:3a:62:fe
View attributes: ucmview
View owner: SCE\<my_id>

Tag: <my_id>_FSA_Prod_Int_Dyn
  Global path: \\<old_device_id>\Clearcase_Storage\<my_id>_FSA_Prod_Int_Dyn.vws
  Server host: <old_device_id>
  Region: SCE
  Active: NO
  View tag uuid:4536b95b.ee9d45c2.9289.19:3c:64:5b:ae:95
View on host: <old_device_id>
View server access path: C:\Clearcase_Storage\<my_id>_FSA_Prod_Int_Dyn.vws
View uuid: 4536b95b.ee9d45c2.9289.19:3c:64:5b:ae:95
View attributes: ucmview
View owner: SCE\<my_id>

My ultimate goal is to remap the existing views. If that is not possible, removal of the old views (to be recreated on my current Device) is the next option. Thank you in advance for your assistance.

References

Reuse a ClearCase view

Upvotes: 2

Views: 2058

Answers (1)

VonC
VonC

Reputation: 1324576

If the view storage associated with the dynamic view is still there and accessible, then yes, you can simply restart your dynamic view.

But if the view storage has been erased, then you cannot restore the dynamic view or recover any of the checked out or private files in it; they were all stored in said storage view.

The next step is to remove that view (unregister and rmtag), before re-creating that view with the same name.
See "How to delete clearcase views created by other users?" for a concrete example of cleartool unregister and cleartool rmtag.

Note that the mapping part is independant of your issue: all dynamic views are started on M:\ drive (for Windows), and are mapped on any free drive letter, with a simple subst windows command:
See for instance "ClearCase, Mapping specific folders into Drives, using dynamic views".

Upvotes: 2

Related Questions