disk consolidation vmware 5.0

Hi

We have an issue where one of the storage groups on vsphere has ran out of disk space. It's home to one of our mail DB servers (I migrated another VM away from it to attempt to clear space)

I decided to run the consolidation task to try and clear up some space, it's been going for over 3 hours and stuck at 16%. My question is, is this normal? The VM is no longer running because there is no disk space so should I have shut the vm down before I ran the consolidation command?
Nick SmithHead of ITAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Yes, very normal....

Have a read of my EE Article...

HOW TO: VMware Snapshots :- Be Patient

What is the current situation?

Do you have space on the datastore ?

What is the size of the snapshot?

Disk Consolidation, rarely works..... but I can work you to resolve this issue. help you merge the snapshot...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Nick SmithHead of ITAuthor Commented:
Current situation. We have two Exchange 2010 database servers.

2010B is down due to lack of disk space for the VMDK, I have initiated the consolidation which is stuck at 16%.

Where do I find the size of the snapshot? If I go into snapshot manager it only lists one that was created by NetVault last year.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Browse the datastore, and look in the virtual machine folder ?

so it is currently stuck at 16% ?

is there space on the datastore for it to complete the merge ?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Nick SmithHead of ITAuthor Commented:
Yes, stuck at 16% and there is 12MB of space left on the datastore...so no, it doesn't have enough space to complete the merge.

I'm browsing through to the VM folder but not sure exactly what I'm looking for. I can see all the VMDK's (looks like there is replication in there) but can't see any large snapshot files.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
a file with -0000x (where x is a number). - post me a screenshot.

okay, it could be stuck, because there is not enough space, how long has it been stuck, and is the VM off ?

can you increase more storage space ?

what is the type of storage, the datastore is on?
0
Nick SmithHead of ITAuthor Commented:
It failed with error "operation cannot be performed in current state (powered off)"

I'll browse through again, but attached is the screen shot!

I'm looking at the increasing storage now if at all possible. It's a Dell Equalogic that was put in well before I joined!
Screen-Shot-2015-06-29-at-16.45.12.png
Screen-Shot-2015-06-29-at-16.45.39.png
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
okay a VM with approx 8 disks, and at least 3 snapshots per disk.

There are two method we can solve this issue...

1. Remove and Merge the snapshots correctly, and this does not mean, just delete the files!

2. CLONE the existing VM, to a new VM - by nature of the clone will merge all the snapshots, in the new CLONED VM.
This is the VM, you would then power-up, and then delete the old VM with the snapshots.

BOTH, 1 & 2 are going to need storage space option 2 will need more, and the same storage space, as it's currently occupying, e.g. parent disks.

VM needs to be off, and it's going to take many hours to complete.
0
Nick SmithHead of ITAuthor Commented:
I don't think I have the storage capacity to clone that VM!

What is the procedure for the 1st option? As it sounds like it might be more straight forward?

Luckily the other database server is fine, only issue is about 13 mailboxes are local to the one that's down for some reason!
0
Nick SmithHead of ITAuthor Commented:
Can you tell. When in vmware it specifies provisioned space and used space (against the VM) If I migrate it over to another datastore, will it migrate the "used space"

Basically the provisioned space of the VM in question is 4.27TB and the used space is 2.5TB. I have a datastore that has 3.99TB of unused space. Can I migrate this VM to that datastore if it's only migrating the used space??
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
The quickest  method is to check all the original virtual disks, in the VM properties, and add them up.

at present your used space, is skewed because of the space being used by snapshots.

Your new VM will be much less, because zero snapshots.
0
Nick SmithHead of ITAuthor Commented:
Well I've cleared down the other equalogic, shut the VM down and currently migrating to that storage pool. So far it's happy (at 27%) and didn't complain when I selected that pool during the migration assistant.

Lets see how this pans out!
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Did you Migrate or CLONE ?

Migrate may just move the VM with all the snapshots, and then you will have to perform a Snapshot MERGE.

CLONE, will clone and merge at the same time, and take a similar amount of time, and then you'll be able to power on the VM, and ZERO snapshots and issue. (you'll also have a backup of the original VM!)
0
Nick SmithHead of ITAuthor Commented:
I migrated! I didn't think to clone.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
CLONE was what I suggested.
0
Nick SmithHead of ITAuthor Commented:
Yes, sorry. Lets see how this migration goes.

There is 4TB of available space where it's shifting too so hopefully we'll be OK.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
let me know, when it's done, and check the snapshots, e.g. the files -00000x.vmdk, where X is a number.

e.g. check datastore

DO NOT POWER IT ON!

and we'll continue....
0
Nick SmithHead of ITAuthor Commented:
Migration completed successfully (although it took about 13 hours) and now I'm just running the consolidation task against the VM whilst it's still powered off.
0
Nick SmithHead of ITAuthor Commented:
Consolidation task stuck at 99% currently (has been for about the last 45 minutes)
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Be patient....it can stick at 95%, 99%....

did you read me EE Article I wrote on snapshots...
0
Nick SmithHead of ITAuthor Commented:
I'm just in the process of reading now (whilst having a coffee!)
0
Nick SmithHead of ITAuthor Commented:
Process has now completed successfully.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
A coffee, and Patience, often helps!
0
Nick SmithHead of ITAuthor Commented:
Yes! Your EE article is fantastic by the way.

The VM is now back up and running happily.

Thanks for your help.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Glad you like the article, thanks for your kind words.
0
Nick SmithHead of ITAuthor Commented:
Great response and advice, excellent tech note as well.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.

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.