RKE prefix_path option not working

Good day,

I had installed rancher cluster several times before. I was faced with the problem that both /var/lib/docker and /var/lib/rancher get filled up rather quickly so I remade my installation to avoid those folders. /var on my machines only have 7gb and its something i cant change.

Fortunately when setting up a cluster i can tell rancher to store everything on a different folder:

On my rke file i have the option:

prefix_path: “/apps/rancher”

RKE gives me the error:

DEBU[0075] Failed to get /health for host [10.11.209.107]: Get https://10.11.209.107:2379/health: Unable to access the service on 10.11.209.107:2379. The service might be still starting up. Error: ssh: rejected: connect failed (Connection refused)

So I check docker etcd logs cause thats the etcd health check and it keeps giving me the same error while trying to restart:

2019-11-08 09:47:42.524998 C | etcdmain: error listing data dir: /var/lib/rancher/etcd/
2019-11-08 09:47:46.017514 W | pkg/flags: unrecognized environment variable ETCD_UNSUPPORTED_ARCH=x86_64
2019-11-08 09:47:46.017606 I | etcdmain: etcd Version: 3.3.10
2019-11-08 09:47:46.017611 I | etcdmain: Git SHA: 27fc7e2
2019-11-08 09:47:46.017615 I | etcdmain: Go Version: go1.10.4
2019-11-08 09:47:46.017619 I | etcdmain: Go OS/Arch: linux/amd64
2019-11-08 09:47:46.017623 I | etcdmain: setting maximum number of CPUs to 2, total number of available CPUs is 2
2019-11-08 09:47:46.017652 C | etcdmain: error listing data dir: /var/lib/rancher/etcd/
2019-11-08 09:47:52.680546 W | pkg/flags: unrecognized environment variable ETCD_UNSUPPORTED_ARCH=x86_64
2019-11-08 09:47:52.680642 I | etcdmain: etcd Version: 3.3.10
2019-11-08 09:47:52.680647 I | etcdmain: Git SHA: 27fc7e2
2019-11-08 09:47:52.680651 I | etcdmain: Go Version: go1.10.4
2019-11-08 09:47:52.680655 I | etcdmain: Go OS/Arch: linux/amd64
2019-11-08 09:47:52.680659 I | etcdmain: setting maximum number of CPUs to 2, total number of available CPUs is 2
2019-11-08 09:47:52.680684 C | etcdmain: error listing data dir: /var/lib/rancher/etcd/
2019-11-08 09:48:05.729604 W | pkg/flags: unrecognized environment variable ETCD_UNSUPPORTED_ARCH=x86_64
2019-11-08 09:48:05.729697 I | etcdmain: etcd Version: 3.3.10
2019-11-08 09:48:05.729703 I | etcdmain: Git SHA: 27fc7e2
2019-11-08 09:48:05.729706 I | etcdmain: Go Version: go1.10.4
2019-11-08 09:48:05.729710 I | etcdmain: Go OS/Arch: linux/amd64
2019-11-08 09:48:05.729715 I | etcdmain: setting maximum number of CPUs to 2, total number of available CPUs is 2
2019-11-08 09:48:05.729742 C | etcdmain: error listing data dir: /var/lib/rancher/etcd/

Cause i am using the prefix path there isnt a /var/lib/rancher.
The etcd folder was created under my prefix path but the docker container is trying to reach the wrong folder.