10 Dec 2022 12:51 PM
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.
10 Jan 2023 09:05 PM
that's a tricky one @AntonioSousa if its not mounted I don't think we could expect the Oneagent to see it.
10 Jan 2023 09:17 PM
@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...
10 Jan 2023 09:33 PM
@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.
10 Jan 2023 11:02 PM
@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.
11 Jan 2023 07:13 AM
@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.