enternote
Contributor
Contributor

consolidate virtual machine disk files the operation is not allowed in the current state

Hello Guys, I Have a VM on ESXI That I don't use anymore but i only need the files on the VMDISK. So i export the vmdk file.

I just need the existing files. When I opened the disc I found only old things, so I realized that the updates were in the snapshot. But I can't merge the snapshot with the parent disk showing this error:

Consolidate VMDisks

Key:                     haTask-1-vim.VirtualMachine.consolidateDisks-139217140

Description:          Consolidate disk files of this virtual machine

Virtual machine:   hpfunilaria_server

State:                    Failed - The operation is not allowed in the current state.

so I went to consult the log:

2010-11-22T02:00:47.031Z info hostd[B981B70] [Originator@6876 sub=Vimsvc.TaskManager opID=4442c010 user=root] Task Created : haTask-1-vim.VirtualMachine.consolidateDisks-139217140

2010-11-22T02:00:47.031Z verbose hostd[B981B70] [Originator@6876 sub=PropertyProvider opID=4442c010 user=root] RecordOp ADD: recentTask["haTask-1-vim.VirtualMachine.consolidateDisks-139217140"], 1. Sent notification immediately.

2010-11-22T02:00:47.031Z verbose hostd[B981B70] [Originator@6876 sub=PropertyProvider opID=4442c010 user=root] RecordOp ADD: recentTask["haTask-1-vim.VirtualMachine.consolidateDisks-139217140"], ha-taskmgr. Applied change to temp map.

2010-11-22T02:00:47.031Z verbose hostd[B6C2B70] [Originator@6876 sub=PropertyProvider opID=4442c010 user=root] RecordOp ASSIGN: info, haTask-1-vim.VirtualMachine.consolidateDisks-139217140. Applied change to temp map.

2010-11-22T02:00:47.031Z warning hostd[B6C2B70] [Originator@6876 sub=Vmsvc.vm:/vmfs/volumes/4c031321-639ca04c-4874-00259032f5ac/hpfunilaria_server/hpfunilaria_server.vmx opID=4442c010 user=root] State Transition (VM_STATE_OFF -> VM_STATE_CONSOLIDATE_ALL_DISKS) not allowed for this Vm

2010-11-22T02:00:47.031Z info hostd[B6C2B70] [Originator@6876 sub=Default opID=4442c010 user=root] AdapterServer caught exception: vim.fault.InvalidState

2010-11-22T02:00:47.031Z info hostd[B6C2B70] [Originator@6876 sub=Vimsvc.TaskManager opID=4442c010 user=root] Task Completed : haTask-1-vim.VirtualMachine.consolidateDisks-139217140 Status error

2010-11-22T02:00:47.031Z verbose hostd[B6C2B70] [Originator@6876 sub=PropertyProvider opID=4442c010 user=root] RecordOp ASSIGN: info, haTask-1-vim.VirtualMachine.consolidateDisks-139217140. Applied change to temp map.

I Realy need helkp because i need for this data and i can't to Merge the disk for to copy the data.

0 Kudos
1 Reply
lucasbernadsky
Hot Shot
Hot Shot

Hi there!

Please make sure that those VMDKs are not mounted in any other VM. Also, try consolidating disks when the VM is powered off.

If that doesn't solve it, access to the host via SSH and restart management services and try again (Run services.sh restart). You will lose management for a minute or two so don't worry.

If also that doesn't solve it, try unregistering the VM and re adding it to vCenter (You will need the .vmx file for that), and then try again.

Regards!

0 Kudos