I am here from a forum search and in much the same position, only I have never used NFS before.
Код: Выделить всё
$ cat /etc/release
ROSA Desktop Fresh R3 release 2012.1 for x86_64
I have seen the sharing modules many times in the past 14 years in MCC and looked there. First, I found I had to install drakconf-legacy. There, it seemed pretty simple and intuitive. I added local directory paths and left the rest default. Then, I could access these files from an installation of OpenElec on another machine on the lan and play the videos (mkv, mpeg, avi, wmv) and dvd isos perfectly. I was very happy.
However, after a reboot of the server machine, nothing related to nfs is running and I can't see the machine from OpenElec share browser. If I only start draknfs, the server is started and the shares become visible on the lan.
Код: Выделить всё
$ ps aux|grep nfs
rolf 1605 0.0 0.0 23580 1068 pts/2 S+ 17:25 0:00 grep --color nfs
root 16618 0.0 0.0 0 0 ? S< 17:12 0:00 [nfsd4]
root 16619 0.0 0.0 0 0 ? S< 17:12 0:00 [nfsd4_callbacks]
root 16624 0.0 0.0 0 0 ? S 17:12 0:00 [nfsd]
root 16625 0.0 0.0 0 0 ? S 17:12 0:00 [nfsd]
root 16626 0.0 0.0 0 0 ? S 17:12 0:00 [nfsd]
root 16627 0.0 0.0 0 0 ? S 17:12 0:00 [nfsd]
root 16628 0.0 0.0 0 0 ? S 17:12 0:00 [nfsd]
root 16629 0.0 0.0 0 0 ? S 17:12 0:00 [nfsd]
root 16630 0.1 0.0 0 0 ? S 17:12 0:00 [nfsd]
root 16631 0.0 0.0 0 0 ? S 17:12 0:00 [nfsd]
This daemon is nowhere to be seen in $PATH nor in chkconfig, the old system. So, I sought to wrangle with systemctl and the FM. One query,
Returned a red Failed dependency when status was checked after reboot and before the nfsd had been started by draknfs. Accordingly, I did,
Код: Выделить всё
systemctl list-dependencies nfs-server.service
and tried to do
against the apparently related services below nfs-server.service in the tree. Some were not enabled but links were made to enable them, some were not amenable to enabling, and, at the end, nfsd was still not started at boot.
I found this thread and tried system-config-nfs. It seemed to not understand some of the default options put in /etc/exports by draknfs, so I returned to draknfs and removed all the shares. Then, I ran system-config-nfs and did much the same as with draknfs, not changing defaults, mostly, borrowing a * for hosts from how draknfs did it. That all seems to work well but there is no nfs service running at reboot, so I have to run draknfs. Apart from manually having to start the server, this file seems to be fine for me:
Код: Выделить всё
$ cat /etc/exports
# generated by drakhosts.pl
/download/sports *(ro,sync,all_squash,anonuid=501,anongid=501)
/download/video *(ro,sync)
/movie *(ro,sync)
/News/Pan *(ro,sync)
I guess it would not be too terrible to just run draknfs whenever I want to use OpenElec like this but maybe someone knows a better way?
Thanks.