Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] Setup nfs on artix with runit  (Read 665 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] Setup nfs on artix with runit

How to setup nfs server on artix with runit?I basically just follow nfs page in arch linux wiki
I did this in export
/srv/nfs        192.168.1.0/24(rw,sync,crossmnt,fsid=0)
/srv/nfs/music  192.168.1.0/24(rw,sync)
mount --bind /mnt/music /srv/nfs/music
On my server ls /srv/nfs/music show contents of /mnt/music but on client the srv/nfs/music mount point show nothing
Thank you for your help.

Setup nfs on artix with runit help

Reply #1
How to setup nfs server on artix with runit?I basically just follow nfs page in arch linux wiki
I did this in export
/srv/nfs        192.168.1.0/24(rw,sync,crossmnt,fsid=0)
/srv/nfs/music  192.168.1.0/24(rw,sync)
mount --bind /mnt/music /srv/nfs/music
On my server ls /srv/nfs/music show contents of /mnt/music but on client the srv/nfs/music mount point show nothing
Thank you for your help.

Re: Setup nfs on artix with runit

Reply #2
Hi ,
I had some issues to with connection refused when just installing the package nfs-utils.
with Artix Runit , you have to enable statd service on the server side and the rpcbind service.
So to run on next boot your nfs-server do
ln -s /etc/runit/sv/statd /run/runit/service/
ln -s /etc/runit/sv/rpcbind /run/runit/service/
ln -s /etc/runit/sv/nfs-server /run/runit/service/

and offcourse setup your /etc/export file

Have a nice day


Re: Setup nfs on artix with runit

Reply #3
Hi ,
I had some issues to with connection refused when just installing the package nfs-utils.
with Artix Runit , you have to enable statd service on the server side and the rpcbind service.
So to run on next boot your nfs-server do
ln -s /etc/runit/sv/statd /run/runit/service/
ln -s /etc/runit/sv/rpcbind /run/runit/service/
ln -s /etc/runit/sv/nfs-server /run/runit/service/

and offcourse setup your /etc/export file

Have a nice day


Hi, Thank you so much for your help. I could not find statd or rpc.statd package
I ran this sudo pacman -S nfs-utils nfs-utils-runit rpcbind rpcbind-runit
Thanks again for your advise.

Re: Setup nfs on artix with runit

Reply #4
the nfs-utils package contain usr/bin/rpc.statd
var/lib/nfs/statd/ I did not find separate statd service that come with runit that i can install

 

Re: Setup nfs on artix with runit

Reply #5
per your advise
ln -s /etc/runit/sv/statd /run/runit/service/
ln -s /etc/runit/sv/rpcbind /run/runit/service/
ln -s /etc/runit/sv/nfs-server /run/runit/service/

I added this to my /etc/exports
/mnt/data  192.168.1.0/24(rw,sync,all_squash,insecure,no_subtree_check,no_root_squash) -----> These options are needed for android apps to access the nfs share.
Before I did not add all_squash, insecure, and no_root_squash, I could not access the nfs share from my android phone VLC APP and android tvbox Kodi APP

The nfs share for Linux client is working fine just use
/mnt/data  192.168.1.0/24(rw,sync)

Thank you so much for your advise. Have a great day.