• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How RHEVM Monitor Storage Health

by admin

This post will illustrate how RHEVM monitors storage health in detail.

Monitor Storage Pool Manager Health

The Storage Pool Manager (SPM) is a management role assigned to one of the hosts in a data center enabling it to manage the storage domains of the data center. RHEVM check SPM availability and metadata integrity at every SPM polling rate 10 seconds.

You can check those engine configuration as follows. It’s not recommended to change below parameters unless it is recommended by Support engineer for speicific use case:

$ engine-config -g StoragePoolRefreshTimeInSeconds
StoragePoolRefreshTimeInSeconds: 10 version: general

$ engine-config -g SpmCommandFailOverRetries
SpmCommandFailOverRetries: 3 version: general

$ engine-config -g SPMFailOverAttempts
SPMFailOverAttempts: 3 version: general

$ engine-config -g DelayResetForSpmInSeconds
DelayResetForSpmInSeconds: 20 version: general

Monitor Storage Domain Health

The storage domain health is monitored by both the RHEVM engine and KVM Vdsm.

1. RHEVM monitors storage domain

The time interval in seconds to poll a Host status by RHEVM is 3 sec by default. During the process, it will check the storage status. If the getRepoStats reports code is non-zero or lastcheck(statsGenTime – domStatus.checkTime) higher than MaxStorageVdsTimeoutCheckSec(30 seconds by default), then storage domain becomes problematic and a timer starts for the domain. The storage domain failure timeout is StorageDomainFailureTimeoutInMinutes(5 minutes default). If the problematic storage domain status isn’t recovered during this time, then the host will be set as non-operation. If the problematic domain is recovered during the time, then RHEVM will activate the KVM host back automatically.

Here are related engine configuration:

$ engine-config -g VdsRefreshRate
VdsRefreshRate: 3 version: general

$ engine-config -g StorageDomainFailureTimeoutInMinutes
StorageDomainFailureTimeoutInMinutes: 5 version: general

$ engine-config -g MaxStorageVdsTimeoutCheckSec
MaxStorageVdsTimeoutCheckSec: 30 version: general

$ engine-config -g MaxStorageVdsDelayCheckSec
MaxStorageVdsDelayCheckSec: 5 version: general

2. KVM host monitor storage health:

If KVM host can’t access the storage domains, it will become Non-Operational. Vdsm will refresh storage with sd_health_check_delay monitor interval. It invokes getStorageDomainStats to get dom.getStats the domain status and return its status back to RHEVM via repoStats in _getDomsStats. Both repo_stats_cache_refresh_timeout and sd_health_check_delay can be configured in /etc/vdsm/vdsm.conf.

Filed Under: CentOS/RHEL, RHV

Some more articles you might also be interested in …

  1. How to install virtual machines optimized and configured for the Red Hat Virtualization environment
  2. How to Check if any of the RPM files were tampered with
  3. How to configure AD group in sudoers file to provide sudo access to users on Linux system
  4. How to Troubleshoot Performance Issues on Linux – Beginners Guide
  5. Hostname change not reflecting in sar report for CentOS/RHEL
  6. How to Debug systemd boot process in CentOS/RHEL 7 and 8
  7. CentOS/RHEL 8: “ACPI MEMORY OR I/O RESET_REG” Server Hung after reboot
  8. Useful RHV Engine PostgreSQL Database Queries
  9. How to Use iptables instead of firewalld on CentOS/RHEL 7 and 8
  10. Patch Management of Linux Servers Using Spacewalk

You May Also Like

Primary Sidebar

Recent Posts

  • pw-cat Command Examples in Linux
  • pvs: command not found
  • pulseaudio: command not found
  • pulseaudio Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright