How to get RAM and disk usage stats for KVM Slaves in SolusVM?

Applicable to:

  • SolusVM

Question

How to get RAM and disk usage stats for KVM Slaves in SolusVM?

Answer

There is a similar request regarding RAM and disk stats submitted on our UserVoice portal:
Improve Solus
Vote for the feature and add your vision of the feature as a comment.

As a workaround, stats can be retrieved with the following tools run on the Slave node:

  1. Login via SSH to the Slave KVM node.
  2. Run the following commands to get stats:
    RAM usage

    # virsh dommemstat KVMID

    actual 1048576
    swap_in 0
    swap_out 0
    major_fault 163
    minor_fault 129424
    unused 908944
    available 1015968
    usable 858980
    last_update 1649081142
    rss 314208

    Note: Replace KVMID with the actual value. Find it in SolusVM > Virtual Servers > VMID.

    Disk usage

    # virt-df -a /dev/solusvm/KVMID_img -h

    Filesystem Size Used Available Use%
    KVMID_img:/dev/sda1 1.9G 1.1G 779M 55%
    KVMID_img:/dev/sda2 995M 283K 943M 1%

    Note: Replace KVMID with the actual value. Find it in SolusVM > Virtual Servers > VMID.

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.