On Friday 15 December 2006 19:24, Jason Dixon wrote:
> On Dec 15, 2006, at 10:58 AM, [EMAIL PROTECTED] wrote:
> 
> > On Fri, Dec 15, 2006 at 10:36:06AM -0500, Jason Dixon wrote:
> >
> >> We've migrated a working bacula installation and changer to a new
> >> server, but bacula seems unable to connect to the storage unit.  All
> >> of the configuration files were moved intact, with the exception of
> >> changing the director name and the scsi device.  I am able to see the
> >> changer and drives via dmesg, proc and mtx, but it simply times out
> >> when trying a "status storage" in bconsole.  Here is all of the
> >> diagnostic information I can think of.  Any suggestions?
> >
> > I've seen similar symptoms when first starting bacula, but only some
> > of the time.  By turning on the debug logging in the mtx-changer
> > script, I've determined that Bacula is making repeated attempts to
> > find what is loaded in each tape drive.  After 20-30 minutes, this
> > process completes and all is well, so I've never bothered tracking
> > down what's going on.
> 
> This is exactly what I've found after running bacula-sd in the  
> foreground with debugging enabled, as Martin suggested.  Here is the  
> output with delays inserted.  This has never happened on our CentOS 4  
> system with the same configuration, which leads me to believe it  
> _might_ be a regression bug between 1.38.10-1 and 1.38.11-3.

I suspect that this has more to do with the new (IMO brain damaged) way 2.6 
kernels deal with an attempt to open a drive that has no medium in it.  Prior 
kernels opened the drive, and you could then query to see if a tape was 
mounted, new kernels simply hang for about 2 minutes waiting for something to 
be mounted, then return causing Bacula all kinds of pains until I finally 
worked out a reasonable solution (I think).  Either endure it, or you can 
avoid it by making sure every drive has a volume mounted before starting 
Bacula, or you can update to the latest 1.39 beta, which hopefully does not 
have the problem.

> 
> ...
> foobar01-sd: dircmd.c:187 Message channel init completed.
> 
> < delay >
> 
> foobar01-sd: dircmd.c:194 <dird: statusfoobar01-sd: dev.c:382 open  
> dev: tape 6 opened
> foobar01-sd: device.c:270 open dev "Drive-2" (/dev/nst1) OK
> foobar01-sd: label.c:71 Enter read_volume_label res=0  
> device="Drive-2" (/dev/nst1) vol=dev_Vol=*NULL*
> foobar01-sd: dev.c:627 rewind res=0 fd=6 "Drive-2" (/dev/nst1)
> 
> < delay >
> 
> foobar01-sd: dev.c:653 Rewind error, No medium found. retrying...
> foobar01-sd: dev.c:276 oepn dev: tape=1 dev_name="Drive-2" (/dev/ 
> nst1) vol=mode=OPEN_READ_ONLY
> foobar01-sd: dev.c:323 open dev: device is tape
> foobar01-sd: autochanger.c:267 Locking changer Overland2000
> foobar01-sd: autochanger.c:236 Run program=/etc/bacula/mtx-changer / 
> dev/sg4 loaded 0 /dev/nst1 1
> foobar01-sd: bpipe.c:292 Run program returning 0
> foobar01-sd: autochanger.c:238 run_prog: /etc/bacula/mtx-changer /dev/ 
> sg4 loaded 0 /dev/nst1 1 stat=0 result=0
> foobar01-sd: autochanger.c:276 Unlocking changer Overland2000
> foobar01-sd: dev.c:338 Try open "Drive-2" (/dev/nst1)  
> mode=OPEN_READ_ONLY nonblocking=2048
> foobar01-sd: dev.c:369 openmode=3 OPEN_READ_ONLY
> 
> < delay >
> 
> foobar01-sd: dev.c:382 open dev: tape 6 opened
> 
> < delay >
> 
> foobar01-sd: label.c:104 return VOL_NO_MEDIA: Couldn't rewind device  
> "Drive-2" (/dev/nst1): ERR=dev.c:678 Rewind error on "Drive-2" (/dev/ 
> nst1). ERR=No medium found.
> foobar01-sd: mem_pool.c:363 garbage collect memory pool
> foobar01-sd: dircmd.c:208 Do command: status
> foobar01-sd: mem_pool.c:363 garbage collect memory pool
> 
> 
> Thanks,
> 
> --
> Jason Dixon
> DixonGroup Consulting
> http://www.dixongroup.net
> 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to