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

Bug#599823: linux-2.6: XEN and NFS causes duplicate filenames with large directories



Hello there,

i'm having the same or a similar problem here.

Machines
---

Server:
  QNAP TS-219II wich runs a custom Linux i believe.
  [~] # uname -a
  Linux nas 2.6.33.2 #1 Fri Jul 26 05:22:11 CST 2013 armv5tel unknown

Client 1:
  Debian Wheezy Fully updated on 28.10.2013
  root@shuttle:~# uname -a
  Linux shuttle 3.2.0-4-686-pae #1 SMP Debian 3.2.51-1 i686 GNU/Linux

Client 2:
  Mac OS X 10.9 Mavericks
  thebook-wlan:~ lennart$ uname -a
  Darwin thebook-wlan.fritz.box 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64

Client 3:
  Ubuntu 10.04 @ VirtualBox
  lennart@ubuntu:/mnt$ uname -a
  Linux ubuntu 2.6.32-38-server #83-Ubuntu SMP Wed Jan 4 11:26:59 UTC 2012 x86_64 GNU/Linux
 
Client 4:
  Ubuntu 13.04 @ VirtualBox
  lennart@ubuntu:~$ uname -a
  Linux ubuntu 3.8.0-32-generic #47-Ubuntu SMP Tue Oct 1 22:35:23 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Symptoms
---
The problem only occurs on my Linux clients. OS X has no problem with displaying all files in the directory (and nothing more!).

In some directories, in which files exist, that have the same filename except for the case, these files may be listed twice. Examples:

Ex1:
root@shuttle:/mnt/backup/test# ls -li /mnt/backup/rsnapshot.bak/daily.0/shuttle/var/lib/lxc/vm-mail/rootfs/usr/include/linux/netfilter/ |grep -i CONNMARK
78251329 -rw-r--r-- 13 root root  691 Mar 26  2013 xt_connmark.h
78251328 -rw-r--r-- 13 root root  136 Mar 26  2013 xt_CONNMARK.h
78251328 -rw-r--r-- 13 root root  136 Mar 26  2013 xt_CONNMARK.h

Ex2:
lennart@shuttle:~$ ls -li /mnt/backup/rsnapshot/daily.0/shuttle/etc/alternatives/ |grep -i mail
71047301 lrwxrwxrwx 1 root root  23 Oct 28 09:32 mail -> /usr/bin/heirloom-mailx
71047299 lrwxrwxrwx 1 root root  23 Oct 28 09:32 Mail -> /usr/bin/heirloom-mailx
71047302 lrwxrwxrwx 1 root root  39 Oct 28 09:32 mail.1.gz -> /usr/share/man/man1/heirloom-mailx.1.gz
71047300 lrwxrwxrwx 1 root root  39 Oct 28 09:32 Mail.1.gz -> /usr/share/man/man1/heirloom-mailx.1.gz
71047300 lrwxrwxrwx 1 root root  39 Oct 28 09:32 Mail.1.gz -> /usr/share/man/man1/heirloom-mailx.1.gz


How to reproduce?
---
I have no Idea. See http://superuser.com/questions/666328/rsnapshot-cp-al-duplicate-files-on-mounted-nfs-share for what i have discovered so far. Nothing.

What have i done to produce the error? In one case my rsnapshot backup just stopped with errors (see link). In another case i installed packages while a backup was running. I believe a cp -al was being performed by rsnapshot at that specific moment. The packages i was installing created the symlinks in Ex2.


Questions
---

Is this a Server problem?
My OS X Client seems to break this hypothesis.

But what if OS X is just more fault-tolerant?
Then it sill might be the server

Is it a Client Problem?
I need more NFS clients.



Cheers,
Lennart

Reply to: