1. Rancher Install Longhorn
When you are installing Longhorn, longhorn-driver-deployer
and longhorn-manager
failing to start successfully.
Search in the app storeLonghorn
Others keep the default, just start
click
2. Solution
View longhorn-manager
one of the Pod logs as follows:
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"
The missing iscsiadm
command is found through the log error report. You can install the command according to your system. The relevant information queried is as follows:
https://github.com/longhorn/longhorn/issues/1493
https://longhorn.io/docs/0.8.0/install/requirements/
My system is CentOS and each node needs to install:
[root@k8s-master01 ~]# yum install iscsi-initiator-utils
After installation, select the Pod that cannot be successfully started and redeploy it.