longhorn: Longhorn manager not run on RancherOS
I try run Longhorn on RancherOS node, install open-iscsi after show error:
time="2019-10-23T13:36:56Z" level=info msg="Start overwriting built-in settings with customized values"
time="2019-10-23T13:36:56Z" level=info msg="Start Longhorn replica controller"
time="2019-10-23T13:36:56Z" level=info msg="Start Longhorn engine controller"
time="2019-10-23T13:36:56Z" level=info msg="Start Longhorn websocket controller"
time="2019-10-23T13:36:56Z" level=info msg="Start Longhorn Engine Image controller"
time="2019-10-23T13:36:56Z" level=info msg="Start Longhorn node controller"
time="2019-10-23T13:36:56Z" level=info msg="Start Longhorn Setting controller"
time="2019-10-23T13:36:56Z" level=info msg="Start kubernetes controller"
time="2019-10-23T13:36:56Z" level=info msg="Starting Longhorn instance manager controller"
time="2019-10-23T13:36:56Z" level=info msg="Start Longhorn volume controller"
time="2019-10-23T13:36:56Z" level=fatal msg="Error starting manager: cannot get disk info of directory /var/lib/rancher/longhorn/: Failed to execute: nsenter [--mount=/host/proc/5423/ns//mnt stat -fc {\"path\":\"%n\",\"fsid\":\"%i\",\"type\":\"%T\",\"freeBlock\":%f,\"totalBlock\":%b,\"blockSize\":%S} /var/lib/rancher/longhorn/], output , stderr, nsenter: failed to execute stat: No such file or directory\n, error exit status 1"
About this issue
- Original URL
- State: open
- Created 5 years ago
- Reactions: 1
- Comments: 23 (2 by maintainers)
I was able to get Longhorn working on RancherOS by running the following set of commands:
This basically just downloads the missing utilities (stat, flock) from busybox and enables open-iscsi.
The issue is that the
/binfolder doesn’t persist between reboots, so this isn’t a real solution. Seems likestatandflockwould just need to be included in RancherOS and Longhorn would work fine.@raelix I think because RancherOS it’s in EOL, people are looking for other options.
Changing to Ubuntu and ditching RancherOS fixed this. Must be some incompatibility with the latest RancherOS?