NFS Freigaben mit autofs mounten

  • Hallo zusammen,

    ich habe ein Problem meine NFS Freigaben mit autofs auf dem Raspberry zu mounten.
    Die NFS Freigaben konnte ich merkwürdigerweise mit "identischer" Konfiguration auf meinen Mint Rechner einbinden.

    Meine Konfigurationen sehen wie folgt aus:


    Code
    pi@pi-nas /etc $ cat autofs/auto.synology 
    Git -fstype=nfs,rw 192.168.1.2:/volume1/git

    Wenn ich mir die Log anschaue sehe ich dort folgende Ausgabe:


    Code
    sudo automount -vf
    Starting automounter version 5.0.7, master map /etc/auto.master
    using kernel protocol version 5.02
    lookup(file): failed to read included master map auto.master
    mounted indirect on /mnt/syno with timeout 60, freq 15 seconds
    ghosting enabled

    Ich vermute es liegt am o.g. Problem, kann allerdings absolut nicht nachvollziehen, woran es hier scheitert. Die Berechtigungen der Datei sind meiner Meinung nach korrekt gesetzt:


    Code
    pi@pi-nas /etc $ ls -l /etc/ | grep auto
    -rw-r--r--  1 root root     787 Sep  8 16:50 auto.master
    drwxr-xr-x  2 root root    4096 Sep  8 17:26 auto.master.d
    -rw-r--r--  1 root root     524 Oct 23  2012 auto.misc
    -rwxr-xr-x  1 root root    1397 Oct 23  2012 auto.net
    -rwxr-xr-x  1 root root     687 Oct 23  2012 auto.smb
    drwxr-xr-x  2 root root    4096 Sep  8 16:50 autofs
    pi@pi-nas /etc $ ls -l /etc/autofs/
    total 4
    -rw-r--r-- 1 root root 44 Sep  8 17:22 auto.synology


    Hat jemand eine Idee was hier schief gehen könnte?


    :danke_ATDE:
    Gruß
    Lars

    Einmal editiert, zuletzt von snafu_ (8. September 2013 um 17:49)

  • Ok, ich bin mittlerweile etwas weitergekommen. Nachdem ich Raspbian aus Verzeiflung neu installiert habe, bekomme ich nun die Fehlermeldung:


    Code
    mount_mount: mount(nfs): calling mkdir_path /mnt/syno/Git
    mount_mount: mount(nfs): calling mount -t nfs -s -o rw 192.168.1.2:/volume1/git /mnt/syno/Git
    spawn_mount: mtab link detected, passing -n to mount
    >> mount.nfs: rpc.statd is not running but is required for remote locking.
    >> mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
    >> mount.nfs: an incorrect mount option was specified

    Nun fehlt scheinbar der Dienst rpc.statd. Allerdings sind laut "nfs-common" alle benötigten Dienste vorhanden. Ein

    Zitat


    pi@pi-nas ~ $ sudo rpc.statd start


    bringt leider keine Verbesserung, es wird auch keine Ausgabe produziert. Sdheinbar läuft allerdings der Service:


    Code
    root        15  0.0  0.0      0     0 ?        S<   16:35   0:00 [rpciod]
    root      2485  0.0  0.1   2340   792 ?        Ss   16:36   0:00 /sbin/rpcbind -w
    statd     2692  0.0  0.2   2664  1224 ?        Ss   16:36   0:00 /sbin/rpc.statd
    root      2708  0.0  0.1   2780   648 ?        Ss   16:36   0:00 /usr/sbin/rpc.idmapd
    statd     3261  0.0  0.3   2952  1532 ?        Ss   16:37   0:00 rpc.statd --no-notify
    statd     5231  0.0  0.2   2664  1224 ?        Ss   16:41   0:00 rpc.statd start
    pi        6581  0.0  0.1   3520   764 pts/1    S+   16:43   0:00 grep --color=auto rpc

    Hat jemand hier vielleicht ein ähnliches Problem gehabt? Kann es irgendwie mit dem abgelösten "portmapper" zusammenhängen?

    Gruß
    Lars

  • Hallo,

    vermutlich hast du das Problem längst gelöst. Aber ich hatte es selber und bin über deinen Post gestolpert. Falls du oder noch andere das Problem haben:
    Man muss rpcbind starten. Dann klappt es.

    Entweder macht man das jedes Mal manuell

    Code
    sudo service rpcbind start


    Oder man packt rpcbind in den Autostart

    Code
    sudo update-rc.d rpcbind enable

    Quelle und weiter Infos:
    Raspbian FAQ zum Mount von NFS Shares

Jetzt mitmachen!

Du hast noch kein Benutzerkonto auf unserer Seite? Registriere dich kostenlos und nimm an unserer Community teil!