sjiveson / nfs-server-alpine

A handy Alpine Linux based NFS Server image running NFS v4 only, over TCP on port 2049
https://hub.docker.com/r/itsthenetwork/nfs-server-alpine/
GNU General Public License v3.0
292 stars 185 forks source link

Unable to create files on OSX #17

Closed joerghall closed 6 years ago

joerghall commented 6 years ago

This is the same issue as #7. I instantiate the NFS server in Docker For Desktop with Kubernetes. I am unable to create any files on the shares. The client is just another container in kubernetes. Creating and deleting directories works fine.

touch x

touch: cannot touch 'x': Input/output error

I can create files on the NFS server and they are accessible on the client.

Docker for Desktop: 18.06.0 ce Osx: 10.13.3

joerghall commented 6 years ago
root@nfs-server-0:/ # df 
Filesystem           1K-blocks      Used Available Use% Mounted on
overlay               61255492  33078052  25036116  57% /
tmpfs                    65536         0     65536   0% /dev
tmpfs                  8204648         0   8204648   0% /sys/fs/cgroup
osxfs                976900220 578135996 394893304  59% /nfsshare
/dev/sda1             61255492  33078052  25036116  57% /dev/termination-log
/dev/sda1             61255492  33078052  25036116  57% /etc/resolv.conf
/dev/sda1             61255492  33078052  25036116  57% /etc/hostname
/dev/sda1             61255492  33078052  25036116  57% /etc/hosts
shm                      65536         0     65536   0% /dev/shm
tmpfs                  8204648        12   8204636   0% /run/secrets/kubernetes.io/serviceaccount
tmpfs                  8204648         0   8204648   0% /proc/acpi
tmpfs                    65536         0     65536   0% /proc/kcore
tmpfs                    65536         0     65536   0% /proc/keys
tmpfs                    65536         0     65536   0% /proc/timer_list
tmpfs                    65536         0     65536   0% /proc/sched_debug
tmpfs                  8204648         0   8204648   0% /sys/firmware
joerghall commented 6 years ago
[root@debug-5d4db6cd8b-j7f22 /]# cd /data/t
bash: cd: /data/t: No such file or directory
[root@debug-5d4db6cd8b-j7f22 /]# cd /data/ 
[root@debug-5d4db6cd8b-j7f22 data]# df
Filesystem                                                                  1K-blocks         Used    Available Use% Mounted on
overlay                                                                      61255492     33078148     25036020  57% /
tmpfs                                                                           65536            0        65536   0% /dev
tmpfs                                                                         8204648            0      8204648   0% /sys/fs/cgroup
10.103.33.13:/debug-data-debug-pvc-5e9e8482-a9c0-11e8-af80-025000000001 1000345825280 592011227136 403297026048  60% /data
/dev/sda1                                                                    61255492     33078148     25036020  57% /etc/hosts
shm                                                                             65536            0        65536   0% /dev/shm
tmpfs                                                                         8204648           12      8204636   1% /run/secrets/kubernetes.io/serviceaccount
tmpfs                                                                         8204648            0      8204648   0% /proc/acpi
tmpfs                                                                         8204648            0      8204648   0% /sys/firmware
[root@debug-5d4db6cd8b-j7f22 data]# touch a
touch: cannot touch 'a': Input/output error
[root@debug-5d4db6cd8b-j7f22 data]# mkdir d
[root@debug-5d4db6cd8b-j7f22 data]# ls -l
total 0
drwxr-xr-x 2 root root 64 Aug 29 18:35 d
sjiveson commented 6 years ago

Did you try and of the things I suggested in my last comment on #7 ?

sjiveson commented 6 years ago

No response in over a month. Closing.