Re: [cciug] best, safest way to remove a view

From: Kenneth Creager (K.Creager@sd.us.am.ericsson.se)
Date: Tue Feb 01 2000 - 13:40:46 EST


Susan,

Nope, all that does it get rid of the view tag and registry info.
You still have the physical storage and references to that view
in any vobs that have been accessed by that view. The rmview
is the way to go for most cases, when that doesn't work, do as
you suggested with these two extra steps:

1. You need to do a: cleartool rmview -vob <vobtag> -uuid <view uuid>
in EACH vob accessed by that view. I use a little foreach loop
and just run it in all the vobs in that region.

        foreach i ('/usr/atria/bin/cleartool lsvob -short')
        /usr/atria/bin/cleartool rmview -vob $i -uuid <view uuid>
        end

2. Now you can physically remove the view storage using Unix rm.

Ken Creager

At 2/1/00 11:23 AM -0600, Susan Johnson wrote:
>
>I am looking for the best, safest way to
>remove a view.
>
>In the past I have found running
>"cleartool rmview" will not remove all
>views and I get partially removed
>views.
>
>Is this approach better:
>
>- Log onto view server, become root
>
>cleartool endview -server <view-tag>
>cleartool lsview -long <view-tag> # to get view-uuid
>cleartool rmtag -view -all <view-tag>
>cleartool unregister -view -uuid <view-uuid>
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



This archive was generated by hypermail 2b29 : Sun May 06 2001 - 00:22:55 EDT