152. Longhorn卷报错 insufficient storage;precheck new replica failed

Environment  环境

SUSE Enterprise Storage - Longhorn- 1.7.3

 

Situation  地理位置

One or more Longhorn volumes fall into a degraded state with the mentioned error, even though the nodes have sufficient storage space. This issue might occur in an environment where the worker node is temporarily shut down or rebooted abruptly. This article outlines the known bug and a possible workaround to mitigate the error to bring the volumes back to a healthy state. 
即使节点有足够的存储空间,一个或多个 Longhorn 卷仍会因上述错误而降级。这个问题可能发生在工作节点被临时关闭或突然重启的环境中。本文概述了已知的 bug 以及可能的解决方法,以减轻错误,使体积恢复到健康状态。

Resolution  结局
  • The following error is observed for the degraded volumes in the Longhorn UI:
    在 Longhorn UI 中观察到降级体积的误差如下:
Replica Scheduling Failure
Error Message: disks are unavailable;insufficient storage;precheck new replica failed
  • It is also observed that the nodes have enough disk space available to schedule replicas. 
    还观察到节点有足够的磁盘空间用于调度副本。
  • Upon further investigation, the longhorn-manager pod shows below error:
    进一步调查后,长角牛经理的播报显示了以下错误:
2025-08-11T07:01:23.729057940Z time="2025-08-11T07:01:23Z" level=info msg="Cannot find a reusable failed replicas for volume pvc-xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx" func="scheduler.(*Repli
caScheduler).CheckAndReuseFailedReplica" file="replica_scheduler.go:635"
  • This is a known issue as explained here: 10210. The issue is fixed in the Longhorn version 1.8.0 and above. 
    这是一个已知的问题,如这里解释:10210。这个问题在 Longhorn 1.8.0 及以上版本中得到了修复。 
  • The following workaround can be implemented to resolve the issue:
    以下变通方法可以实现以解决该问题:
    • Go to Longhorn UI >> Volumes >> Select the affected Volume >> Click on the Hamburger icon and enable “Replica Disk Soft Anti-Affinity
      进入 Longhorn UI >> Volumes >> 选择受影响的 Volume >> 点击汉堡图标并启用“Replica Disk Soft Anti-Affinity

 

 

 

Cause  病因
  • When the Longhorn node is rebooted or shut down abruptly, the replica may become faulty, and Longhorn will try to rebuild the replica on a healthy node. However, the bug mentioned above prevents the rebuild and marks the volume as degraded. 
    当 Longhorn 节点被突然重启或关闭时,副本可能会出现故障,Longhorn 会尝试在健康节点上重建副本。然而,上述的 bug 阻止了重建,并将音量标记为降级。
  • The workaround of enabling Disk‑level soft anti‑affinity ensures that Longhorn allows scheduling the replica correctly on any healthy node. 
    启用磁盘级软反亲和机制的变通方法确保 Longhorn 允许在任何健康节点上正确调度副本。

访问Rancher-K8S解决方案博主,企业合作伙伴 :
https://blog.csdn.net/lidw2009

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

K8S解决方案

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值