cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1147
Views
0
Helpful
2
Replies

Problem restoring LMS 2.6 data to LMS 4.0

Aaron.Koves
Level 1
Level 1

Hello,

I'm trying to migrate from LMS 2.6 on a Windows 2003 server to LMS 4.0 on Windows 2008 R2.

Two things I'll note here which might help future people attempting to use the LMS 4.0 backup/restore scripts as detailed in the migration document:

1) Make sure nobody has installed cygwin on the server before you run the backup scripts. If they have, remove it and the reg keys.

2) On the target server make sure to run the restore script CMD session using runas or disable UAC on Windows 2008 or the restore scripts will fail

My next problem I can't get past. I've been running the restore since yesterday morning and it still hasn't finished. It hasn't moved from 40% complete migrating the IPM data but in the last 24 hours it has eaten up 6Gb more RAM.

C:\Users\zadmkovesa>e:\sw\CSCOpx\bin\perl.exe e:\Sw\CSCOpx\bin\restorebackup.pl
-d e:\lmsbackup\ -t e:\lmsbackup\temp
********************************************************************************
**********

Restore started at : 2011/03/15 11:21:12
Please see 'E:\Sw\CSCOpx\log\restorebackup.log' for status.

     USER ID is ..................................... : zadmkovesa
     OS of the backup archive is..................... : Windows

     WARNING: The temp directory e:\lmsbackup\temp\tempBackupData is not empty.
              An earlier instance of restore operation might have been interrupt
ed before completion.
              If you proceed with the restore operation, this directory and its
sub directories will be deleted.
              Do you want to continue?  (y-continue or n-quit, y/n)?y

     Generation to be restored is ................... : 0
     Backup taken from............................... : e:\lmsbackup\
     Common Services version in the backup data is... : 3.0.6

     Common Services is installed in................. : E:\Sw\CSCOpx
     The temp folder for this restore program........ : e:\lmsbackup\temp\tempBa
ckupData
     Applications installed on this machine ......... : [Common Services][Campus
Manager][Resource Manager Essentials][Device Fault Manager][cvw][cwlms][cwporta
l][ipm][upm]
     Applications in the backup archive ............. : [Common Services][Campus
Manager][Resource Manager Essentials][Device Fault Manager][cvw][ipm]


     WARNING: The list of applications installed on this CiscoWorks server does
not match the list of
              applications in the backup archive. If you restore data from this
backup archive,it may
              cause problems in the CiscoWorks applications.
              Do you want to continue the restore operation?  (y-continue or n-q
uit, y/n)?y

     Applications to be restored are................. : [Common Services] [Campu
s Manager] [Resource Manager Essentials] [Device Fault Manager] [cvw] [ipm]

     Available disk space in NMSROOT................. : 237023900 Kb
     Required disk space in NMSROOT.................. : 38857544 Kb
     (The temp and NMSROOT are on same device, therefore this required disk spac
e includes temp space)

  Copying the backup files to the temporary location [e:\lmsbackup\temp\tempBack
upData]

  preRestore of [Common Services] has started.
  preRestore of [Common Services] has completed.

  preRestore of [Campus Manager] has started.
  preRestore of [Campus Manager] has completed.

  preRestore of [Resource Manager Essentials] has started.
  preRestore of [Resource Manager Essentials] has completed.

  preRestore of [Device Fault Manager] has started.
  preRestore of [Device Fault Manager] has completed.

  preRestore of [cvw] has started.
  preRestore of [cvw] has completed.

  preRestore of [ipm] has started.

Not all data from IPM 2.6 will be migrated to LMS 4.0. For information on the d
ata that is migrated, see the "Migrating Data From LMS 2.6 or 2.6 SP1" section i
n the "Migrating Data to CiscoWorks LAN Management Solution 4.0" chapter in the
LMS4.0 Installation Guide for details. Do you want to continue[Y/N]:[Y]y

Do you want the IPM 2.6 collectors present in the backup to be DELETED from the
source routers [Y/N]:[Y]n
  preRestore of [ipm] has completed.

  doRestore of [Common Services] has started.

          License check started.

             WARNING: The license details in the server are different from the b
ackup data.
                      After restoring, please check the license available in the
server.

             WARNING: Your current license count is lower than your earlier lice
nse count.
                      If you restore the data now, devices that exceed the curre
nt licence count
                      will be moved to Suspended state.
          License check completed.

          Restoring certificate.

             WARNING: Cannot evaluate the hostname, hence the certificate
                      may be from this host or another host.

                      [  Certificate not overwritten  ]

          Restored Certificate.

          Restoring Common Services database.
          Restored Common Services database.

          Restoring CMIC data.
          Restored CMIC data.

          Restoring CMC data.
          Restored CMC data.

          Restoring Security Settings.
                INFO:
                Backup Mode is ACS. In LMS we are not supporing ACS for AAA.
                Setting Login Mode to CiscoWorks Local.

          Restored Security Settings.

          Restoring DCR data.
          Restored DCR data.


          Restoring Certificate key store.
          Restored Certificate key store.

          Restoring JAAS configuration.
          Restored JAAS configuration.

          JRM Job Migration started.
          JRM job Migration done.
  doRestore of [Common Services] has completed.

  doRestore of [Campus Manager] has started.
  doRestore of [Campus Manager] has completed.

  doRestore of [Resource Manager Essentials] has started.
