Skip to main content

Support & downloads  >  

Modified Instructions for Complete Restores of Windows Systems with the TSM Client: Bare Metal Restore (BMR), System State Restore, Windows System Object Restore

 Technote (troubleshooting)
 
Problem(Abstract)
The following article provides guidance for complete system restores of Windows 2000, XP, 2003, 2003 R2, Vista, 2008, 2008 R2, and Windows 7 systems using the TSM client and system state restore. The procedure applies to the restore technique where you are restoring over a running operating system. These procedures should only be followed after less severe recovery techniques such as Microsoft System Restore have been attempted.
 
Cause
A number of fixes have recently been introduced in the TSM client which impact the success of complete system restores. TSM client level 5.4.0 or newer is recommended for performing system restores.
  • For system recovery on Windows Vista systems with the TSM 5.5 client, please ensure that you have the fix for APAR IC54951 which is available in 5.5.0.3 and newer clients, and that at least one systemstate backup has been taken at that level.
  • System recovery for Windows 2008 servers requires a 5.5.0.4 or newer TSM client level.
  • System recovery of Windows 2008 R2 and Windows 7 systems requires a 6.1.2.0 or newer TSM client level.

Note that not all Windows operating systems discussed below are supported on all TSM client releases currently in service. In particular, the recommendation to use a 5.4.0 or newer client does not apply to Windows 2000. See the following link for supported levels: Windows Client Requirements
 
Resolving the problem

Preparation:
In order to perform a complete system restore, a complete backup is needed. The backup must include a complete backup of the system drive, and a backup of the system state (the term system objects is used for Windows 2000 and Windows XP, but is referred to generally as system state for the remainder of this document.) You may also need to backup additional drives besides the system drive if they exist on your system. Generally, this should include any drive containing critical user data or application program files. The following points should be considered:
  1. A scheduled backup of the default all-local domain will include both the system drive and system state.
  2. Care must be taken not to exclude required application files from the system drive backup. The sample options file in the config directory lists suggested include/exclude rules which are known not to interfere with system recovery. The sample options files can be found in the normal installation path. For example, c:\program files\tivoli\tsm\config\dsm.smp.
  3. A number of files on the system drive are automatically excluded from backup based on operating system controls. The "query inclexcl" command can be used to view the rules which will affect which files are automatically excluded during backup. Files which are under Windows system file protection can only be backed up as part of the system and boot files component of system state. They are automatically excluded from normal system drive backup processing.
  4. System recovery time can be greatly reduced by maintaining a volume-level image of the base Windows installation. Products such as Symantec's Ghost are useful for creating such images.
  5. For Windows 2000 domain controllers, a file-level backup of the drive containing the SYSVOL is required to maintain a copy of the SYSVOL directory structure. For Windows 2003 and 2008 domain controllers, the SYSVOL directory structure is included as part of the system state backup.

Restore Procedure:
The following restore procedure is required when you are restoring your complete operating system over a running operating system. These procedures are not required if you are restoring with Automated System Recovery (ASR.) See note #5 for additional details related to ASR.

Note: prior to restoring a Windows Vista system using a TSM 5.5 client, ensure you have the fix for APAR IC54951 which is available in 5.5.0.3 and newer clients, and that at least one systemstate backup has been taken at that level. Do not restore a systemstate backup on Windows Vista that was taken using the 5.5.0.0 or 5.5.0.2 client levels.

