Forums Neueste Beiträge
 

Dateien verschwinden (leeres Verzeichnis)

22/07/2010 - 13:52 von Thomas Guettler | Report spam
Hallo,

ich habe einen Samba 3.2.7 unter SuSE 11.1 x86_64

Wenn ein Client in ein leeres Verzeichnis schreibt verschwinden die Dateien
innerhalb von rund 5 Sekunden wieder.

Im Netz finde ich nur Probleme mit MacOSX, hier ist das OS aber ein Windows-XP. Der Client
ist EasyCapture (Scananwendung).

Im Logfile finde ich zu der Datei diese Eintràge:


modftp opened file SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF read=Yes write=Yes (numopen=1)
linux_set_kernel_oplock: got kernel oplock on file SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF, file_id = 802:128099 gen_id = 1
call_trans2qfilepathinfo SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF (fnum = 12087) level06 call=7 total_data=0
call_trans2qfilepathinfo SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF (fnum = 12087) level%8 call=7 total_data=0
call_trans2setfilepathinfo(8) SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF (fnum 12087) info_level20 totdata=8
reduce_name [SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF] [/home/modftp/scan]
reduce_name: SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF reduced to /home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF
reduce_name [SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF] [/home/modftp/scan]
reduce_name: SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF reduced to /home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF
reduce_name [SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF] [/home/modftp/scan]
reduce_name: SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF reduced to /home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF
call_trans2qfilepathinfo SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF (fnum = -1) level04 call=5 total_data=0
reduce_name [SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF] [/home/modftp/scan]
reduce_name: SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF reduced to /home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF
call_trans2qfilepathinfo SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF (fnum = -1) level04 call=5 total_data=0
reduce_name [SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF] [/home/modftp/scan]
reduce_name: SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF reduced to /home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF
reduce_name [SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF] [/home/modftp/scan]
reduce_name: SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF reduced to /home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF
unix_mode(SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF) returning 0744
reduce_name [SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF] [/home/modftp/scan]
reduce_name: SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF reduced to /home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF
modftp closed file SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF (numopen=1) NT_STATUS_OK
reduce_name [SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF] [/home/modftp/scan]
reduce_name: SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF reduced to /home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF
unix_mode(SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF) returning 0744
reduce_name [SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF] [/home/modftp/scan]
reduce_name: SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF reduced to /home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF
modftp opened file SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF read=Yes write=No (numopen=2)
linux_set_kernel_oplock: got kernel oplock on file SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF, file_id = 802:128099 gen_id = 5
call_trans2qfilepathinfo SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF (fnum = 12091) level06 call=7 total_data=0
reduce_name [SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF] [/home/modftp/scan]
reduce_name: SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF reduced to /home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF
unix_mode(SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF) returning 0744
reduce_name [SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF] [/home/modftp/scan]
reduce_name: SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF reduced to /home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF
modftp closed file SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF (numopen=1) NT_STATUS_OK
reduce_name [SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF] [/home/modftp/scan]
reduce_name: SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF reduced to /home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF
unix_mode(SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF) returning 0744
reduce_name [SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF] [/home/modftp/scan]
reduce_name: SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF reduced to /home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF
modftp opened file SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF read=No write=No (numopen=2)
call_trans2setfilepathinfo(8) SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF (fnum 12093) info_level13 totdata=1
modftp closed file SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF (numopen=1) NT_STATUS_OK



Gleichzeitig überwache ich das Verzeichnis mit inotify, um den Fehler zu finden:


