Ghost references of the old primary Management Server, while trying to re-register the DW
Hi all, I used the p_PromoteActiveWorkflowServer
stored procedure to promote a new MS server as the primary one. Before
performing promotion, I've de-registered the DW server.
Workflows now run on such promoted server, but if I try to register
the DW again, then the registration fails because of missing Data Access
Service availability. My environment is based on version 1807.
I've captured a network trace and I discovered that SCSM is still
looking for the old primary server in order to complete the
registration. In my opinion, some tracks remained on the SCSM DB, even
if I used the official MS stored procedure.
Is there a way to know which are the involved SQL tables that may host such wrong information?
I've tried to look at the tables mentioned here: https://blogs.technet.microsoft.com/mihai/fixing-service-manager-data-warehouse-registration-information/ but with no luck
Answers
If you head into the Data Warehouse tab in the Console, head into Data Source, then click on your operational management group, and then scroll down in the below pane. There is a section called "Data Warehouse CMDB Source" which should list your SCSM SQL server but may have the incorrect SDK server defined (e.g. your old one) post promotion.
I'm going through my notes, but I think the table exists in the ServiceManager DB (although that feels counter intuitive as i type it) and its in the neighborhood of the following SQL table - dbo.MT_Microsoft$SystemCenter$DataWarehouse
Try a similarly named series of tables in the DWStagingAndConfig in the DW server.
So, I've used the following utility and syntax in order to correctly write information in both databases:
SCSMRegisterDW.exe -u:MYSERVICEACCOUNT -sm:PRIMARYWFSERVER -dw:DWSERVER -a:add
Now the wunderbar is available and Get-SCDWSource cmdlet looks like to properly show the datasource
It feels like the documentation while specific in scope (i.e. Promote a Workflow server) should at least be aware of the downstream implication for the DW when this process is invoked.