Solved

Vmware ESXi 5.5 Virtual Machine disks running on snapshot

Posted on 2014-12-03
7
1,020 Views
Last Modified: 2016-02-25
I have been reading up on all the great articles here on snapshots and vmware especially this one:
"HOW TO: VMware Snapshots :- Be Patient"   which is an awesome post. My situation is a little different.

I have a VM that VEEAM backup failed to consolidate the snapshot- so it is running on the snapshot and no snapshots show up in manager- all OK But this VM is huge- 2TB database server. It has 2 disks- 60GB OS disk and a 2TB disk for the databases. It is the second disk (of course) that is running off of snapshot.  So my solution instead of making another snapshot and consolidating (or DELETE ALL) would be instead to just delete that disk. Then re-create a new blank disk and restore all my DBs on it. This seems better and faster for my situation not to mention I am not sure I have enough space on the ESXi 5.5 host to do another snapshot- I have good db backups ready to go- just finished testing them all. The OS disk is fine- so my plan is:

1. Shut down VM
2. Delete HD disk running on snapshot
3. Make new HD disk same size.
4. Restart VM and restore dbs to new blank disk.

My question is this: will deleting that HD in a VM's settings - will that delete all the snapshot files and clear the alarm?   Or is there something else I am going to have to do- like going into the file system and deleting snapshot files manually.  I am trying to decide to do it 'my way' or how everyone else does it with consolidation.

Thanks, Marc
0
Comment
Question by:mdoolittle
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 121

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 40479154
Thanks for the comments about my EE Article!

Your procedure is correct, if you delete the disk, it will delete all the files and snapshots associated with it.

Creating a new disk, and transferring the contents is another method.

(you could use a cloning tool, e.g. clonezilla, drive snapshot) to just clone disk to disk, make sure the VM is OFF.
0
 
LVL 37

Expert Comment

by:Neil Russell
ID: 40479160
If you do another snapshot it will not immediately consume another 2TB of disk.  You can create a new snapshot and immediately consolidate. You will of course need enough space to consolidate but maybe not as much as you were thinking.
To speed it up shut down your db services first or shutdown the VM
0
 
LVL 15

Expert Comment

by:WalkaboutTigger
ID: 40479185
Have you attempted to consolidate the snapshot(s)?  This would be the "ideal" method of resolving this issue.
Please review this VMWare knowledgebase article to assist you in ensuring your VM is actually using the snapshot and not the base disk image,
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

by:mdoolittle
ID: 40479213
Yes- the column in vcenter "Needs Consolidation" = Yes for this VM. There are no snapshots in snapshot manager but when I view VM configuration it shows disk file as -0000002.vmdk. The VM's summary page also shows 'Virtual Machine Disks consolidation is needed'-  Viewing it's folder I see the original file at 2TB and this -0000002.vmdk is growing over time- now up to 90 GB.

I just wish I would figure out which method would be faster. I tested how long it takes me to restore my DBs- 2 hours. I can take this machine down- to do consolidation or re-doing HD but I definitely need it up and running tomorrow morning.  Since the time to do consolidation is unknown- and everyone says it can take 'a long time' I was just leaning towards doing the procedure that I knew I could accomplish tonight and have it ready in the morning.
0
 
LVL 121
ID: 40479245
Consolidation does not work!

How large is the Snapshot ?

What storage system is in use ?

The way to deal with this is

1. Take a snapshot

2. Wait 60 seconds

3. DELETE ALL

BE PATIENT and wait!

Another method is CLONE the VM!

Time taken = size of snapshot and how fast your datastore ?
0
 

Author Comment

by:mdoolittle
ID: 40479277
Yeah- Andrew- I was referring to your method- just calling it 'consolidate' I will make sure if I take this path rather than just deleting HD I will take another snapshot and DELETE ALL-   I have the C drive of this machine replicated already to my backup host. I never replicate this 2nd drive- I just back up all the databases. I don't have space to clone it on this host.

I have one host - it's using a local array- the disk array is fast- it's a 10 drive 2.5" SAS RAID 10 array on a Dell R620 with the Perc H710P 1GB ram.

The VM HD is 2 TB and the snapshot it is running on (Since 1AM) is now 94 GB.
0
 
LVL 121
ID: 40479302
okay, small snapshot - less than 3.5 hours - ish

quicker if shutdown!
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
Teach the user how to join ESXi hosts to Active Directory domains Open vSphere Client: Join ESXi host to AD domain: Verify ESXi computer account in AD: Configure permissions for domain user in ESXi: Test domain user login to ESXi host:
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…
Suggested Courses

627 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