2006-03-16 03:08:24

by Shunichi Sagawa

[permalink] [raw]
Subject: NFSv4 problem?(chown(1) process hang)

Hello,

In the NFS access operation,
"chown guest.guest file" causes the process hang.


[NG pattern]---------------------------------------------------------
<server kernel-2.6.9>
1. System startup

# chkconfig --list | egrep "nfs|rpcidmap"
nfs 0:off 1:off 2:on 3:on 4:on 5:on 6:off
rpcidmapd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
nfslock 0:off 1:off 2:off 3:on 4:on 5:on 6:off
#
# cat /etc/exports
/work *(rw,sync,no_root_squash,fsid=0)
#
# ls -ld /work
drwxr-xr-x 3 root root 4096 Mar 16 13:22 /work
#
# grep guest /etc/passwd
guest:x:501:501::/home/guest:/bin/bash
#
# cat /etc/idmapd.conf
[General]

Verbosity = 0
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
Domain = localdomain

[Mapping]

Nobody-User = nobody
Nobody-Group = nobody

[Translation]
Method = nsswitch
#

<client kernel-2.6.9>
1. System startup

# showmount -e nfsserver
Export list for nfsserver:
/work *
#
# grep guest /etc/passwd
guest:x:501:501::/home/guest:/bin/bash
#
# mount -t nfs4 nfsserver:/ /mnt/nfs
# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 10080520 8027400 1541052 84% /
/dev/hda1 101086 24234 71633 26% /boot
none 517932 0 517932 0% /dev/shm
/dev/hda5 4814936 1847656 2722692 41% /work
nfsserver:/ 1027776 1280 974272 1% /mnt/nfs
# cd /mnt/nfs
# ls -l hogehoge
-rw-r--r-- 1 root root 9 Mar 16 2006 hogehoge
# chown guest.guest hogehoge
hang.

[OK pattern]-----------------------------------------------------------
<server>
1. System startup
2. /etc/init.d/rpcidmapd restart
:
:
It is the same as the operation of mentioning above.


This problem doesn't occur if rpcidmapd is restart.
Is it a problem of my setting?
Or, NFSv4 problem?

Best Regards,
Sagawa.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs


2006-03-23 23:22:46

by Kevin Coffman

[permalink] [raw]
Subject: Re: NFSv4 problem?(chown(1) process hang)

The problem appears to be an error in our code that only exhibits the
problem when used in combination with libevent-1.0b. When used with
other versions of libevent, the problem doesn't appear...

(Hopefully) attached is the patch.


On 3/15/06, Shunichi Sagawa <[email protected]> wrote:
> Hello,
>
> In the NFS access operation,
> "chown guest.guest file" causes the process hang.
>
>
> [NG pattern]---------------------------------------------------------
> <server kernel-2.6.9>
> 1. System startup
>
> # chkconfig --list | egrep "nfs|rpcidmap"
> nfs 0:off 1:off 2:on 3:on 4:on 5:on 6:off
> rpcidmapd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
> nfslock 0:off 1:off 2:off 3:on 4:on 5:on 6:off
> #
> # cat /etc/exports
> /work *(rw,sync,no_root_squash,fsid=0)
> #
> # ls -ld /work
> drwxr-xr-x 3 root root 4096 Mar 16 13:22 /work
> #
> # grep guest /etc/passwd
> guest:x:501:501::/home/guest:/bin/bash
> #
> # cat /etc/idmapd.conf
> [General]
>
> Verbosity = 0
> Pipefs-Directory = /var/lib/nfs/rpc_pipefs
> Domain = localdomain
>
> [Mapping]
>
> Nobody-User = nobody
> Nobody-Group = nobody
>
> [Translation]
> Method = nsswitch
> #
>
> <client kernel-2.6.9>
> 1. System startup
>
> # showmount -e nfsserver
> Export list for nfsserver:
> /work *
> #
> # grep guest /etc/passwd
> guest:x:501:501::/home/guest:/bin/bash
> #
> # mount -t nfs4 nfsserver:/ /mnt/nfs
> # df
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/hda2 10080520 8027400 1541052 84% /
> /dev/hda1 101086 24234 71633 26% /boot
> none 517932 0 517932 0% /dev/shm
> /dev/hda5 4814936 1847656 2722692 41% /work
> nfsserver:/ 1027776 1280 974272 1% /mnt/nfs
> # cd /mnt/nfs
> # ls -l hogehoge
> -rw-r--r-- 1 root root 9 Mar 16 2006 hogehoge
> # chown guest.guest hogehoge
> hang.
>
> [OK pattern]-----------------------------------------------------------
> <server>
> 1. System startup
> 2. /etc/init.d/rpcidmapd restart
> :
> :
> It is the same as the operation of mentioning above.
>
>
> This problem doesn't occur if rpcidmapd is restart.
> Is it a problem of my setting?
> Or, NFSv4 problem?
>
> Best Regards,
> Sagawa.
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> NFS maillist - [email protected]
> https://lists.sourceforge.net/lists/listinfo/nfs
>
>


Attachments:
(No filename) (2.93 kB)
idmapd_reorder_close_del.patch (0.98 kB)
Download all attachments