Solved

VMDK seems to be corrupted after shrinking LUN

Posted on 2014-09-10
8
612 Views
Last Modified: 2014-09-16
This morning i decreased the siz of a LUN on our netapp storage device. At first all seemed well and then i got a notification that my WSUS server could not be contacted. So i went to the server and tried to connect through console using Vsphere client and could not.

So i tried powering off the VM and powering it back on at it seems like it cannot find the disk. I tried building a new vm and using the same disk and it also cannot find the disk.

Unfortunately i cannot do a restore because i am in the process of re-configuring the backups and haven't gotten to WSUS yet.

Is there a way to repair VMDKs? If so that would be freaking amazing and save me time rebuilding a WSUS server tonight.

I've heard vdiskmanager can do this but we do not have Vmware workstation and i do not know if i can do it another way.
0
Comment
Question by:Josef Al-Chacar
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 42

Expert Comment

by:paulsolov
Comment Utility
I'm not sure you can do this with VMware.  On the Netapp you can do this with an operating system that supports the shrink feature, I am not sure if VMware will support this though.

According to VMware this is not possible without destroying VMFS.

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1004510
0
 
LVL 117

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE)
Andrew Hancock (VMware vExpert / EE MVE) earned 166 total points
Comment Utility
That does not surprise me if you shrink the LUN, the virtual machine disk (vmdk) could be corrupted.

Create a new smaller LUN, and use Storage vMotion to move the vmdk.
0
 
LVL 3

Author Comment

by:Josef Al-Chacar
Comment Utility
Yeah that is our plan. I feel a little slow. It was a dumb mistake.
0
 
LVL 42

Assisted Solution

by:paulsolov
paulsolov earned 167 total points
Comment Utility
It happens, on the Netapp and Windows/Linux machine you can do this via snapdrive and works like a charm.  VMFS is a bit of different animal
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 21

Expert Comment

by:robocat
Comment Utility
If you've got Netapp snapshots on the volume that contains the LUN, you may be able to recover from these snapshots.

You don't say if the LUN/datastore contains many VMs, which may complicate how you do this. But perhaps you could tell us if there are any Netapp snapshots that date before the moment you shrunk the LUN.
0
 
LVL 3

Author Comment

by:Josef Al-Chacar
Comment Utility
I rebuilt the WSUS server which was no big deal. However, i had to create the new VM on a separate host. The original host is giving me an error when adding a VM to that datastore. It works on all the other hosts just not that one. Also on that host i can create VMs on any other datastore.

It gives me the attached error when trying to create a VM on the original host.
host.jpg
0
 
LVL 21

Accepted Solution

by:
robocat earned 167 total points
Comment Utility
You should consider that datastore as corrupted and no longer use it. Create a new datastore and move any remaining VMs away from the old one.

For future reference: if you use NFS datastores instead of VMFS datstores, you will have full flexibility of shrinking/enlarging datastores without limitations. NFS is highly recommended if you use NetApp.
0
 
LVL 3

Author Comment

by:Josef Al-Chacar
Comment Utility
We are moving the working server to a new LUN and destroying the old one soon. Thanks for the help
0

Featured Post

Are end users causing IT problems again?

You’ve taken the time to design and update all your end user’s email signatures, only to find out they’re messing up the HTML, changing the font and ruining the imagery. What can you do to prevent this? Find out how you can save your signatures from end users today.

Join & Write a Comment

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
Will try to explain how to use the VMware feature TAGs in the VMs and create Veeam Backup Jobs using TAGs. Since this article is too long, I will create second article for the Veeam tasks.
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…

762 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

11 Experts available now in Live!

Get 1:1 Help Now