Preparation steps:
  1. It is strongly recommended that you restore to identical hardware to which the backup was taken from.
  2. In order to restore, you need a base operating system running with the TSM client installed, and connectivity to the TSM server.
  3. Windows must be installed in the same directory at which it was installed at the time of backup (c:\winnt for example.) The system drive file system must be formatted in the same file system type that existed at the time of backup. For systems previously upgraded from Windows NT4.0, you may have difficulty installing the base OS in the original directory. See notes below for more information.
  4. The system name must be set to match the system name at the time of backup. Unless this is set, the system state component cannot be restored.
  5. If you are recovering a domain controller, do not promote the base operating system to a domain controller prior to running the restore.
  6. Apply the same Windows service pack to the base operating system which was installed at the time of backup. In addition, on Windows 2003 servers, the VSS hotfixes identified in KB940349 and KB934016 need to be installed following any service pack installations.
  7. Partition and format any additional volumes required for recovering the systemstate or additional drives. For example, if you are restoring a domain controller with NTDS files stored on a drive other than C:, you will need to create the additional drives before proceeding with the restore. The new drives need to be of equal or greater capacity, formatted with the same file system type, and mapped to the same drive letter or directory that was used at the time of backup.
  8. Ensure that the Windows default administrative shares exist for all of the drives to be restored. Issue the following Windows command to check this:
    > net share
  9. For restores from a TSM server, you will need a working network connection. Even with local backupset restores, problems have been encountered resolving UNC names on systems where there are no active network connections, so you should have at least one active network connection before attempting the restore.
  10. For some domain controller restores, the option FRSPRIMARYRESTORE should be set to yes prior to performing the systemstate restore. Recovering the first domain controller in a domain is one example where using the option to force an authoritative FRS restore is required. Note: an authoritative SYSVOL restore is not possible when using ASR.

Restore steps (see the additional information section for notes on using the Graphical Users Interfaces) :
  1. This step is only required if your are restoring a Windows 2000 or XP system, or if you are restoring a Windows 2000, XP, or 2003 system with a TSM client at level 5.3.4 or older. The following commands can be used to pre-restore the Windows system file protection catalogs:

    Your Windows installation directory and drive letter may vary. The %systemroot% and %systemdrive% variables can be used to create a generic restore procedure if desired.
    Windows 2000:
    > dsmc restore "{SYSTEM OBJECT}\winnt\system32\catroot\*"
    c:\winnt\system32\ -sub=yes -rep=all
    Windows XP:
    > dsmc restore "{SYSTEM OBJECT}\windows\system32\catroot\*"
    c:\windows\system32\ -sub=yes -rep=all
    Windows 2003/Windows 2003 R2 for 5.3.4 and older client levels only (note: the V5.3 client is supported on Windows 2003/Windows 2003 R2 only with support extension contracts):
    > dsmc restore "{SYSTEM STATE}\windows\system32\catroot\*"
    c:\windows\system32\ -sub=yes -rep=all
  2. Restore the system drive. Ignore the request to reboot at the end of the restore and proceed to the next step! Repeat this restore step for all other drives that exist on your system.
    All Windows:
    > dsmc restore c:\* -sub=yes -rep=all
  3. Restore the system state. The option frsprimaryrestore yes can be added to the client option file prior to running the following commands if an authoritative sysvol restore for a domain controller is required. (note: you will be prompted to reboot at the conclusion of the restore.)
    Windows 2000/XP:
    > dsmc restore systemobject
    Windows 2003/2003 R2/Vista/2008/2008 R2/Windows 7:
    > dsmc restore systemstate
  4. Restore the system services. This step only applies to TSM 5.4 and older clients since the system service components are included as part of the systemstate backup beginning with TSM 5.5.
    Windows 2003/2003 R2/Vista:
    > dsmc restore systemservices
  5. Reboot

The following example shows a complete sequence of commands for restoring a Windows 2003 system using environment variables to avoid fixed drive letters and paths. Note that the first command is only required when restoring with a 5.3.4 or older TSM client.

> dsmc restore "{SYSTEM STATE}\windows\system32\catroot\*"
%systemroot%\system32\ -sub=yes -rep=all
> dsmc restore %systemdrive%\* -sub=yes -rep=all
> dsmc restore systemstate
> dsmc restore systemservices

Example for 5.5 and newer clients (Windows 2003, 2008, and Vista):

> dsmc restore %systemdrive%\* -sub=yes -rep=all
> dsmc restore systemstate


Additional Information
1. There are four files under system file protection which cannot be restored due to a Microsoft Windows limitation with replace on reboot. These files are: ntdll.dll, smss.exe, dtcsetup.exe, and ctl3dv2.dll. If you are restoring over a base Windows image which contains down-level versions of these files versus those contained in your backup image, you may experience system problems following the restore including:
  • Failure of your system to boot due to a down-level version of ntdll.dll (see Microsoft article KB328035 for additional information.) The work-around to this problem is to apply Windows XP SP1 prior to performing the restore, or to use Automated System Recovery (ASR.)
  • One or more Windows critical updates may not be correctly restored. Following the restore, use Windows Update to reapply the critical updates which are not correctly restored.

