Erasing unsupported tapes & utility automation sample - The Official System Center Data Protection Manager Team Blog - Site Home - TechNet Blogs

Erasing unsupported tapes & utility automation sample

Erasing unsupported tapes & utility automation sample

  • Comments 2
  • Likes

You may encounter tapes in DPM libraries that are written with an unsupported block size and first need to be erased because DPM cannot evaluate such tapes and therefore will not do anything to it. The ZIP file that can be downloaded here contains a script, script user guide and two utilities to accomplish this on a DPM server that controls a library. The utilities actually are testing tools that provide the necessary functions to control changers and tape drives. The script automates the various steps and simplifies the syntax for erasing tapes.

Usage: DPMeraseTape.Ps1 <slot number> <unique part of library friendly name>

The script will load media from <slot number> into an empty tape-drive, erase the tape and move media back into the slot again. Further details are described in the user guide. Link: http://cid-b03306b628ab886f.office.live.com/self.aspx/.Public/DPMeraseTape.zip
---
The script can also be seen as a sample of automation with utilities designed for interactive use that maintain their own command shell. In this case “Mytape.exe” but the Windows “Diskshadow” utility would be another good sample. Typically series of meta-commands in a particular order make-up a task that is very hard to implement yourself. Although these utilities can take an input file with commands it provides no step by step interaction and conditional control. This script demonstrates how to run such a utility as separate process, send commands and process resulting output as asynchronous events.
Have fun…

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Hi,

    i have Tape Drive (NOT library) attached to my DPM 2010... i want to erase LTO5 Tape before using.... what script i should be using for that ?

  • I was able to use MyTape.exe utility with DPM 2012 R2. "MyTape.exe" is included in "DPMeraseTape.zip" download. Followed the steps in this blog: http://www.runit.nl/Blogs/tabid/98/EntryId/2/Cannot-erase-tapes-in-Microsoft-DPM.aspx I just had to pre-load the tape in on of the drives in our "Dell PowerVault TL2000" and it worked as expected.