?
Solved

VMDK seems to be corrupted after shrinking LUN

Posted on 2014-09-10
8
Medium Priority
?
688 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
[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
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 42

Expert Comment

by:paulsolov
ID: 40316153
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 122

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 664 total points
ID: 40316368
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
ID: 40317014
Yeah that is our plan. I feel a little slow. It was a dumb mistake.
0
Plug and play, no additional software required!

The ATEN UE3310 USB3.1 Gen1 Extender Cable allows users to extend the distance between the computer and USB devices up to 10 m (33 ft). The UE3310 is a high-quality, cost-effective solution for professional environments such as hospitals, factories and business facilities.

 
LVL 42

Assisted Solution

by:paulsolov
paulsolov earned 668 total points
ID: 40317054
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
 
LVL 22

Expert Comment

by:robocat
ID: 40317093
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
ID: 40317191
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 22

Accepted Solution

by:
robocat earned 668 total points
ID: 40317995
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
ID: 40325143
We are moving the working server to a new LUN and destroying the old one soon. Thanks for the help
0

Featured Post

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

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

Concerto Cloud Services, a provider of fully managed private, public and hybrid cloud solutions, announced today it was named to the 20 Coolest Cloud Infrastructure Vendors Of The 2017 Cloud  (http://www.concertocloud.com/about/in-the-news/2017/02/0…
Each year, investment in cloud platforms grows more than 20% (https://www.immun.io/hubfs/Immunio_2016/Content/Marketing/Cloud-Security-Report-2016.pdf?submissionGuid=a8d80a00-6fee-4b85-81db-a4e28f681762) as an increasing number of companies begin to…
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…

771 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