We have an NFS server running on ubuntu 12.04, and after upgrading one
client from 10.04 to 12.04 the other day we are hitting a similar
(possibly the same) problem. The server setup has not been touched for
months.

We have a directory with a lot of .xml files (~1009700 of them).
Running an ls on this directory from another client running 12.04
initially produced this message:

[423354.265296] NFS: directory xxx/OLD contains a readdir loop.Please
contact your server vendor.  The file:
900015.xml\xffffffa1;s0z\xffffffda\xffffffa0\xffffffa0\xffffff91]c\x03\xffffff88\xffffffff\xffffffffml\xffffffa3\xffffffa3\x1b\xfffffff1'
\xffffffb0\xffffff91]c\x03\xffffff88\xffffffff\xffffffffml#q%G\xffffff8c\xffffffa0\xffffffc0\xffffff91]c\x03\xffffff88\xffffffff\xffffffffxml\xffffffc4\xffffffe3>\xffffff9f\xffffffa8\xffffffd0\xffffff91\xffffff91]c\x03\xffff\x0f\xffffffbf\xfffffff0\xffffff91]c\x03\xffffff88\xffffffff\xffffffffxml}\xffffff9e\xffffff88\xffffffc3P
has duplicate cookie 514419709fml\xffffffbb\xffffffb6\xfffffff2

Doing an cp -a on this file, removing the original file and moving the
copy back in place fixes the corrupted filename, but the duplicate
cookie problem remains.

Running a find | sort on the server and on the clients and diffing the
output reveals no difference with 10.04 clients, but with the 12.04
client (and the problematic file moved away) we get ~10 duplicate
entries in the output on the 12.04 client.

Our 10.04-clients seem unaffected. I've tried a 12.04 client with kernel
3.8 which shows the same problem.

I've tried mounting with different nfs versions, and the only change was
that with nfsvers=2 I managed to list around ~700k files before it broke
(as opposed to ~300k files otherwise)).

It also breaks rsync with

rsync: readdir("/the-path/OLD"): Too many levels of symbolic links (40)

Server information:
---
Linux xxx 3.2.0-39-generic #62-Ubuntu SMP Thu Feb 28 00:28:53 UTC 2013 x86_64 
x86_64 x86_64 GNU/Linux

/dev/drbd0 on /data type ext3 (rw,noatime)

ii  nfs-common                                            1:1.2.5-3ubuntu3.1    
                                NFS support files common to client and server
ii  nfs-kernel-server                                     1:1.2.5-3ubuntu3.1    
                                support for NFS kernel server

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1240143

Title:
  NFS client reports a 'readdir loop' with a corrupt name

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1240143/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to