Rancher 安装 Longhorn 报错解决办法

一、Rancher 安装 Longhorn

至于 Longhorn 的概念这里就不赘述了,主要记录安装 Longhorn 的时候longhorn-driver-deployerlonghorn-manager无法成功启动问题。

在应用商店搜索Longhorn

image-20220222110610953

其他的保持默认,点击启动即可

image-20220222110716492

二、报错解决方法

查看longhorn-manager其中一个 Pod 日志如下:

2022/02/22 02:45:53 proto: duplicate proto type registered: VersionResponse 
time="2022-02-22T02:45:53Z" level=error msg="Failed environment check, please make sure you have iscsiadm/open-iscsi installed on the host" 
time="2022-02-22T02:45:53Z" level=fatal msg="Error starting manager: Environment check failed: Failed to execute: nsenter [--mount=/host/proc/1/ns/mnt --net=/host/proc/1/ns/net iscsiadm --version], output , stderr, nsenter: failed to execute iscsiadm: No such file or directory\n, error exit status 127"

Snipaste_2022-02-22_10-56-54

通过日志报错得知缺少iscsiadm命令,根据你的系统安装该命令即可,查询到的相关资料如下:

https://github.com/longhorn/longhorn/issues/1493

https://longhorn.io/docs/0.8.0/install/requirements/

image-20220222111946811

我的系统是 CentOS,每个节点都需要安装:

[root@k8s-master01 ~]# yum install iscsi-initiator-utils

安装好之后,选择不能成功启动的 Pod 重新部署一下即可。

image-20220222112618218

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值