LVM Snapshot based auto-backup of vCenter Server will not be taken during vCenter patching
search cancel

LVM Snapshot based auto-backup of vCenter Server will not be taken during vCenter patching

book

Article ID: 423387

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

The script to grow disk space (autogrow.sh) isn't working because there are old LVM snapshots that need to be cleared first.

We observe the following errors in  /var/log/vmware/applmgmt/lvm_operation.log

ERROR:__main__:Failed to complete the workflow; status: Failed
ERROR:__main__:Error occurred while performing pre-check; error: {Failed to complete workflow}
ERROR:__main__:Error occurred while taking LVM snapshot; error: {Failed to complete workflow}

Performing lvs ( logical volume scan ), provides the following data.
root@vcenter [ ~ ]# lvs

Logical Volume (LV) Volume Group (VG) Attributes Size Origin (Parent) Data % (Used)
archive archive_vg owi-aos--- 49.99g - -
archive_vg_archive_snap archive_vg swi-I-s--- 10.72g archive 100
autodeploy autodeploy_vg owi-aos--- 9.99g - -
autodeploy_vg_autodeploy_snap autodeploy_vg swi-a-s--- 2.38g autodeploy 3.56
core core_vg owi-aos--- 49.99g - -
core_vg_core_snap core_vg swi-a-s--- 11.91g core 3.93
db db_vg owi-aos--- 9.99g - -
db_vg_db_snap db_vg swi-a-s--- 2.38g db 64.84
dblog dblog_vg owi-aos--- 14.99g - -
dblog_vg_dblog_snap dblog_vg swi-a-s--- 3.57g dblog 23.4
imagebuilder imagebuilder_vg owi-aos--- 9.99g - -
imagebuilder_vg_imagebuilder_snap imagebuilder_vg swi-a-s--- 2.38g imagebuilder 3.01
lifecycle lifecycle_vg -wi-ao---- 99.99g - -
log log_vg -wi-ao---- 49.99g - -
netdump netdump_vg owi-aos--- 1016.00m - -
netdump_vg_netdump_snap netdump_vg swi-a-s--- 240.00m netdump 6.92
seat seat_vg owi-aos--- 549.99g - -
seat_vg_seat_snap seat_vg swi-a-s--- 131.12g seat 27.38
swap1 swap_vg -wi-ao---- 24.99g - -
updatemgr updatemgr_vg owi-aos--- 99.99g - -
updatemgr_vg_updatemgr_snap updatemgr_vg swi-a-s--- 23.84g updatemgr 19.17
lv_root_0 vg_root_0 owi-aos--- 48.00g - -
vg_root_0_lv_root_0_snap vg_root_0 swi-I-s--- 10.30g lv_root_0 100
vtsdb vtsdb_vg owi-aos--- 549.99g - -
vtsdb_vg_vtsdb_snap vtsdb_vg swi-a-s--- 131.12g vtsdb 0.81
vtsdblog vtsdblog_vg owi-aos--- 14.99g - -
vtsdblog_vg_vtsdblog_snap vtsdblog_vg swi-a-s--- 3.57g vtsdblog 2.25

Environment

VMware vCenter Server 8.x

Cause

When upgrading vCenter Server the LVM snapshot cleanup workflow fails to execute automatically due to which the stale LVM snapshots are present and the new LVM snapshot is not created.

Resolution

Execute the LVMCleanup.py mentioned in kb KB370818 to clear all the created snapshot volumes and re-create the lvm_snapshot logical volume.