Solved

How to determine the snapshot size

Posted on 2014-09-18
16
221 Views
Last Modified: 2014-10-07
I have a VM that is running on snapshots.  This happened due to during the process of removing the snapshot it ran out of storage.  Since then storage has been freed up.. But..  I need to delete all snapshots.  I'm still low on storage though.  I assume a certain amount of diskspace will be needed to do this.  Is there a way to determine how much storage will be needed to delete the snapshots?
0
Comment
Question by:gopher_49
  • 5
  • 4
  • 4
  • +2
16 Comments
 
LVL 118
ID: 40330815
If VM is powered on - Parent DIsk Size + All the Snapshots Sizes + 20%

- to be safe!

now if you are still running on a snapshot, the current snapshot will be growing based on the rate of change in the VM.

Shutdown the VM, does not require any additional disk space!
0
 
LVL 16

Expert Comment

by:choward16980
ID: 40330817
What version of ESXi are you running on?
0
 

Author Comment

by:gopher_49
ID: 40330849
Andrew,

I'm running ESXi v4 and I've been running about a week on a snapshot.  If I power down the VM and remove the snapshots no additional space is required?
0
 
LVL 61

Expert Comment

by:gheist
ID: 40331039
If disk is FULL you cannot remove anything
Before that comes - you can remove all snapshots with ease.
0
 

Author Comment

by:gopher_49
ID: 40331066
I have 39 GBs free on that disk.  I was going to power down the VM and remove all snapshots.
0
 
LVL 61

Expert Comment

by:gheist
ID: 40331082
You dont need to power off VM to remove disk snapshots.
0
 
LVL 118
ID: 40331210
39GB is very close!

I would never let a VM run on a snapshot, the moment I've discovered it!

Poor VMware Admin, remember the Performance of a VM running on a difference disk e.g. snapshot delta is POOR!

Correct, Power down and remove.....e.g. DELETE ALL
0
 

Expert Comment

by:ymg800
ID: 40331316
removing snapshot in vmware dont take space, this is pointst to the delta files.
however, removing the snapshot wont report to the storage that space is deleted - for that u need to run the unmap procedure
0
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

 
LVL 61

Expert Comment

by:gheist
ID: 40331323
Really depends on storage under the hood... On NFS space is freed immediately, if you have flash drive with percent light - that needs unmap...
0
 

Author Comment

by:gopher_49
ID: 40331325
Andrew,

I knew the moment it occurred, however, I've been concerned about the storage.  I not have enough free space to take snapshots and hopefully remove them.  Since ymg800 said removing snapshots won't take space I'll go ahead and delete them this evening.  I'm assuming I might have performance issues during this time.  Correct?

The unmap only free's up storage on thin provisioned drives on v5 and higher, correct?
0
 
LVL 61

Expert Comment

by:gheist
ID: 40331341
Just dont delete too much.
Why dont you try to clean them up on running machine first and shut down IF needed?
0
 
LVL 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
ID: 40331362
Yes, you could experience performance issue, and it's slower to remove, hence if you can get Emergency downtime, it's quicker to shutdown the VM, and DELETE ALL...
0
 
LVL 61

Expert Comment

by:gheist
ID: 40331383
0
 
LVL 16

Expert Comment

by:choward16980
ID: 40333002
Also, if you're licensed and have the VI Client installed, you can extend the VMFS volume on ESXI 4.

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1003302

To extend the VMFS volume:
Select the host on which the virtual machine resides and click the Configuration tab.
Select the datastore on which the virtual machine resides and click Properties.

Note: If there is no available storage, a new LUN must be presented to every ESX host that can see the LUN.

In the dialog that appears, click Add Extent and follow the prompts in the Add Extend wizard to add an extent.
Perform a rescan on every ESX host that is being presented the new LUN so that the addition of the extent is detected.
After you have extended the VMFS volume, you can check the Retry option of the Redo log pop-up.
Caution: When using Delete All in the Snapshot Manager, the snapshot furthest from the base disk is committed to its parent, causing that parent snapshot to grow. When that commit is complete, that snapshot is removed and the process starts over on the newly updated snapshot to its parent. This continues until every snapshot has been committed. This can lead to an aggressive use of additional disk space if the snapshots are large. Use care when exercising this option if there is not much space available on the datastore.
 
If the snapshot manager does not display any snapshots, see Committing snapshots when there are no snapshot entries in the snapshot manager (1002310).
 
If you have run out of space and cannot delete all snapshots, clone the virtual machine to a different datastore (you can select a different destination for each virtual disk in the clone wizard). All of the snapshots are committed to the clone virtual machine.
 
If you have vCenter Server 4.x, you can prevent this issue by performing the steps in Configuring VMware vCenter Server to send alarms when virtual machines are running from snapshots (1018029).
0
 

Author Comment

by:gopher_49
ID: 40334421
Question.  Is the unmap command supported on ESXi v4?  I thought that was released in v5.5.  

Andrew,

I'm going to power down the VM and delete all snapshots.
0
 
LVL 118
ID: 40334522
v5.1 and later only.

Just check snapshot size before your start and be patient!
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
Teach the user how to install ESXi 5.5 and configure the management network System Requirements: ESXi Installation:  Management Network Configuration: Management Network Testing:
Teach the user how to install vSphere Update Manager  Console to Windows system:  Install vSphere Update Manager: Configure vSphere Update Manager plug-in in vSphere Client: Verify vSphere Update Manager settings in vSphere Client:

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now