As an Operator or Developer, you are able to bind an NFS Volume Service to my app. When the application starts and you can see that the volume is attached (by running df -h
). However, you are unable to read or write files on that volume.
Running ls
against the NFS volume mount point or a directory under that does not show any files and indicates a permissions issue. Trying to read or write to a file on the NFS volume indicates a permission issue.
Example
$ ls -l /mnt/files/ ls: cannot open directory /mnt/file/: Permission denied
The NFS Volume Services do not control any aspect of the remote NFS server that includes the owner, the owning group, and the permissions of the remote files. If the permissions of the files on the NFS volume do not match up correctly, you will not be able to read or write them.
vcap
user and vcap
group.cf bind-service
command and make sure that the uid
and gid
attributes are being specified.
$ cf bind-service pora myVolume -c '{"uid":"1000","gid":"1000"}'