Attached virtual disk doesn't show up in disk manager (storage pools)


  1. Posts : 25
    Win 10 Edu x64
       #1

    Attached virtual disk doesn't show up in disk manager (storage pools)


    I have a strange virtual disk problem on Server 2019 (the virtual disk commands should be the same as on Win 10). I have several *.vhdx files on different physical drives which used to be in a storage pool in order to combine them into a single large volume (it's used as a temporary volume with non-critical data). After a drive with one of the virtual disk files on it broke, I deleted the pool and wanted to reassign the remaining virtual disk files to a new pool, but these virtual disks don't show up at all:

    Attaching the virtual disk file (say, "D:\virtualdisk.vhdx") works without errors, either through disk management (action -> attach VHD) or through powershell (Mount-DiskImage -ImagePath D:\virtualdisk.vhdx). Detaching (Dismount-DiskImage) also works. But once it's attached, it doesn't show up as a disk in disk management (or using the Get-Disk command) as if it's still part of the pool. But as I said, the previous pool has been deleted - the storage pools section in the server manager is empty (that would be storage spaces in Win 10), and the Get-StoragePool powershell command lists only the primordial pool (i.e. storage not assigned to a pool). But interestingly, it shows 88GB under "AllocatedSize", which is the size of that particular virtual disk:
    Attached virtual disk doesn't show up in disk manager (storage pools)-pool.png
    With that disk detached, AllocatedSize becomes 0. So it means the virtual disk is still allocated to some (?) pool but the pool doesn't show up in the list where I can delete it properly...? Is there a way to "force-clean" a virtual disk from any pool assignments?
      My Computer


  2. Posts : 295
    Windows 10 Pro
       #2

    If the storage pool contains file systems, you must unmount and then delete the file systems before you can delete the storage pool.
    Deleting a storage pool - Hitachi Vantara Knowledge


    How To Delete a Corrupt Windows Server Storage Pool -- Redmondmag.com

    How did you delete the storage pool? I'm thinking that may have been the issue from the get go.
      My Computer


  3. Posts : 25
    Win 10 Edu x64
    Thread Starter
       #3

    F22 Simpilot said:
    Deleting a storage pool - Hitachi Vantara Knowledge

    How To Delete a Corrupt Windows Server Storage Pool -- Redmondmag.com

    How did you delete the storage pool? I'm thinking that may have been the issue from the get go.
    The first link seems to be for a proprietary NAS system, not Windows. The second link is interesting, but his (faulty) storage pool is at least showing up - mine is gone but the virtual disks that were in the pool somehow haven't been "unassigned". I suppose I could delete the *.vhdx files and create new ones, but there should be a simpler way to remove the pool assignment from an existing (virtual) disk. Also, if these old pool assignemnts are floating around somewhere in the registry, it might have bad side effects if I re-create virtual disks or the pool with the same name...

    I deleted the pool through the server manager GUI (also shown in the second link). First deleted the volume in the pool (only had one volume), then the pool itself.

    - - - Updated - - -

    Ok, I solved it. Turns out that an attached virtual disk (from a *vhd/x file) shows up as a physical disk (Get-PhysicalDisk command). The Get-VirtualDisk command apparently isn't supposed to list attached/mounted virtual disks but only virtual disks created within a storage pool.

    In any case, listing the physical disks shows not only the actual physical disks but also all attached virtual disks (as physical disks, yes, it's confusing) with some more info such as whether they are assigned to a pool. Conveniently, the "Reset-PhysicalDisk" command is exactly what I was looking for - it cleans any pool assignments from a physical disk (and deletes everything, so be careful). In my case, I had to run
    Code:
    Reset-PhysicalDisk -FriendlyName "Msft Virtual Disk"
    and all attached virtual disks became clean and available for a new pool.
    Last edited by Novgorod; 22 Dec 2023 at 12:36.
      My Computer


  4. Posts : 295
    Windows 10 Pro
       #4

    Glad it's working now. I did try to find the registry entries but couldn't. Your question sure was a head scratcher. LOL
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 14:00.
Find Us




Windows 10 Forums