2010-07-22 13:08:37 <Event dir=False mask=0x100 maskname=IN_CREATE nameá333406-C078-4708-8781-F92B85711136.TIF path=/home/modftp/scan/SAN/1 pathname=/home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF wd=1 >
2010-07-22 13:08:37 <Event dir=False mask=0x20 maskname=IN_OPEN nameá333406-C078-4708-8781-F92B85711136.TIF path=/home/modftp/scan/SAN/1 pathname=/home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF wd=1 >
2010-07-22 13:08:37 <Event dir=False mask=0x2 maskname=IN_MODIFY nameá333406-C078-4708-8781-F92B85711136.TIF path=/home/modftp/scan/SAN/1 pathname=/home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF wd=1 >
2010-07-22 13:08:37 <Event dir=False mask=0x2 maskname=IN_MODIFY nameá333406-C078-4708-8781-F92B85711136.TIF path=/home/modftp/scan/SAN/1 pathname=/home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF wd=1 >
2010-07-22 13:08:37 <Event dir=False mask=0x2 maskname=IN_MODIFY nameá333406-C078-4708-8781-F92B85711136.TIF path=/home/modftp/scan/SAN/1 pathname=/home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF wd=1 >
2010-07-22 13:08:44 <Event dir=False mask=0x8 maskname=IN_CLOSE_WRITE nameá333406-C078-4708-8781-F92B85711136.TIF path=/home/modftp/scan/SAN/1 pathname=/home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF wd=1 >
2010-07-22 13:08:44 <Event dir=False mask=0x4 maskname=IN_ATTRIB nameá333406-C078-4708-8781-F92B85711136.TIF path=/home/modftp/scan/SAN/1 pathname=/home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF wd=1 >
2010-07-22 13:08:44 <Event dir=False mask=0x20 maskname=IN_OPEN nameá333406-C078-4708-8781-F92B85711136.TIF path=/home/modftp/scan/SAN/1 pathname=/home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF wd=1 >
2010-07-22 13:08:45 <Event dir=False mask=0x1 maskname=IN_ACCESS nameá333406-C078-4708-8781-F92B85711136.TIF path=/home/modftp/scan/SAN/1 pathname=/home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF wd=1 >
2010-07-22 13:08:45 <Event dir=False mask=0x1 maskname=IN_ACCESS nameá333406-C078-4708-8781-F92B85711136.TIF path=/home/modftp/scan/SAN/1 pathname=/home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF wd=1 >
2010-07-22 13:08:45 <Event dir=False mask=0x10 maskname=IN_CLOSE_NOWRITE nameá333406-C078-4708-8781-F92B85711136.TIF path=/home/modftp/scan/SAN/1 pathname=/home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF wd=1 >
2010-07-22 13:08:45 <Event dir=False mask=0x200 maskname=IN_DELETE nameá333406-C078-4708-8781-F92B85711136.TIF path=/home/modftp/scan/SAN/1 pathname=/home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF wd=1 >




Ich sehe im samba-log keinen Hinweis, dass diese Datei gelöscht wurde. Das Problem tritt hàufig, aber nicht immer auf.

Woher kommt das IN_DELETE? Eigentlich muss es von Samba kommen. Aber wieso?

Gruß,
Thomas


Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
 

Lesen sie die antworten

#1 Thomas Guettler
27/07/2010 - 12:51 | Warnen spam
Hallo,

Nach dem Update zu samba-3.5.4-1.1 besteht das Problem weiterhin. Ich bin ratlos

# uname -a
Linux foo 2.6.27.29-0.1-default #1 SMP 2009-08-15 17:53:59 +0200 x86_64 x86_64 x86_64 GNU/Linux

Ich sehe in den Samba-Logs keinen Hinweis auf eine Löschanweisung (delete, unlink, rename, ...).
Ein anderes Programm ist es sicherlich nicht, weil entsprechend dem inotify-log das Löschen
kurz nach dem Erstellen der Datei passiert.

Thomas

Thomas Guettler wrote:
Hallo,

ich habe einen Samba 3.2.7 unter SuSE 11.1 x86_64

Wenn ein Client in ein leeres Verzeichnis schreibt verschwinden die Dateien
innerhalb von rund 5 Sekunden wieder.

Im Netz finde ich nur Probleme mit MacOSX, hier ist das OS aber ein Windows-XP. Der Client
ist EasyCapture (Scananwendung).

Im Logfile finde ich zu der Datei diese Eintràge:

modftp opened file SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF read=Yes write=Yes (numopen=1)
linux_set_kernel_oplock: got kernel oplock on file SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF, file_id = 802:128099 gen_id = 1
call_trans2qfilepathinfo SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF (fnum = 12087) level06 call=7 total_data=0
call_trans2qfilepathinfo SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF (fnum = 12087) level%8 call=7 total_data=0
call_trans2setfilepathinfo(8) SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF (fnum 12087) info_level20 totdata=8
reduce_name [SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF] [/home/modftp/scan]
reduce_name: SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF reduced to /home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF
reduce_name [SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF] [/home/modftp/scan]
reduce_name: SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF reduced to /home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF
reduce_name [SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF] [/home/modftp/scan]
reduce_name: SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF reduced to /home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF
call_trans2qfilepathinfo SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF (fnum = -1) level04 call=5 total_data=0
reduce_name [SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF] [/home/modftp/scan]
reduce_name: SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF reduced to /home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF
call_trans2qfilepathinfo SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF (fnum = -1) level04 call=5 total_data=0
reduce_name [SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF] [/home/modftp/scan]
reduce_name: SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF reduced to /home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF
reduce_name [SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF] [/home/modftp/scan]
reduce_name: SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF reduced to /home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF
unix_mode(SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF) returning 0744
reduce_name [SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF] [/home/modftp/scan]
reduce_name: SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF reduced to /home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF
modftp closed file SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF (numopen=1) NT_STATUS_OK
reduce_name [SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF] [/home/modftp/scan]
reduce_name: SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF reduced to /home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF
unix_mode(SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF) returning 0744
reduce_name [SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF] [/home/modftp/scan]
reduce_name: SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF reduced to /home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF
modftp opened file SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF read=Yes write=No (numopen=2)
linux_set_kernel_oplock: got kernel oplock on file SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF, file_id = 802:128099 gen_id = 5
call_trans2qfilepathinfo SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF (fnum = 12091) level06 call=7 total_data=0
reduce_name [SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF] [/home/modftp/scan]
reduce_name: SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF reduced to /home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF
unix_mode(SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF) returning 0744
reduce_name [SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF] [/home/modftp/scan]
reduce_name: SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF reduced to /home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF
modftp closed file SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF (numopen=1) NT_STATUS_OK
reduce_name [SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF] [/home/modftp/scan]
reduce_name: SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF reduced to /home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF
unix_mode(SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF) returning 0744
reduce_name [SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF] [/home/modftp/scan]
reduce_name: SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF reduced to /home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF
modftp opened file SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF read=No write=No (numopen=2)
call_trans2setfilepathinfo(8) SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF (fnum 12093) info_level13 totdata=1
modftp closed file SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF (numopen=1) NT_STATUS_OK



