DPM Tape Backup Troubleshooting

While recently setting up tape library sharing in DPM 2012 in an enterprise class environment I ran into several snags. So let’s explore those hurdles and how we can overcome them!

But before we dive into the fun lets get some acronyms out of the way:

  • LCS (Library Control Server) server: the only DPM server that controls the medium changer. This server also shares its tape configuration with the LTC.
  • LTC (Library Tape Client): Any DPM server that connects to the LCS. It asks the LCS to handle media on it’s behalf.

First Steps
Run through ALL the steps listed in this great article:


EXCEPT the last one as you really should not have to move the LCS to a new host. If you’re at that point, you should just rebuild the LCS.

Issue One
First problem is how do you make one tape library accessible to many DPM servers? Tape library sharing! While this is a good attempt to make tape backups work in an enterprise, it comes with it’s share of problems. So assuming you’ve followed the instructions at https://technet.microsoft.com/en-us/library/hh758124.aspx you should have a working library right? No! Now onto problem 2.

Issue Two
The link above doesn’t make any mention of SAN zoning other than “The tape library must be in a storage area network (SAN) environment.” Well, this is a bit misleading and what does it really mean? Also, how about multi-pathing, how is that handled? So let’s break it down:

  1. If the tape library has a separate WWN for the robotics, then use it! This allows the zoning of only the robotics or media changer to the LCS and the drives to the LTC.
  2. If the tape library does not have separate WWNs for the media changer and drives then you will have to take note of section 2 “Check the Medium Changer in Device Manager” https://blogs.technet.com/b/dpm/archive/2011/12/20/how-to-troubleshoot-tape-library-sharing-configuration-issues-in-dpm-2010.aspx. Since the LTC can see the media changer, you need to be sure to disable the media changer device so that TLC cannot communicate with the media changer.
  3. The MPIO feature built into Windows can combine multiple paths for SAN devices, however, this does not work for tape drives. If you do both, then the OS will see 1 drive as two separate drives and you will have a mess in DPM. So you can only zone the drives and robotics on one path.

Issue Three
Even after getting tape library sharing to work and setting the auto refresh to the minimum five minutes, there are still time when the library does not show in the GUI. From my understanding this can happen when two LTCs access the TLS at the same time. But after waiting a few minutes and hitting refresh the library comes back up and you can proceed.

However, there are several instance where the tape library information on the LTC does not match the TLS. For example, the TLS shows one library, two drives, and twenty slots, but the LTC only shows part of that. The easiest solution in this is to start over. However that is not documented anywhere. You could try the below, which won’t work.

AddLibraryServerForDpm.exe -DpmServerWithLibrary TLS.FQDN -remove
SetSharedDpmDatabase.exe -removedatabasesharing

Why doesn’t this work? Because it still leaves the linked server objects in SQL server:

Another point is the sharing related settings in tbl_DLS_GlobalSetting table are not removed either.


So here’s the proper way to clean up and start over on the LTC:

1 Run the built-in commands to remove sharing:
AddLibraryServerForDpm.exe -DpmServerWithLibrary TLS.FQDN -remove
SetSharedDpmDatabase.exe -removedatabasesharing

2 Manually removed the linked servers and entries in the tbl_DLS_GlobalSetting, or just run this SQL query (note the redundant ‘USE [master]’ and ‘GO’ could probably be removed, but I haven’t tested the process without them):

USE [master]
EXEC master.dbo.sp_dropserver @server=N’GlobalServerDPMDB’, @droplogins=’droplogins’
USE [master]
EXEC master.dbo.sp_dropserver @server=N’NewGlobalServerDPMDB’, @droplogins=’droplogins’
USE [master]
EXEC master.dbo.sp_dropserver @server=N’OldGlobalServerDPMDB’, @droplogins=’droplogins’
use [DPMDB]
DELETE FROM [DPMDB].[dbo].[tbl_DLS_GlobalSetting]
WHERE PropertyName = ‘GlobalServerDPMDB’ OR PropertyName=’LinkedServerName’

3 Re-enable tape library sharing
4 Open SQL MGMT studio and run the following on a new query:
select * from tbl_mm_library
5 There should be an entry for robot with all the settings expected. However, the DPM GUI still doesn’t show it. So in the query window results, scroll to the right to the IsOffline column. If it’s set to 1, aka TRUE, then that’s why it’s not showing up.
6 Run the below query replacing the [LibraryID] with the vaule from the results from step 5 in the LibraryID column:
update tbl_MM_Library
set IsOffline = 0
where LibraryId = ‘[LibraryID]’
7 Restart the DPM GUI
8 Do a fast inventory
9 Refresh the tape library info

That should be it and in a few cases might not work, so you’ll have to restart the process at least once.



Contact Us

On Key

More Posts

Mastering Azure AD Connect - A Comprehensive Guide by WME
Active Directory

Mastering Azure AD Connect – A Comprehensive Guide

Modern businesses are fast moving toward cloud-based infrastructure. In fact, cloud-based business is not just a trend anymore but a strategic necessity. Microsoft’s Azure Active Directory (Azure AD) has become a frontrunner in this domain. It

Read More »
Security Best Practices in SharePoint
Office 365

Security Best Practices in SharePoint

Microsoft SharePoint is an online collaboration platform that integrates with Microsoft Office. You can use it to store, organize, share, and access information online. SharePoint enables collaboration and content management and ultimately allows your teams to

Read More »
The Ultimate Guide to Microsoft Intune - Article by WME
Active Directory

The Ultimate Guide to Microsoft Intune

The corporate world is evolving fast. And with that, mobile devices are spreading everywhere. As we venture into the year 2024, they have already claimed a substantial 55% share of the total corporate device ecosystem. You

Read More »
Protecting Microsoft 365 from on-Premises Attacks
Cloud Security

How to Protect Microsoft 365 from On-Premises Attacks?

Microsoft 365 is diverse enough to enrich the capabilities of many types of private businesses. It complements users, applications, networks, devices, and whatnot. However, Microsoft 365 cybersecurity is often compromised and there are countless ways that

Read More »
Be assured of everything

Get WME Services

Stay ahead of the competition with our Professional IT offerings.