ClearCase: how to change the master replica where the current replica is different?

347 Views Asked by At

I changed a master replica of a stream by mistake. and when I wanted to recover the old master replica I got this error

cleartool chmaster rep1@\pVob_aff stream:grWork@\pVob_aff


cleartool: Error: Unable to perform operation "change master" in replica "rep1" of VOB 
"\pVob_aff".
cleartool: Error: Master replica of activity "grWork" is "rep2".

is there a way to change the current replica "rep1" to "rep2" in order to change the master replica of the stream and then turn it back to "rep1" ?

because now I can't do checkouts in this stream

2

There are 2 best solutions below

8
VonC On

Apparently, you have a stream named grWork, and an activity named grWork.

You could try the chmaster first on the activity, before trying it on the stream.

cleartool chmaster rep1@\pVob_AFFAIRES_SPOCC activity:grWork@\pVob_aff
0
Brian Cowan On

Are you.running the chmaster at "rep2"? Are the replicas in sync? Mastership changes on streams can only be done at the site that masters the stream. You cannot reqmaster a stream.

With respect to the error message, in a schema 54.VOB, just about every UCM object shares the same "ClearGuide Activity" namespace, which is why folder, project, stream, baseline, AND activity names have to be globally unique... (projects can't have the same name as a folder/stream/etc.). As such, its possible that you're looking at a legacy error message.