GNU/Linux >> LINUX-Kenntnisse >  >> Debian

Debian – Warum zeigt die Cifs-Freigabe dieselben Dateien mehrmals an?

Ich habe dies auf ServerFault gefragt, aber keine Antwort erhalten, also dachte ich mir, ich versuche es stattdessen hier drüben!

Ich habe einen Debian-Backup-Server, auf dem der FreeBSD-Kernel läuft, und ein ZFS-Dateisystem, auf dem ich Backups speichere, wobei ich die Snapshot- und Komprimierungstechnologien von ZFS verwende. Der Debian-Server verwendet rsync um Dateien von mehreren anderen Servern über einen Cron-Job abzurufen. Dieser Vorgang funktioniert hervorragend.

Ich verwende dann CIFS, um die Backups wieder auf den ursprünglichen Servern freizugeben, sodass ich sie einfach durchsuchen und Dateien von jedem Server wiederherstellen kann. Wenn ich jedoch ls verwende auf den Servern, um den Inhalt bestimmter Verzeichnisse auf der Backup-Freigabe (gemountet über CIFS) anzuzeigen, sehe ich genau dieselben Dateien mehrmals aufgelistet. Tatsächlich viele, viele Male:

[[email protected] 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*

Aber auf dem Debian-Backup-Server sieht es gut aus:

[email protected]:/# 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

Woran kann das liegen und wie kann ich es beheben? Ich bin nicht an CIFS gebunden, wenn es also eine bessere Technologie gibt, bin ich dafür offen. Ich habe zuvor NFS verwendet, als der Backup-Server Open Solaris war, aber es scheint, dass Debian NFS nicht unterstützt, wenn der FreeBSD-Kernel verwendet wird …

Verwandte:Wie kann verhindert werden, dass „grep“ in den PS-Ergebnissen angezeigt wird?

Akzeptierte Antwort:

Sie haben den Samba-Fehler 4715, der als Debian-Fehler Nr. 612503 gemeldet wird. Derzeit besteht die empfohlene Lösung darin, directory name cache size = 0 hinzuzufügen unter dem globalen Abschnitt in smb.conf .


Debian
  1. Debian – Wie extrahiert und installiert man .deb ohne den Befehl Dpkg?

  2. Debian – Warum fordert mich Debian manchmal auf, die (Installations-?) CD einzulegen, wenn ich Pakete installiere?

  3. Debian-Sicherheit /etc-Berechtigungen?

  4. Dateien finden, für die mehrere Variationen dieses Dateinamens zusammen im selben Verzeichnis vorhanden sind?

  5. Wie teilt man Dateien im Heimnetzwerk?

So sehen Sie versteckte Dateien und Ordner in Debian

So löschen Sie Dateien und Verzeichnisse mit dem Terminal in Debian 10

Warum haben mehrere Instanzen von Mate-Terminal dieselbe Pid?

Debian – Warum sind die Fedora-Gpg-Schlüssel nicht signiert?

Pipe zu mehreren Dateien in der Shell?

Mehrere Dropbox-Konten auf demselben Computer?