PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : NFS Problem bei Multibootsystem



corax2.05
30.11.03, 19:57
hi,

ich habe ein kleines netzwerk mit 2 rechnern. auf beiden rechnern ist jeweils ein suse8.2 und ein win98.

hab jetzt ein NFS netzwerk eingerichtet, rechner1 ist NFS server und rechner2 logischerweise der client.
das netzwerk funktioniert soweit einwandfrei.
wenn ich jetzt aber rechner1 mit win98 boote und danach rechner2 mit suse boote, braucht rechner2 ewig zum hochfahren, bis eben zum NFS-timeout.

wie kann ich das vermeiden?

$kuLL
30.11.03, 21:13
ich würde den nfs client nicht beim booten starten lassen
schreib dir ein kleines script, welches du dann startest, wenn auch der nfs server online is

in dem script startest du den nfs client und mountest die freigaben

das script nach /bin kopieren, dann hast du's direkt als befehl

corax2.05
01.12.03, 12:37
hm... ich glaube das übersteigt meine fähigkeiten :ugly:

wie müßte so ein script denn aussehen, ich hab NFS einfach über yast2 eingerichtet.

wärs nich möglich einfach den timeout zu verkürzen?

$kuLL
01.12.03, 21:05
wärs nich möglich einfach den timeout zu verkürzen?
da bin ich überfragt
aber das hättest du dir mit hilfe von google und den manpages schon längst selbst beantworten können :>

corax2.05
03.12.03, 19:06
Original geschrieben von $kuLL
da bin ich überfragt
aber das hättest du dir mit hilfe von google und den manpages schon längst selbst beantworten können :>

da hast natürlich recht :)

hab mir die man page nu auch mal angeguckt und auch die ein oder andere option gefunden, hab auch verschiedene (auch in kombination) ausprobiert. allerdings ohne jeglichen erfolg :(
egal mit welcher option, die zeit bis zum nfs timeout bleibt felsenfest bei knapp 8min.!

vielleicht kannst du mit der man page mehr anfangen als ich!?

timeo=n The value in tenths of a second before
sending the first retransmission after an
RPC timeout. The default value is 7 tenths
of a second. After the first timeout, the
timeout is doubled after each successive
timeout until a maximum timeout of 60 sec_
onds is reached or the enough retransmis_
sions have occured to cause a major time_
out. Then, if the filesystem is hard
mounted, each new timeout cascade restarts
at twice the initial value of the previous
cascade, again doubling at each retransmis_
sion. The maximum timeout is always 60
seconds. Better overall performance may be
achieved by increasing the timeout when
mounting on a busy network, to a slow
server, or through several routers or gate_
ways.

retrans=n The number of minor timeouts and retrans_
missions that must occur before a major
timeout occurs. The default is 3 timeouts.
When a major timeout occurs, the file oper_
ation is either aborted or a "server not
responding" message is printed on the con_
sole.

retry=n The number of minutes to retry an NFS mount
operation in the foreground or background
before giving up. The default value is
10000 minutes, which is roughly one week.

namlen=n When an NFS server does not support version
two of the RPC mount protocol, this option
can be used to specify the maximum length
of a filename that is supported on the
remote filesystem. This is used to support
the POSIX pathconf functions. The default
is 255 characters.

port=n The numeric value of the port to connect to
the NFS server on. If the port number is 0
(the default) then query the remote host's
portmapper for the port number to use. If
the remote host's NFS daemon is not regis_
tered with its portmapper, the standard NFS
port number 2049 is used instead.

bg If the first NFS mount attempt times out,
retry the mount in the background. After a
mount operation is backgrounded, all subse_
quent mounts on the same NFS server will be
backgrounded immediately, without first
attempting the mount. A missing mount
point is treated as a timeout, to allow for
nested NFS mounts.

fg If the first NFS mount attempt times out,
retry the mount in the foreground. This is
the complement of the bg option, and also
the default behavior.

soft If an NFS file operation has a major time_
out then report an I/O error to the calling
program. The default is to continue retry_
ing NFS file operations indefinitely.

hard If an NFS file operation has a major time_
out then report "server not responding" on
the console and continue retrying indefi_
nitely. This is the default.
intr If an NFS file operation has a major time_
out and it is hard mounted, then allow sig_
nals to interupt the file operation and
cause it to return EINTR to the calling
program. The default is to not allow file
operations to be interrupted.
das ist jetzt nicht komplett aber ich denke mal das sind die brauchbaren teile. naja ich komm damit nich recht klar...

ist es eigentlich möglich nfs einfach wärend dem boot (also beim warten auf den timeout) per befehl abzubrechen? hab testweise mal ein 'killall nfs' eingegeben, is aber nichts passiert.