VMWare Virtual Machine wont start after resizing disk - VShpere 4.1.0

One of my Windows Server 2008R2 production VMs ran out of disk space. I shuted down the VM to increase the disk space but i noticed that in the 'Disk Provisioning' settings, the option 'Provisioning Size' was greyd out on 60Gb. At that time the VMDK that was beeing pointed as the disk file was servername-000001.vmdk wich is already weird since the VM doesn't have any snapshot.

I then went trough the CLI on the host node and tried to resize the disk from there with the vmkfstools command so i typed
vmkfstools -X 80G  servername-000001.vmdk
"Failed to extend disk : The called function cannot be performed on partial chains. Open the parent virtual disk (5)"

So i did
vmkfstools -X 80G  servername.vmdk
This worked . The file size was increase as pretended. Next time i started the VM i got the error:
The parent virtual disk has been modified since the child was created.

Went to check the VM logfile and sure enough there it was:

Oct 23 13:28:48.274: vmx| [msg.disk.noBackEnd] Cannot open the disk '/vmfs/volumes/47cea5b1-05a6e075-5db0-001b785c80f6/servername/servername-000001.vmdk' or one of the Oct 23 13:28:48.274: vmx| [msg.disk.configureDiskError] Reason: The parent virtual disk has been modified since the child was created.----------------------------------
Oct 23 13:28:48.285: vmx| Module DiskEarly power on failed.

I suposed this could have something to do with the CID not matching so i went to check that out but everything looks ok

servername.vmdk
CID=d86fb53a
parentCID=ffffffff

servername-000001.vmdk
CID=83aaa83e
parentCID=d86fb53a

From now on i don't know what else to do. Any help will be much appreciated!
dsiwdAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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:
servername-000001.vmdk this is a snapshot, you cannot extend virtual disks, which have a snapshot attached.

see my EE Article

HOW TO: VMware Snapshots :- Be Patient

if you have powered on the virtual machine, the CIDS will different, and you will need to fix.

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1007969

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
dsiwdAuthor Commented:
Ok so maybe somewhere in time this VM had a snapshot that was deleted since i don't see any snapshot in this VM snapshop manager as you can see Untitled.jpg
Is there any way to merge this snapshot file into the main file or something like that so i can extend the virtual disk?
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Do not assume, ever, because it's not in Snapshot Manager, you have no snapshots attached to the VM.

see my EE Article I posted, to check if you have a VM running on a snapshot!

Mostly likely, a backup application has left the VM running on a snapshot.

Yes, we can deal with the snapshot issue later, but first you will need to ensure the CIDS match and are corrected in the article I posted.
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

dsiwdAuthor Commented:
I did read your EE Article and looks like i'm running on a snapshot.
Capture.JPG
This are de CIDs of the different vmdk contents:

srvvmapp02.vmdk

# Disk DescriptorFile
version=1
encoding="UTF-8"
CID=d86fb53a
parentCID=ffffffff
isNativeSnapshot="no"
createType="vmfs"

# Extent description
RW 167772160 VMFS "srvvmapp02-flat.vmdk"

# The Disk Data Base
#DDB

ddb.adapterType = "lsilogic"
ddb.thinProvisioned = "1"
ddb.geometry.sectors = "63"
ddb.geometry.heads = "255"
ddb.geometry.cylinders = "10443"
ddb.uuid = "60 00 C2 96 2d b2 3b 3f-32 35 45 fd 36 47 69 10"
ddb.longContentID = "dad5fd7ff5f8fae89722c008a277609b"
ddb.deletable = "true"
ddb.toolsVersion = "8295"
ddb.virtualHWVersion = "7"

*************************************

srvvmapp02-000001.vmdk

# Disk DescriptorFile
version=1
encoding="UTF-8"
CID=83aaa83e
parentCID=d86fb53a
isNativeSnapshot="no"
createType="vmfsSparse"
parentFileNameHint="srvvmapp02.vmdk"
# Extent description
RW 125829120 VMFSSPARSE "srvvmapp02-000001-delta.vmdk"

# The Disk Data Base
#DDB

ddb.deletable = "true"
ddb.longContentID = "82c139df9b6656f287ca05e383aaa83e"
ddb.toolsVersion = "8305"