2. When is it necessary to use "Directory Services Restore Mode" (DSRM)? The normal complete system recovery procedure for a domain controller does not require DSRM. The use of DSRM is only required when a server is already active as a domain controller, and recovery of NTDS is prevented when the Active directory services are active. When performing a complete system recovery, do not promote your newly installed base OS to a domain controller prior to performing the restore. The system should automatically become a functioning domain controller as a result of the restore. Alternatively, DSRM is required if your server is already operating as a domain controller, and restore of the active directory is needed to resolve an issue such as accidental deletion of active directory objects. In this scenario, booting to DSRM prevents the NTDS services from starting, allowing a TSM restore of system state including NTDS.

3. Following a domain controller recovery, you may see errors in the Windows event viewer for file replication services which indicate that the server is prevented from becoming a domain controller due to problems with the SYSVOL share. In normal cases, this message will eventually be followed by another message indicating that SYSVOL has been shared and is no longer preventing the server from becoming a domain controller. If this does not happen, manual repairs to the SYSVOL structure may be required. In many cases, the SYSVOL directory structure can be repaired, and FRS will replicate in the correct contents of the SYSVOL. Microsoft article KB315457 provides details on how to rebuild the SYSVOL tree including the junction points which are required before a system can be returned to a domain controller.

http://support.microsoft.com/kb/315457

4. In some situations, special steps are required to force Windows to install into a non-default directory when installing your base operating system. For example, a system which is upgraded from Windows 2000 to Windows 2003 will maintain the operating system files in C:\WINNT. When installing a base Windows 2003 operating system for recovery purposes, Windows will force the installation into the C:\WINDOWS directory by default. A successful restore will not be possible unless the base Windows 2003 operating is forced to install into the C:\WINNT directory instead of C:\WINDOWS. Microsoft article KB235478 provides instructions on how to force Windows to install into a non-default directory.

http://support.microsoft.com/kb/235478

5. If you are using Automated System Recovery (ASR) which is available for Windows XP and Windows 2003 beginning in TSM 5.2, then you will not be required to perform many of the steps described in this document, including the pre-restore of the SFP catalogs. The TSM restores performed during ASR occur while Windows system file protection is not running. For this reason, the pre-restore of the SFP catalogs is not necessary. Also, issues restoring the four restricted Windows system files (ntdll.dll, smss.exe, dtcsetup.exe, and ctl3dv2.dll ) will not occur when using ASR. If you are running Windows XP or Windows 2003, we strongly recommend that you use ASR instead of restoring system state/systemservices over a running Windows operating system.

6. The procedures listed in this article are not recommended for recovering an operating system to dissimilar hardware. However, in situations where there is no alternative, two methods have provided limited success repairing boot problems following restores to dissimilar hardware. The first technique involves retaining a copy of critical hardware specific files after installing the base operating system and copying these files back after performing the restore, but before rebooting the system. See the following Microsoft article for more discussion on this technique:

http://support.microsoft.com/kb/Q249694

The second technique uses the Windows installation CD repair facility to repair the restored operating system which is failing to boot. This procedure is some times referred to as "upgrade in-place" or "repair installation." See the following Microsoft articles for more information on this technique:

http://support.microsoft.com/kb/315341

http://support.microsoft.com/kb/816579

7. Tips for recovering NTDS or SYSVOL components to a new location without restoring the entire systemstate.

In certain circumstances, you may desire to restore NTDS or SYSVOL files for a domain controller to an alternate location, and then use Microsoft utilities to recover from these restored files. Tivoli does not provide support for these recovery techniques, but provides these commands for users who have a requirement for recovery of NTDS and/or SYSVOL without a complete systemstate recovery, and have knowledge of the procedures necessary for recovering from the files which have been restored to an alternate location.

Note: the systemstate naming structure has been changed beginning with the TSM 5.5 client. Different variations of these commands are needed depending on whether you are restoring with a 5.5 or newer client. In order to perform the restore commands listed for the 5.5 client, the fix for APAR IC54973 which is available in 5.5.0.3 and newer client levels is required.

