Hello there,
I run a router Linksys WRT32x with Openwrt 19.07.3.
I have a USB HDD connected to router USB3 with nfs protocol.
This is working fine.
I want to be able to reposition the disk with another.
Server side, I set up similar mount lines in /etc/config/fstab and /etc/exports
~# cat /etc/config/fstab
config global
option anon_swap '0'
option anon_mount '0'
option auto_swap '1'
option auto_mount '1'
option delay_root '5'
option check_fs '0'
config mount
option uuid 'd54b056a-c1bf-4bb9-b2cd-16ab178010b2'
option target '/mnt/hd5'
option options 'async,noatime'
option enabled '1'
config mount
option uuid 'c6584879-c77b-42c6-9acf-a3996fb15442'
option target '/mnt/hd6'
option options 'async,noatime'
option enabled '0'
~# cat /etc/exports
/mnt/hd5 192.168.1.0/255.255.255.0(rw,all_squash,async,no_subtree_check,fsid=0)
/mnt/hd6 192.168.1.0/255.255.255.0(rw,all_squash,async,no_subtree_check,fsid=0)
Client side, I set up 2 mount path, /mnt/HD5 and /mnt/HD6 and in /etc/fstab
~> cat /etc/fstab
...
192.168.1.1:/mnt/hd5 /mnt/HD5 nfs4 rw,async,wsize=65536,rsize=65536 0 0
192.168.1.1:/mnt/hd6 /mnt/HD6 nfs4 rw,async,wsize=65536,rsize=65536 0 0
I tried to change it and stopped nfs, unmounted /mnt/hd5.
Unfortunately I could not mount HD6 in the client even after 5 hours try.
I always got error message: mount.nfs: Stale file handle
My question is: What is the good way to stop nfs without savagely breaking connection between server/client and avoid this error message?
Thank you