Great suggestion. I wasn't sure what the .tdb files were so didn't really consider renaming the directory. Once I moved all the files out of /var/samba, smbd started up perfectly and recreated all the .tdb files. Thank for the great guidance.
James Peach wrote: > On 06/10/06, nicerobot <[EMAIL PROTECTED]> wrote: >> Great idea. Sorry, I should have already done that. I ran ktrace several >> times letting it hang for several minutes just to check if it's polling. >> All produce the same trace. >> lsof doesn't show any files in /private/var/samba that don't belong to >> the hung smbd process. >> Also, not sure it matters but from scanning the full trace, the only >> files in /private/var/samba not accessed are account_policy.tdb and >> unexpected.tdb. >> >> Here is the tail of the file from the last item printed to the console >> through to my interrupt: >> >> 512 smbd CALL write(0x1,0x503e90,0x3c) >> 512 smbd GIO fd 1 wrote 60 bytes >> "ROOT/HKLM/SYSTEM/CurrentControlSet/Control/: [Print] (data) >> " >> 512 smbd RET write 60/0x3c >> 512 smbd CALL stat(0x255e2c,0xbffff5c0) >> 512 smbd NAMI "/private/var/samba" >> 512 smbd RET stat 0 >> 512 smbd CALL unlink(0x255e2c) >> 512 smbd NAMI "/private/var/samba/printing.tdb" >> 512 smbd RET unlink -1 errno 2 No such file or directory >> 512 smbd CALL stat(0x255e2c,0xbffff5c0) >> 512 smbd NAMI "/private/var/samba" >> 512 smbd RET stat 0 >> 512 smbd CALL mkdir(0xbffff6c0,0x1ed) >> 512 smbd NAMI "/private/var/samba/printing" >> 512 smbd RET mkdir -1 errno 17 File exists >> 512 smbd CALL stat(0x255e2c,0xbffff560) >> 512 smbd NAMI "/private/var/samba" >> 512 smbd RET stat 0 >> 512 smbd CALL open(0x255e2c,0x202,0x180) >> 512 smbd NAMI "/private/var/samba/ntdrivers.tdb" >> 512 smbd RET open 15/0xf >> 512 smbd CALL fcntl(0xf,0x9,0xbffff4b0) >> 512 smbd RET fcntl 0 >> 512 smbd CALL read(0xf,0x50432c,0xa8) >> 512 smbd GIO fd 15 read 168 bytes >> "TDB file >> >> \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0&\^A\^Ym\0\0\0\M^C\0\0\^B\M-8\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ >> >> >> \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ >> >> >> \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" >> >> 512 smbd RET read 168/0xa8 >> 512 smbd CALL fstat(0xf,0xbffff530) >> 512 smbd RET fstat 0 >> 512 smbd CALL mmap(0,0x2000,0x3,0x1,0xf,0) >> 512 smbd RET mmap 3047424/0x2e8000 >> 512 smbd CALL fcntl(0xf,0x9,0xbffff4b0) >> 512 smbd RET fcntl 0 >> 512 smbd CALL stat(0x255e2c,0xbffff560) >> 512 smbd NAMI "/private/var/samba" >> 512 smbd RET stat 0 >> 512 smbd CALL open(0x255e2c,0x202,0x180) >> 512 smbd NAMI "/private/var/samba/ntprinters.tdb" >> 512 smbd RET open 16/0x10 >> 512 smbd CALL fcntl(0x10,0x9,0xbffff4b0) >> 512 smbd RET fcntl 0 >> 512 smbd CALL read(0x10,0x50445c,0xa8) >> 512 smbd GIO fd 16 read 168 bytes >> "TDB file >> >> \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0&\^A\^Ym\0\0\0\M^C\0\0\^B\M-8\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ >> >> >> \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ >> >> >> \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" >> >> 512 smbd RET read 168/0xa8 >> 512 smbd CALL fstat(0x10,0xbffff530) >> 512 smbd RET fstat 0 >> 512 smbd CALL mmap(0,0x2000,0x3,0x1,0x10,0) >> 512 smbd RET mmap 3055616/0x2ea000 >> 512 smbd CALL fcntl(0x10,0x9,0xbffff4b0) >> 512 smbd RET fcntl 0 >> 512 smbd CALL stat(0x255e2c,0xbffff560) >> 512 smbd NAMI "/private/var/samba" >> 512 smbd RET stat 0 >> 512 smbd CALL open(0x255e2c,0x202,0x180) >> 512 smbd NAMI "/private/var/samba/ntforms.tdb" >> 512 smbd RET open 17/0x11 >> 512 smbd CALL fcntl(0x11,0x9,0xbffff4b0) >> 512 smbd RET fcntl 0 >> 512 smbd CALL read(0x11,0x5045ac,0xa8) >> 512 smbd GIO fd 17 read 168 bytes >> "TDB file >> >> \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0&\^A\^Ym\0\0\0\M^C\0\0\^B\M-8\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ >> >> >> \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ >> >> >> \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" >> >> 512 smbd RET read 168/0xa8 >> 512 smbd CALL fstat(0x11,0xbffff530) >> 512 smbd RET fstat 0 >> 512 smbd CALL mmap(0,0x6d8,0x3,0x1,0x11,0) >> 512 smbd RET mmap 3063808/0x2ec000 >> 512 smbd CALL fcntl(0x11,0x9,0xbffff4b0) >> 512 smbd RET fcntl 0 >> 512 smbd PSIG SIGINT SIG_DFL > > So at this point, is smbd hung or is it still poking around in the > TDBs? Could you see > what happens when you moving your existing TDB files aside? > -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