10% of RME  Restore completed
30% of RME  Restore completed
50% of RME  Restore completed
70% of RME  Restore completed
100% of RME  Restore completed
  doRestore of [Resource Manager Essentials] has completed.

  doRestore of [Device Fault Manager] has started.
10% of DFM Restore completed

30% of DFM Restore completed
50% of DFM Restore completed
80% of DFM Restore completed
Going to modify Eight PM report
Modified Sucessfully Eight PM report
100% of DFM Restore completed
  doRestore of [Device Fault Manager] has completed.

  doRestore of [cvw] has started.
  doRestore of [cvw] has completed.

  doRestore of [ipm] has started.
10% of IPM migration completed
20% of IPM migration completed
30% of IPM migration completed
40% of IPM migration completed

>>>

The restore log is more than 8Mb in size so I won't upload it unless someone really wants to see it. Here is a snip from the end of it showing no clues I can make sense of:

INFO: Getting message                                                                                                    
INFO: Connect the database dsn=ipmdb
INFO: Connected the Database
INFO: Command Executed
INFO: Connecting the Database ipmdb
INFO: Company=Cisco Systems;Application=NMTG;Signature=010fa55157edb8e14d818eb4fe3db41447146f1571g32125eb777a87cbf8b29a954f559d4221b792ff8
INFO: Preparing AUTH cmd
INFO: AUTH Executed
INFO: AUTH cmd finished
INFO: Stopping the Database engine ipmdb
INFO: E:\Sw\CSCOpx/objects/db/conf/ConfigureDB.LOCK released for the future operations...
INFO: File not exists.[Tue Mar 15 13:17:30 2011] Successfully registered the database with DM
[Tue Mar 15 13:17:30 2011] Successfully configured IPMDB database !..
10% of IPM migration completed

INFO: Start changing password for database 'ipm'...
    Starting database engine ipmEng
INFO: New userinfo updated into database successfully.
    Stopping database engine ipmEng
SQL Anywhere Command File Hiding Utility Version 10.0.1.4051
INFO: Password changed in odbc template file for database 'ipm'.
INFO: Password changed for ODBC registry 'ipm'.
INFO: Password changed for Property file E:\Sw\CSCOpx\lib\classpath\com\cisco\nm\cmf\dbservice2\DBServer.properties.
INFO: Database password successfully changed.
INFO: Process created
INFO: Started the Database engine : ipmEng Retry 0
INFO: Started the Database engine : ipmEng Retry 1
INFO: Started the Database engine : ipmEng Retry 2
INFO: Started the Database engine : ipmEng Retry 3
INFO: Started the Database engine : ipmEng Retry 4
INFO: Getting message                                                                                                    
INFO: Connect the database DSN=ipm
INFO: Connected the Database
INFO: Command Executed
INFO: File not exists.[Tue Mar 15 13:18:08 2011] Updated IPM 2.6 DB password into IPM 5.0 DB
20% of IPM migration completed
The CiscoWorks Daemon Manager service is starting.
The CiscoWorks Daemon Manager service was started successfully.

[Tue Mar 15 13:18:12 2011] Waiting for all daemons to start completely...

[Tue Mar 15 13:20:12 2011] Successfully stated daemon manager
30% of IPM migration completed
[Tue Mar 15 13:20:12 2011] Checking if IPM Process is up and running
INFO:Daemon Manager is processing other tasks in the queue.Please try again later.
[Tue Mar 15 13:25:12 2011] Process IPMProcess is not running or never started
[Tue Mar 15 13:25:12 2011] Will check after 60 seconds
INFO:Daemon Manager is processing other tasks in the queue.Please try again later.
[Tue Mar 15 13:31:12 2011] Process IPMProcess is not running or never started
[Tue Mar 15 13:31:12 2011] Will check after 60 seconds
[Tue Mar 15 13:34:54 2011] Process IPMProcess is running normally
[Tue Mar 15 13:34:54 2011] Let's proceed further..
40% of IPM migration completed
[Tue Mar 15 13:39:54 2011]  delete flag is  0
[Tue Mar 15 13:39:54 2011]  Data passed to MigrMain : 2.6 5.0 E:\Sw\CSCOpx E:\Sw\CSCOpx e:\lmsbackup\temp\tempBackupData Migration e:\lmsbackup\temp\tempBackupData 0

Should I just wait? Is this something that might take days if I've got a lot of IPM data or is it broken? I don't really care about keeping IPM data so could I do something to complete the data migration for everything else? Any advice appreciated.

regards,

Aaron

1 Accepted Solution

Accepted Solutions

Joe Clarke
Cisco Employee
Cisco Employee

The restore can take a long time if you have a lot of data.  The problem is the database needs to be completely unloaded and reloaded to convert from ASA 9 to ASA 10.  However, if you do not care about IPM data, and you still have LMS 2.6 running, you can take a new LMS backup not using the wrapper.pl script (this will keep IPM from being backed up).

View solution in original post

2 Replies 2

Joe Clarke
Cisco Employee
Cisco Employee

The restore can take a long time if you have a lot of data.  The problem is the database needs to be completely unloaded and reloaded to convert from ASA 9 to ASA 10.  However, if you do not care about IPM data, and you still have LMS 2.6 running, you can take a new LMS backup not using the wrapper.pl script (this will keep IPM from being backed up).

Thanks Joseph. You were right - after three days it suddenly jumped frrom 40% to 100% and finished. Thanks for your reply.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: