Kubernetes NFS Persistent Volumes – multiple claims on same volume? Claim stuck in pending?

Basically you can’t do what you want, as the relationship PVC <–> PV is one-on-one. If NFS is the only storage you have available and would like multiple PV/PVC on one nfs export, use Dynamic Provisioning and a default storage class. It’s not in official K8s yet, but this one is in the incubator and … Read more

Mounting nfs shares inside docker container

Starting from docker 17.06, you can mount NFS shares to the container directly when you run it, without the need of extra capabilities export NFS_VOL_NAME=mynfs export NFS_LOCAL_MNT=/mnt/mynfs export NFS_SERVER=my.nfs.server.com export NFS_SHARE=/my/server/path export NFS_OPTS=vers=4,soft docker run –mount \ “src=$NFS_VOL_NAME,dst=$NFS_LOCAL_MNT,volume-opt=device=:$NFS_SHARE,\”volume-opt=o=addr=$NFS_SERVER,$NFS_OPTS\”,type=volume,volume-driver=local,volume-opt=type=nfs” \ busybox ls $NFS_LOCAL_MNT Alternatively, you can create the volume before the container: docker volume create \ … Read more

inotify with NFS

inotify requires support from the kernel to work. When an application tracks a directory, it asks the kernel to inform it when those changes occur. When the change occurs, in addition to writing those changes to disk, the kernel also notifies the watching process. On a remote NFS machine, the change is not visible to … Read more

Docker: How to live sync host folder with container folder?

You can use volumes in order to do this. You have two options: Docker managed volumes: docker run -v /src/path nodejsapp docker run -i -t -volumes-from <container id> bash The file you edit in the second container will update the first one. Host directory volume: docker run -v `pwd`/host/src/path:/container/src/path nodejsapp The changes you make on … Read more

Ways to improve git status performance

To be more precise, git depends on the efficiency of the lstat(2) system call, so tweaking your client’s “attribute cache timeout” might do the trick. The manual for git-update-index — essentially a manual mode for git-status — describes what you can do to alleviate this, by using the –assume-unchanged flag to suppress its normal behavior … Read more

Vagrant error: NFS is reporting that your exports file is invalid

I had some previous images/boxes installed in my VirtualBox installation, so there were a few invalid entries in /etc/exports already. So I had to clean up that file and restart my Vagrant box. NFS is reporting that your exports file is invalid. Vagrant does this check before making any changes to the file. Please correct … Read more

Tuning NFS client/server stack

Just to clarify, you’re getting 50MB/sec with NFS over a single Gb ethernet connection? And the host server is running CentOS with VMware Server installed, which is in turn running the 7 VMs? Is there a particular reason you’ve gone with CentOS and VMware Server combined, rather than VMware ESXi which is a higher performance … Read more