Gleichzeitig überwache ich das Verzeichnis mit inotify, um den Fehler zu finden:

2010-07-22 13:08:37 <Event dir=False mask=0x100 maskname=IN_CREATE nameá333406-C078-4708-8781-F92B85711136.TIF path=/home/modftp/scan/SAN/1 pathname=/home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF wd=1 >
2010-07-22 13:08:37 <Event dir=False mask=0x20 maskname=IN_OPEN nameá333406-C078-4708-8781-F92B85711136.TIF path=/home/modftp/scan/SAN/1 pathname=/home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF wd=1 >
2010-07-22 13:08:37 <Event dir=False mask=0x2 maskname=IN_MODIFY nameá333406-C078-4708-8781-F92B85711136.TIF path=/home/modftp/scan/SAN/1 pathname=/home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF wd=1 >
2010-07-22 13:08:37 <Event dir=False mask=0x2 maskname=IN_MODIFY nameá333406-C078-4708-8781-F92B85711136.TIF path=/home/modftp/scan/SAN/1 pathname=/home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF wd=1 >
2010-07-22 13:08:37 <Event dir=False mask=0x2 maskname=IN_MODIFY nameá333406-C078-4708-8781-F92B85711136.TIF path=/home/modftp/scan/SAN/1 pathname=/home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF wd=1 >
2010-07-22 13:08:44 <Event dir=False mask=0x8 maskname=IN_CLOSE_WRITE nameá333406-C078-4708-8781-F92B85711136.TIF path=/home/modftp/scan/SAN/1 pathname=/home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF wd=1 >
2010-07-22 13:08:44 <Event dir=False mask=0x4 maskname=IN_ATTRIB nameá333406-C078-4708-8781-F92B85711136.TIF path=/home/modftp/scan/SAN/1 pathname=/home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF wd=1 >
2010-07-22 13:08:44 <Event dir=False mask=0x20 maskname=IN_OPEN nameá333406-C078-4708-8781-F92B85711136.TIF path=/home/modftp/scan/SAN/1 pathname=/home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF wd=1 >
2010-07-22 13:08:45 <Event dir=False mask=0x1 maskname=IN_ACCESS nameá333406-C078-4708-8781-F92B85711136.TIF path=/home/modftp/scan/SAN/1 pathname=/home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF wd=1 >
2010-07-22 13:08:45 <Event dir=False mask=0x1 maskname=IN_ACCESS nameá333406-C078-4708-8781-F92B85711136.TIF path=/home/modftp/scan/SAN/1 pathname=/home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF wd=1 >
2010-07-22 13:08:45 <Event dir=False mask=0x10 maskname=IN_CLOSE_NOWRITE nameá333406-C078-4708-8781-F92B85711136.TIF path=/home/modftp/scan/SAN/1 pathname=/home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF wd=1 >
2010-07-22 13:08:45 <Event dir=False mask=0x200 maskname=IN_DELETE nameá333406-C078-4708-8781-F92B85711136.TIF path=/home/modftp/scan/SAN/1 pathname=/home/modftp/scan/SAN/1/E1333406-C078-4708-8781-F92B85711136.TIF wd=1 >




Ich sehe im samba-log keinen Hinweis, dass diese Datei gelöscht wurde. Das Problem tritt hàufig, aber nicht immer auf.

Woher kommt das IN_DELETE? Eigentlich muss es von Samba kommen. Aber wieso?

Gruß,
Thomas






Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de

Ähnliche fragen