Tuesday, December 7, 2010

Re: Removing Contrib files in Views.



Posts: 60
Registered: Jul 06, 2007 02:02:51 AM Removing Contrib files in Views.
Posted: Nov 10, 2010 01:12:59 AM Hello Friends,

I want *.contrib files in my views. Our CC admin everytime warning us to remove view private files. If anybody have the single and simple command, please do let me know.

Also my dynamic views are occupying a lot of space in fileservers. I want to free some of the space. What can I do?

Thanks!!!

BR,
NeThA.


Posts: 60
Registered: Jul 06, 2007 02:02:51 AM Re: Removing Contrib files in Views.
Posted: Nov 10, 2010 01:20:56 AM   in response to: Mr.India in response to: Mr.India's post Errata: I want to remove *.contrib files in my views.
Posts: 38
Registered: Aug 16, 2010 10:26:56 AM Re: Removing Contrib files in Views.
Posted: Nov 15, 2010 01:48:40 PM   in response to: Mr.India in response to: Mr.India's post Hello Mr.India,

A view private file is not a clearcase entity. So you can delete the files the way you would delete any file that is outside of a ClearCase environment. In unix/linux, you would use rm, in Windows, either use Windows explorer or, at the command line, the 'delete' command.

If your '.contrib' files are actually under source control, this means they are not view privates, and would need to be removed with something like 'rmelem'.

As far as dynamic views occupying a lot of space, don't be fooled by doing any unix or Windows tools to get their total space -- most of the items that show up in a view aren't actually really there, they exist within the VOB and are only presented to you as existing within your view, but aren't really there. If you want to know how much space your view is taking up, make use of the 'cleartool space' command, for example:

H:\>cleartool space -view a812953_A2234_2_int
Use(Mb) %Use Directory
0.4 0% View private storage e:\ClearCase_Storage\views\AETH\a812953\a81
2953_A2234_2_int.vws\.s
0.1 0% View administration data e:\ClearCase_Storage\views\AETH\a812953
\a812953_A2234_2_int.vws\admin
0.2 0% View database e:\ClearCase_Storage\views\AETH\a812953\a812953_A2
234_2_int.vws\db
---- 0.6 0% Subtotal
17285.8 63% Filesystem AVSP059:e:\ (capacity 27627.4 Mb)

Total usage 2010-10-23T05:06:43-04:00 for view "a812953_A2234_2_int" is 0.6 Mb

However, if I navigate to this view and do a recursive directory listing to show its size, it shows up as containing over 197mb of data. This is what the operating system sees, but does -not- reflect actual space being taken up..it will include all files in the view that are not checked out, non-view private files, etc. If you deleted the above view, it would not free up 197Mb, but only .6Mb. If you have a lot of .contrib files, this number may be far higher.

Note that if this information isn't available to you, the nightly job that is supposed to calculate space might not be running correctly. See the man pages for cleartool space for more information about this.

Does this help at all?

-Chris Moir
Inventa Technologies (at Aetna Insurance)


Posts: 60
Registered: Jul 06, 2007 02:02:51 AM Re: Removing Contrib files in Views.
Posted: Nov 30, 2010 06:56:18 AM   in response to: ChrisMoir in response to: ChrisMoir's post Hello Chris,

Thanks for your detailed information about space occupied by views and view private files.

Thanks,
Mr.India.


Posts: 426
Registered: Mar 15, 2005 04:40:07 AM Re: Removing Contrib files in Views.
Posted: Nov 30, 2010 10:48:01 AM   in response to: ChrisMoir in response to: ChrisMoir's post ChrisMoir wrote:
> If your '.contrib' files are actually under source control,
> this means they are not view privates, and would need to be
> removed with something like 'rmelem'.

But this shouldn't be the case.
.contrib files are left as view private by ct merge and ct findmerge.
They are copies of versions, and there is thus no reason to check them in!
I must admit that I have never seen as them as anything else than a nuisance.

Marc

Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

Use the search field to find all types of content in My developerWorks with that tag. Use the slider bar to see more or fewer tags. Popular tags shows the top tags for this particular type of content or application that you're viewing. My tags shows your tags for this particular type of content or application that you're viewing.MoreLess 
Point your RSS reader here for a feed of the latest messages in all forums

View the original article here

No comments:

Post a Comment