PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : NFS Client - mounten klappt nur manuell



aerosol
21.02.06, 16:00
Hi,

ich habe vor etwas per /etc/fstab zu mounten. Es handelt sich hier um ein getunneltes NFS per SSH. Den SSH Tunnel starte ich in dem rcsshd skript am Ende mit. Jedoch kommt beim booten immer der Fehler:


Importing Net File System (NFS-) mount: RPC: Remote system Error - Connection refused.

Ok man könnte nun davon ausgehen das mit meinem tunnel etwas nicht stimmt:


ssh -2 -i /root/.ssh/id_dsa_nfs -l root Server -L 250:localhost:2049 -L 251:localhost:884 -f sleep 60m

wenn ich mich nun allerdings einlogge und dann "mount -a" eingebe mountet er das ohne Porbleme!!!
Ich dachte ich starte den nfs Dienst einfach erstmal etwas später evtl ist der Tunnel ja noch nicht so schnell und habe folgende Änderungen vorgenommen:



/etc/rc.d/rcX.d/


lrwxrwxrwx 1 root root 8 2005-10-24 11:38 S01fbset -> ../fbset*
lrwxrwxrwx 1 root root 9 2005-10-24 11:38 S01random -> ../random*
lrwxrwxrwx 1 root root 7 2005-11-22 09:13 S03dbus -> ../dbus*
lrwxrwxrwx 1 root root 21 2005-12-13 15:52 S03dkms_autoinstaller -> ../dkms_autoinstaller*
lrwxrwxrwx 1 root root 9 2005-10-24 11:39 S03resmgr -> ../resmgr*
lrwxrwxrwx 1 root root 12 2005-10-24 11:39 S04boot.udev -> ../boot.udev*
lrwxrwxrwx 1 root root 10 2005-10-24 12:41 S05network -> ../network*
lrwxrwxrwx 1 root root 7 2005-10-24 11:48 S06sshd -> ../sshd*
lrwxrwxrwx 1 root root 9 2005-10-24 11:39 S06syslog -> ../syslog*
lrwxrwxrwx 1 root root 6 2005-11-04 11:35 S07nmb -> ../nmb*
lrwxrwxrwx 1 root root 8 2005-10-24 11:46 S08canna -> ../canna*
lrwxrwxrwx 1 root root 8 2005-10-24 11:45 S08mdnsd -> ../mdnsd*
lrwxrwxrwx 1 root root 15 2005-10-24 11:39 S08splash_early -> ../splash_early*
lrwxrwxrwx 1 root root 10 2005-11-22 09:13 S09distccd -> ../distccd*
lrwxrwxrwx 1 root root 8 2005-10-24 11:44 S12acpid -> ../acpid*
lrwxrwxrwx 1 root root 12 2005-12-13 15:52 S12alsasound -> ../alsasound*
lrwxrwxrwx 1 root root 7 2005-10-24 11:46 S12cups -> ../cups*
lrwxrwxrwx 1 root root 6 2005-10-24 11:44 S12kbd -> ../kbd*
lrwxrwxrwx 1 root root 12 2005-10-24 11:44 S12microcode -> ../microcode*
lrwxrwxrwx 1 root root 6 2005-11-04 09:15 S12ntp -> ../ntp*
lrwxrwxrwx 1 root root 17 2005-10-24 11:44 S12running-kernel -> ../running-kernel*
lrwxrwxrwx 1 root root 9 2005-10-24 11:44 S12splash -> ../splash*
lrwxrwxrwx 1 root root 6 2005-11-04 11:35 S13smb -> ../smb*
lrwxrwxrwx 1 root root 12 2005-11-16 11:49 S14nfsserver -> ../nfsserver*
lrwxrwxrwx 1 root root 7 2005-10-24 11:46 S14nscd -> ../nscd*
lrwxrwxrwx 1 root root 10 2005-10-24 11:46 S14postfix -> ../postfix*
lrwxrwxrwx 1 root root 8 2005-10-24 11:46 S14smbfs -> ../smbfs*
lrwxrwxrwx 1 root root 7 2006-02-15 13:01 S15cron -> ../cron*
lrwxrwxrwx 1 root root 10 2005-10-24 11:44 S15nfsboot -> ../nfsboot*
lrwxrwxrwx 1 root root 12 2006-02-15 13:01 S16haldaemon -> ../haldaemon*
lrwxrwxrwx 1 root root 13 2006-02-15 13:01 S17powersaved -> ../powersaved*
lrwxrwxrwx 1 root root 10 2005-10-24 11:44 S18portmap -> ../portmap*
lrwxrwxrwx 1 root root 6 2005-10-24 11:44 S19nfs -> ../nfs*



Allerdings brachte dies auch keine Abhilfe :(

Ich benutze SuSE 10.0.
jemand eine Idee???

MfG

aerosol




/etc/fstab

localhost:/home /mnt nfs rw,port=250,mountport=251 0 0

aerosol
23.02.06, 10:06
keiner einer kann helfen ? :(

Sargnagel
23.02.06, 11:08
Guten Morgen...

Werden die jeweiligen Startskripte in der richtigen Reihenfolge aufgerufen? Die Reihenfolge hängt von den Ziffern in den Dateinamen /etc/init.d/rcX.d/S* ab...
Das Skript sshd muss VOR nfs aufgerufen werden, muss also eine niedrigere Nummer haben...

Um das auch SuSEconfig-sicher zu bekommen, muss der SSH-Dienst in /etc/init.d/nfs bei "Required start" stehen. Um dann die Runlevelskripte richtig anzuordnen, muss nfs mit 8i]insserv -r nfs[/i] entfernt und danach mit insserv nfs wieder eingefügt werden (ohne Gewähr!)... Pass dabei aber auf, dass Du dadurch nicht eine andere Abhängigkeit unterbrichst...

Grüße
Marc

aerosol
23.02.06, 19:11
hab heute die lösung gefunden!

einfach in der Datei:
/etc/rc.d/.depend.start

bei nfs sagen das er vorher sshd braucht.

mfg

aerosol

p.s.: kann geschlossen werden