Avatar of mario00
mario00

asked on 

Delete ESXi flat file

I removed a virtual disk and deleted its files from the disk but the flat file still remains in the data store!  What can i do to delete this file and recover the space on the data store?  ESXi 5.5
VMware

Avatar of undefined
Last Comment
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Avatar of Jordan GUERDER
Jordan GUERDER
Flag of France image

If the VM linked to this disk is deleted I don't see any problems to delete the flat VMDK. If you can't delete it, the file is still being used by the system.
Avatar of mario00
mario00

ASKER

i didnt delete the vm, I deleted one of the virtual disks.  The descriptor file is gone but the flat file remains!
Avatar of mario00
mario00

ASKER

The vmx file still has a scsi 3 entry associated with the drive.  Can I manually delete the entry or is there a better way to remove it?  This disk should not exist as it was deleted!

scsi0:3.deviceType = "scsi-hardDisk"
scsi0:3.fileName = "/vmfs/volumes/5371416e-1df8b7c6-ba57-d4ae527ec256/SAS_1/SAS.vmdk"
scsi0:3.ctkEnabled = "TRUE"
sched.scsi0:3.vFlash.enabled = "FALSE"
scsi0:3.present = "FALSE"
scsi0:3.redo = ""
Avatar of Jordan GUERDER
Jordan GUERDER
Flag of France image

I don't advise you to edit a file manually.
Was the virtual disk removed when the VM was turned off ?

If you really want to modify the file it should work, but maybe think about downloading a copy of the configuration file.
Avatar of mario00
mario00

ASKER

Vm was turned on when file was deleted.  After disk was removed the VM was renamed and migrated to new data store so it would rename the vmdk files.  Noticed afterwards the data store did not recover the space as expected.
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
VMware
VMware

VMware, a software company founded in 1998, was one of the first commercially successful companies to offer x86 virtualization. The storage company EMC purchased VMware in 1994. Dell Technologies acquired EMC in 2016. VMware’s parent company is now Dell Technologies. VMware has many software products that run on desktops, Microsoft Windows, Linux, and macOS, which allows the virtualizing of the x86 architecture. Its enterprise software hypervisor for servers, VMware vSphere Hypervisor (ESXi), is a bare-metal hypervisor that runs directly on the server hardware and does not require an additional underlying operating system.

39K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo