nfsclient

Mount Google Cloud Filestore inside a docker container with Debian

岁酱吖の 提交于 2021-01-28 08:30:45
问题 I want to mount Cloud Filestore inside a docker container which is Debian. When I try to mount it I get: mount.nfs: timeout set for Wed Feb 27 12:35:07 2019 mount.nfs: trying text-based options 'vers=4.2,addr=10.32.222.111,clientaddr=172.17.0.2' mount.nfs: mount(2): Operation not permitted mount.nfs: rpc.statd is not running but is required for remote locking. mount.nfs: Either use '-o nolock' to keep locks local, or start statd. It's running in a Debian VM inside Google Cloud. Is there any

nfs entry in /etc/fstab fails but manually mounting works

可紊 提交于 2020-03-23 08:23:16
问题 Client is Ubuntu Xenial, manually mounting works just fine: mount 10.0.0.12:/mnt/d1 /mnt/d1 I then copy that line from /etc/mtab to /etc/fstab: 10.0.0.12:/mnt/d1 /mnt/d1 nfs4 user,rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=10.0.0.23,local_lock=none,addr=10.0.0.12 0 0 umount /mnt/d1 and then mount it again using fstab: mount /mnt/d1 and it times out at that time. The nfs server is centos7 Updated firewalld: firewall

How to flush nfs attribute cache?

不打扰是莪最后的温柔 提交于 2019-12-10 13:28:51
问题 I need to find a way to flush the NFS attribute cache on the client side. stat() call reads ctime from attribute cache and not the actual value, takes upto 3 second for the actual value to be reflected in cache. using 'noac' option when mounting works but will affect performance in the long run. I came across solutions like doing a chown on the same owner of the file etc. but is there a proper method to flush the attribute cache before doing a stat()? and this prob happens only on Redhat

Force unmount of NFS-mounted directory [closed]

不打扰是莪最后的温柔 提交于 2019-12-03 01:29:03
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Locked . This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions. I have an NFS-mounted directory on a Linux machine that has hung. I've tried to force an unmount, but it doesn't seem to work: $ umount

Force unmount of NFS-mounted directory [closed]

徘徊边缘 提交于 2019-12-02 13:47:33
I have an NFS-mounted directory on a Linux machine that has hung. I've tried to force an unmount, but it doesn't seem to work: $ umount -f /mnt/data $ umount2: Device or resource busy $ umount: /mnt/data: device is busy If I type " mount ", it appears that the directory is no longer mounted, but it hangs if I do " ls /mnt/data ", and if I try to remove the mountpoint, I get: $ rmdir /mnt/data rmdir: /mnt/data: Device or resource busy Is there anything I can do other than reboot the machine? tessein You might try a lazy unmount: umount -l Daniel Papasian If the NFS server disappeared and you