O
O
Oleg2016-06-14 18:54:23
linux
Oleg, 2016-06-14 18:54:23

NFS - why did RW access disappear?

Home network, 2 computers with Debian, on one (server) an NFS server is up. Previously, there was only one "ball" with RW access, then added a few more with RO access. Now on the client and the first ball has lost write access. Everything is right, under this user everything is written locally on the server.
/etc/exports on the server:

/data/multimedia	192.168.0.2(ro,sync,no_subtree_check,all_squash)
/data/multimedia/Obmen	192.168.0.2(rw,no_subtree_check) 192.168.0.3(rw,sync,all_squash,no_subtree_check)
/data/backup	192.168.0.2(ro,sync,no_subtree_check,all_squash)
/data/Backup	192.168.0.2(ro,sync,no_subtree_check,all_squash)
/data/multimedia/Download 192.168.0.1(rw,sync,subtree_check,all_squash)

Previously, there was only a "ball" /data/multimedia/Obmen. The client is 192.168.0.2.
/etc/fstab on the client:
# NFS - Obmen
server:/data/multimedia/Obmen	/mnt/obmen	nfs4	noauto,x-systemd.automount,x-systemd.device-timeout=10,timeo=14,user,rw	0	0
# NFS - Films
server:/data/Films/Films	/mnt/films	nfs4	noauto,x-systemd.automount,x-systemd.device-timeout=10,timeo=14,user,ro	0	0
# NFS - multimedia
server:/data/multimedia	/mnt/Mmedia-server	nfs4	noauto,x-systemd.automount,x-systemd.device-timeout=10,timeo=14,user,ro	0	0

Naturally, I tried exportfs -ra, systemctl restart nfs-kernel-server, reboot.
I ask for help, tell me how to restore write access to Obmen.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Cheremisin, 2016-06-15
@Batiskaf_stv

It's actually not good to export subdirectories. Try putting fsid=0 on the root directory

/data/multimedia	192.168.0.2(ro,fsid=0,sync,no_subtree_check,all_squash)
/data/multimedia/Obmen	192.168.0.2(rw,no_subtree_check) 192.168.0.3(rw,sync,all_squash,no_subtree_check)

But again, this may not work. It is best to spread them in one level.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question