* [mdk-re] Re: [mdk-re] Вопрос про NFS: umount
2001-07-06 11:58 ` Dmitry V. Levin
@ 2001-07-09 5:25 ` Oleg S.Gints
0 siblings, 0 replies; 5+ messages in thread
From: Oleg S.Gints @ 2001-07-09 5:25 UTC (permalink / raw)
To: mandrake-russian
[-- Attachment #1: Type: text/plain, Size: 1927 bytes --]
Попробовал все воспроизвести на одной машине, которая бы выступала
в роли и сервера nfs, и клиента - ситуация не воспроизводится, все
работает как положено, никаких сообщений об ошибках не выдается.
Тогда вернулся к варианту с двумя машинами (см. аттачи)
Выяснилось следующее:
если на клиенте поднять сервер nfs, который к делу не относится,
то все начинает работать нормально,
если даже экспортируется что попало, например /home localhost(ro)
Еще раз повторю, все работает, если попутно сервер nfs запущен на
стороне _КЛИЕНТА_ (клиент в это время работает с другим сервром на
другой машине). Если же на стороне клиента,
запущены только portmap, nfslock, то ситуация воспроизводится на 100%:
предупреждения ядра на консоль, и lockd в памяти (у клиента).
Со стороны сервера никаких отклонений не заметил.
Только что обнаружил, как это сообщение получить на одной машине,
которая сама себе и клиент, и сервер:
1.Примонтировать како-нибудь собственный ресурс nfs.
2.Размонтировать.
3. service nfs stop
В этот момент и будет на консоли и в логах:
lockd_down: lockd_failed to exit, clearing pid
>> При размонтировании nfs после нажатия на Enter пауза ~1 секунда,
>> потом на консоль и в логи выдается предупреждение ядра:
>>
>> Jun 29 15:11:32 oleg kernel: lockd_down: lockd_failed to exit, clearing
pid
>>
>> После umount на клиенте остается в памяти демон [lockd] и их число
>> с каждым umount растет, что не может не настораживать.
>>
>> Система Spring2001+updates, ядро 2.2.19-alt2-up-secure на сервере
>> и 2.2.19-alt2-up|2.2.19-alt2-up-secure на клиенте, все пакеты
>> оригинальные, без пересборки. Попытался поставить nfs-client из
>> Сизифа, ситуация не изменилась.
>> Неужели я один такой счастливый :-) ?
>
>Дополнительные вопросы про тот сервер, где остаются процессы [lockd]:
>1. rpm -qa |grep ^nfs
>2. /etc/init.d/nfs status
>3. /etc/init.d/nfslock status
>Как изменяется 2. и 3. после нескольких umount/mount?
[-- Attachment #2: server.txt --]
[-- Type: text/plain, Size: 1065 bytes --]
Script started on Mon Jul 9 10:01:41 2001
>[root@fast /root]# rpm -qa| grep ^nfs
nfs-server-0.2.1-ipl5mdk
nfs-clients-0.2.1-ipl5mdk
[root@fast /root]# service nfs status
rpc.mountd (pid 14050) is running...
nfsd (pids 14040 14039 14038 14037 14036 14035 14034 14033) are running...
rpc.rquotad (pid 14026) is running...
[root@fast /root]# service nfslock status
lockd (pid 14041) is running...
rpc.statd (pid 13999) is running...
[root@fast /root]# service portmap status
portmap (pid 547) is running...
[root@fast /root]# rpm -qa|grep portmap
portmap-4.0-ipl12mdk
[root@fast /root]#service nfslock status
lockd (pid 14041) is running...
rpc.statd (pid 13999) is running...
[root@fast /root]# service nfslock status\rlockd (pid 14041) is running...
rpc.statd (pid 13999) is running...
[root@fast /root]# service nfs status
rpc.mountd (pid 14050) is running...
nfsd (pids 14040 14039 14038 14037 14036 14035 14034 14033) are running...
rpc.rquotad (pid 14026) is running...
[root@fast /root]# exit
Script done on Mon Jul 9 10:15:35 2001
[-- Attachment #3: client.txt --]
[-- Type: text/plain, Size: 4318 bytes --]
Script started on Mon Jul 9 10:06:18 2001
>[root@big /root]# rpm -qa|grep nfs
nfs-clients-0.2.1-ipl5mdk
nfs-server-0.2.1-ipl5mdk
[root@big /root]# rpm -qa|grep portmap
portmap-4.0-ipl12mdk
[root@big /root]# service nfslock status
lockd is stopped
rpc.statd (pid 19609) is running...
[root@big /root]# mount -t nfs fast:/mnt/disk /mnt/disk
[root@big /root]# service nfslock status
lockd (pid 19681) is running...
rpc.statd (pid 19609) is running...
[root@big /root]# umount /mnt/disk
lockd_down: lockd failed to exit, clearing pid
[root@big /root]# service nfslock status
lockd (pid 19681) is running...
rpc.statd (pid 19609) is running...
[root@big /root]# mount -t nfs fast:/mnt/disk /mnt/disk\r[root@big /root]# service nfslock status
lockd (pids 19717 19681) are running...
rpc.statd (pid 19609) is running...
[root@big /root]# umount /mnt/disk
lockd_down: lockd failed to exit, clearing pid
[root@big /root]# service nfslock status
lockd (pid 19681) is running...
rpc.statd (pid 19609) is running...
[root@big /root]# mount -t nfs fast:/mnt/disk /mnt/disk\r[root@big /root]# service nfslock status
lockd (pids 19748 19681) are running...
rpc.statd (pid 19609) is running...
[root@big /root]# umount /mnt/disk
lockd_down: lockd failed to exit, clearing pid
[root@big /root]# service nfslock status
lockd (pid 19681) is running...
rpc.statd (pid 19609) is running...
[root@big /root]# mount -t nfs fast:/mnt/disk /mnt/disk
[root@big /root]# cp install.log /mnt/disk/dump\r[root@big /root]# service nfslock status
lockd (pids 19792 19681) are running...
rpc.statd (pid 19609) is running...
[root@big /root]# umount /mnt/disk
lockd_down: lockd failed to exit, clearing pid
[root@big /root]# service nfslock status
lockd (pids 19792 19681) are running...
rpc.statd (pid 19609) is running...
[root@big /root]# mount -t nfs fast:/mnt/disk /mnt/disk
[root@big /root]# service nfslock status
lockd (pids 19843 19792 19681) are running...
rpc.statd (pid 19609) is running...
[root@big /root]# cp install.log /mnt/disk/dump
cp: overwrite `/mnt/disk/dump/install.log'? y
[root@big /root]# Pservice nfslock status
lockd (pids 19843 19792 19681) are running...
rpc.statd (pid 19609) is running...
[root@big /root]# umount /mnt/disk
lockd_down: lockd failed to exit, clearing pid
[root@big /root]# service nfslock status
lockd (pids 19843 19792 19681) are running...
rpc.statd (pid 19609) is running...
[root@big /root]# mount -t nfs fast:/mnt/disk /mnt/disk
[root@big /root]# service nfslock status
lockd (pids 19894 19843 19792 19681) are running...
rpc.statd (pid 19609) is running...
[root@big /root]# cp install.log /mnt/disk/dump\rcp: overwrite `/mnt/disk/dump/install.log'? y
[root@big /root]# umount /mnt/disk
lockd_down: lockd failed to exit, clearing pid
[root@big /root]# service nfslock status
lockd (pids 19894 19843 19792 19681) are running...
rpc.statd (pid 19609) is running...
[root@big /root]#
[root@big /root]#
[root@big /root]#
[root@big /root]# service nfslock restart
Shutting down NFS lockd: [OK]
Shutting down NFS statd: [OK]
Starting NFS lockd: [OK]
Starting NFS statd: [OK]
[root@big /root]# service nfslock status
lockd is stopped
rpc.statd (pid 20013) is running...
[root@big /root]# service nfs start
Starting NFS services: [OK]\r
Starting NFS quotas: [OK]
Starting NFS daemon: [OK]
Starting NFS mountd: [OK]
[root@big /root]# cat /etc/exports
/home localhost(ro)
[root@big /root]# service nfslock status
lockd (pid 20076) is running...
rpc.statd (pid 20013) is running...
[root@big /root]# service nfs status
rpc.mountd (pid 20085) is running...
nfsd (pids 20075 20074 20073 20072 20071 20070 20069 20068) are running...
rpc.rquotad (pid 20061) is running...
[root@big /root]# mount -t nfs fast:/mnt/disk /mnt/disk\r[root@big /root]# umount /mnt/disk
[root@big /root]# service nfslock status
lockd (pid 20076) is running...
rpc.statd (pid 20013) is running...
[root@big /root]# mount -t nfs fast:/mnt/disk /mnt/disk\r[root@big /root]# cp install.log /mnt/disk/dump
cp: overwrite `/mnt/disk/dump/install.log'? y
[root@big /root]# umount /mnt/disk
[root@big /root]# service nfslock status
lockd (pid 20076) is running...
rpc.statd (pid 20013) is running...
Script done on Mon Jul 9 10:17:46 2001
^ permalink raw reply [flat|nested] 5+ messages in thread