*************************************
srvvmapp02-000003.vmdk

# Disk DescriptorFile
version=1
encoding="UTF-8"
CID=83aaa83e
parentCID=83aaa83e
isNativeSnapshot="no"
createType="vmfsSparse"
parentFileNameHint="srvvmapp02-000001.vmdk"
# Extent description
RW 125829120 VMFSSPARSE "srvvmapp02-000003-delta.vmdk"

# The Disk Data Base
#DDB

*************************************
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
looks like you have a VM with two disks....

one snapshot on

one disk.
three snapshots on the second disk (but a snapshot is missing ?)

should be labelled -0002 ? but sometimes, numbers are not consecutive.

So you need to make sure, all the CIDS match through the chain for both disks.
dsiwdAuthor Commented:
Yes the VM has two disks.

Check:
2 snapshots on one disk (1 and 3 - Don't know what about number 2..)
1 snapshot on the other disk (1)
0 snapshots on the snapshot manager

Snapshot 3 has the same CID as parent since that one never booted. It was only a test and then i delete it from snapshot manager... but aparently the VM is still using it
CID=83aaa83e
parentCID=83aaa83e

I'm stuck.
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
there was a snapshot in snapshot manager, which you deleted ?

okay, looking back at the question, it would appear, that the parent disk, was extended, and it should not have been extended because it had a snapshot attached, and should have aborted, this is not the first time, we've seen this happen.

the VM was not powered on, but the link between the snapshots and parent disk has been broken because of the re-size.

something is also odd, because snapshots 0001 and 0003, have the same CID!

83aaa83e

you can verify the chain and disks, using vmkfstools, and then possibly discard the last snapshot...
dsiwdAuthor Commented:
Yes, the VM was running since 2011 as far is i can see by the modified dates on 0001 snapshot wich was not present on snapshot manager.

Yes, i resized the original vmdk - This was the mistake!

After the mistake was done and the VM was not powering on anymore i tried to make a snapshot. That created the 00003. Tried to power on the VM. Same error. I deleted the snapshot then. 00003 is still there. It was the sname CID as 000001 because he was never powered on since the VM failed to do so, so it ended up not genereting a new one for itself.

My plan now is to: edit the vmx file to point both disks to the previous vmdk files and get completely rid of the snapshot 3 and then try to clone the VM. The new cloned VM should be created with my remaining snapshopt consolitated to the base disk, no? What do you think?
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Just forget about snapshot 3!

Quicker and easier to do this...

What you can do, is use the clone command, at the console/SSH to clone and merge the snapshot, into  the parent creating a new parent vmdk, and then add that back to the VM.

so type this

vmkfstools -i <most recent snapshot file name> /vmfs/volumes/<temp folder name>/<newfilename.vmdk>

vmkfstools -i <srvvmapp02-000001.vmdk> /vmfs/volumes/<temp folder name>/<newserver.vmdk>

Open in new window


This will then give you a clean, parent VMDK, with no snapshot, and you can then remove (from inventory) add this new disk, and you should be done.

and deal with other snapshot on the other disk.
dsiwdAuthor Commented:
Running the first command returns this error:

Failed to open 'srvvmapp02-000001.vmdk': The parent virtual disk has been modified since the child was created (18).
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
it does not like you snapshots, linked to the parent vmdk.

or the parent vmdk has been altered, and it cannot link the snapshot disk.

I wonder if the servername-000001.vmdk  has been changed, when you tried to extend it also.
dsiwdAuthor Commented:
I suppose not since i had the error: "Failed to extend disk : The called function cannot be performed on partial chains. Open the parent virtual disk (5)" almost instantaneously but of course i can't be sure...

Any ideas? I'm out of them
compdigit44Commented:
You could try download VMware converter which is free to do a V2V on the VM.  This will also consolidate your snapshots

1) First try to convert the HD to it orginal smaller size.
2) If step 1 fails try convert the VM with out making and HD size changes..
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
dump all the snapshots, and just use the parent vmdk, this of course will result in loss of data, and possible corruption.

Restore from backup, before you attempted the disk re-size.
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.