Log Truncation: Testing with DiskShadow

SUMMARY

To see if DiskShadow runs successfully independent of a back up job, you can run it from a command prompt on the guest.

ISSUE

UVB uses the Windows Tool DiskShadow.exe to quiesce Windows machines (Windows Server 2008 and later).

If you want to see if DiskShadow runs successfully independent of a back up job, you can run it from a command prompt on the guest. 

  1. Open a command prompt as administrator.
  2. Type diskshadow and press Enter. You should now be in a DiskShadow session.
  3. Enter set context persistent -- This makes the shadow copy persistent.
  4. Enter set verbose on -- This will increase the amount of feedback DiskShadow returns.
  5. Enter begin backup -- This will indicate that you want a full VSS snapshot. Logs will not be truncated unless the VSS snapshot is a full and copy is the default.
  6. Enter add volume C: -- Adds volumes to the shadow set. At least one volume must be added.
  7. Enter create -- This will run the shadow creation process.
  8. Enter end backup -- This command indicates a successful backup and will prompt the truncation of Exchange logs. If you do not want to truncate now, skip this line.
  9. Enter exit -- This will end the DiskShadow session.

User-added image

If you want to check for VSS errors or to see if logs were truncated, check the guest machine's Event Log. 

For more information, see Microsoft TechNet: DiskShadow

 

NOTES

20200625jmaynard - corrected broken link

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Contact us