jskfan
asked on
Go To/Delete Snapshot
Let s say I have
-VM
Snapshot11-24-16
If I understand, if I select Snapshot11-24-16
then click on GO TO
then delete the snapshot
it will not Commit
Correct ?
OK.if that s the case, let s say I click Goto....then I change my mind , I want to delete and Commit.
How can this be done ?
Thanks
-VM
Snapshot11-24-16
If I understand, if I select Snapshot11-24-16
then click on GO TO
then delete the snapshot
it will not Commit
Correct ?
OK.if that s the case, let s say I click Goto....then I change my mind , I want to delete and Commit.
How can this be done ?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Then 'goto' the latest snapshot and delete all
That 's when you have many snapshots and you want to revert back to the base disk, before even the first snapshot
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
But How do you know if you clicked on Goto or you did not before you click Delete ?
You may think you clicked on Goto, then you click Delete, you will end up committing the change to the base disk.
You may think you clicked on Goto, then you click Delete, you will end up committing the change to the base disk.
You'd have to see if it's shown in a snapshot report.
You could do something like this (change the days as required):
Source:
https://communities.vmware.com/thread/513431?start=0&tstart=0
You could do something like this (change the days as required):
You could do something like this
$taskNames = 'CreateSnapshot_Task','RemoveSnapshot_task'
Get-VIEvent -Start (Get-Date).AddDays(-2) -MaxSamples ([int]::MaxValue) |
where{$_ -is [VMware.Vim.TaskEvent] -and $taskNames -contains $_.Info.Name} |
Sort-Object -Property CreatedTime |
Select CreatedTime,UserName,
@{N='VM';E={$_.VM.Name}},
@{N='Datastore';E={(Get-View -Id $_.Vm.Vm -Property 'Config.Files.SnapshotDirectory').Config.Files.SnapshotDirectory}},
@{N='Task';E={$_.FullFormattedMessage}}
Source:
https://communities.vmware.com/thread/513431?start=0&tstart=0
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
That would be correct.
ASKER
Thank you
ASKER