SCOM 2012 R2 DRP or Upgrade to your Operating System
With System Center 2016 just around the corner I have being asked quite often by customers on upgrading their current servers OS for SCOM servers, because a lot of them are still in 2008 R2 with a SCOM 2012 R2, this can be challenging, but with this guide you can check for the things you need and the basic task list on how to do it, as always try this first in a test environment and adjust it to your needs, the guide is intended just to outline the process so you can adapt it to your needs.
Prerequisites:
- Documented users and Passwords:
- Example, SQL Monitoring, Azure subscriptions, Lync Monitoring, ETC.
- Certificates:
- Azure Management Certificates.
- Management Servers and Gateway Servers Certificates.
- Media:
- Windows Server.
- SCOM.
- SCOM most recent UR Available.
- SQL Server.
- Antivirus.
- Others:
- Antivirus Exclusions: https://support.microsoft.com/en-us/kb/975931.
- Firewall Exclusions: https://technet.microsoft.com/en-us/library/jj656649.aspx#BKMK_Firewall – Remember that reporting services require ports 1433 and 1434.
Activities:
References: https://technet.microsoft.com/en-us/library/hh531578.aspx
- Stop services in Management Servers.
- Create a full backup of your databases: OperationsManager and OperationsManagerDW.
- Install new operating systems with the same server names.
- Install .Net Framework: Install-WindowsFeature –name NET-Framework-Core
- Ensure connectivity to and from your management servers by name, and to your gateways if relevant.
- Apply OS Updates
- Install SQL Server with the following features:
- Database Engine.
- Full Text Search.
- Management Tools.
- Use the same instance name as your previous installation.
- Use your defined user for SQL Services.
- Check your Collation to: Latin1_Genera_CP1_CI_AS.
- Review your data default paths.
- Install SQL Server.
- Review that the SQL agent is running and set to Automatic start.
- Restore your backups from the databases to your new SQL Server.
- Enable SQL Service Broker for OperationsManager and OperationsManagerDW databases:
- ALTER DATABASE [Database_name] SET ENABLE_BROKER;
- Enable CLR:
- sp_configure @configname=clr_enabled, @configvalue=1
- GO
- RECONFIGURE
- GO
- We will use this command for installing an MS in recovery mode: Setup.exe /silent /AcceptEndUserLicenseAgreement /Recover /EnableErrorReporting:Always /SendCEIPReports:1 /UseMicrosoftUpdate:1 /DatabaseName:OperationsManager /SqlServerInstance: DatabaseInstance /DWDatabaseName:OperationsManagerDW /DWSqlServerInstance: DatabaseInstance /DASAccountUser: SDKAccount/DASAccountPassword: Password /DatareaderUser: DataReaderAccount /DatareaderPassword: Password /DataWriterUser: DataWriterAccount /DataWriterPassword: Password /ActionAccountUser: [ActionAccount] /ActionAccountPassword: [Password]
- We will need to retype user and password for each Run as Account in the console once SCOM is installed in recovery mode, this includes the ones with Binary or Certificate Accounts, this should be eliminated and recreated, this are used in Management Packs like Azure and Operational Insights, just reconfigure the service and they will be recreated automatically at least in this two cases, go to administration –> Accounts to change or delete them.
- Start your services in the other MS.
- Reconfigure your mail Rely if you had one.
- Verify notifications.
- Verify configuration and functionality for emailing reports.
- Wait for some time before applying the URs, to check if everything is working as expected, monitoring the event viewer.
- Install last available UR.
- Import required certificates for agent and gateways communications.
- Use MOMCertimport to assign the certificate to the HealthService.
- Restart every HeartService you import a certificate for.
- Install Antivirus.
- Apply Antivirus Exceptions
- Apply Firewall Exceptions.
- Verify Monitoring and Alerts are being generated.
Note: In case you decide to change the instance name or server name of the databases for some reason you need additional steps:
- Open SQL Server Management Studio.
- Expand Databases, OperationsManager, and Tables.
- Right-click dbo.MT_Microsoft$SystemCenter$ManagementGroup, and then click Edit Top 200 Rows.
- Change the value in the SQLServerNamecolumn, it will have an ID at the end in the column header, to reflect the name of the new SQL Server-based computer.
- Save the change.