Brian Debelius wrote:
> Update slots shows slot 3
> * Catalog record for Volume "B0000001" updated to reference slot 3
>
> List volume shows slot 3
> 28 | B0000001   | Append    |       1 | 55,873,556,480 |       57 |    
> 7,257,600 |       1 |    3     |     1 | X10       | 2007-04-02 11:40:41 |
>
> status storage=xxx
> ok, I will try this one when it happens again.
>
> I will take out the directives you say are bad.  I was trying to get 
> find a way to get the end of tape working.  thanks for the tip.
>
> Kern Sibbald wrote:
>   
>> I'll let the list help you on this as they are better than I am, especially 
>> for Win32 questions.  Two points though, you may have the wrong slot numbers 
>> defined in the catalog.  "update slots" can help, if that is the case.  
>> Debugging:  list volume=xxx  will tell you if the slot is properly 
>> defined, "status storage=xxx" will give you a lot of info on what the SD 
>> thinks is the problem.  BLOCKED means you need to do a console mount, ...
>>
>> A couple of other points:
>>
>> Always Open = no   is generally a very bad idea.
>>
>> Having any explicit block size directives is generally a bad idea unless you 
>> *really* know what you are doing, and if you change them after writing a 
>> tape, you will probably not be able to read any tapes previously written.
>>
>> Normally having Changer Device and Changer Command in multiple places is not 
>> recommended as they could get out of sync causing confusion.
>>
>> Hardware End of File = no   is *very* unusual. I don't even know if it is 
>> implemented -- a potential source of problems, especially if it is 
>> implemented some day, it could cause all sorts of headaches.
>>
>> On Monday 02 April 2007 17:17, Brian Debelius wrote:
>>   
>>     
>>> Brian Debelius wrote:
>>>     
>>>       
>>>> Kern Sibbald wrote:
>>>>       
>>>>         
>>>>> On Monday 02 April 2007 14:34, Brian Debelius wrote:
>>>>>         
>>>>>           
>>>>>> Windows 2003, dir, sd, fd; Bacula 2.0.3; VXA-172
>>>>>>           
>>>>>>             
>>>>> Nice, I wish everyone would put a line like that -- it gets you a "free" 
>>>>> answer :-)
>>>>>
>>>>>         
>>>>>           
>>>>>> What would cause bacula to run a job, load the correct tape(in this case 
>>>>>> B0000001) , and then say intervention needed please mount volume 
>>>>>> (B0000001)?  Then I manually have to umount the tape, then mount the 
>>>>>> same tape again, and the job runs?
>>>>>>           
>>>>>>             
>>>>> Generally if Bacula asks you to mount a tape it is because either you 
>>>>>         
>>>>>           
>> don't 
>>   
>>     
>>>>> have an autochanger or the wrong tape is in the drive.  Once you mount 
>>>>>         
>>>>>           
>> the 
>>   
>>     
>>>>> tape it requests (in general) you will need to issue a "mount" command in 
>>>>>         
>>>>>           
>> the 
>>   
>>     
>>>>> console so that Bacula will read the tape label and continue ...
>>>>>
>>>>>
>>>>> (in general) means that it depends on your conf file.
>>>>>         
>>>>>           
>>>> Thanks! :)
>>>>
>>>> I in fact do have an autochanger, and it loaded the correct tape 
>>>> autmomatically.  You can see that it unloaded slot 7 and then loaded 
>>>> slot 3.  I verified this with mtx-changer list and saw that the correct 
>>>> tape was loaded.  When I unmount the tape, it gets unloaded back to the 
>>>> changer, and then I mount it again, and it proceeds to do its job.  
>>>> Would I enable debugging on the director or the sd to troubleshoot this?
>>>>
>>>> Heres the log before and after I remounted the tape
>>>>
>>>> 02-Apr 00:01 comp0-dir: Start Backup JobId 200, 
>>>> Job=comp1.2007-04-02_00.01.00
>>>> 02-Apr 00:01 comp0-dir: Using Volume "B0000001" from 'Scratch' pool.
>>>> 02-Apr 00:01 comp0-dir: Start Backup JobId 201, 
>>>> Job=comp2.2007-04-02_00.01.05
>>>> 02-Apr 00:01 comp1-fd: ClientRunBeforeJob: run command "ntbackup backup 
>>>> systemstate /F c:\comp1_systemstate.bkf"
>>>> 02-Apr 00:01 comp2-fd: ClientRunBeforeJob: run command "ntbackup backup 
>>>> systemstate /F c:\comp2_systemstate.bkf"
>>>> 02-Apr 00:11 comp0-sd: 3307 Issuing autochanger "unload slot 7, drive 0" 
>>>> command.
>>>> 02-Apr 00:14 comp0-sd: 3304 Issuing autochanger "load slot 3, drive 0" 
>>>> command.
>>>> 02-Apr 00:15 comp0-sd: 3305 Autochanger "load slot 3, drive 0", status 
>>>> is OK.
>>>> 02-Apr 00:15 comp0-sd: 3301 Issuing autochanger "loaded? drive 0" command.
>>>> 02-Apr 00:15 comp0-sd: 3302 Autochanger "loaded? drive 0", result is Slot 
>>>>       
>>>>         
>> 3.
>>   
>>     
>>>> 02-Apr 00:15 comp0-sd: 3301 Issuing autochanger "loaded? drive 0" command.
>>>> 02-Apr 00:15 comp0-sd: 3302 Autochanger "loaded? drive 0", result is Slot 
>>>>       
>>>>         
>> 3.
>>   
>>     
>>>> 02-Apr 00:15 comp0-sd: 3301 Issuing autochanger "loaded? drive 0" command.
>>>> 02-Apr 00:15 comp0-sd: 3302 Autochanger "loaded? drive 0", result is Slot 
>>>>       
>>>>         
>> 3.
>>   
>>     
>>>> 02-Apr 00:15 comp0-sd: 3301 Issuing autochanger "loaded? drive 0" command.
>>>> 02-Apr 00:15 comp0-sd: 3302 Autochanger "loaded? drive 0", result is Slot 
>>>>       
>>>>         
>> 3.
>>   
>>     
>>>> 02-Apr 00:15 comp0-sd: 3301 Issuing autochanger "loaded? drive 0" command.
>>>> 02-Apr 00:15 comp0-sd: 3302 Autochanger "loaded? drive 0", result is Slot 
>>>>       
>>>>         
>> 3.
>>   
>>     
>>>> 02-Apr 00:15 comp0-sd: 3301 Issuing autochanger "loaded? drive 0" command.
>>>> 02-Apr 00:15 comp0-sd: 3302 Autochanger "loaded? drive 0", result is Slot 
>>>>       
>>>>         
>> 3.
>>   
>>     
>>>> 02-Apr 00:15 comp0-sd: 3301 Issuing autochanger "loaded? drive 0" command.
>>>> 02-Apr 00:15 comp0-sd: 3302 Autochanger "loaded? drive 0", result is Slot 
>>>>       
>>>>         
>> 3.
>>   
>>     
>>>> 02-Apr 00:15 comp0-sd: 3301 Issuing autochanger "loaded? drive 0" command.
>>>> 02-Apr 00:15 comp0-sd: 3302 Autochanger "loaded? drive 0", result is Slot 
>>>>       
>>>>         
>> 3.
>>   
>>     
>>>> 02-Apr 00:15 comp0-sd: 3301 Issuing autochanger "loaded? drive 0" command.
>>>> 02-Apr 00:15 comp0-sd: 3302 Autochanger "loaded? drive 0", result is Slot 
>>>>       
>>>>         
>> 3.
>>   
>>     
>>>> 02-Apr 00:15 comp0-sd: Please mount Volume "B0000001" on Storage Device 
>>>> "VXA-172" (Tape0) for Job comp1.2007-04-02_00.01.00
>>>> 02-Apr 01:15 comp0-sd: Please mount Volume "B0000001" on Storage Device 
>>>> "VXA-172" (Tape0) for Job comp1.2007-04-02_00.01.00
>>>> 02-Apr 03:15 comp0-sd: Please mount Volume "B0000001" on Storage Device 
>>>> "VXA-172" (Tape0) for Job comp1.2007-04-02_00.01.00
>>>> 02-Apr 07:15 comp0-sd: Please mount Volume "B0000001" on Storage Device 
>>>> "VXA-172" (Tape0) for Job comp1.2007-04-02_00.01.00
>>>> #unmount
>>>> Automatically selected Catalog: MyCatalog
>>>> Using Catalog "MyCatalog"
>>>> The defined Storage resources are:
>>>>      1: Disk0
>>>>      2: Disk1
>>>>      3: Tape
>>>> Select Storage resource (1-3): Unexpected question has been received.
>>>> 3
>>>> 3307 Issuing autochanger "unload slot 3, drive 0" command.
>>>> 3001 Device "VXA-172" (Tape0) unmounted.
>>>> #mount
>>>> The defined Storage resources are:
>>>>      1: Disk0
>>>>      2: Disk1
>>>>      3: Tape
>>>> Select Storage resource (1-3): Unexpected question has been received.
>>>> 3
>>>> Enter autochanger slot: Unexpected question has been received.
>>>> 3
>>>> 3301 Issuing autochanger "loaded? drive 0" command.
>>>> 3302 Autochanger "loaded? drive 0", result: nothing loaded.
>>>> 3304 Issuing autochanger "load slot 3, drive 0" command.
>>>> 3305 Autochanger "load slot 3, drive 0", status is OK.
>>>> 3301 Issuing autochanger "loaded? drive 0" command.
>>>> 3302 Autochanger "loaded? drive 0", result is Slot 3.
>>>> 3001 Device "VXA-172" (Tape0) is mounted with Volume "B0000001"
>>>> 02-Apr 08:23 elkton-sd: 3301 Issuing autochanger "loaded? drive 0" 
>>>>       
>>>>         
>> command.
>>   
>>     
>>>> 02-Apr 08:23 elkton-sd: 3302 Autochanger "loaded? drive 0", result is 
>>>> Slot 3.
>>>> 02-Apr 08:23 elkton-sd: 3301 Issuing autochanger "loaded? drive 0" 
>>>>       
>>>>         
>> command.
>>   
>>     
>>>> 02-Apr 08:23 elkton-sd: 3302 Autochanger "loaded? drive 0", result is 
>>>> Slot 3.
>>>> 02-Apr 08:23 elkton-sd: Wrote label to prelabeled Volume "B0000001" on 
>>>> device "VXA-172" (Tape0)
>>>> 02-Apr 08:23 elkton-sd: Spooling data ...
>>>> 02-Apr 08:23 elkton-sd: Spooling data ...
>>>>       
>>>>         
>>> Here is my sd.
>>>
>>> ################################
>>> # Definition of tape storage device
>>> ################################
>>> Autochanger {
>>>   Name = "Packetloader0"
>>>   Device = "VXA-172"
>>>   Changer Device = Changer0
>>>   Changer Command = "\"C:\\Program Files\\Bacula\\bin\\\"mtx-changer %c 
>>> %o %S %a %d"
>>> }
>>>
>>> Device {
>>>   Name = "VXA-172"
>>>   Drive Index =0
>>>   Device Type = Tape
>>>   Archive Device = Tape0
>>>   Changer Device = Changer0
>>>   LabelMedia = yes
>>>   AutomaticMount = yes
>>>   AlwaysOpen = no
>>>   RemovableMedia = yes 
>>>   RandomAccess = no
>>>   Hardware End of File = no
>>>   Media Type = X10
>>>   Autochanger = yes
>>>   Autoselect = yes
>>>   Minimum Block Size = 1024
>>>   Maximum Block Size = 245760
>>>   Changer Command = "\"C:\\Program Files\\Bacula\\bin\\\"mtx-changer %c 
>>> %o %S %a %d"
>>>   Spool directory = "d:\\bacula\\spool"
>>> }
So what debugging would I enable to get more information?  The SD or the 
Director?

brian-

-------------------------------------------------------------------------
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