On Tuesday 17 January 2006 10:40, Martin Simmons wrote: > >>>>> On Mon, 16 Jan 2006 21:01:13 +0100, Kern Sibbald <[EMAIL PROTECTED]> > >>>>> said: > > Kern> On Monday 16 January 2006 20:19, Martin Simmons wrote: > >> >>>>> On Mon, 16 Jan 2006 19:44:02 +0100, "[EMAIL PROTECTED]" > >> >>>>> <[EMAIL PROTECTED]> said: > > Pascal> Yes! it desappeared on /etc/init.d/bacula > Pascal> Is it in relation with the number of storage configured? > Pascal> The problem is that i think my jobs fail because the thead > > >> concurently Pascal> lock the nst0 device: > > Pascal> fuser -uv /dev/nst0 > > Pascal> USER PID ACCESS COMMAND > Pascal> /dev/nst0 root 30232 f.... bacula-sd > Pascal> root 30233 f.... bacula-sd > Pascal> root 30235 f.... bacula-sd > Pascal> Perhaps i am totaly wrong but you know ... i am a newbie :-D > > >> I don't think this is a problem, because all threads in a process > >> share the same fds and so they *should* all be users of the device. > >> The bacula daemons always run multiple threads (for various purposes). > >> > >> The confusing thing is that threads and processes both have an id and > >> some tools (including ps on some Linux kernels) don't know the > >> difference between process ids and thread ids. > > Kern> With 2.4 Linux kernels (with a few exceptions), each thread had a > separate Kern> pid. On 2.6 Linux kernels, all threads share the same pid > but have different Kern> thread ids. If the above output is for a 2.6 > kernel, then there is a Kern> problem, because there should be only one pid > (though Bacula does create Kern> child processes which will have different > pids, they should be short lived in Kern> normal conditions). > > Yes, you are right, but the problem might be in fuser. E.g. on FC3 > (2.6.9-1.667smp) strace -f prints "pid" for each tid and cat > /proc/nnn/status reports "Pid: nnn" when nnn is a tid.
Hmmm. I never use fuser, so never thought of that. I do know that ps correctly distinguishes pids and tids. > > __Martin -- Best regards, Kern ("> /\ V_V ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users