# Rancher-NFS issues?

**URL:** https://forums.suse.com/t/rancher-nfs-issues/6084
**Category:** Rancher 1.x
**Created:** [April 6, 2017, 7:11pm UTC](https://forums.suse.com/t/rancher-nfs-issues/6084 "2017-04-06T19:11:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![scline](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@scline](https://forums.suse.com/u/scline)
#### Post date: [April 6, 2017, 7:11pm UTC](https://forums.suse.com/t/rancher-nfs-issues/6084/1 "2017-04-06T19:11:16Z")

</div>

Hello, I am having the darnest time getting rancher-nfs working. The NFS share is off a FreeNAS system and while the following test docker-compose actually works with it:

**docker-compose.yml**

> version: ‘2’  
> volumes:  
> test\_volume:  
> external: true  
> driver: rancher-nfs  
> services:  
> test:  
> image: ubuntu  
> volumes:  
> - test\_volume:/data  
> tty: true  
> command:  
> - bash

However the [Docker](https://hub.docker.com/r/smcline06/cacti/) gives me this (apparently common) chown error. Is there a known issue that would cause this? I am able to mount the NFS location from all hosts containing these containers (even added nfs-utils to the container itself just incase). I dont believe this to be a permissions issue since I am able to test functionality using the ubuntu image above - just lost on getting this going ☹

**Error:**  
(Failed to allocate instance [container:1i299]: Bad instance [container:1i299] in state [error]: Error response from daemon: chown /var/lib/rancher/volumes/rancher-nfs/cacti\_tmp: invalid argument)

**docker-compose**

> version: ‘2’  
> volumes:  
> cacti\_tmp:  
> external: true  
> driver: rancher-nfs

> services:  
> cacti:  
> image: smcline06/cacti:1.1.2  
> environment:  
> DB\_HOST: db  
> DB\_NAME: cacti\_master  
> DB\_PASS: cactipassword  
> DB\_PORT: ‘3306’  
> DB\_ROOT\_PASS: rootpassword  
> DB\_USER: cactiuser  
> INITIALIZE\_DB: ‘1’  
> TZ: America/Los\_Angeles  
> volumes:  
> - cacti\_tmp:/tmp  
> links:  
> - db:db  
> ports:  
> - 80:80/tcp  
> - 443:443/tcp
> 
> db:  
> image: percona:5.7.14  
> environment:  
> MYSQL\_ROOT\_PASSWORD: rootpassword  
> TZ: America/Los\_Angeles  
> ports:  
> - 3306:3306/tcp  
> command:  
> - mysqld  
> - --character-set-server=utf8mb4  
> - --collation-server=utf8mb4\_unicode\_ci  
> - --max\_connections=200  
> - --max\_heap\_table\_size=128M  
> - --max\_allowed\_packet=32M  
> - --tmp\_table\_size=128M  
> - --join\_buffer\_size=128M  
> - --innodb\_buffer\_pool\_size=1G  
> - --innodb\_doublewrite=OFF  
> - --innodb\_flush\_log\_at\_timeout=3  
> - --innodb\_read\_io\_threads=32  
> - --innodb\_write\_io\_threads=16

This is using Centos7 has the agent nodes and Rancher 1.5.3, any help would be greatly appreciated.

---

<div class="post-metadata">

### Author: ![JohnDavidLarsen](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@JohnDavidLarsen](https://forums.suse.com/u/JohnDavidLarsen)
#### Post date: [January 30, 2018, 7:06pm UTC](https://forums.suse.com/t/rancher-nfs-issues/6084/2 "2018-01-30T19:06:28Z")

</div>

Try the nocopy option

volumes:

- cacti\_tmp:/tmp:nocopy

by default if the directory /tmp exist in the container it will try to copy any files back to the NFS on mount and merge the two. It will (incorrectly in my opinion) chown the NFS directory to match the one in the container. :nocopy should solve your issue. (though the /tmp directory in your container may now have incorrect permissions)
