Ubuntu NFS client unable to discover OMV NFS shared folder

  • I am trying to use a nfs shared folder in a raspberry pi running OpenMediaVault as my persistent volume for my app service (docker) running from a ubuntu server. I created the volume first and in my app's compose.yml file, I mentioned this volume as external.

    When I try to spin up the container, it fails with the below message -

    Code
    Error response from daemon: error while mounting volume '/var/lib/docker/volumes/myapp/_data': failed to mount local volume: mount :/export/nfs/docker/volume/myapp_vol:/var/lib/docker/volumes/myapp_vol/_data:/var/lib/docker/volumes/myapp_vol/_data, flags: 0x400, data: addr=192.168.142.123,rsize=8192,wsize=8192,tcp,timeo=14,nfsvers=4: no such file or directory.


    I also tried a simple mount of the NFS volume (shared folder created as "myapp") from the NFS client -

    Code
    mount 192.168.142.123:/export/myapp/ /mnt/usb/ -v 

    and this is what I get - 

    Code
    mount.nfs: timeout set for Sat Jan 27 00:06:58 2024
    mount.nfs: trying text-based options 'vers=4.2,addr=192.168.142.123,clientaddr=192.168.142.1'
    mount.nfs: mount(2): No such file or directory
    mount.nfs: trying text-based options 'addr=192.168.142.123'
    mount.nfs: prog 100003, trying vers=3, prot=6
    mount.nfs: trying 192.168.142.123 prog 100003 vers 3 prot TCP port 2049
    mount.nfs: prog 100005, trying vers=3, prot=17
    mount.nfs: trying 192.168.142.123 prog 100005 vers 3 prot UDP port 45829


    But from my app server, I am able to scp a test file like this...

    Code
    scp test.txt 192.168.142.123:/export/nfs/docker/volume/myapp_vol/


    Where am I going wrong ? Do I need to have a mount point in the app server and get this nfs volume mounted ?

  • KM0201

    Hat das Thema freigeschaltet.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!