Solved

Vmware ESXi 5.5 Virtual Machine disks running on snapshot

Posted on 2014-12-03
7
931 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
7 Comments
 
LVL 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

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 118
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 118
ID: 40479302
okay, small snapshot - less than 3.5 hours - ish

quicker if shutdown!
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…
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…

929 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

10 Experts available now in Live!

Get 1:1 Help Now