SnapCenter HA replication failing after SnapCenter upgrade
Applies to
- SnapCenter Server [SC]
- F5 High Availability [HA]
- MySQL [NSM]
Issue
- SnapCenter MySQL replication failure post SnapCenter upgrades:
Error: SnapCenter repository database restore failed with error : MySQL query execution failed with error : ERROR 3734 (HY000) at line 1178: Failed to add the foreign key constraint. Missing column 'NetAppAccountId' for constraint 'FK_nsm_AzureNetAppFiles_StorageFootprint_nsm_AzureNetAppAccount' in the referenced table 'nsm_AzureNetAppAccount'
- Replication issues message seen when running
Get-SmRepositoryConfig
:Replication of the repository failed with error: Worker 1 failed executing transaction 'ANONYMOUS' at source log mysql-bin.xxxx, end_log_pos xxxx; Error executing row event: 'Table 'nsm.<Table_Name>' doesn't exist'.
You can manually correct the error or rebuild the repository on <SC_Node_IP> by running the'Set-SmRepositoryConfig' cmdlet with the '-ServerToRebuild' option.