[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 657
  • Last Modified:

Terminate Open File Handles To Eject Backup Tape

I can not eject the backup tape after the backup runs after each night.  There is an RD-1000 from Dell being used as the backup which is bascally a SATA removable disk.  There is an service that Dell uses to eject the tape called RXMON.  The service works properly and the tape will eject fine as long as the backup has not run.  It may not evern be the backup causing the problem but somthing running every night leaves open handles to the drive.  When the command is sent to eject the tape it says that it is busy and can not eject.

I have used Sysinternals "handle.exe" to browse for what is locking the drive busy.  I have found 4 processes which equate to IIS and Exchange !!!! What .... Do not know why that care about the drive or when they keep accessing it.  Perhaps an index process or somthing but what ever it is it is causing me to not be able to eject the tape !!!

I believe the easiest resolution is to terminate all of the open handles to the device so that the normal eject will function properly.  I am of course open to other sujestions.  The handle.exe program lets me see the open handles but the close command is not very suiting.  It requires the PID in HEX to close the handle.  Problem is the PID changes each time and I have to do a HEX conversion in a script along with parsing .... AHhhhhahahhh!  Please someone help, this should not be this difficult.
0
Pivnardo
Asked:
Pivnardo
  • 3
1 Solution
 
sykojesterCommented:
I had a similar issues with tapes not ejecting after a backup completed.  I think the software the customer was using was ARCServ.  I found that stopping & starting the services from the backup software fixed the problem so I simply wrote a batch script to stop & start them & scheduled the task to run around 6am (well after the backup completed based on the logs).

Sometimes it's just the backup software itself.  Check to see if updates are available for both your backup software & the RD1000 unit.
0
 
PivnardoAuthor Commented:
using acronis true image backup for sbs.  latest download from them.  also ther is mo service to bounce from what i see in acronis.  the RD-1000 is uptodate in firmware and service driver.  worked with Dell and got no where.
problem is then I need to restart IIS and Exchange every night to accomplish the task.  not the most desirable solution.  this solution borders along the lines of restarting the server each night.
thnk you for the responce ... i just hope there is a better way.
0
 
PivnardoAuthor Commented:
Thank you for the assistance.
0
 
PivnardoAuthor Commented:
If I stopped and restarted all the exchange and IIS services in their recommended order ... the handles would be gone and I can eject the tape.
I had to use the Sys Internals program called "handle" to find what apps/services were related to the handles.  After doing so I then know what had to be restarted.
 
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now