Troubleshooting: Longhorn Manager Crashes Due To Backing Image Eviction
| March 7, 2025
v1.7.0-v1.7.3 and v1.8.0
Longhorn Manager repeatedly crashes, disrupting storage management operations. The logs indicate that the crashes are caused by a nil pointer dereference in the function syncBackingImageEvictionRequested()
.
The issue is caused by a race condition between the deletion of a disk in the backing image spec and the updating of its status, as explained in the following sequence:
EvictionRequested
flag is set to true, the function syncBackingImageEvictionRequested()
is triggered to evict the backing image from that node or disk.backingImage.spec.evictionRequested
for the evicted disk, causing Longhorn Manager to crash.To mitigate the issue and restore stability, follow these steps:
EvictionRequested
flags to false
to prevent the eviction process from triggering the crash.EvictionRequested
flags back to true
as necessary.This workaround allows Longhorn Manager to stabilize itself, prevents further crashes, and ensures that the eviction process can continue once the backing image status is consistent.
Longhorn v1.8.1+
Recent articles
© 2019-2025 Longhorn Authors | Documentation Distributed under CC-BY-4.0
© 2025 The Linux Foundation. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.