A client of ours has 4 standalone Hyper-V servers. We were looking for a way to better allocate file system resources to these servers. The process will likely take a couple of moves of Hyper-V guests in order to accomplish. I set out to document disk space usage among the servers. While looking at one of the Hyper-V servers, I noted that it had a drive that looked like it was "too full". On closer look, I found the following:
The drive holds the Hyper-V files and the C: drive of a file server. The actual shared files are not in this folder.
The drive is connected via iSCSI to a QNAP LUN. Nothing else is on the LUN, and no other devices can connect to that LUN.
When I looked at the contents of the drive, it looked like only 150 GB or so should be in use. I also checked the Recycle Bin for all users on the machine. Basically empty. Certainly nothing that should add up to nearly 2 TB:
I tried WinDirStat. It showed that only about 125 GB was in use, the same as the used space check.
After some digging on the Internet, I tried choosing "Show Unknown" in the WinDirStat options, it showed a large "" file. Unlike other files shown in WinDirStat, the context menu is all grey:
WinDirStat showing large unknown file
So I dug some more. I ran TreeWiz. It showed the file name, date, and location in the directory. It also did not show a context menu for that file:
TreeWiz showing file WITH file name.
The file name indicated a vhdx from a file server that we had attempted to recover a couple of years ago. That file server VM never ran on this host, we just attempted to recover files here.
That said, we know what the file is, what the filename is, where it is, and how it got there.
Now I need to delete it.
I tried using the command prompt as administrator to delete it.
V:\>del .\file_user_data_restore.vhdx
Could Not Find V:\file_user_data_restore.vhdx
I tried using powershell as administrator.
PS V:\> remove-item .\file_user_data_restore.vhdx
remove-item : Cannot find path 'V:\file_user_data_restore.vhdx' because it does not exist.
The file does not show up on any built-in Windows tool that I can find. Any thoughts on how I can remove it, short of formatting the drive.
Who knew NTFS was so fragile.