Health Monitoring with lm_sensors on Power

1) Install Packages

yum install lm_sensors

[root@pkvm home]# rpm -qa|grep sensor
lm_sensors-3.3.3-3.pkvm2_1.2.ppc64
lm_sensors-libs-3.3.3-3.pkvm2_1.2.ppc64
[root@pkvm home]#
2)  Run sensors

[root@pkvm home]# sensors
amb-temp-sensor-isa-0000
Adapter: ISA adapter
temp1: +24.0°C (high = +0.0°C)

fan-sensor-isa-0000
Adapter: ISA adapter
fan1: 3497 RPM (min = 0 RPM)
fan2: 3195 RPM (min = 0 RPM)
fan3: 3497 RPM (min = 0 RPM)
fan4: 3210 RPM (min = 0 RPM)
fan5: 3501 RPM (min = 0 RPM)
fan6: 3221 RPM (min = 0 RPM)
fan7: 3443 RPM (min = 0 RPM)
fan8: 3187 RPM (min = 0 RPM)
fan9: 0 RPM (min = 0 RPM)
fan10: 0 RPM (min = 0 RPM)
fan11: 7560 RPM (min = 0 RPM)
fan12: 7320 RPM (min = 0 RPM)

power-isa-0003
Adapter: ISA adapter
power1: 303.00 W

[root@pkvm]

3) Power

[root@pkvm home]# sensors power-isa-0003
power-isa-0003
Adapter: ISA adapter
power1: 302.00 W

[root@pkvm home]#

Configure Memory Balloon for PowerKVM

Memory ballooning allows the guest memory to be changed dynamically by the host, depending on the amount of free memory available.

To enable ballooning edit XML file.

<devices>
<memballoon model=’virtio’/>
</devices>

virsh # list
Id    Name                           State
—————————————————-
2     rhel65             running

virsh # ^C
[root@powerkvm ~]# virsh qemu-monitor-command –domain 2 –hmp ‘info balloon’
balloon: actual=2048

To change balloon pages

[root@powerkvm ~]# virsh qemu-monitor-command –domain 2 –hmp ‘ balloon 4096’
[root@powerkvm ~]# virsh qemu-monitor-command –domain 2 –hmp ‘info balloon’
balloon: actual=4096