You are not logged in.
Pages: 1
I want my devuan pc running an nfs client to be flexible in case the nfs server is not available .
By flexible i mean be able to bootup with no delays and my desktop file manager to work with
no hungups.
With my (client)/etc/fstab
192.168.1.90:/home/chomwitt/NFSExport /nfs/general nfs defaults,timeo=900,retrans=5,_netdev 0 0
my client will seemingly freeze at booting at the line:
starting nfs utilities : imapd, idmapd
and file managers freeze also in my desktop.
I tried in (client)/etc/fstab :
192.168.1.90:/home/chomwitt/NFSExport /nfs/general nfs soft,timeo=30,retrans=5, 0 0
But again the client wont start (i mean booting my devuan pc) for many minutes as in my original settup
My latest try is:
192.168.1.76:/home/chomwitt/NFSExport /nfs/general nfs soft,timeo=3 0 0
was better but still takes a minute.
My latest try is:
192.168.1.76:/home/chomwitt/NFSExport /nfs/general nfs soft,retrans=1,retry=0,timeo=1 0 0
worked ok.
I found that on here
Unfortunately although i ve read the nfs man page i cant say that helped me.
For example timeo=30 should amount to 3 sec and not a minute that i experience.
Last edited by chomwitt (2024-11-19 15:28:05)
Devuan(Chimaera)(Daedalus) DS+WM: XorgX11server+StumpVM
Offline
Use autofs on the client instead of an fstab entry.
https://dev1galaxy.org/viewtopic.php?id=6561
Offline
fsmithred thanks for pointing towards autofs. I have started experimenting with it:
# nano /etc/auto.master
/nfs /etc/auto.nfs
and
# nano /etc/auto.nfs
filestore 192.168.1.70:/home/chomwitt/NFSExport
I also added a newline at the end of both file due to a related hint in the archwiki page.
$ /etc/init.d/autofs status
automount is running.
But i can not access from directory /nfs/filestore my remote files.
How do i troubleshoot that?
I found showmount command and it can find my remote nfs share.
$ sudo showmount -e 192.168.1.70
Export list for 192.168.1.70:
/home/chomwitt/NFSExport 192.168.1.73
ok. it worked. But no 'filestore' directory is created . But when in my filemanager (thunar) i entered /nfs/filestore my remote files appeared!
Last edited by chomwitt (Today 11:47:43)
Devuan(Chimaera)(Daedalus) DS+WM: XorgX11server+StumpVM
Offline
I don't know if it makes a difference, but I always make a symlink so that the mount appears in my home directory.
Something like this. The link does not need to have the same name as the mount.
ln -s /nfs/fileshare /home/chomwitt/fileshare
Offline
Pages: 1