Map "\Device\HarddiskVolumeX" to "Shared Drive name" when using performance counters

%3CLINGO-SUB%20id%3D%22lingo-sub-3081861%22%20slang%3D%22en-US%22%3EMap%20%22%5CDevice%5CHarddiskVolumeX%22%20to%20%22Shared%20Drive%20name%22%20when%20using%20performance%20counters%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3081861%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EIm%20trying%20to%20monitor%20performance%20counters%20of%20a%20shared%20vhdx%20disk%20on%20a%20Windows%20Server%202016%20Hyper-V%20host.%20The%20performance%20counters%20Im%20interested%20are%20%5CHyper-V%20Shared%20VHDX%5C*.%20When%20I%20select%20one%20of%20those%20counters%2C%20the%20instance%20name%20of%20the%20counter%20is%20showed%20like%20this%3A%20%22%5CDevice%5CHarddiskVolume5%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22performance%20counter.png%22%20style%3D%22width%3A%20383px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F343400iBEABE8083DA051AE%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22performance%20counter.png%22%20alt%3D%22performance%20counter.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20problem%20is%20that%20I%20dont%20know%20to%20which%20Shared%20VHDX%20this%20instance%20belongs%20to.%20Is%20there%20a%20way%20to%20map%20this%20instance%20name%20to%20the%20name%20that%20is%20show%20in%20the%20Shared%20Drive%20in%20the%20settings%20of%20a%20virtual%20machine%20disk%3F%20Like%20this%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22shared%20drive.png%22%20style%3D%22width%3A%20719px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F343401i34B2E940437C39F0%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22shared%20drive.png%22%20alt%3D%22shared%20drive.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20for%20the%20purpose%20to%20automate%20collection%20of%20perfomance%20counters%20of%20shared%20vhdx.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3081861%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EHyper-V%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EManagement%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EStorage%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3092510%22%20slang%3D%22en-US%22%3ERe%3A%20Map%20%22%5CDevice%5CHarddiskVolumeX%22%20to%20%22Shared%20Drive%20name%22%20when%20using%20performance%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3092510%22%20slang%3D%22en-US%22%3E%3CP%3EI%20know%20that%20%5CDevice%5CHarddiskVolumeX%20maps%20to%20the%20shared%20VHDx%20because%20of%20this%20entry%20on%20Resource%20Monitor%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22performance%20counter%202.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F343903i3146D2C688F45484%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22performance%20counter%202.png%22%20alt%3D%22performance%20counter%202.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKC390_ODFC_DADOS...%20is%20a%20Shared%20Drive%20from%20one%20of%20our%20VM.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20there%20is%20a%20way%20to%20get%20the%20information%20show%20on%20the%20File%20column%2C%20this%20could%20help%20doing%20the%20mapping.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi,


Im trying to monitor performance counters of a shared vhdx disk on a Windows Server 2016 Hyper-V host. The performance counters Im interested are \Hyper-V Shared VHDX\*. When I select one of those counters, the instance name of the counter is showed like this: "\Device\HarddiskVolume5".

 

performance counter.png

 

The problem is that I dont know to which Shared VHDX this instance belongs to. Is there a way to map this instance name to the name that is show in the Shared Drive in the settings of a virtual machine disk? Like this

 

 

shared drive.png

 

This is for the purpose to automate collection of perfomance counters of shared vhdx.

 

Thanks in advance.

1 Reply

I know that \Device\HarddiskVolumeX maps to the shared VHDx because of this entry on Resource Monitor:

 

performance counter 2.png

 

KC390_ODFC_DADOS... is a Shared Drive from one of our VM.

 

If there is a way to get the information show on the File column, this could help doing the mapping.