Veeam temporary file left on Vmware 5.5

A Veeam Backup temporary snaphsot was left last time when a backup job is fail. Should I click "Delete All" to remove it ? Will there be any impact to the production environment ?

Thx
VeeamBackup.png
AXISHKAsked:
Who is Participating?
 
Luciano PatrãoConnect With a Mentor ICT Senior Infraestructure  Engineer  Commented:
Hi,

Sometimes Veeam leave some snapshots after a backup. This can happen in very different scenarios, but if no Backup is running at the moment is safe to delete that snapshot.

What I do, I run a script from time to time to check if there is any snapshots left by Veeam and delete them.

#########################################################################################
# Created by: Luciano Patrão													       	#
# Date: 23-03-2017   																	#
# Search for Veeam Snapshots and delete them											#
#########################################################################################
Get-Module –ListAvailable VM* | Import-Module
###### Credentials and vCenter connection ######

$vCenter = "IP vCenter"
$user = "administrator l"
$pwd = "password"

##### Connect vCenter
Connect-VIServer $vCenter -User $user -Password $pwd

### vCenter Server Name(FQNP)
$vCentName = [system.net.dns]::GetHostByAddress($vCenter).hostname
################################################
cls

$VMs = Get-VM
#$VMs = Get-Cluster "Cluste Name" | Get-VM
foreach ($VM in $VMs)
      {
      $AllSnapshots= Get-Snapshot -VM $VM
            foreach ($Snapshot in $AllSnapshots)
                 {
                        If ($Snapshot.Name -like “VEEAM BACKUP*” -and $Snapshot.Created -lt (Get-Date).AddDays(-2))
						#If ($Snapshot.Created -lt (Get-Date).AddDays(-29))
                              {     
                              Write-Host "VM -> " $VM.Name, 
                              Write-Host "  Snapshot Name: " $Snapshot.Name
							  Write-Host "  Snapshot Data: " $Snapshot.Created
                              Write-Host "Remove Snapthot :" $Snapshot.Name -ForegroundColor Red
                              #Remove-Snapshot -snapshot $Snapshot -confirm:$false -ErrorAction SilentlyContinue
                              Write-Host ""
							  #Start-Sleep -s 20
							  
                              }
                  }
      }
Disconnect-VIServer -Server $vCenter -Force -Confirm:$false

Open in new window


After you check which VMs have snapshots, you can remove the comment in the line:
#Remove-Snapshot -snapshot $Snapshot -confirm:$false -ErrorAction SilentlyContinue
#Start-Sleep -s 20

Open in new window


And run the script again to delete all snapshots.

PS: You can also use this script to check all Snapshots (Veeam and other) older than 29 days (you can change this settings) in this line:

#If ($Snapshot.Created -lt (Get-Date).AddDays(-29))

Open in new window

Just remove the comment in this one, and comment the one with Veeam:

If ($Snapshot.Name -like “VEEAM BACKUP*” -and $Snapshot.Created -lt (Get-Date).AddDays(-2))

Open in new window


Hope this can help
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)Connect With a Mentor VMware and Virtualization ConsultantCommented:
You will be currently experiencing peformance issues now, whilst writing to a snapshot.

I would complete the following...

1. Take a new snapshot.
2. Wait 120 seconds.
3. Select DELETE ALL.
4. BE PATIENT and Wait... do not cancel, tamper, meddle, it may seem toi hang at 90, 95, 99 or 100% leave it!

You may experience worse performance when removing/deleting the snapshot.

see my EE Article, to understand more about snapshots

HOW TO: VMware Snapshots :- Be Patient
0
 
AXISHKAuthor Commented:
Why do I need to take any snapshot again ? Can I simply select "DELETE ALL" during non peak hour (after office hour) ?

Thx
0
 
R@f@r P@NC3RVirtualization SpecialistCommented:
Goodnight

Remove the snapshot, click on delete all.

Validate in the datastore where the vm is stored, that does not have snapshot present.

If there is no snapshot present, try to run the backup again.

I remain attentive to your comments.

Regards...
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
to make sure that all the Snapshot chain have been linked!

did you check Snapshot Manager, is the snapshot listed ?

Can I simply select "DELETE ALL" during non peak hour (after office hour) ?

(Yes, when you've done my procedure above!)
0
 
AXISHKAuthor Commented:
"did you check Snapshot Manager, is the snapshot listed ?"

Yes, I can see it under Snapshot Manager.

In this case, can you simply select "Delete All" without doing the snapshot first ?

Thx
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
do the procedure above...

1. Take a new snapshot.
2. Wait 120 seconds.
3. Select DELETE ALL. (when it's convenient, out of hours)
4. BE PATIENT and Wait... do not cancel, tamper, meddle, it may seem toi hang at 90, 95, 99 or 100% leave it!
0
 
R@f@r P@NC3RVirtualization SpecialistCommented:
Hello

Remove all the snapshot, click on delete all and try again with the backup process on the vm.

Let us know the results please.

Regards..
0
 
AXISHKAuthor Commented:
0
 
Luciano PatrãoICT Senior Infraestructure  Engineer  Commented:
I think the question as been answered.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.