Por que meu compartilhamento CIFS mostra os mesmos arquivos várias vezes?

4

Eu perguntei isso no ServerFault , mas não recebi nenhuma resposta, então resolvi testá-lo aqui !

Eu tenho um servidor de backup Debian rodando o kernel do FreeBSD e um sistema de arquivos ZFS no qual eu armazeno backups, usando as tecnologias de captura instantânea e compactação do ZFS. O servidor Debian usa rsync para extrair arquivos de vários outros servidores através de uma tarefa cron. Esse processo funciona muito bem.

Eu, então, uso o CIFS para compartilhar os backups de volta aos servidores originais, para que eu possa navegar facilmente neles e restaurar arquivos de cada servidor. No entanto, quando uso ls nos servidores para examinar o conteúdo de determinados diretórios no compartilhamento de backup (montado via CIFS), vejo os mesmos arquivos exatos listados várias vezes. Muitas e muitas vezes, de fato:

[root@webserver01 public_html]# ls -li /backup/scripts/|less
total 663621
57872359 drwxr-xr-x  4 root root      0 Apr  3 21:40 ./
       2 drwxr-xr-x 20 root root      0 Mar 24 18:20 ../
57872880 -rw-r--r--  1 root root   6494 Dec 16  2008 AcctLock.pm
57873180 lrwxrwxrwx  1 root root      7 Mar 15 15:21 adddns -> add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*
57872571 -rwxr-xr-x  1 root root   2010 Nov  8 20:55 add_dns*

Mas no servidor de backup do Debian, parece bem:

root@timestandstill:/# ls -l /backups/myvenue/scripts/|less
total 1893
-rw-r--r-- 1 root root   6494 Dec 16  2008 AcctLock.pm
lrwxrwxrwx 1 root root      7 Mar 15 15:21 adddns -> add_dns
-rwxr-xr-x 1 root root   2010 Nov  8 20:55 add_dns
-rwxr-xr-x 1 root root   5797 Nov  8 20:55 addfpmail
-rwxr-xr-x 1 root root   1949 Nov  8 20:55 addpop
-rwxr-xr-x 1 root root    490 Oct 10  2007 addservlets
-rwxr-xr-x 1 root root     53 Mar 10  2008 adduser
-rwxr-xr-x 1 root root    305 Mar 23  2006 admin
-rwxr-xr-x 1 root root   3926 Nov  8 20:55 after_perl_upgrade
-rw-r--r-- 1 root root    654 Mar 23  2006 anonuser.patch
-rwxr-xr-x 1 root root   2961 Nov  8 20:55 apachelimits
-rwxr-xr-x 1 root root   1014 Sep 23  2010 apacheloadcheck
-rw-r--r-- 1 root root     99 Mar 23  2006 aquota.user_emptyfs.gz
-rw-r--r-- 1 root root   3023 Nov  8 20:55 archive_sync_zones
-rwxr-xr-x 1 root root   1109 Nov  8 20:55 autorepair
-rwxr-xr-x 1 root root   5167 Nov  8 20:55 bandminup
-rwxr-xr-x 1 root root   1540 Nov  8 20:55 biglogcheck
-rwxr-xr-x 1 root root    252 Mar 23  2006 bitstest
-rwxr-xr-x 1 root root   2224 Nov  8 20:55 bsdbindfix
-rwxr-xr-x 1 root root   2479 Nov  8 20:55 bsdcryptoinstall
-rwxr-xr-x 1 root root   3003 Nov  8 20:55 bsdi386compatinstall
-rwxr-xr-x 1 root root    430 Nov  8 20:55 bsdldconfig
-rwxr-xr-x 1 root root   2363 Nov  8 20:55 bsdpkgpingtest
-rwxr-xr-x 1 root root    452 Dec 16  2008 buildbsdexpect
-rwxr-xr-x 1 root root   2766 Nov  8 20:55 builddovecotconf
-rwxr-xr-x 1 root root   5298 Nov  8 20:55 buildeximconf

O que poderia estar causando isso e como posso resolvê-lo? Não estou preso ao CIFS, portanto, se houver uma tecnologia melhor, estou aberto a ela. Eu estava usando o NFS antes, quando o servidor de backup era Open Solaris, mas parece que o Debian não suporta NFS quando usando o kernel do FreeBSD ...

    
por Josh 08.04.2011 / 16:22

1 resposta

2

Você está enfrentando o erro do Samba 4715 , informado como Bebê da África # 612503 . Atualmente, a correção recomendada é adicionar directory name cache size = 0 na seção global em smb.conf .

    
por 09.04.2011 / 21:17