TSM 5.4 and older:
dsmc rest "{SYSTEM STATE}\WINDOWS\NTDS\*" c:\ntdsrest\ -sub=yes
dsmc rest "{SYSTEM STATE}\WINDOWS\SYSVOL\*" c:\svolrest\ -sub=yes

TSM 5.5 and newer:
rest "{SERV1\SystemState\NULL\System State\SystemState}\\serv1\e$|\ntds\*" e:\ntdsrest\ -sub=y

Your pathnames for where NTDS and SYSVOL may vary requiring adjustment to these commands. If you are having trouble locating the correct path, you can search for the files with a command like the following:

TSM 5.4 and older:
dsmc q b "{SYSTEM STATE}\ntds.dit" -sub=yes
    TSM 5.5 and newer:
    dsmc q b "{SERV1\SystemState\NULL\System State\SystemState}\ntds.dit" -sub=y

    8. A systemstate restore may fail with the message ANS1056E Share/network path cannot be resolved. This failure may be caused by the absence of the default administrative shares for drives which need to be accessed during the systemstate restore. You can determine if you have this problem by issuing the Windows command net share to ensure the shares are listed for all drives. In most cases rebooting will restore the missing shares. Alternatively, stopping and starting the Windows server service may also restore these shares.

    9. A systemstate restore may fail with the error message ANS1949E Microsoft volume shadow copy snapshot initialization failed. See the following technote for a possible solution to this problem:
    http://www.ibm.com/support/docview.wss?&uid=swg21385864

    10. The restore procedures described above can also be performed using the graphical user interface with the exception of the steps for performing a pre-restore of the Windows system file protection catalogs.

    To restore the system drive:
    a) Click "Restore"
    b) Expand "File Level"
    c) Select the entire drive representing the system drive, for example, \\ntserv1\c$ (C:)
    d) Click the "Options" button, and select the options "Replace" and "Replace files even if read-only/locked", then click OK
    e) Click "Restore", and select "Original location", the click "Restore" again
    f) Ignore the request to reboot at the completion of this restore and proceed to the systemstate restore.

    To restore the system state:
    a) Click "Restore"
    b) Select the object "SystemState", and click "Restore"

    11. The following are links to additional information on TSM topics useful for Windows system recovery.

    Redbook titled "Deploying the Tivoli Storage Manager Client in a Windows 2000 Environment" ,
    http://publib-b.boulder.ibm.com/Redbooks.nsf/RedbookAbstracts/sg246141.html?Open


    White paper titled "Tivoli Field Guide - Using Microsoft Windows Automated System Recovery (ASR) to Recover Windows XP and Windows 2003 Systems with the IBM Tivoli Storage Manager Backup-Archive Client for Windows"
    http://www.ibm.com/support/docview.wss?uid=swg27007346

    White paper titled "Tivoli Storage Manager Recovery Techniques Using Windows Preinstallation Environment (Windows PE)"
    http://www.ibm.com/support/docview.wss?uid=swg27005028

    Technote explaining restore location of the Windows event log files for Windows 2003
    http://www.ibm.com/support/docview.wss?uid=swg21223228

     
     
     

    Copyright and trademark information
    IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.
    Rate this page
    Please take a moment to complete this form to help us better serve you.
    This material provides me with the information I need.




    This material is clear and easy to understand.




    Did the information help you to achieve your goal?
    What updates, improvements, or related information would you like to see in this document?
    Your response will be used to improve our document content. Requests for assistance, if applicable, should be submitted through your normal support channel as we cannot respond from this site.
    Input the verification number to submit feedback:
    Document information
     Product categories:
     Software
     Storage Management
     Data Protection
     IBM Tivoli Storage Manager
     Client
     Operating system(s):
      Windows, Windows 2003, Windows 2008, Windows Vista, Windows XP
     Software version:
      All Supported Versions
     Reference #:
      1164812
     IBM Group:
     Software Group
     Modified date:
     2009-11-01

    Translate My Page
     
     

    Rate this page

    Help us improve this page. Your response will be used to improve our document content. Requests for assistance, if applicable, should be submitted through your normal support channel as we cannot respond from this site.