I’m running Rancher 1.2 on RancherOS 0.7 iso. I’m using rancher-nfs with joebiellik/nfs4 as nfs-server. Everything starts fine, there are no healthcheck issues and I’m able to create and add volumes to containers. The problem is the speed. All diskoperations on the rancher-nfs volumes takes forever. It takes about 15 seconds just to get a simple directory listing. The nfs-driver logs are full of errors, but they doesn’t say me anything. Here’s an example:
2016-12-07 10:00:00time=“2016-12-07T09:00:00Z” level=info msg=mount.request name=qgisserverprojects
2016-12-07 10:00:00time=“2016-12-07T09:00:00Z” level=info msg=“qgisserverprojects already mounted on /var/lib/rancher/volumes/rancher-nfs/qgisserverprojects”
2016-12-07 10:00:00time=“2016-12-07T09:00:00Z” level=info msg=mount.response mountpoint=“/var/lib/rancher/volumes/rancher-nfs/qgisserverprojects”
2016-12-07 10:00:00time=“2016-12-07T09:00:00Z” level=info msg=mount.request name=qgisservervarnish
2016-12-07 10:00:00time=“2016-12-07T09:00:00Z” level=info msg=“qgisservervarnish already mounted on /var/lib/rancher/volumes/rancher-nfs/qgisservervarnish”
2016-12-07 10:00:00time=“2016-12-07T09:00:00Z” level=info msg=mount.response mountpoint=“/var/lib/rancher/volumes/rancher-nfs/qgisservervarnish”
2016-12-07 10:00:00time=“2016-12-07T09:00:00Z” level=info msg=unmount.request name=qgisserverprojects
2016-12-07 10:00:00time=“2016-12-07T09:00:00Z” level=info msg=unmount.response
2016-12-07 10:00:00time=“2016-12-07T09:00:00Z” level=info msg=unmount.request name=qgisservervarnish
2016-12-07 10:00:00time=“2016-12-07T09:00:00Z” level=info msg=unmount.response
2016-12-07 10:00:00time=“2016-12-07T09:00:00Z” level=info msg=mount.request name=qgisservervarnish
2016-12-07 10:00:00time=“2016-12-07T09:00:00Z” level=info msg=“qgisservervarnish already mounted on /var/lib/rancher/volumes/rancher-nfs/qgisservervarnish”
2016-12-07 10:00:00time=“2016-12-07T09:00:00Z” level=info msg=mount.response mountpoint=“/var/lib/rancher/volumes/rancher-nfs/qgisservervarnish”
2016-12-07 10:00:00time=“2016-12-07T09:00:00Z” level=info msg=unmount.request name=qgisservervarnish
2016-12-07 10:00:00time=“2016-12-07T09:00:00Z” level=info msg=unmount.response
2016-12-07 10:00:00time=“2016-12-07T09:00:00Z” level=info msg=mount.request name=qgisserverprojects
2016-12-07 10:00:00time=“2016-12-07T09:00:00Z” level=info msg=“qgisserverprojects already mounted on /var/lib/rancher/volumes/rancher-nfs/qgisserverprojects”
2016-12-07 10:00:00time=“2016-12-07T09:00:00Z” level=info msg=mount.response mountpoint=“/var/lib/rancher/volumes/rancher-nfs/qgisserverprojects”
2016-12-07 10:00:00time=“2016-12-07T09:00:00Z” level=info msg=mount.request name=qgisservervarnish
2016-12-07 10:00:00time=“2016-12-07T09:00:00Z” level=info msg=“qgisservervarnish already mounted on /var/lib/rancher/volumes/rancher-nfs/qgisservervarnish”
2016-12-07 10:00:00time=“2016-12-07T09:00:00Z” level=info msg=mount.response mountpoint=“/var/lib/rancher/volumes/rancher-nfs/qgisservervarnish”
2016-12-07 10:00:01time=“2016-12-07T09:00:01Z” level=info msg=unmount.request name=qgisserverprojects
2016-12-07 10:00:01time=“2016-12-07T09:00:01Z” level=info msg=unmount.response
2016-12-07 10:00:01time=“2016-12-07T09:00:01Z” level=info msg=unmount.request name=qgisservervarnish
2016-12-07 10:00:01time=“2016-12-07T09:00:01Z” level=info msg=unmount.response
2016-12-07 10:00:01time=“2016-12-07T09:00:01Z” level=info msg=mount.request name=qgisservervarnish
2016-12-07 10:00:01time=“2016-12-07T09:00:01Z” level=info msg=“qgisservervarnish already mounted on /var/lib/rancher/volumes/rancher-nfs/qgisservervarnish”
2016-12-07 10:00:01time=“2016-12-07T09:00:01Z” level=info msg=mount.response mountpoint=“/var/lib/rancher/volumes/rancher-nfs/qgisservervarnish”
2016-12-07 10:00:01time=“2016-12-07T09:00:01Z” level=info msg=unmount.request name=qgisservervarnish
2016-12-07 10:00:01time=“2016-12-07T09:00:01Z” level=info msg=unmount.response
Those kinds of errors appears over and over again in stderror.
Any suggestions how to fix this?