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?
Solved! Go to Solution.
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 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.
@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.
@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:
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.