Hi guys, I believe I might have found a bug in Bacula 3.0.1.
Steps to reproduce: 1. Start with a fresh Bacula setup 2. Create a pool 'poola' 3. Create a job using poola 3. Add a few tapes using the bconsole command 'add pool=poola storage=Tape' Then answering 0, then volumename '000018L4' to match the barcode. 4. Run 'update slots' to update the slot possitions in Baculas db. 5. I make sure the Recycle flag is set and change the VolStatus to Purged Some of these tapes have been used before, so a Append status would see a label with informatin not corresponding to the current db and mark the volume as Error. 6. I start the job which uses poola. At this point Bacula will load the barcode labled media from the correct slot but when the tape has been loaded Bacula refuses to mount the media. Using bconsole and typing mount just results in the same message over and over again: *mount Automatically selected Storage: Tape 3001 OK mount. Device="Tape" (/dev/nst0) You have messages. *m 02-Jul 08:20 storagedaemon-name-sd JobId 9: Please mount Volume "000018L4" or label a new one for: Job: ajob.2009-07-02_08.14.57_56 Storage: "Tape" (/dev/nst0) Pool: poola Media type: Tape Now at this point I have found a way to get around the problem. 1. Type delete, select volume, select poola and select tape '000018L4' 2. Type label, enter '000018L4' as the volume name and select poola as the pool After the tape has been labeled and mounted suddenly everything works. Now after having labeled one tape running jobs in any pool works fine. Now it will automatically write labels to other tapes and automatically mount them. The Device section in bacula-sd.conf looks like: Device { Name = Tape Drive Index = 0 Media Type = Tape Archive Device = /dev/nst0 Label Media = yes AutomaticMount = yes AlwaysOpen = yes RemovableMedia = yes RandomAccess = no AutoChanger = yes Spool Directory = /spooling/ } So it is set to auto mount and auto label. Is this a bug or have I misunderstood something? Cheers, Alex -- For every higher wall, there is a taller ladder ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Bacula-devel mailing list Bacula-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-devel