[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: NFS



Eric Dillenseger a écrit :

Bonjour,

Je rencontre un petit soucis pour utiliser NFS.
J'utilise une debian testing avec un kernel Linux 2.4.20 mips (dmesg plus bas).
Nfs, portmap, mountd lockd, etc. se lancent au démarrage.
<ericd@nirvana>~ % rpcinfo -p
  program vers proto   port
   100000    2   tcp    111  portmapper
   100000    2   udp    111  portmapper
   100003    2   udp   2049  nfs
   100003    3   udp   2049  nfs
   100021    1   udp   1024  nlockmgr
   100021    3   udp   1024  nlockmgr
   100021    4   udp   1024  nlockmgr
   100005    1   udp    672  mountd
   100005    1   tcp    675  mountd
   100005    2   udp    672  mountd
   100005    2   tcp    675  mountd
   100005    3   udp    672  mountd
   100005    3   tcp    675  mountd
   100024    1   udp    725  status
   100024    1   tcp    728  status
<ericd@nirvana>~ % sudo showmount -e
Export list for nirvana:
/home/ericd *.workgroup
Remplace sur le serveur

/home/ericd *.workgroup

par :

/home/ericd          aaaa.bbbb.cccc.dddd(rw)        *.workgroup

et sur chaque client

IP_du_serveur:/home/ericd  /home/ericd nfs hard,intr,rw,nolock,rsize=8192,wsize=8192       0  0

Je te recommande l'IP du serveur et non son nom pour palier à une éventuelle panne de résolution de DNS.


Essaie ça si marchera peut être. Moi je l'ai fait comme ça et tout roule.



J'arrive à monter le share correctement depuis un client ou depuis le
serveur lui-même:
<ericd@nirvana>~ % mount
/dev/hda1 on / type ext3 (rw,noatime,errors=remount-ro)
proc on /proc type proc (rw)
usbfs on /proc/bus/usb type usbfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda3 on /mnt/hda type ext3 (rw,noatime)
nirvana:/home/ericd on /mnt/usbdisk1 type nfs (rw,addr=192.168.1.250)

Mais ni le client ni le serveur n'arrive à lire ou ecrire sur le share.
Les commandes restent figées en statut D (in disk).
699 ?        D      0:00 ls -la --color=auto /mnt/usbdisk1
De temps en temps il affiche nfs server not responding, alors que le
serveur lui-même n'a pas perdu la connectivité au réseau.

Je ne sais pas comment résoudre ca.

Cordialement,
Eric Dillenseger

dmesg:
prom.c:RAM_FIRST 400 _ftext 100000 _end 52dc40
CPU revision is: 0001800a
Primary instruction cache 8kB, physically tagged, 4-way, linesize 16 bytes.
Primary data cache 8kB 4-way, linesize 16 bytes.
Linux version 2.4.20_mipsel_linkstation
(root@toda_dev2.melcoinc.co.jp) (gcc ¥Ð¡¼¥¸¥ç¥ó 3.3.1 (MontaVista
3.3.1-3.0.10.0300532 2003-12-24)) #88 2005ǯ 2·î 25Æü ¶âÍËÆü 20:17:00
JST
PCI: Initializing PCI
Determined physical RAM map:
memory: 04000000 @ 00000000 (usable)
Initial ramdisk at: 0x802d6000 (2306048 bytes)
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/hda1
Initializing IRQ's: 168 out of 256
Rx5C348: driver initialized
calculating r4koff... 001e83b7(1999799)
CPU frequency 399.96 MHz
Calibrating delay loop... 399.76 BogoMIPS
MIPS CPU counter frequency is fixed at 199979981 Hz
Memory: 59516k/65536k available (1593k kernel code, 6020k reserved,
2436k data, 76k init, 0k highmem)
Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
Checking for 'wait' instruction...  available.
POSIX conformance testing by UNIFIX
00:02.0 : 1283:8212
00:04.0 : 1033:0035
00:04.1 : 1033:0035
00:04.2 : 1033:00e0
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
LSP Revision 10
Starting kswapd
Disabling the Out Of Memory Killer
Journalled Block Device driver loaded
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ
SERIAL_PCI enabled
ttyS00 at 0xb8058000 (irq = 104) is a 16550A
Generic MIPS RTC Driver v1.0
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
IT8212: IDE controller on PCI bus 00 dev 10
IT8212: chipset revision 19
IT8212: 100% native mode on irq 146
   ide0: BM-DMA at 0x18800020-0x18800027, BIOS settings: hda:pio, hdb:pio
   ide1: BM-DMA at 0x18800028-0x1880002f, BIOS settings: hdc:pio, hdd:pio
hda: ST3250823A, ATA DISK drive
ide0 at 0x18800000-0x18800007,0x1880000a on irq 146
blk: queue 8052b628, I/O limit 4095Mb (mask 0xffffffff)
hda: 488397168 sectors (250059 MB) w/8192KiB Cache, CHS=30401/255/63, UDMA(100)
Partition check:
hda: hda1 hda2 hda3
RAMDISK driver initialized: 16 RAM disks of 10000K size 1024 blocksize
eth0: RC32434 ethernet found at 0x18060000
eth0: HW Address 00:0d:0b:74:5f:3d
eth0: Rx IRQ 40, Tx IRQ 41
SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
physmap flash device: 400000 at 1fc00000
Found: ST M29W324DB
linkstation_flash: Found 1 x16 devices at 0x0 in 8-bit mode
number of JEDEC chips: 1
Using physmap partition definition
Creating 3 MTD partitions on "linkstation_flash":
0x00000000-0x00040000 : "mtd0"
0x00040000-0x00390000 : "mtd1"
0x003c0000-0x00400000 : "mtd2"
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
ehci_hcd 00:04.2: PCI device 1033:00e0
ehci_hcd 00:04.2: irq 148, pci mem c0000000
usb.c: new USB bus registered, assigned bus number 1
PCI: 00:04.2 PCI cache line size set incorrectly (0 bytes) by BIOS/FW,
correcting to 32
ehci_hcd 00:04.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 5 ports detected
usb-ohci.c: USB OHCI at membase 0xc0002000, IRQ 148
usb-ohci.c: usb-00:04.0, PCI device 1033:0035
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 3 ports detected
usb-ohci.c: USB OHCI at membase 0xc0004000, IRQ 148
usb-ohci.c: usb-00:04.1, PCI device 1033:0035
usb.c: new USB bus registered, assigned bus number 3
hub.c: USB hub found
hub.c: 2 ports detected
usb.c: registered new driver usblp
printer.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 8192)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: AppleTalk 0.18a for Linux NET4.0
RAMDISK: Compressed image found at block 0
hub.c: new USB device 00:04.2-2, assigned address 2
scsi0 : SCSI emulation for USB Mass Storage devices
 Vendor: ST320082  Model: 2A                Rev:  0 0
 Type:   Direct-Access                      RMB: HardDisk
 ANSI SCSI revision: 02
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 390721968 512-byte hdwr sectors (200050 MB)
sda: sda1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
Freeing initrd memory: 2252k freed
EXT2-fs warning: checktime reached, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Trying to move old root to /initrd ... okay
stubbed prom_free_prom_memory()
Freeing unused kernel memory: 76k freed
Warning: unable to open an initial console.
Algorithmics/MIPS FPU Emulator v1.5
Adding Swap: 265064k swap-space (priority -1)
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,1), internal journal
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,3), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).

--
"Any attempt to brew coffee with a teapot should result in the error
code "418 I'm a teapot".
The resulting entity body MAY be short and stout."
-- HTCPCP Spec, RFC 2324



--
Hervé Hounzandji
Dsi-Dae - Rectorat Nancy-Metz
tél : 03 83 86 27 66
www.ac-nancy-metz.fr
----------------------------------------------
"Prenez soin de Vous. Chaque jour est une Vie"




Reply to: