Friday, March 28, 2014

Unable to Backup using DPM or Local Windows Backup–missing VSS

Here’s the scenario :

  • Two Windows Server 2012 running Hyper-V
  • Two Node Clusters
  • Backup software : DPM 2012 SP1

When the VM resides on Host1, the DPM can backup VMs with no issue.  However when the VMs resides in Host2, the DPM fails to backup.

Checked on the Host2 and found many errors of 8194.

image

To isolate further, I tried to backup Folders of Host2 using DPM, it still failed.  Additional to that, tried the Windows Backup locally on Host2, that too failed.

Next is to try a tool which comes in Windows Server 2008 and Windows Server 2012.  It’s called the Diskshadow.

C:\Diskshadow
Diskshadow > set context persistent
Diskshadow > set verbose on
Diskshadow > begin backup
Diskshadow > Add volume D: alias VolumeD

The output as follow :

image

Next I did a comparison of Host1 and Host2 by using the command as follow in the Diskshadow

Diskshadow > list providers

Found out that Host1 has all 4 but Host2 has only 2 of the providers.  The missing ones are highlighted in the pink box.

image

So go to the following registry in Host1:

HKEY LOCAL MACHINE\SYSTEM\CURRENT CONTROL SET\SERVICES\VSS\PROVIDERS

image

Export both the missing key registry from Host1

image

image

Then in the Host2, I import both the keys that was exported above from Host1.

In the Host2, I use the Diskshadow to check the providers :

image

Tried the backup from DPM, and it’s working already.  Hope this helps . 

keywords : Microsoft Hyper-V VSS Writer failed retryable error, VSS Issue error 8194, DPM 2012 SP1, DPM backup fail ,

Creation of recovery points for Backup Using Child Partition Snapshot on have failed. The last recovery point creation failed for the following reason: (ID: 3114)
DPM encountered a retryable VSS error. (ID: 30112)

Monday, March 17, 2014

A VSS Writer has rejected an event with error 0x800423f3

Recently I hit the issue for the DPM backup the VMs.  The DPM backing the Hyper-V VMs failed with the following message in the event viewer of the Hyper-V host that the VM is residing.

image

Then in the command prompt (elevated “run as administrator”) I list the VSS by typing the command Vssadmin list writers.

image

In the DPM console, had the following :

image

The steps that I took to resolve the issue is as follow :

  • Shutdown the VM
  • Perform the VM backup through the DPM
  • In the Hyper-V host, launch the Hyper-V Manager and would be able to see the status as “backing up …”
  • Once the backup is completed in then I start up the VM.
  • Waited for 20 mins for the VM to be up and running, then perform another backup (create another recovery point in DPM)
  • It’s successful and case is resolve.

In the Hyper-V Host I run again the command prompt (elevated “run as administrator”) by typing the command Vssadmin list writers and check the status.

image

Hope it helps.

keywords : VSS, vssadmin, a vss writer has rejected an event with error 0x800423f3, the writer experienced a transient error, if the backup process is retried, the error may not reoccur, last error : retryable error, Microsoft Hyper-V VSS Writer, DPM encountered a retryable VSS error (ID 30112) , vssadmin list writers

Wednesday, February 19, 2014

Performance Monitor–Create Data Collector Set Greyed Out

Recently I tried to create a New Collector Set for the Performance Monitor for one of the customer’s request.  When I launched the Performance Monitor, click to create a new Data Collector Set and found it was greyed out.

image

After some troubleshooting, it seems that a service related to it was disabled.

image

All was done is click on the Properties of the Task Scheduler and select as Automatic Start Up.   You can click on the start to get the Task Scheduler instead of rebooting for this round.  Next time the server reboots, it will auto-start the services cause you have made the changes.

Once that’s done, go back to the Performance Monitor and create the new Data Collector Set, the Next button is no more grey out.

Hope this helps Smile.

keywords : Performance monitor, next button grey out greyed out, task scheduler, cannot create data collecter set

Monday, February 10, 2014

DPM–Fail to Erase the Tape or Backup to Tape

The Environment
Operating System : Windows 2008 R2
DPM Version : DPM 2010
Tape Library : IBM TotalStorage 3573 Tape Library with 1 drive

Issue faced when erasing or backup, the error prompted as failed.
Error Message : The operation failed because of a protection agent failure. (ID 998 Details: Access is denied (0x80070005))

SCR-154

After some troubleshooting, found there’s a way to resolve this issue.  I changed the Tape driver in the DPM server.

Steps carried out

  • Launch the Device Manager in the DPM server

image

  • Locate the Tape Drives and right click, select Update Driver Software

SCR-152

  • Select the “Let me pick from a list of device drivers on my computer”

SCR-153

  • Select the LTO Tape Drive (which is a native driver)
  • Click Next till it’s finished.
  • Then in the DPM console, select the Management and rescan it.
  • Now the Tape Drive is ready and working once you perform the Erase or Backup.

Happy trying Smile

keywords : The operation failed because of a protection agent failure. (ID 998 Details: Access is denied (0x80070005)), tape data erase, tape backup, DPM 2010, DPM2010, DPM, Status Failed, IBM TotalStorage 3573 Tape Library

