Provides details about the requirements and procedures that help you migrate Cisco Optical Site Manager from standalone to high availability mode or from high availability to standalone mode.
Cisco Optical Site Manager standalone and high availability migration requirements
Migration scope
Cisco Optical Site Manager supports migration between standalone and high availability modes through the IOS XR CLI. The cosm reconfigure command applies committed Cisco Optical Site Manager configuration changes on the device that continues to host Cisco Optical Site Manager, without requiring you to deactivate and activate the application again or losing the Cisco Optical Site Manager database.
This table describes the supported migration flows.
|
Migration flow |
Use |
Result |
|---|---|---|
|
Standalone to high availability |
Adds Cisco Optical Site Manager redundancy configuration to the standalone device and activates Cisco Optical Site Manager on the peer device. |
Cisco Optical Site Manager preserves persistent data on the active device. The peer device joins the deployment as standby. |
|
High availability to standalone |
Removes one Cisco Optical Site Manager device from a high availability deployment. |
Cisco Optical Site Manager continues to run on the remaining device in standalone mode. Cisco Optical Site Manager data is deleted from the decommissioned device. |
Requirements and restrictions
This table lists the requirements and restrictions for Cisco Optical Site Manager standalone and high availability migration.
|
Requirement |
Description |
|---|---|
|
Supported platforms |
Cisco Optical Site Manager supports this migration flow on Cisco NCS 1010 and Cisco NCS 1014 devices. |
|
IP version |
The migration flow supports IPv4 addresses only in this release. |
|
Configuration interface |
Use the IOS XR CLI and the |
|
Device state before standalone-to-high-availability migration |
Only the first device must run Cisco Optical Site Manager. The peer device must have Cisco Optical Site Manager installed, but not activated. |
|
Software and Cisco Optical Site Manager settings |
Both devices must run the same Cisco IOS XR software version and use the same Cisco Optical Site Manager credentials, northbound interface enablement state, and northbound interface port settings. |
|
High availability reachability |
Both devices must reach each other through the configured redundancy interfaces. The redundancy gateway IP address must be reachable from both devices and must be different from the peer IP address. Use the same redundancy gateway IP address on both devices. |
|
Peer device onboarding |
Before you activate Cisco Optical Site Manager on the peer device, onboard the peer device in the Cisco Optical Site Manager Devices tab and wait until Sync Status shows sync-completed, alarm synchronized. |
|
Certificate cleanup |
Delete harddisk:/data/COSM/certs/host.cert before you run |
|
Operational state |
Do not start the migration while a software download or activation operation is in progress. Keep power stable and do not reload or switch over the device during |
|
Backup and disaster recovery files |
Create a new database backup before starting the migration and after the migration or rollback completes. For standalone-to-high-availability migration, use a newly generated disaster recovery file by Cisco Optical Site Manager because the old standalone backup and disaster recovery file are not valid for the migrated deployment. |
Migration status values
This table describes the status values that help you verify Cisco Optical Site Manager migration progress.
|
Status value |
Description |
|---|---|
|
|
Cisco Optical Site Manager is active on the device. |
|
|
Cisco Optical Site Manager is deactivated on the device. |
|
|
The device hosts the active Cisco Optical Site Manager instance. |
|
|
The device hosts the active Cisco Optical Site Manager instance, but the standby Cisco Optical Site Manager instance is not connected yet. This state can appear after you reconfigure the first device and before you activate Cisco Optical Site Manager on the peer device. This state appears after redundancy is configured on the SA device but before Cisco Optical Site Manager is reconfigured. |
|
|
The device hosts the standby Cisco Optical Site Manager instance and is connected to the active Cisco Optical Site Manager instance. |
|
|
The |
|
sync-completed, alarm synchronized |
The peer device is synchronized in the Cisco Optical Site Manager Devices tab before you activate Cisco Optical Site Manager on that peer device. |
Migrate Cisco Optical Site Manager from standalone to high availability
Migrate a running standalone Cisco Optical Site Manager deployment to high availability while preserving persistent Cisco Optical Site Manager data on the active device.
In this task, Device-1 is the device that runs Cisco Optical Site Manager in standalone mode. Device-2 is the peer device that joins the high availability deployment as standby. The cosm reconfigure command applies the committed Cisco Optical Site Manager redundancy configuration on Device-1 without deleting the Cisco Optical Site Manager database on Device-1.
Follow these steps to migrate Cisco Optical Site Manager from standalone to high availability.
Procedure
Cisco Optical Site Manager runs in high availability mode. Device-1 hosts the active Cisco Optical Site Manager instance, and Device-2 hosts the standby Cisco Optical Site Manager instance.
What to do next
-
Create a new database backup after the migration completes.
-
Do not use the old standalone backup or disaster recovery file for the migrated high availability deployment.
-
If migration changes the management IP address of the active Cisco Optical Site Manager host device, update the corresponding device entry in Cisco Optical Site Manager with the new management IP address.
-
If a route processor (RP) swap is required, wait 2 to 3 minutes after the migration completes before you start the RP swap.
Migrate Cisco Optical Site Manager from high availability to standalone
Migrate a Cisco Optical Site Manager high availability deployment to standalone mode when you remove a peer device or roll back a standalone-to-high-availability migration.
In this task, the remaining device is the device that continues to run Cisco Optical Site Manager after the migration. The decommissioned device is the device that you remove from the Cisco Optical Site Manager high availability pair.
The cosm deactivatecommand deletes Cisco Optical Site Manager data from the device on which you run the command. Run this command only on the device that you want to remove from the Cisco Optical Site Manager deployment.
Before you begin
-
Identify the device that continues to host Cisco Optical Site Manager and the device that you want to remove from the high availability deployment.
-
Verify that the remaining device and the decommissioned device are reachable through the IOS XR CLI.
-
Record the standalone Cisco Optical Site Manager management interface configuration that the remaining device must use after migration.
-
Do not start the migration while a software download or activation operation is in progress.
-
Keep power stable during the
cosm reconfigureoperation. Do not reload or switch over the devices while reconfiguration is in progress.
Follow these steps to migrate Cisco Optical Site Manager from high availability to standalone.
Procedure
Cisco Optical Site Manager runs in standalone mode on the remaining device.
What to do next
Create a new database backup after the migration completes. Use the new backup for future restore operations.