Nathan Vidican
2005-May-30 13:40 UTC
[Samba] Obtaining log level 10 for just specified user(s) (MS Word & Excel File Locking issue - still)
Is it possible to make samba produce a log at level 10 for only a specified user(s), I am trying (still) to figure out why Samba processes climb to 100% CPU and the user loses connection with MS Word & Excel files being locked. Have been dealing with this issue for quite some time now, but had to put it on the back burner for a while because we had little time to deal with it. Apprently only an issue with a few users still, yet unable to isolate anything different from them to the user next to them, aside from filenames, which are apparently random or not the cause anyhow. Gave up on trying to fix it a while back, but having more and more problems daily, with 2-3 processes every hour or so climbing to 100% cpu utilization and the user being locked out; a simple kill -9 to the process id in question, and a new one spawns and the end users good to go... Annoying, but at least a work-around we've been able to get by with. I'd like to get some debugging logs, but as these servers are being used in production, I need to force log level 10 only for specified users (aka ones having the problem). Is it possible to do this? Log files hit like 5 megs in a matter of a minute or two; can't accept that for every user on the system - and it's a huge hit on I/O we don't need to take either :( Any suggestions? -- Nathan Vidican nvidican@wmptl.com Windsor Match Plate & Tool Ltd. http://www.wmptl.com/
Eric Hines
2005-May-30 13:53 UTC
[Samba] Obtaining log level 10 for just specified user(s) (MS Word & Excel File Locking issue - still)
I can't address the Word problem, but have you looked at Excel itself as the culprit for the Excel problem? For instance, is the user able to get anything done on his/her Excel spreadsheet before this problem occurs? There is a .xlb file (I don't remember its exact name; I'll have to look it up when I go in to work tomorrow) that occasionally gets corrupted. Deleting this file makes Excel work OK, again, and the file is regenerated the next time the user opens Excel (and is changed/updated/whatever MS feels like doing with this sort of file) every time the user opens Excel. Eric Hines At 05/30/05 08:40, you wrote:>Is it possible to make samba produce a log at level 10 for only a specified >user(s), I am trying (still) to figure out why Samba processes climb to 100% >CPU and the user loses connection with MS Word & Excel files being locked. > > >Have been dealing with this issue for quite some time now, but had to put it >on the back burner for a while because we had little time to deal with it. >Apprently only an issue with a few users still, yet unable to isolate >anything different from them to the user next to them, aside from filenames, >which are apparently random or not the cause anyhow. > >Gave up on trying to fix it a while back, but having more and more problems >daily, with 2-3 processes every hour or so climbing to 100% cpu utilization >and the user being locked out; a simple kill -9 to the process id in >question, and a new one spawns and the end users good to go... Annoying, but >at least a work-around we've been able to get by with. I'd like to get some >debugging logs, but as these servers are being used in production, I need to >force log level 10 only for specified users (aka ones having the problem). >Is it possible to do this? Log files hit like 5 megs in a matter of a minute >or two; can't accept that for every user on the system - and it's a huge hit >on I/O we don't need to take either :( > >Any suggestions? > > >-- >Nathan Vidican >nvidican@wmptl.com >Windsor Match Plate & Tool Ltd. >http://www.wmptl.com/ > > >-- >To unsubscribe from this list go to the following URL and read the >instructions: https://lists.samba.org/mailman/listinfo/sambaGovernment programs provide enough to keep you alive, but they don't offer any hope of living your dreams. --Grim
John H Terpstra
2005-May-30 16:18 UTC
[Samba] Obtaining log level 10 for just specified user(s) (MS Word & Excel File Locking issue - still)
On Monday 30 May 2005 07:40, Nathan Vidican wrote:> Is it possible to make samba produce a log at level 10 for only a specified > user(s), I am trying (still) to figure out why Samba processes climb to > 100% CPU and the user loses connection with MS Word & Excel files being > locked.In your smb.conf file [global] section put: include = /etc/samba/%u.conf In the file /etc/samba/'username'.conf put: [global] log level = 10 Done! - John T.> > > Have been dealing with this issue for quite some time now, but had to put > it on the back burner for a while because we had little time to deal with > it. Apprently only an issue with a few users still, yet unable to isolate > anything different from them to the user next to them, aside from > filenames, which are apparently random or not the cause anyhow. > > Gave up on trying to fix it a while back, but having more and more problems > daily, with 2-3 processes every hour or so climbing to 100% cpu utilization > and the user being locked out; a simple kill -9 to the process id in > question, and a new one spawns and the end users good to go... Annoying, > but at least a work-around we've been able to get by with. I'd like to get > some debugging logs, but as these servers are being used in production, I > need to force log level 10 only for specified users (aka ones having the > problem). Is it possible to do this? Log files hit like 5 megs in a matter > of a minute or two; can't accept that for every user on the system - and > it's a huge hit on I/O we don't need to take either :( > > Any suggestions? > > > -- > Nathan Vidican > nvidican@wmptl.com > Windsor Match Plate & Tool Ltd. > http://www.wmptl.com/-- John H Terpstra Samba-Team Member Phone: +1 (650) 580-8668 Author: The Official Samba-3 HOWTO & Reference Guide, ISBN: 0131453556 Samba-3 by Example, ISBN: 0131472216 Hardening Linux, ISBN: 0072254971 Other books in production.
Jeremy Allison
2005-May-31 15:38 UTC
[Samba] Obtaining log level 10 for just specified user(s) (MS Word & Excel File Locking issue - still)
On Mon, May 30, 2005 at 09:40:40AM -0400, Nathan Vidican wrote:> Is it possible to make samba produce a log at level 10 for only a specified > user(s), I am trying (still) to figure out why Samba processes climb to 100% > CPU and the user loses connection with MS Word & Excel files being locked. > > > Have been dealing with this issue for quite some time now, but had to put it > on the back burner for a while because we had little time to deal with it. > Apprently only an issue with a few users still, yet unable to isolate > anything different from them to the user next to them, aside from filenames, > which are apparently random or not the cause anyhow. > > Gave up on trying to fix it a while back, but having more and more problems > daily, with 2-3 processes every hour or so climbing to 100% cpu utilization > and the user being locked out; a simple kill -9 to the process id in > question, and a new one spawns and the end users good to go... Annoying, but > at least a work-around we've been able to get by with. I'd like to get some > debugging logs, but as these servers are being used in production, I need to > force log level 10 only for specified users (aka ones having the problem). > Is it possible to do this? Log files hit like 5 megs in a matter of a minute > or two; can't accept that for every user on the system - and it's a huge hit > on I/O we don't need to take either :( > > Any suggestions?Actually you've given me an idea. It should be possible to add a "only these users" list to the lowest levels of the lib/debug.c code so that only when the effective id of the process matches these users will a message get printed. I'm thinking smbcontrol may be used to add/unset this list. It wouldn't mean a change in the upper level code and you'd just set this list then set the debug level to 10 generically. Let me work on this some - I may have a patch that applies cleanly to 3.0.14a and above.... Jeremy.