nfsd on geexbox?

Home Forums GeeXboX on ARM SoCs nfsd on geexbox?

Tagged: 

This topic contains 16 replies, has 3 voices, and was last updated by  grisu68 2 weeks ago.

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #12419

    grisu68
    Participant

    Hello,

    I had to attach my disks (BTRFS RAID1) directly to the cubox-i4.
    I would like to ask if there is also an NFS Server available too? Unfortunately I have not found the usual files needed on the system or package.

    Thanks in advance for an answer.

    Best regards, grisu

    #12420

    Warped Rudi
    Keymaster

    As far as i can see, we don’t have an ‘nfsd’ package and NFS server support is disabled in iMX6 kernel config. I’m not so familiar with this stuff. Maybe @tomlohave knows more…

    #12421

    tomlohave
    Keymaster

    Hi all,
    We only support the client side. No server. And it’s the first request for this.

    #12423

    Warped Rudi
    Keymaster

    The latest Geexbox build for Cubox-i does contain the nfsd kernel module. But I have no idea what it takes to enable full nfsd support.

    #12424

    grisu68
    Participant

    Thank you very much for your efforts!
    I will give it a try.

    Best regards, grisu

    #12425

    grisu68
    Participant

    I have done the update.

    It seems that a package “nfs-kernel-server” would be needed to interact with the nfsd kernel module.
    This package includes some required programs like exportfs, rpc.mountd and rpc.nfsd, config files and the start/stop scripts for systemd. The package itself is usual small but has some dependencies.

    #12426

    Warped Rudi
    Keymaster

    AFAICS, the needed userland daemons (rpc.statd, rpc.nfsd, rpc.mountd and exportfs) are in the ‘nfs-utils’ package. But I don’t know if the rather old version of this package that we currently provide (1.3.0) will work.

    #12427

    grisu68
    Participant

    Hmm, i tried this package already. In the current nfs-utils_1.3.0-2_armv7.opk is only the following: mount.nfs, mount.nfs4, umount.nfs, umount.nfs4 and osd_login.

    On my ubuntu PC the nfs-kernel-server is still 1.2.8, the client is on 1.3.0-2. So far no issues with that versions.

    #12428

    Warped Rudi
    Keymaster

    Oops, I see… The mentioned components are built, but not packaged. Please give this a try.

    #12429

    grisu68
    Participant

    I installed the new nfs-utils package.
    The NFS server daemons need portmap or rpcbind.
    root@geexbox:/usr/sbin# ./rpc.mountd &
    root@geexbox:/usr/sbin# Cannot register service: RPC: Unable to receive; errno = Connection refused

    root@geexbox:/usr/sbin# ./rpc.nfsd &
    root@geexbox:/usr/sbin# rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
    rpc.nfsd: unable to set any sockets for nfsd

    Is portmap or rpcbind included in one of the packages in the download area?

    #12430

    grisu68
    Participant

    Maybe rpc.idmapd can do the job. I will try it.

    #12431

    Warped Rudi
    Keymaster

    Let me know. Currently we don’t have portmap and rpcbind packages. Maybe I can have a look at that on weekend…

    #12432

    grisu68
    Participant

    I would be grateful if you could create the rpcbind package as your time permits.

    My findings so far.
    rpcbind service replaced portmap in newer distributions.
    Only the NFSv4 server uses rpc.idmapd.

    root@geexbox:~# rpc.idmapd -fvvv
    rpc.idmapd: libnfsidmap: Unable to determine the NFSv4 domain; Using ‘localdomain’ as the NFSv4 domain which means UIDs will be mapped to the ‘Nobody-User’ user defined in /etc/idmapd.conf

    rpc.idmapd: libnfsidmap: using (default) domain: localdomain
    rpc.idmapd: libnfsidmap: Realms list: ‘LOCALDOMAIN’
    rpc.idmapd: libnfsidmap: loaded plugin /usr/lib/libnfsidmap/nsswitch.so for method nsswitch

    rpc.idmapd: Expiration time is 600 seconds.
    rpc.idmapd: Opened /proc/net/rpc/nfs4.nametoid/channel
    rpc.idmapd: Opened /proc/net/rpc/nfs4.idtoname/channel

    root@geexbox:~# rpc.mountd -F -d all
    rpc.mountd: Failed to unregister program 100005, version 1
    rpc.mountd: Failed to unregister program 100005, version 2
    Cannot register service: RPC: Unable to receive; errno = Connection refused
    rpc.mountd: unable to register (mountd, 1, udp).

    root@geexbox:~# rpc.nfsd
    rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
    rpc.nfsd: unable to set any sockets for nfsd

    dmesg
    Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
    svc: failed to register nfsdv3 RPC service (errno 111).
    svc: failed to register nfsaclv3 RPC service (errno 111).

    #12433

    Warped Rudi
    Keymaster

    I did a quick build of rpcbind and the needed support library libtirpc. As usual it’s not tested at all. Note that gssapi is disabled. You most likely have to reboot for systemd to recognise the service.

    #12434

    grisu68
    Participant

    Thank you for your work. I will the try the builds this afternoon.

Viewing 15 posts - 1 through 15 (of 17 total)

You must be logged in to reply to this topic.