nfs und nfsd module automatisch starten

  • Ab sofort steht euch hier im Forum die neue Add-on Verwaltung zur Verfügung – eine zentrale Plattform für alles rund um Erweiterungen und Add-ons für den DSM.

    Damit haben wir einen Ort, an dem Lösungen von Nutzern mit der Community geteilt werden können. Über die Team Funktion können Projekte auch gemeinsam gepflegt werden.

    Was die Add-on Verwaltung kann und wie es funktioniert findet Ihr hier

    Hier geht es zu den Add-ons

Status
Für weitere Antworten geschlossen.
habe
Code:
insmod /opt/lib/modules/nfsd.o
zu /opt/etc/init.d/S56nfs-utils oben von /opt/sbin/nfsd hinzugefügt und jetzt scheint es zu funktionieren.


habe eine andere frage:
weiss jemand, ob die installierte nfs version:
Code:
storage> ipkg install nfs-utils
Package nfs-utils (1.0.7-5) installed in /opt/ is up to date.
Nothing to be done
Successfully terminated.
NFS-3 oder das neue NFS-4 unterstützt ?
 
Zuletzt bearbeitet:
es scheint zu funktionieren, aber ich verstehe nicht warum bekomme ständig diese meldungen:
Code:
storage> tail -f /var/log/messages

Jun  7 00:32:22 nfsd[677]: Could not bind UDP socket to 0.0.0.0:2049: Address already in use

bekommt jemand die gleiche meldung im log nach nfs server instalation ?
 
Ich habe nfs-server entfernt:
Code:
# ipkg remove nfs-server

und liess nfs-utils installiert.

jetzt scheint es ohne errors zu arbeiten !


p.s.
Ich verstehe wirklich nicht, warum DS106j und vielleicht auch andere synology producke
kein NFS vom werk unterstützen und müssen gehackt werden.
 
Hi, ich habe es ebenfalls nach dieser Anleitung installiert, aber es will einfach nicht funktionieren....

Wenn ich beim Client
Rich (BBCode):
rcnfs restart
eingebe, bekomme ich diese Meldung
Rich (BBCode):
Importing Net File System (NFS)nfs server reported tcp not available, falling back to udp
Using NFS over UDP can cause data corruption.
Please refer to the WARNINGS section of the nfs(5) manual page.
mount: 192.168.0.2:/volume1/Chris: can't read superblock
nfs server reported tcp not available, falling back to udp
Using NFS over UDP can cause data corruption.
Please refer to the WARNINGS section of the nfs(5) manual page.

var/log/messages der diskstation spuckt folgendes aus
Rich (BBCode):
Aug 24 18:21:09 mountd: Fake hostname localhost for 192.168.0.4 - forward lookup
Aug 24 18:21:09 mountd: Fake hostname localhost for 192.168.0.4 - forward lookup
Aug 24 18:22:09 mountd: Fake hostname localhost for 192.168.0.4 - forward lookup
Aug 24 18:22:09 mountd: Fake hostname localhost for 192.168.0.4 - forward lookup

Die /etc/eports sieht so aus

Rich (BBCode):
/volume1/Chris   192.168.0.0/24(rw,sync,no_root_squash)
/volume1/Musik   192.168.0.0/24(ro,sync,no_root_squash)
/volume1/Downloads 192.168.0.0/24(rw,sync,no_root_squash)

Die Abänderung gegenüber dem HowTo war wohl notwendig da es sonst noch mehr Fehler gab.

Bin für jeden Tipp dankbar :-)
 
kannst du bitte:
Code:
# [B]ps aux | grep nfs[/B]
  601 root            SW  [nfsd]
 3573 root        224 S   grep nfs
und
Code:
#  [B]cat /opt/etc/init.d/S56nfs-utils[/B]
#!/bin/sh

if [ -n "`pidof statd`" ]; then
    /bin/killall statd 2>/dev/null
fi

if [ -n "`pidof nfsd`" ]; then
    /bin/killall nfsd 2>/dev/null
fi

if [ -n "`pidof mountd`" ]; then
    /bin/killall mountd 2>/dev/null
fi

if [ ! -d /var/lib/nfs ] ;  then
    mkdir -p /var/lib/nfs
fi

/bin/rm -f /etc/exports
/bin/ln -s /opt/etc/exports /etc/exports

touch /var/lib/nfs/etab
touch /var/lib/nfs/rmtab

/opt/sbin/statd
/opt/sbin/exportfs -r

insmod /opt/lib/modules/nfsd.o

/opt/sbin/nfsd
posten ?
 
Hier ist die Ausgabe des ersten Befehls

Rich (BBCode):
DiskStation> ps aux | grep nfs
  830 root        224 S   grep nfs

Hier ist die Ausgabe des zweiten Befehls

Rich (BBCode):
DiskStation> cat /opt/etc/init.d/S56nfs-utils
#!/bin/sh

if [ -n "`pidof statd`" ]; then
    /bin/killall statd 2>/dev/null
fi

if [ -n "`pidof nfsd`" ]; then
    /bin/killall nfsd 2>/dev/null
fi

if [ -n "`pidof mountd`" ]; then
    /bin/killall mountd 2>/dev/null
fi

if [ ! -d /var/lib/nfs ] ;  then
    mkdir -p /var/lib/nfs
fi

/bin/rm -f /etc/exports
/bin/ln -s /opt/etc/exports /etc/exports

touch /var/lib/nfs/etab
touch /var/lib/nfs/rmtab

/opt/sbin/statd
/opt/sbin/exportfs -r
/opt/sbin/nfsd
/opt/sbin/mountd
DiskStation>

Und das hier kommt wenn ich den Server starten will

Rich (BBCode):
DiskStation> /opt/etc/init.d/S55portmap
DiskStation> /opt/etc/init.d/S56nfs-utils
localhost:/volume1/Downloads: Function not implemented
localhost:/volume1/Musik: Function not implemented
localhost:/volume1/Chris: Function not implemented
 
Hier ist die Ausgabe des ersten Befehls

Rich (BBCode):
DiskStation> ps aux | grep nfs
  830 root        224 S   grep nfs

also dein nfs server wird nicht gestartet !

du sollst haben:
Code:
storage> ps aux | grep nfs
  601 root            SW  [nfsd]
 3659 root        224 S   grep nfs

hast du:
Code:
insmod /opt/lib/modules/nfsd.o
in /opt/etc/init.d/S56nfs-utils oben von /opt/sbin/nfsd hinzugefügt ?
 
Jo, das war es... dann habe ich da das HowTo falsch verstanden.

Jetzt geht es, vielen Dank für die Hilfe :-)
 
Status
Für weitere Antworten geschlossen.
 

Kaffeautomat

Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.

Als Dankeschön schalten wir deinen Account werbefrei.

:coffee:

Hier gehts zum Kaffeeautomat