Re: NFS bei namesauflösung via namesserver einbinden
Thomas Kuster wrote:
> Am Freitag, 1. Juni 2007 00:21 schrieb Reinhold Plew:
>> Hi,
>>
>> Thomas Kuster wrote:
>> > hallo zusammen
>> >
>> > ich habe folgendes problem. in der etc/fstab steht ein eintrag welcher
>> > direkt ein verzeichnis von einem nfs server einbinden soll in etwa der
>> > form: server:/pfad /mnt ....
>> > beim start wird das ding nicht eingebunden und auch ein mount -a hängt.
>> > ping server geht. trage ich nun den namen des server mit der ip in
>> > die /etc/hosts datei ein funktioniert alles. wieso geht es sonst nicht?
>> > namesserver ist der selbe rechner wie der nfs-server.
>>
>> dann gib doch mal Deine Konfiguration (/etc/resolv.conf:
> search domain.land
> nameserver 192.168.0.200
>
>> /etc/nsswitch.conf:
> # /etc/nsswitch.conf
> #
> # Example configuration of GNU Name Service Switch functionality.
> # If you have the `glibc-doc-reference' and `info' packages installed, try:
> # `info libc "Name Service Switch"' for information about this file.
>
> passwd: compat
> group: compat
> shadow: compat
>
> hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
^^^^^(1)^^^^^ ^^^^^^(2)^^^^^^^^
Wenn es den Service (1) gibt und der Hostname dort nicht gefunden wird,
dann wird die Aktion (2) ausgeführt, also der Suchvorgang abgebrochen.
> networks: files
>
> protocols: db files
> services: db files
> ethers: db files
> rpc: db files
>
> netgroup: nis
>
>>, etc.).
> was noch?:
> tomix@phix:~$ cat /etc/fstab
> # /etc/fstab: static file system information.
> #
> # <file system> <mount point> <type> <options> <dump> <pass>
> proc /proc proc defaults 0 0
> /dev/hda1 / reiserfs notail 0 1
> /dev/hda5 none swap sw 0 0
> /dev/hda6 /home reiserfs defaults 0 0
> /dev/hda7 /mnt/diverses reiserfs defaults 0 0
> /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
>
> printix:/home /mnt/printix/home nfs defaults 0 0
>
>> Anscheinend weiss Dein Client nichts von Nameserver bzw. löst Hostnames
>> nicht darüber auf. Ist 'server' ein Hostname oder eine IP?
> 3 linie eingefügt damit der nfs mount beim start geht.
> tomix@phix:~$ cat /etc/hosts
> 127.0.0.1 localhost
> 192.168.0.5 phix.domain.land phix
> 192.168.0.200 printix.domain.land printix # <-<-<-<-<-<-<-
>
> # The following lines are desirable for IPv6 capable hosts
> ::1 ip6-localhost ip6-loopback
> fe00::0 ip6-localnet
> ff00::0 ip6-mcastprefix
> ff02::1 ip6-allnodes
> ff02::2 ip6-allrouters
> ff02::3 ip6-allhosts
hth
Reinhold
Reply to: