How to Replace a Windows Server 2012
Summary
This Knowledgebase article provides the
step-by-step procedure necessary to replace a Windows Server 2012 Datacenter.
More Information
Initial Assumptions
-
The
Operating System is installed on the
C:\
drive
-
Neverfail
is installed on the
C:\
drive
-
Neverfail
is installed in a LAN environment
-
The
Secondary server will be replaced
-
The
replacement server meets the documented prerequisites for Neverfail
installation (for example, ACPI compliance with the remaining server). See
the Neverfail Heartbeat Installation Guide for more information about
hardware requirements for Secondary and Tertiary servers.
Before You Begin
-
Read
this entire article before performing any steps.
-
Identify
the server that needs to be replaced. The identity of this server is
referred to as TO_BE_REPLACED throughout this document.
-
Identify
the active server. The identity of this server is referred to as
TO_BE_BACKEDUP throughout this document.
-
Open
the Neverfail Heartbeat Management Client, click
Data
and select
the
File Filters
tab. Make a note (in a file or on a piece of
paper) of all replication filters.
Procedure
On the Active Server:
-
Shutdown
Neverfail Heartbeat.
-
Set
the
Neverfail Server R2
service to
Manual
using the Windows
Service Control Manager.
-
Write
down the identity of this server.
-
Open
the Neverfail Heartbeat Configure Server wizard.
-
Select the
Machine
tab.
-
Change the
Physical Hardware Identity
of the
server scheduled for replacement to TO_BE_REPLACED (defined above).
WARNING:
Do not change the Server
Identity in any situation other than this.
-
Change the
Current Role
to
Passive
.
Note:
This step applies only to Neverfail Heartbeat v5.5.1 and
Prior
-
Click
Finish
.
-
Launch
the Windows Server Backup utility.
-
Start the
Backup Once
action.
-
Select
Different Options
.
-
In the next screen, select
Custom
and press
Next
.
-
Click
Add Items
and select
System State
and any other drives that contain protected application critical program
files or any other application that is required to be present on the
replacement server. Click
OK
and then click
Next
.
-
Select the destination of the backup using a local
location or directly on the Secondary or on other server. If the
destination is remote, a Share or Administrative Share location for that
server must be provided.
-
Before starting the backup you may want to exclude
large files located on the drives selected (see step d, above) to reduce
the size of the backup files.
Note:
Exchange or SQL databases or any other data that is
included in the Neverfail filter set is not required to be cloned because
Neverfail automatically synchronizes them.
-
Use the following procedure to exclude data:
-
Navigate to
Start
>
Run
, enter
Regedit
,
and click
OK
.
IMPORTANT:
Always create a backup before modifying the
registry.
-
Browse to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\BackupRestore\FilesNotToSnapshot
-
Create a new multi-string value (Exclusion) and add
to it all the folders and files that should be excluded from the backup
(press
Enter
after each excluded folder or file).
Note
: The recursive exclusion syntax for all files under a
folder is:
<FolderPath>\* /s.
You may specify files directly without
wildcards. See the Microsoft knowledgebase article linked below for
the syntax for the various exclusion options. The best practice when
working with registry long data values is to limit them to 300
characters so please create additional multi-string values to
accommodate this.
-
After the backup is complete, run the Neverfail
Heartbeat Configure Server wizard again.
-
Select the
Machine
tab.
-
Change Physical Hardware Identity to TO_BE_BACKEDUP
(defined above).
-
Change the
Current Role
to
Active
.
Note:
This step applies only to Neverfail Heartbeat v5.5.1 and
Prior
-
Click
Finish
.
-
In
the task bar, right click the Neverfail Heartbeat Server icon and select
Start
Neverfail Heartbeat
.
-
Log
into the Neverfail Heartbeat Management Client. Select the option to
Stop
replication but leave the Protected Application running
.
-
Set
the
Neverfail Server R2
service to
Automatic
using the
Windows Service Control Manager.
On the New Server (the Replacement):
-
Copy
the backup file from the active server.
-
Recover
the files and folders:
-
Start Windows Server Backup. Go to
Action
->
Recover
.
-
Select
A backup stored on another location
,
click
Next
.
-
Select
Remote shared folder
, click
Next
.
-
Type the path for the backup (for example,
\\localhost\D$
).
Click
Next
.
-
Check that the correct backup is selected and click
next
-
Select files and folders, click
Next
.
-
Select the first disk the needs to be recovered (for
example, Local disk
C:
) and click
Next
.
-
Select another location and browse to the
corresponding drive; select to
overwrite the existing versions with
the recovered versions
; select
Restore Access Control list (ACL)
permissions to the file or folder being recovered and click
Next
.
-
Review the backup recovery items and click
Recover
.
Note:
Perform steps a.-i. For any additional drives that must
be restored.
-
Restore
the System State
-
Perform steps a.-e. from Step 2.
-
Select
System State
and click
Next
.
-
Select
Original location
, click
Next
and acknowledge the warnings. A window displays the message:
The specified backup is of a different server than the current one. We
do not recommend performing a system state recovery with the backup to an
alternate server because the server might become unusable. Are you sure
you want to use this backup for recovering the current server?
.
-
Click
OK
. Another window displays the
message:
If you perform a system state recovery from a backup on a remote
shared folder, if there are network connection issues during the
operation, the computer that you are recovering may become unusable.
Instead, if possible, copy the backup to the local computer and then
perform the recovery. Do you want to continue?”
-
Click
OK
if the conditions are met. Then click
Next
.
-
Clear the
Automatically reboot the server
check box and click
Recover
.
-
When
prompted for a restart, unplug all network cables and restart the server.
-
Allow
Plug and Play to continue and restart the server if prompted.
-
In
the Properties window of each network card, verify that the IP address
settings are correct and the Neverfail Heartbeat Packet Filter is enabled
for the Public network connection and disabled for all channel connections.
It may be necessary to remove ghost NICs. If ghost NICs are found, open a
command prompt and run the following commands:
-
set devmgr_show_nonpresent_devices=1
-
devmgmt.msc
-
in the device manager snap-in click
View
->
Show
hidden devices
-
Uninstall all ghost NICSs without deleting driver
software for those devices.
-
On
the
Machine
tab of the Neverfail Heartbeat Configure Server wizard,
verify that the Identity and Active Server are configured correctly.
-
On
the
Public
tab of the Neverfail Heartbeat Configure Server wizard,
verify that the Public IP is correct.
-
Use
the
route print
command to check that all WAN routes are correctly configured.
Note:
It may be necessary to re-authenticate Windows.
-
When
replacing a Primary server and using Neverfail Heartbeat v5.5.[n] or
earlier, follow these steps:
(These steps do not apply to Neverfail Heartbeat V6.0 and more recent.)
-
Follow the instructions in
Knowledgebase Article
#1255
—
How to request a
license key for Neverfail Heartbeat using SCOPE Data Collector Service
V4.1 and later to obtain a new license key
.
-
Select the
License
tab in the Configure Server
wizard and replace the old license with the new one.
-
Click
Finish
.
-
Reconnect
the Public and Channel cables.
-
In
the task bar, right click the Neverfail Heartbeat Server icon and select
Start
Neverfail Heartbeat
.
-
Log
into the Neverfail Heartbeat Management Client and start replication.
-
Set
the
Neverfail Server R2
service to Automatic using the Windows
Service Control Manager.
Applies To
Windows Server 2012 Datacenter
Related Information
Microsoft knowledgebase article
—
Excluding Files from Shadow Copies
Knowledgebase Article #1816
— How to Replace a Windows 2000 Server
Knowledgebase Article #851
— How to
Replace a Windows 2003 Server
Knowledgebase Article #1774
— How to Replace a Windows 2008 Server
Knowledgebase Article #2613
— How to Replace a Windows 2008 R2 Server
KBID-2725