Wednesday, February 5, 2014

Logman Error : The System cannot find the path specified

 

As I was trying to create a Log using the LOGMAN command I hit the issue

image

It states as “The system cannot find the path specified”

After some findings, the issue was the Task Scheduler was not started.  Therefore I went into the Services and enable and start the Task Scheduler.

image

Once Task Scheduler is started, I executed the command with no issue.

image

Hope this helps you.  Thanks to TechNet Social.

keywords : Logman, perfmon, system cannot find path specified, diagnostic tool.

Tuesday, January 28, 2014

DPM–How to Mark Tape as Free

Sometimes we hit the issue of having difficulty of marking the Tape as Free in the DPM Library.    The tape is label as “Unknown” at times and can’t mark it as Free in the DPM Console. Then I scout around and found that I need to do this in PowerShell.

Copy the following Script (in green) into a Notepad and place into a directory in the DPM server.  Rename it as a powershell extention.  I name it as ForceFree.ps1.

param ([string] $DPMServerName, [string] $LibraryName, [string[]] $TapeLocationList)

if(("-?","-help") -contains $args[0])
{
Write-Host "Usage: ForceFree-Tape.ps1 [[-DPMServerName] <Name of the DPM server>] [-LibraryName] <Name of the library> [-TapeLocationList] <Array of tape locations>"
Write-Host "Example: Force-FreeTape.ps1 -LibraryName "My library" -TapeLocationList Slot-1, Slot-7"
exit 0
}

if (!$DPMServerName)
{
$DPMServerName = Read-Host "DPM server name: "

if (!$DPMServerName)
{
Write-Error "Dpm server name not specified."
exit 1
}
}

if (!$LibraryName)
{
$LibraryName = Read-Host "Library name: "

if (!$LibraryName)
{
Write-Error "Library name not specified."
exit 1
}
}

if (!$TapeLocationList)
{
$TapeLocationList = Read-Host "Tape location: "

if (!$TapeLocationList)
{
Write-Error "Tape location not specified."
exit 1
}
}

if (!(Connect-DPMServer $DPMServerName))
{
Write-Error "Failed to connect To DPM server $DPMServerName"
exit 1
}

$library = Get-DPMLibrary $DPMServerName | where {$_.UserFriendlyName -eq $LibraryName}

if (!$library)
{
Write-Error "Failed to find library with user friendly name $LibraryName"
exit 1
}

foreach ($media in @(Get-Tape -DPMLibrary $library))
{
if ($TapeLocationList -contains $media.Location)
{
if ($media -is [Microsoft.Internal.EnterpriseStorage.Dls.UI.ObjectModel.LibraryManagement.ArchiveMedia])
{
foreach ($rp in @(Get-RecoveryPoint -Tape $media))
{
Get-RecoveryPoint -Datasource $rp.Datasource | Out-Null

Write-Verbose "Removing recovery point created at $($rp.RepresentedPointInTime) for tape in $($media.Location)."
Remove-RecoveryPoint -RecoveryPoint $rp -ForceDeletion -Confirm:$false
}

Write-Verbose "Setting tape in $($media.Location) as free."
Set-Tape -Tape $media -Free
}
else
{
Write-Error "The tape in $($media.Location) is a cleaner tape."
}
}
}

Double click on the DPM PowerShell in the DPM Server to launch the PowerShell


Type the powershell script that you’ve name it.  My example is ForceFree.ps1, therefore I keyed in as .\ForceFree.ps1


Then I keyed in the DPM Server Name, the Library Name and which slot of tape I want to Free it.


image


Once it’s done, then the tape can be re-use it.  Just go through the DPM Library and Erase it from the DPM Console.


Hope this helps. This article was simplified from TechNet.


keywords : DPM 2010, DPM 2012, DPM, free tape, mark tape as free, tape label as unknown, tape cannot erase


Wednesday, November 20, 2013

Remove Hidden Devices (does not display devices that are not connected)

I was having issues of booting up the VM.  It was corrupted of the XML for the VM.  So I re-created a new VM but attach back the Hard Disk from the old VM.

I boot up the new VM, then I was configuring back the IP address and suddenly it doesn’t allow me to input the IP address cause it indicated that it has been used.  I went into the Device Manager and see no items, even though I select “show hidden devices”

The steps are the following that I do :

  • Open Command Prompt (run as administrator)
  • type devmgr_show_nonpresent_devices=1 then hit [Enter]
  • type start devmgmt.msc then hit [Enter]
  • Then click Show hidden devices in the View Menu
  • Remove the unnecessary devices (e.g. the Microsoft Hyper-V Network Adapter)

image

  • Then return to your NIC to input the IP address. 
  • It works for me !!

Thank you and hope this helps.

keywords : Device Manager does not display devices that are not connected to the Windows XP or Windows 2003 -based computer, Device Manager displays only non-Plug and Play devices, drivers, and printers when you click Show hidden devices on the Viewmenu. Devices that you install that are not connected to the computer (such as a Universal Serial Bus [USB] device or "ghosted" devices) are not displayed in Device Manager, even when you click Show hidden devices.