VMware Horizon Community
damogill
Contributor
Contributor

Can't detach persistent disk

I have just been mucking about with persistent disks in view 4.5 and have got into a bit of a pickle!

I was attempting to simulate a rebuild of a desktop so detached the users persistent disk and then clicked the recreate desktop option in detached disks. This operation failed with a cloning error "Provisioning error occurred for Machine DLC-XP-3: Cloning failed for Machine"

Even though the task failed the unattached disk is now showing under the attached tab. When trying to detach it I get the following error:

You cannot remove the primary data disk until all the secondary disks have been detached from the VM

I'm now stuck with this entry in the attached tab, there is no VM for it as it failed to create it. Looks like I need to flush this out from the database somehow or possibly look into a command line option.

Has anyone experienced this before? I have attached a screenshot to help explain it better.

off to research command line options

Tags (2)
Reply
0 Kudos
6 Replies
damogill
Contributor
Contributor

Fixed this by deleting the entry from the ADAM database on the View Connection Server using ldp.exe

Worth noting if anyone else runs into this issue.

See attached image I deleted the entry under OU=Data Disks,DC=vmware,DC=int

Would be fun trying to determine which one relates if you had a much larger enviroment, fortunately I only have one as this is a test enviroment.

Reply
0 Kudos
jason450
Contributor
Contributor

If you double click on the object in ldp.exe, the data to the right will show you what parent vm its tied to. Also there is a search function to look up specifics.

Reply
0 Kudos
DenisGrimard
Contributor
Contributor

Thanks so much, I had a nighmare on my hands and this post definately helped do some cleanup.

Reply
0 Kudos
marktbreaux
Contributor
Contributor

FYI -

When you do this, it deletes the record of the disk in the view server. You will need to go to detached disks tab and reimport the disk. It can take a few moments for the view server to scan your datastore so be patient.

-Mark

Reply
0 Kudos
simoncoleman
Contributor
Contributor

Good info - I moved a pool between 2 physical servers & some oversight when removing the provisioned machines led to the vcenter service still thinking it had 2 user disks present ... some node removal in ldp & we're done

thanks

simon

Reply
0 Kudos
Saceng
Contributor
Contributor

Very helpful!

Reply
0 Kudos