We help IT Professionals succeed at work.

Removing disk and vmdk from server

abhijitm00
abhijitm00 asked
on
Hi, we have a Windows 2012 R2 Datacenter VM which has a 1TB .vmdk assigned to it which we would like to delete and also remove from datastore? What is the best way to do this without rebooting the VM?

TIA
Comment
Watch Question

VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Commented:
Right Click the VM, select Edit Settings, Click the Hard Disk, select REMOVE

then Select Remove from Virtual Machine and Remove files from disk.

This will remove the virtual disk from the VM, and delete from datastore.

This can be done whilst the VM is ON.

Remove-disk
Emmanuel AdebayoGlobal Windows Infrastructure Engineer - Consultant
Top Expert 2013

Commented:
What version of vSphere are you using?

There is no downtime from vSphere 4.1 when removing the vmdk and the datastore.

Author

Commented:
Thanks Andrew and how can we remove this from the OS? Currently there is a drive letter attached to this disk in the OS

Author

Commented:
Emannuel - it is 5.5
Emmanuel AdebayoGlobal Windows Infrastructure Engineer - Consultant
Top Expert 2013
Commented:
Yes, that's fine then.

Andrew post will resolve the it.

As long as you remove it as shown in Andrew reply it will be removed from your server.

Just go to the device manager and rescan or refresh.

Regards