The process involves performing comprehensive backups, completely uninstalling the existing Spectrum instance, reinstalling it to the new partition, and then meticulously restoring the previously backed-up data and configurations.
Prerequisites
Before starting the move, ensure you have the following:
- Root/Administrator Access: Full administrative privileges on the server where Spectrum is installed.
- Sufficient Disk Space: The target partition must have enough free space to accommodate the entire Spectrum installation.
- Full Backups:
- DDM Database Backup: Use mysqldump to back up the DDM database. This is critical.
- Example (Linux): $SPECROOT/mysql/bin/mysqldump --opt --single-transaction --all-databases > /backup_location/ddm_backup.sql
- Example (Windows): %SPECROOT%\mysql\bin\mysqldump.exe --opt --single-transaction --all-databases > C:\backup_location\ddm_backup.sql
- Archive Manager Database Backup:
- Example (Linux): $SPECROOT/bin/ArchiveMgr.pl --backup --file /backup_location/archmgr_backup.gz
- Example (Windows): %SPECROOT%\bin\ArchiveMgr.pl --backup --file C:\backup_location\archmgr_backup.gz
- Custom Files/Directories: Copy these directories and files from $SPECROOT to a safe backup location outside of the $SPECROOT hierarchy:
- $SPECROOT/custom (contains custom models, attributes, scripts, etc.)
- $SPECROOT/landscape (if applicable, though DDM restore usually covers this)
- $SPECROOT/SS/.vnmrc (important for SpectroSERVER configuration)
- $SPECROOT/tomcat/webapps/spectrum/WEB-INF/spring/ (for custom OneClick configurations)
- $SPECROOT/Notifier (if customized)
- Any other specific custom configurations or scripts you have implemented.
- Full $SPECROOT Archive: As a fallback, create a compressed archive (e.g., .zip, .tar.gz) of the entire $SPECROOT directory.
- Spectrum Installer: The exact version of the CA NetOps Spectrum installer that is currently installed. If patches have been applied, have those patch installers ready as well.
- Product License Key: Have your Spectrum license key readily available, as re-installation might require re-licensing.
- Downtime Window: Moving Spectrum will require significant downtime for all Spectrum services. Plan accordingly.
- Current $SPECROOT Path: Know the exact current installation path.
- Target Path: Determine the exact new installation path on the different partition (e.g., D:\CA\Spectrum on Windows or /data/CA/Spectrum on Linux).
Downtime
This procedure requires all NetOps Spectrum services to be stopped for an extended period, resulting in complete downtime for Spectrum monitoring and management.
Migration Steps
Step 1: Planning and Pre-Checks
- Identify Current Paths: Note down the current $SPECROOT directory.
- Identify Target Path: Determine the desired new path (e.g., D:\CA\Spectrum or /data/CA/Spectrum). This target directory should be empty or non-existent.
- Verify Installer: Ensure you have the correct Spectrum installer for your exact current version.
- Record Configuration: Document any specific ports, integration settings (e.g., with NetOps Portal, NFA), or other non-default configurations that you might need to re-enter during installation or re-configure later.
Execute all backup procedures described in the "Prerequisites" section. Do not proceed without verified backups.
Step 3: Stop All NetOps Spectrum Services
Stop all Spectrum-related services in the correct order.
- Windows:
- Stop CA Spectrum OneClick Web Server.
- Stop CA Spectrum Archive Manager.
- Stop CA Spectrum SpectroSERVER.
- Stop CA Spectrum MySQL (DDM).
- Linux:
- cd $SPECROOT/bin
- ./stopTomcat.sh
- ./stop_archive_mgr.sh
- ./stopSS.sh
- ./stopdb.sh
Verify all processes are stopped using ps -ef | grep $SPECROOT.
Step 4: Uninstall CA NetOps Spectrum
Use the official uninstaller to completely remove Spectrum from the old partition.
- Windows:
- Go to Control Panel > Programs and Features.
- Select "CA NetOps Spectrum" and click Uninstall. Follow the prompts.
- After uninstallation, manually check if the old $SPECROOT directory or any Spectrum-related registry entries (e.g., HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Concord Communications or CA Technologies) still exist. Delete them if found and confirmed to be related to Spectrum.
- Linux:
- Navigate to $SPECROOT/_uninst/ (or similar directory within your old $SPECROOT).
- Run the uninstaller: ./uninstall or ./uninstall.bin (depending on the version).
- After uninstallation, manually check if the old $SPECROOT directory has been completely removed. Delete any leftover files or directories.
Step 5: Install NetOps Spectrum to the New Partition
Run the Spectrum installer for your exact version.
- Launch Installer: Execute the installer (e.g., install.exe on Windows, ./install.bin on Linux).
- Specify New Path: During the installation wizard, when prompted for the installation directory, specify the new target path on the desired partition (e.g., D:\CA\Spectrum or /data/CA/Spectrum).
- Database Configuration: If the installer asks whether to initialize a new database or use an existing one, choose to initialize a new one (as we will restore over it) or select "Restore existing database" if that option specifically uses a backup file. Do not point it to the old database files if they still exist.
- Complete Installation: Finish the installation process. Do not start any Spectrum services yet after installation is complete, unless the installer does so automatically (you would then stop them immediately).
Step 6: Restore Configuration and Data
Now, restore your backed-up data to the newly installed Spectrum instance.
- Stop New Spectrum MySQL Service: If it was started after installation, ensure the MySQL (DDM) service is stopped.
- Windows: Stop "CA Spectrum MySQL (DDM)" service.
- Linux: cd $NEW_SPECROOT/bin; ./stopdb.sh
- Restore DDM Database:
- Navigate to the new MySQL bin directory: cd $NEW_SPECROOT/mysql/bin.
- Execute the mysql command to restore your backup.
- Example (Linux): Start MySQL server temporarily, then ./mysql -u root < /path/to/ddm_backup.sql (Enter your MySQL root password). Then stop MySQL.
- Example (Windows): Start MySQL server temporarily, then mysql.exe -u root -p < C:\backup_location\ddm_backup.sql.
- Restore Archive Manager Database:
- cd $NEW_SPECROOT/bin
- ./ArchiveMgr.pl --restore --file /path/to/archmgr_backup.gz
- Restore Custom Files:
- Copy the custom/ directory from your backup location to $NEW_SPECROOT/custom, overwriting the newly installed (likely empty) custom directory.
- Copy any other specific custom files (e.g., vnmrc, custom OneClick files) to their respective locations within the new $NEW_SPECROOT directory. Be cautious not to overwrite newly generated configuration files unless you specifically intended to restore an older version.
- Re-apply Patches/Hotfixes (if applicable): If you had any patches or hotfixes applied to your previous Spectrum installation, re-apply them now to the new installation.
Step 7: Start NetOps Spectrum Services
Start the Spectrum services in the correct order.
- Windows:
- Start CA Spectrum MySQL (DDM). Wait until it's fully started.
- Start CA Spectrum Archive Manager.
- Start CA Spectrum SpectroSERVER.
- Start CA Spectrum OneClick Web Server.
- Linux:
- cd $NEW_SPECROOT/bin
- ./startdb.sh
- ./start_archive_mgr.sh
- ./startSS.sh
- ./startTomcat.sh
Monitor logs for successful startup messages.
Step 8: Verification
After all services have started, perform thorough verification:
- Check Service Status: Ensure all Spectrum services are running correctly.
- Review Logs: Check the following logs for any errors or warnings:
- $NEW_SPECROOT/SS/stdout.log
- $NEW_SPECROOT/mysql/mysqld.log
- $NEW_SPECROOT/ArchiveMgr/ARCHMGR.OUT
- $NEW_SPECROOT/tomcat/logs/catalina.out (or stdout.log)
- OneClick Login: Log in to the OneClick web console and verify:
- Topology is displayed correctly.
- Alarms and Events are flowing.
- Historical data (from Archive Manager) is accessible.
- Reports are generated correctly.
- SpectroSERVER Functionality:
- Verify device models are present.
- Test device polling and alarm generation.
- If using DSS, verify connectivity between primary and secondary SpectroSERVERs.
- Test Integrations: If Spectrum integrates with other products (e.g., NetOps Portal, NFA), verify those integrations are working correctly.