NFS
Bonjour,
J'ai un serveur nfs qui exporte des systèmes de fichiers pour 2 clients
et qui fonctionnait très bien depuis des mois.
Le serveur et l'un des 2 clients sont sous debian etch, l'autre client
est sous gentoo.
Depuis la mise à jour d'hier j'ai de gros problème de connexion entre
les deux machines debian, aucun problème avec le client gentoo.
La connexion se fait bien, tout fonctionne pendant 10 ou 15 minutes,
puis j'ai des messages d'erreur genre "permissions non accordée" lorsque
j'essaie de lire ou d'écrire sur un montage NFS, certaines applications
(ice dove) dont le profile est sur nfs se bloquent...
# ls .mozilla-thunderbird
ls: .mozilla-thunderbird: Permission non accordée
# ls -la
?--------- ? ? ? ? ? .mozilla-thunderbird
# umount .mozilla-thunderbird
umount: /home/hugues/.mozilla-thunderbird: device is busy
umount: /home/hugues/.mozilla-thunderbird: device is busy
# umount /var/www
# mount /var/www/
# ls -la
drwxr-xr-x 3 hugues hugues 136 2006-05-31 17:52 .mozilla-thunderbird
Il suffit que je démonte et remonte un des partage pour qu'ils
refonctionnent _tous_ pendant 1/4 d'heure et ça recommence.
Je ne comprend pas ce qu'il se passe et c'est très gênant ! Il y a des
applications qui supporte assez mal...
Voilà ce que j'ai trouvé dans les logs :
dmesg:[17179572.528000] Installing knfsd (copyright (C) 1996
okir@monad.swb.de).
dmesg.0:[17179572.672000] Installing knfsd (copyright (C) 1996
okir@monad.swb.de).
dpkg.log:2007-02-11 06:40:11 upgrade nfs-common 1:1.0.10-4 1:1.0.10-6
dpkg.log:2007-02-11 06:40:11 status half-configured nfs-common 1:1.0.10-4
dpkg.log:2007-02-11 06:40:11 status unpacked nfs-common 1:1.0.10-4
dpkg.log:2007-02-11 06:40:11 status half-installed nfs-common 1:1.0.10-4
dpkg.log:2007-02-11 06:40:12 status half-installed nfs-common 1:1.0.10-4
dpkg.log:2007-02-11 06:40:12 status unpacked nfs-common 1:1.0.10-6
dpkg.log:2007-02-11 06:40:12 status unpacked nfs-common 1:1.0.10-6
dpkg.log:2007-02-11 06:41:37 upgrade nfs-kernel-server 1:1.0.10-4 1:1.0.10-6
dpkg.log:2007-02-11 06:41:37 status half-configured nfs-kernel-server
1:1.0.10-4
dpkg.log:2007-02-11 06:41:37 status unpacked nfs-kernel-server 1:1.0.10-4
dpkg.log:2007-02-11 06:41:37 status half-installed nfs-kernel-server
1:1.0.10-4
dpkg.log:2007-02-11 06:41:38 status half-installed nfs-kernel-server
1:1.0.10-4
dpkg.log:2007-02-11 06:41:38 status unpacked nfs-kernel-server 1:1.0.10-6
dpkg.log:2007-02-11 06:41:38 status unpacked nfs-kernel-server 1:1.0.10-6
dpkg.log:2007-02-11 06:41:38 status unpacked nfs-common 1:1.0.10-6
dpkg.log:2007-02-11 06:41:39 status unpacked nfs-common 1:1.0.10-6
dpkg.log:2007-02-11 06:41:40 status half-configured nfs-common 1:1.0.10-6
dpkg.log:2007-02-11 06:41:48 status installed nfs-common 1:1.0.10-6
dpkg.log:2007-02-11 06:42:29 status unpacked nfs-kernel-server 1:1.0.10-6
dpkg.log:2007-02-11 06:42:29 status unpacked nfs-kernel-server 1:1.0.10-6
dpkg.log:2007-02-11 06:42:29 status half-configured nfs-kernel-server
1:1.0.10-6
dpkg.log:2007-02-11 06:42:35 status installed nfs-kernel-server 1:1.0.10-6
daemon.log.0:Feb 11 06:42:35 localhost exportfs[15552]: /etc/exports
[3]: Neither 'subtree_check' or 'no_subtree_check' specified for export
"192.168.0.*:/home/hugues/.mozilla-thunderbird/". Assuming default
behaviour ('subtree_check'). NOTE: this default will change with
nfs-utils version 1.1.0
daemon.log.0:Feb 11 06:42:35 localhost exportfs[15552]: /etc/exports
[4]: Neither 'subtree_check' or 'no_subtree_check' specified for export
"192.168.0.*:/var/www/". Assuming default behaviour
('subtree_check'). NOTE: this default will change with nfs-utils
version 1.1.0
messages.0:Feb 11 06:42:34 localhost kernel: [20151421.704000] nfsd:
last server has exited
messages.0:Feb 11 06:42:34 localhost kernel: [20151421.704000] nfsd:
unexporting all filesystems
messages.0:Feb 11 06:42:35 localhost kernel: [20151422.804000] NFSD:
Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
syslog:Feb 11 06:42:34 localhost kernel: [20151421.704000] nfsd: last
server has exited
syslog:Feb 11 06:42:34 localhost kernel: [20151421.704000] nfsd:
unexporting all filesystems
syslog:Feb 11 06:42:35 localhost kernel: [20151422.804000] NFSD: Using
/var/lib/nfs/v4recovery as the NFSv4 state recovery directory
/var/log/syslog.0:Feb 12 07:37:41 localhost mountd[21462]: authenticated
unmount request from lala.local:1019 for /var/www (/var/www)
/var/log/syslog.0:Feb 12 07:37:42 localhost mountd[21462]: authenticated
mount request from lala.local:1022 for /var/www (/var/www)
# cat /etc/exports
/home/hugues/.mozilla-thunderbird/ 192.168.0.*(rw,async,subtree_check)
/var/www/ 192.168.0.*(rw,async,subtree_check)
J'ai ajouté subtree_check suite au message dans le log... j'ai aussi
essayé avec no_subtree_check mai ça ne change rien
# exportfs
/home/hugues/.mozilla-thunderbird
192.168.0.*
/var/www 192.168.0.*
# rpcinfo -p localhost
program no_version protocole no_port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 2046 status
100024 1 tcp 2046 status
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100021 1 udp 34369 nlockmgr
100021 3 udp 34369 nlockmgr
100021 4 udp 34369 nlockmgr
100021 1 tcp 35376 nlockmgr
100021 3 tcp 35376 nlockmgr
100021 4 tcp 35376 nlockmgr
100005 1 udp 862 mountd
100005 1 tcp 865 mountd
100005 2 udp 862 mountd
100005 2 tcp 865 mountd
100005 3 udp 862 mountd
100005 3 tcp 865 mountd
(j'ai 4 partage NFS en réalité)
Je vais essayer de downgrader le serveur nfs dans un premier temps, mais
si quelqu'un à une idée... là moi je sèche.
@+
PS: J'ai peut-être envoyé 2 fois ce mail, je sais pas trop vu qu ça à
planté le temps que je l'écrive...
Reply to:
- Follow-Ups:
- Re: NFS
- From: "Jean-Yves F. Barbier" <7ukwn@free.fr>
- Re: NFS (suite)
- From: Hugues LARRIVE <hugues.larrive@gmail.com>