Using DiskShadow to test an Exchange 2007 or Exchange 2010 backup

Most of you are aware of the BETest utility in Exchange 2007 used by us to test the VSS writers for troubleshooting Exchange backup related problems. With the advancement of the product Microsoft has come up with 1 more utility called “Disk Shadow” to check the Exchange writer state using the “Disk Shadow” utility in Exchange 2010.
Here are the steps which I have followed on my Exchange 2010 Lab server along with screen shots to make things easier.
  •   On Exchange 2010 server open the command prompt and run the following command to make sure that the Exchange writer is in stable state. If not get the Exchange Writer in stable state first
Command: vssadmin list writers
 Fig :
 
  •  The next step is to decide which drive are you going to shadow copy and then edit the script file which is the input file   which functions same as the “Components.txt” file in Exchange 2007.
  •   For Example in our case we will be concentrating on Drive C which is the default drive on the server.
 Now copy the following script in the notepad file
  
set verbose on
set context persistent
# Exclude other in-box writers
writer exclude {e8132975-6f93-4464-a53e-1050253ae220}
writer exclude {2a40fd15-dfca-4aa8-a654-1f8c654603f6}
writer exclude {35E81631-13E1-48DB-97FC-D5BC721BB18A}
writer exclude {be000cbe-11fe-4426-9c58-531aa6355fc4}
writer exclude {4969d978-be47-48b0-b100-f328f07ac1e0}
writer exclude {a6ad56c2-b509-4e6c-bb19-49d8f43532f0}
writer exclude {afbab4a2-367d-4d15-a586-71dbb18f8485}
writer exclude {59b1f0cf-90ef-465f-9609-6ca8b2938366}
writer exclude {542da469-d3e1-473c-9f4f-7847f01fc64f}
writer exclude {4dc3bdd4-ab48-4d07-adb0-3bee2926fd7f}
writer exclude {41e12264-35d8-479b-8e5c-9b23d1dad37e}
writer exclude {12ce4370-5bb7-4C58-a76a-e5d5097e3674}
writer exclude {cd3f2362-8bef-46c7-9181-d62844cdc062}
writer exclude {dd846aaa-A1B6-42A8-AAF8-03DCB6114BFD}
writer exclude {B2014C9E-8711-4C5C-A5A9-3CF384484757}
writer exclude {BE9AC81E-3619-421F-920F-4C6FEA9E93AD}
writer exclude {F08C1483-8407-4A26-8C26-6C267A629741}
writer exclude {6F5B15B5-DA24-4D88-B737-63063E3A1F86}
writer exclude {368753EC-572E-4FC7-B4B9-CCD9BDC624CB}
writer exclude {5382579C-98DF-47A7-AC6C-98A6D7106E09}
# Require Exchange writer
writer verify {76fe1ac4-15f7-4bcd-987e-8e1acb462fb7}
# Take snapshot
begin backup
add volume c: alias vss_test_c
create
# Expose snapshot as drive y:
expose %vss_test_c% y:
end backup

 

  • This script file should be saved as a text file, e.g. ExchangeSnapshot.txt. To execute, simply type the following from a command prompt (the /l parameter specifies a log file name):
  •  Now on the Exchange 2010 server from the command prompt execute the following command from the command prompt and hit enter:
Command: diskshadow /s ExchangeSnapshot.txt /l c:\diskshadow-log.txt
Fig:
 
  •   Wait for the operation to complete and you should see the following screens on the server.
Fig :
 
 

Now once the backup process gets completed open the Windows Explorer on the Exchange 2010 server and see the Disk Shadow copy should have been successfully created on the server!!!

Fig : 
 
 
  • Now double click the Drive Y which was created using the Shadow copy and you should see the data from the Drive in there.
  • Now run the command: vssadmin list writers on the server and make sure that the “Exchange writer” is in stable state which should be most of times.
  • If the Exchange writers are stable then there is no issue with Exchange writers

 Please email at mail@messagingserversupport.com for questions / feedback.


Cheers,

Team MSS


Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>