Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Blue

stray IPMDB.db?

Without fail, there's always a copy of IPMDB.db left in the / file system after restorebackup on LMS 3.1. Is this file needed?

13 REPLIES
Cisco Employee

Re: stray IPMDB.db?

No.

Blue

Re: stray IPMDB.db?

Is this an oversight in restorebackup.pl that it does this? We have limited space in /, so this runs the risk of filling it up.

Cisco Employee

Re: stray IPMDB.db?

The old IPM data is cleaned up at the very end of the data migration process. However, there appears to be a bug with this. The code is looking for something like /backups/0/ipm/IPMDB.db. However, I believe the actual structure is /backups/0/ipm/database/IPMDB.db. However, I have no idea how a copy of IPMDB.db could end up in /.

Blue

Re: stray IPMDB.db?

This sounds rather similar to my previous issue where restorebackup.pl was looking for ani.db in /backups/0/campus/database/, but wrapper.pl had it in /backups/0/cmf/ani.db, because of messed-up /opt/CSCOpx/backup/manifest/cmf/database/cmf.txt and /opt/CSCOpx/backup/manifest/campus/database/ani.txt.

Here's the source LMS(2.6)'s /opt/CSCOpx/backup/manifest/ipm/database/ipm.txt

"ipm.txt" 2 lines, 44 characters

[ipm]

root=/opt/CSCOpx/databases/ipm/ipm.db

Cisco Employee

Re: stray IPMDB.db?

This is right. A problem with the manifest file would also not explain how a copy winds up in /. But as I said, I believe there is a bug in which the old IPM database will not be cleaned up after migration.

Blue

Re: stray IPMDB.db?

Could there a fix be [made] available for this bug?

Cisco Employee

Re: stray IPMDB.db?

I would need to know the actual layout of the ipm backup directory first (i.e. an ls -alR).

Blue

Re: stray IPMDB.db?

Attached is the layout of ipm produced by wrapper.pl:

Cisco Employee

Re: stray IPMDB.db?

Yes, this is a bug, and I can provide a fix if you open a service request.

Blue

Re: stray IPMDB.db?

Thanks. Is there a bug ID I can make reference to?

Cisco Employee

Re: stray IPMDB.db?

No, and the more I look at the code, I don't think this fix is really needed. It certainly wouldn't clean up an IPMDB.db in /. Can you identify where exactly in the migration process this /IPMDB.db gets created?

Blue

Re: stray IPMDB.db?

How precise does the identification have to be? Would the migration.log plus the timestamp of IPMDB.db suffice?

Cisco Employee

Re: stray IPMDB.db?

Maybe. It would have to be fairly precise to track down the exact bit of code that is causing the problem.

228
Views
0
Helpful
13
Replies
CreatePlease to create content