Client Automation Management Applications Radia Forum
Showing results for 
Search instead for 
Do you mean 

Deleting packages and resources from Radia and Taking Backup of CSDB

Occasional Contributor

Deleting packages and resources from Radia and Taking Backup of CSDB

Hi All,

 

I want to take backup of CSDB, since the space needed for backup is too huge, I am planning to delte the packages and resources form CSDB in single shot and then take backup. can anyone suggest how can i go about it.

We are using HPCA 7.8

 

Thanks for your help

7 REPLIES
Frequent Advisor

Re: Deleting packages and resources from Radia and Taking Backup of CSDB

hi,

If you need to delete the entire packages from command line - then there's zedmams keywork 'package=yes":

zedmams verb=delete_instance,domain=software,class=package,instance=test1,package=yes,preview=no

 

Then you may want to delete zservice.

Configuration server should be stopped.

 

Dmitry.

Occasional Contributor

How to take Backup of CSDB

can any one give me steps or command i need to execute to take backup

Frequent Advisor

Re: How to take Backup of CSDB

To backup the configuration server's database you simply need to stop the service and make a copy of the database folder. The database is usually stored in C:\Program Files\Hewlett-Packard\HPCA\Data\ConfigurationServer\DB. The path can be found from DBPATH variable within configurationserver\bin\edmprof.dat file.

 

Frequent Advisor

Re: How to take Backup of CSDB

By the way, you may change DBPATH to the folder where you have a backup copy, restart the service and you'll get the backup database being used. May be useful for testing... But backup edmprof.dat first and use notepad (not wordpad) for editing.
Occasional Contributor

Re: How to take Backup of CSDB

I am getting the following log when i try to delete by executing zedmams command

 


<2012/12/24 03:06:55:968> ZEDMAMS $Revision: 1.151 $, $Date: 2007/11/21 13:23:36 $: Compiled: Sep 14 2009 04:11:32
 
<2012/12/24 03:06:55:968> The current machine locale is <English_United States.1252>  
<2012/12/24 03:06:55:968> ZEDMAMS Database path is <C:\Program Files (x86)\Hewlett-Packard\HPCA\Data\ConfigurationServer\DB>
<2012/12/24 03:06:55:968> ZEDMAMS Database data is encoded in UTF8
<2012/12/24 03:06:55:984> NVD07451I Object id cache restart in progress
<2012/12/24 03:06:55:984> NVD07455I Object id cache checkpoint last DB update date/time <20121224> <09:26:11>, domains <16>, classes <260>, instances <18905>
<2012/12/24 03:06:55:984> NVD07456I Object id cache DMA ZBASE  last DB update date/time <20121224> <09:26:11>, domains <16>, classes <260>, instances <18905>
<2012/12/24 03:06:56:078> NVD07459I Object id cache restart completed successfully, DB last updated on <20121224> at <09:26:11>
 
<2012/12/24 03:06:56:078> DELETE_RESOURCE has started.........
<2012/12/24 03:06:56:078> Command Line: VERB=DELETE_RESOURCE,PREVIEW=NO,DOMAIN=SOFTWARE,CLASS=FILE,INSTANCE=E001B398A845,PACAKAGE=NO
 
<2012/12/24 03:10:08:281> Error opening <RESOURCE> database
 
<2012/12/24 03:10:08:281> DELETE_RESOURCE has completed with reason code 502...
<2012/12/24 03:10:08:281> DELETE_RESOURCE took 3 minutes 12 seconds to complete
<2012/12/24 03:10:08:281> ZEDMAMS completed with a highest return code of 16
 
<2012/12/24 03:10:08:281> NVD07461I Object id cache checkpoint in progress, DB last updated on <20121224> at <09:26:11>
<2012/12/24 03:10:08:343> NVD07469I Object id cache checkpoint completed successfully
<2012/12/24 03:10:08:343> NVD07500I Object ID Cache Statistics
<2012/12/24 03:10:08:343> NVD07501I  Total size <8388608>, Prefix size <1400>, Entry size <8>
<2012/12/24 03:10:08:343> NVD07502I  Total entries <1048401>, Used entries <18926>, Active handles <1>
<2012/12/24 03:10:08:343> NVD07503I  Found <18926>, Not found <0>, Adds <0>, Deletes <0>
<2012/12/24 03:10:08:343> NVD07504I  Commits <0>, Dups <0>, Hashed <1>, Rehashs <2741>
<2012/12/24 03:10:08:343> NVD07505I  DMA Last Update Date/Time <20121224> <09:26:11>
<2012/12/24 03:10:08:343> NVD07506I  DMA Domains <16>, Classes <260>, Instances <18905>

Can any one tell me what i need to do to delete that instance?

Esteemed Contributor Esteemed Contributor

Re: How to take Backup of CSDB

Did you stop the ConfigurationServer before running the zedmams command?

Highlighted
Valued Contributor

Re: How to take Backup of CSDB

Hi all,

 

You have more details on how to run a HPCA backup in the migration guide. The idea is to use the hpcabackup script.

 

For example, the 8.10 migration guide is available in this link.

 

 

Thanks!
Maria