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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM