Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 714
  • Last Modified:

VMDK seems to be corrupted after shrinking LUN

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
Josef Al-Chacar
Asked:
Josef Al-Chacar
  • 3
  • 2
  • 2
  • +1
3 Solutions
 
Paul SolovyovskySenior IT AdvisorCommented:
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
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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
 
Josef Al-ChacarSystems AdministratorAuthor Commented:
Yeah that is our plan. I feel a little slow. It was a dumb mistake.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Paul SolovyovskySenior IT AdvisorCommented:
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
 
robocatCommented:
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
 
Josef Al-ChacarSystems AdministratorAuthor Commented:
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
 
robocatCommented:
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
 
Josef Al-ChacarSystems AdministratorAuthor Commented:
We are moving the working server to a new LUN and destroying the old one soon. Thanks for the help
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 3
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now