cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Detecting unused disks?

AntonioSousa
DynaMight Guru
DynaMight Guru

I have this question for Azure VMs, but I believe it applies to multiple situations.

I might have VMs that have allocated disks, but which for any reason, might not be partitioned/mounted. How would I detect them? From the Azure integration, I cannot see them at the VM level. Inside the VM I only see the ones that are mounted. Or am I missing something?

Does anyone have any idea for tackling this problem?

Antonio Sousa
6 REPLIES 6

ChadTurner
DynaMight Legend
DynaMight Legend

that's a tricky one @AntonioSousa if its not mounted I don't think we could expect the Oneagent to see it.

 

-Chad

AntonioSousa
DynaMight Guru
DynaMight Guru

@ChadTurner,
It is really quite easy, as can be seen in the screenshot below, for a VM of mine. fdisk shows the physical disks, and df the several filesystems. As can be seen in the example, I have a 13 GB disk (virtual, in VirtualBox), but I have only allocated 5GB for the OS, which is being used at 70%. While this is a good thing for me in VirtualBox (I have zeroed the remaining 7GB and as such they don't occupy space), the same is not true in Azure, where I would be paying for 7GB of disk that aren't even allocated at the machine level...

AntonioSousa_0-1673385434270.png

 

Antonio Sousa

 

@AntonioSousa did you check the disk analytics extension for that? it provides metrics for Linux hosts for physical disks and it's partitions. I think you should be able to generate charts of used space vs allocated physical disks with that.

 

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

@Julius_Loman, thanks for pointing out an extension I didn't know about. I'll have to check it out, as from the documentation it's not clear if it will help in this use-case. Certainly not at the Azure level though, as it is an OneAgent extension for Linux only.

Antonio Sousa

@AntonioSousa Sure, it's for a different purpose. But it provides at least the physical disk metrics. For Linux hosts on Azure it might help you.

To help you find unallocated block device space you can use:

  • com.dynatrace.extension.disk-devices.partition.size  to see the partition sizes
  • com.dynatrace.extension.disk-devices.disk.size to see the physical disk  (block device) size

For hosts using volume management you have also the metrics..

So in general I believe, this is doable for Linux hosts with OneAgent using metrics with this extension.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

@Julius_Loman,

Thanks! Will try it out...

Antonio Sousa

Featured Posts