"StatId storage.util.filesystem.lvm_snapshot does not exist", clicking on Update tab in VAMI shows the error "List operation failed, please try again"
search cancel

"StatId storage.util.filesystem.lvm_snapshot does not exist", clicking on Update tab in VAMI shows the error "List operation failed, please try again"

book

Article ID: 403020

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • While patching of the vCenter server pre-check fails with  error :-

    Error in method invocation Timeout happens while waiting for task to terminate



  • Appliance management logs report "storage.util.filesystem.lvm_snapshot does not exist" as below

    Path: /var/log/vmware/applmgmt/applmgmt.log

    ERROR:vmware.appliance.monitoring.stats:Got exception while reading storage stats : 'StatId storage.util.filesystem.lvm_snapshot does not exist.'
    Traceback (most recent call last):
      File "/usr/lib/applmgmt/monitoring/py/vmware/appliance/monitoring/stats.py", line 452, in gatherStats
        fsStats = [getFilesystemStats(
      File "/usr/lib/applmgmt/monitoring/py/vmware/appliance/monitoring/stats.py", line 452, in <listcomp>
        fsStats = [getFilesystemStats(
      File "/usr/lib/applmgmt/monitoring/py/vmware/appliance/monitoring/stats.py", line 74, in getFilesystemStats
        return getTotalAndUtilStats(
      File "/usr/lib/applmgmt/monitoring/py/vmware/appliance/monitoring/stats.py", line 171, in getTotalAndUtilStats
        percRaw = reader.getStatValuesRaw(totalKey, start, end)
      File "/usr/lib/applmgmt/monitoring/py/vmware/appliance/monitoring/statsMonitor.py", line 369, in getStatValuesRaw
        self._validate(statId, startTime, endTime)
      File "/usr/lib/applmgmt/monitoring/py/vmware/appliance/monitoring/statsMonitor.py", line 434, in _validate
        raise NotFoundException('StatId %s does not exist.' % statId)
    vmware.appliance.monitoring.statsMonitor.NotFoundException: 'StatId storage.util.filesystem.lvm_snapshot does not exist.'

 

  • Validating df -h shows the below result with lvm_snapshot missing 



  • Running #lslblk command also does not show lvm_snapshot mountpoint as below,

Environment

vCenter Server 7.x
vCenter Server 8.x

Resolution

Recreate the missing lvm_snapshot mountpoint by executing the script "prepare_vc_for_lvm_snapshot.sh" from the KB - LVM snapshot mountpoint is missing on vCenter Server, scripted method to enable LVM snapshot

This script's purpose is to recreate the missing /storage/lvm_snapshot volume.

  • Running the script (prepare_vc_for_lvm_snapshot.sh)confirms that snapshot volume is not configured and it in turn creates new the volume

    # ./prepare_vc_for_lvm_snapshot.sh
    Enter SSO user name : sso_user_name
    Enter SSO password :
    Enter SDK port ( default : 443 ) :
    INFO Root is on LVM
    INFO Snapshot volume is not configured
    .
    .
    .
    Successfully configured snapshot volume.

  • Validate by running lsblk command to see if "/storage/lvm_snapshot" is recreated