Rob Moser
2010-May-11 22:25 UTC
[Samba] smbd panic - tdb_reopen: file dev/inode has changed!
Hi folks, # uname -srvo Linux 2.6.18-194.el5xen #1 SMP Tue Mar 16 22:01:26 EDT 2010 GNU/Linux # cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.5 (Tikanga) # smbd --version Version 3.3.8-0.51.el5 I'm trying to run a backup samba server using some custom in-house scripts which I inherited and am stuck with. Essentially the primary server periodically rsyncs a bunch of files over to the backup, including a collection of the tdb files. When I try to connect to the backup server, I get the following smbd panics in the logs: ----- [2010/05/11 14:34:32, 0] lib/util_tdb.c:tdb_log(682) tdb(/var/lib/samba/ntforms.tdb): tdb_reopen: file dev/inode has changed! [2010/05/11 14:34:32, 0] lib/util.c:reinit_after_fork(1054) tdb_reopen_all failed. [2010/05/11 14:34:32, 0] printing/print_cups.c:cups_pcap_load_async(432) cups_pcap_load_async: reinit_after_fork() failed [2010/05/11 14:34:32, 0] lib/util.c:smb_panic(1673) PANIC (pid 28994): cups_pcap_load_async: reinit_after_fork() failed [2010/05/11 14:34:32, 0] lib/util_tdb.c:tdb_log(682) tdb(/var/lib/samba/ntforms.tdb): tdb_reopen: file dev/inode has changed! [2010/05/11 14:34:32, 0] lib/util.c:reinit_after_fork(1054) tdb_reopen_all failed. [2010/05/11 14:34:32, 0] smbd/server.c:open_sockets_smbd(774) reinit_after_fork() failed [2010/05/11 14:34:32, 0] lib/util.c:smb_panic(1673) PANIC (pid 28995): reinit_after_fork() failed [2010/05/11 14:34:32, 0] lib/util.c:log_stack_trace(1777) BACKTRACE: 9 stack frames: #0 smbd(log_stack_trace+0x1c) [0x2b49e45a126c] #1 smbd(smb_panic+0x2b) [0x2b49e45a134b] #2 smbd(cups_cache_reload+0x1b1) [0x2b49e4571d11] #3 smbd(pcap_cache_reload+0xb8) [0x2b49e456e6f8] [2010/05/11 14:34:32, 0] lib/util.c:log_stack_trace(1777) BACKTRACE: 5 stack frames: #4 smbd(reload_printers+0x25) [0x2b49e47ab3c5] #0 smbd(log_stack_trace+0x1c) [0x2b49e45a126c] #5 smbd(check_reload+0xe8) [0x2b49e43e7378] #1 smbd(smb_panic+0x2b) [0x2b49e45a134b] #6 smbd(main+0x1422) [0x2b49e47acee2] #2 smbd(main+0x19bf) [0x2b49e47ad47f] #7 /lib64/libc.so.6(__libc_start_main+0xf4) [0x2b49e7c3e994] #3 /lib64/libc.so.6(__libc_start_main+0xf4) [0x2b49e7c3e994] #8 smbd [0x2b49e43717c9] #4 smbd [0x2b49e43717c9] [2010/05/11 14:34:32, 0] lib/fault.c:dump_core(231) [2010/05/11 14:34:32, 0] lib/fault.c:dump_core(231) dumping core in /var/log/samba/cores/smbd dumping core in /var/log/samba/cores/smbd [2010/05/11 14:34:32, 2] printing/print_cups.c:cups_async_callback(544) cups_async_callback: failed to read a new printer list [2010/05/11 14:34:33, 0] lib/util_tdb.c:tdb_log(682) tdb(/var/lib/samba/ntforms.tdb): tdb_reopen: file dev/inode has changed! [2010/05/11 14:34:33, 0] lib/util.c:reinit_after_fork(1054) tdb_reopen_all failed. [2010/05/11 14:34:33, 0] smbd/server.c:open_sockets_smbd(774) reinit_after_fork() failed [2010/05/11 14:34:33, 0] lib/util.c:smb_panic(1673) PANIC (pid 28996): reinit_after_fork() failed [2010/05/11 14:34:33, 0] lib/util.c:log_stack_trace(1777) BACKTRACE: 5 stack frames: #0 smbd(log_stack_trace+0x1c) [0x2b49e45a126c] #1 smbd(smb_panic+0x2b) [0x2b49e45a134b] #2 smbd(main+0x19bf) [0x2b49e47ad47f] #3 /lib64/libc.so.6(__libc_start_main+0xf4) [0x2b49e7c3e994] #4 smbd [0x2b49e43717c9] [2010/05/11 14:34:33, 0] lib/fault.c:dump_core(231) dumping core in /var/log/samba/cores/smbd ----- Uhm... no kidding the inode has changed? Its on a different machine!
Volker Lendecke
2010-May-12 05:21 UTC
[Samba] smbd panic - tdb_reopen: file dev/inode has changed!
On Tue, May 11, 2010 at 03:25:21PM -0700, Rob Moser wrote:> # uname -srvo > Linux 2.6.18-194.el5xen #1 SMP Tue Mar 16 22:01:26 EDT 2010 GNU/Linux > > # cat /etc/redhat-release > Red Hat Enterprise Linux Server release 5.5 (Tikanga) > > # smbd --version > Version 3.3.8-0.51.el5 > > I'm trying to run a backup samba server using some custom in-house > scripts which I inherited and am stuck with. Essentially the primary > server periodically rsyncs a bunch of files over to the backup, > including a collection of the tdb files. When I try to connect to the > backup server, I get the following smbd panics in the logs: > > ----- > [2010/05/11 14:34:32, 0] lib/util_tdb.c:tdb_log(682) > tdb(/var/lib/samba/ntforms.tdb): tdb_reopen: file dev/inode has changed! > [2010/05/11 14:34:32, 0] lib/util.c:reinit_after_fork(1054) > tdb_reopen_all failed.If you are rsync'ing files to a different server, the inode on the target *does* change. Samba can not cope with that, you should never just overwrite tdb files in-flight. Please restart Samba on the backup host after the rsync. Volker -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: Digital signature URL: <http://lists.samba.org/pipermail/samba/attachments/20100512/f6ed880f/attachment.pgp>