Hi I hope someone can help me or point me in the right direction. I have a bran new Quantum Scalar i500 with 5 drives and 125 slots. When ever I try to do "label barcodes" it fails with timeout errors. Bacula is reading the barcodes from the tape drive but is not labeling it.
============================================== This is my bacula-sd.conf: ============================================== Autochanger { Name = Autochanger Changer Device = /dev/sg3 Device = Ultrium-4-SCSI-1, Ultrium-4-SCSI-2, Ultrium-4-SCSI-3, Ultrium-4-SCSI-4, Ultrium-4-SCSI-5 Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d" } Device { Name = Ultrium-4-SCSI-1 # Archive Device = /dev/nst0 Device Type = Tape Media Type = ULTRIUM-LTO-4 Autochanger = Yes Alert Command = "sh -c 'smartctl -H -l error %c'" Drive Index = 0 RemovableMedia = yes Random Access = no Maximum Spool Size = 30gb Maximum Job Spool Size = 10gb Spool Directory = /var/spool/backup } Device { Name = Ultrium-4-SCSI-2 # Archive Device = /dev/nst1 Device Type = Tape Media Type = ULTRIUM-LTO-4 Autochanger = Yes Alert Command = "sh -c 'smartctl -H -l error %c'" Drive Index = 1 RemovableMedia = yes Random Access = no Maximum Spool Size = 30gb Maximum Job Spool Size = 10gb Spool Directory = /var/spool/backup } Device { Name = Ultrium-4-SCSI-3 # Archive Device = /dev/nst2 Device Type = Tape Media Type = ULTRIUM-LTO-4 Autochanger = Yes Alert Command = "sh -c 'smartctl -H -l error %c'" Drive Index = 2 RemovableMedia = yes Random Access = no Maximum Spool Size = 30gb Maximum Job Spool Size = 10gb Spool Directory = /var/spool/backup } Device { Name = Ultrium-4-SCSI-4 # Archive Device = /dev/nst3 Device Type = Tape Media Type = ULTRIUM-LTO-4 Autochanger = Yes Alert Command = "sh -c 'smartctl -H -l error %c'" Drive Index = 3 RemovableMedia = yes Random Access = no Maximum Spool Size = 30gb Maximum Job Spool Size = 10gb Spool Directory = /var/spool/backup } Device { Name = Ultrium-4-SCSI-5 # Archive Device = /dev/nst4 Device Type = Tape Media Type = ULTRIUM-LTO-4 Autochanger = Yes Alert Command = "sh -c 'smartctl -H -l error %c'" Drive Index = 4 RemovableMedia = yes Random Access = no Maximum Spool Size = 30gb Maximum Job Spool Size = 10gb Spool Directory = /var/spool/backup } ============================================== and this is my bacula-dir.conf ============================================== Storage { Name = Autochanger Address = rhbackup3 SDPort = 9103 Password = "somepasswd" Device = Autochanger Media Type = ULTRIUM-LTO-4 Autochanger = yes } ============================================== When I run the btape test it works fine with no issues or errors. btape -c /etc/bacula/bacula-sd.conf /dev/nst3 Tape block granularity is 1024 bytes. btape: butil.c:284 Using device: "/dev/nst3" for writing. 26-Apr 11:14 btape JobId 0: 3301 Issuing autochanger "loaded? drive 3" command. 26-Apr 11:14 btape JobId 0: 3302 Autochanger "loaded? drive 3", result: nothing loaded. 26-Apr 11:14 btape JobId 0: 3301 Issuing autochanger "loaded? drive 3" command. 26-Apr 11:14 btape JobId 0: 3302 Autochanger "loaded? drive 3", result: nothing loaded. btape: btape.c:476 open device "Ultrium-4-SCSI-4" (/dev/nst3): OK *test === Write, rewind, and re-read test === I'm going to write 10000 records and an EOF then write 10000 records and an EOF, then rewind, and re-read the data to verify that it is correct. This is an *essential* feature ... btape: btape.c:1148 Wrote 10000 blocks of 64412 bytes. btape: btape.c:608 Wrote 1 EOF to "Ultrium-4-SCSI-4" (/dev/nst3) btape: btape.c:1164 Wrote 10000 blocks of 64412 bytes. btape: btape.c:608 Wrote 1 EOF to "Ultrium-4-SCSI-4" (/dev/nst3) btape: btape.c:1206 Rewind OK. 10000 blocks re-read correctly. Got EOF on tape. 10000 blocks re-read correctly. === Test Succeeded. End Write, rewind, and re-read test === btape: btape.c:1274 Block position test btape: btape.c:1286 Rewind OK. Reposition to file:block 0:4 Block 5 re-read correctly. Reposition to file:block 0:200 Block 201 re-read correctly. Reposition to file:block 0:9999 Block 10000 re-read correctly. Reposition to file:block 1:0 Block 10001 re-read correctly. Reposition to file:block 1:600 Block 10601 re-read correctly. Reposition to file:block 1:9999 Block 20000 re-read correctly. === Test Succeeded. End Write, rewind, and re-read test === === Append files test === This test is essential to Bacula. I'm going to write one record in file 0, two records in file 1, and three records in file 2 btape: btape.c:578 Rewound "Ultrium-4-SCSI-4" (/dev/nst3) btape: btape.c:1905 Wrote one record of 64412 bytes. btape: btape.c:1907 Wrote block to device. btape: btape.c:608 Wrote 1 EOF to "Ultrium-4-SCSI-4" (/dev/nst3) btape: btape.c:1905 Wrote one record of 64412 bytes. btape: btape.c:1907 Wrote block to device. btape: btape.c:1905 Wrote one record of 64412 bytes. btape: btape.c:1907 Wrote block to device. btape: btape.c:608 Wrote 1 EOF to "Ultrium-4-SCSI-4" (/dev/nst3) btape: btape.c:1905 Wrote one record of 64412 bytes. btape: btape.c:1907 Wrote block to device. btape: btape.c:1905 Wrote one record of 64412 bytes. btape: btape.c:1907 Wrote block to device. btape: btape.c:1905 Wrote one record of 64412 bytes. btape: btape.c:1907 Wrote block to device. btape: btape.c:608 Wrote 1 EOF to "Ultrium-4-SCSI-4" (/dev/nst3) 26-Apr 11:15 btape JobId 0: 3301 Issuing autochanger "loaded? drive 3" command. 26-Apr 11:15 btape JobId 0: 3302 Autochanger "loaded? drive 3", result: nothing loaded. btape: btape.c:476 open device "Ultrium-4-SCSI-4" (/dev/nst3): OK btape: btape.c:578 Rewound "Ultrium-4-SCSI-4" (/dev/nst3) btape: btape.c:1418 Now moving to end of medium. btape: btape.c:629 Moved to end of medium. We should be in file 3. I am at file 3. This is correct! Now the important part, I am going to attempt to append to the tape. btape: btape.c:1905 Wrote one record of 64412 bytes. btape: btape.c:1907 Wrote block to device. btape: btape.c:608 Wrote 1 EOF to "Ultrium-4-SCSI-4" (/dev/nst3) btape: btape.c:578 Rewound "Ultrium-4-SCSI-4" (/dev/nst3) Done appending, there should be no I/O errors Doing Bacula scan of blocks: 1 block of 64448 bytes in file 1 End of File mark. 2 blocks of 64448 bytes in file 2 End of File mark. 3 blocks of 64448 bytes in file 3 End of File mark. 1 block of 64448 bytes in file 4 End of File mark. Total files=4, blocks=7, bytes = 451,136 End scanning the tape. We should be in file 4. I am at file 4. This is correct! The above Bacula scan should have output identical to what follows. Please double check it ... === Sample correct output === 1 block of 64448 bytes in file 1 End of File mark. 2 blocks of 64448 bytes in file 2 End of File mark. 3 blocks of 64448 bytes in file 3 End of File mark. 1 block of 64448 bytes in file 4 End of File mark. Total files=4, blocks=7, bytes = 451,136 === End sample correct output === If the above scan output is not identical to the sample output, you MUST correct the problem or Bacula will not be able to write multiple Jobs to the tape. === Write, backup, and re-read test === I'm going to write three records and an EOF then backup over the EOF and re-read the last record. Bacula does this after writing the last block on the tape to verify that the block was written correctly. This is not an *essential* feature ... btape: btape.c:578 Rewound "Ultrium-4-SCSI-4" (/dev/nst3) btape: btape.c:813 Wrote first record of 64412 bytes. btape: btape.c:824 Wrote second record of 64412 bytes. btape: btape.c:835 Wrote third record of 64412 bytes. btape: btape.c:608 Wrote 1 EOF to "Ultrium-4-SCSI-4" (/dev/nst3) btape: btape.c:851 Backspaced over EOF OK. btape: btape.c:856 Backspace record OK. btape: btape.c:874 Block re-read correct. Test succeeded! === End Write, backup, and re-read test === === Forward space files test === This test is essential to Bacula. I'm going to write five files then test forward spacing btape: btape.c:578 Rewound "Ultrium-4-SCSI-4" (/dev/nst3) btape: btape.c:1905 Wrote one record of 64412 bytes. btape: btape.c:1907 Wrote block to device. btape: btape.c:608 Wrote 1 EOF to "Ultrium-4-SCSI-4" (/dev/nst3) btape: btape.c:1905 Wrote one record of 64412 bytes. btape: btape.c:1907 Wrote block to device. btape: btape.c:1905 Wrote one record of 64412 bytes. btape: btape.c:1907 Wrote block to device. btape: btape.c:608 Wrote 1 EOF to "Ultrium-4-SCSI-4" (/dev/nst3) btape: btape.c:1905 Wrote one record of 64412 bytes. btape: btape.c:1907 Wrote block to device. btape: btape.c:1905 Wrote one record of 64412 bytes. btape: btape.c:1907 Wrote block to device. btape: btape.c:1905 Wrote one record of 64412 bytes. btape: btape.c:1907 Wrote block to device. btape: btape.c:608 Wrote 1 EOF to "Ultrium-4-SCSI-4" (/dev/nst3) btape: btape.c:1905 Wrote one record of 64412 bytes. btape: btape.c:1907 Wrote block to device. btape: btape.c:1905 Wrote one record of 64412 bytes. btape: btape.c:1907 Wrote block to device. btape: btape.c:608 Wrote 1 EOF to "Ultrium-4-SCSI-4" (/dev/nst3) btape: btape.c:1905 Wrote one record of 64412 bytes. btape: btape.c:1907 Wrote block to device. btape: btape.c:608 Wrote 1 EOF to "Ultrium-4-SCSI-4" (/dev/nst3) btape: btape.c:578 Rewound "Ultrium-4-SCSI-4" (/dev/nst3) btape: btape.c:1632 Now forward spacing 1 file. We should be in file 1. I am at file 1. This is correct! btape: btape.c:1644 Now forward spacing 2 files. We should be in file 3. I am at file 3. This is correct! btape: btape.c:578 Rewound "Ultrium-4-SCSI-4" (/dev/nst3) btape: btape.c:1657 Now forward spacing 4 files. We should be in file 4. I am at file 4. This is correct! btape: btape.c:1675 Now forward spacing 1 more file. We should be in file 5. I am at file 5. This is correct! === End Forward space files test === Ah, I see you have an autochanger configured. To test the autochanger you must have a blank tape that I can write on in Slot 1. Do you wish to continue with the Autochanger test? (y/n): yes === Autochanger test === 3301 Issuing autochanger "loaded" command. Nothing loaded in the drive. OK. 3303 Issuing autochanger "load 1 3" command. 3303 Autochanger "load 1 3" status is OK. 26-Apr 11:17 btape JobId 0: 3301 Issuing autochanger "loaded? drive 3" command. 26-Apr 11:18 btape JobId 0: 3302 Autochanger "loaded? drive 3", result is Slot 1. btape: btape.c:476 open device "Ultrium-4-SCSI-4" (/dev/nst3): OK btape: btape.c:1562 Rewound "Ultrium-4-SCSI-4" (/dev/nst3) btape: btape.c:1569 Wrote EOF to "Ultrium-4-SCSI-4" (/dev/nst3) The test autochanger worked!! ============================================= But then when I am in bconsole and try to do label barcodes I get: rhbackup3 bacula]# bconsole Connecting to Director uk5-rhbackup3:9101 1000 OK: rhbackup3.mblox.com-dir Version: 5.0.1 (24 February 2010) Enter a period to cancel a command. *label barcodes slots=1 Automatically selected Catalog: MyCatalog Using Catalog "MyCatalog" The defined Storage resources are: 1: File 2: Autochanger Select Storage resource (1-2): 2 Connecting to Storage daemon Autochanger at rhbackup3:9103 ... Enter autochanger drive[0]: Connecting to Storage daemon Autochanger at rhbackup3:9103 ... 3306 Issuing autochanger "slots" command. Device "Autochanger" has 131 slots. Connecting to Storage daemon Autochanger at rhbackup3:9103 ... 3306 Issuing autochanger "list" command. The following Volumes will be labeled: Slot Volume ============== 1 MBX181 Do you want to label these Volumes? (yes|no): yes Defined Pools: 1: Default 2: File 3: Scratch Select the Pool (1-3): 1 Connecting to Storage daemon Autochanger at rhbackup3:9103 ... Sending label command for Volume "MBX181" Slot 1 ... 3301 Issuing autochanger "loaded? drive 0" command. 3302 Autochanger "loaded? drive 0", result: nothing loaded. 3304 Issuing autochanger "load slot 1, drive 0" command. 3992 Bad autochanger "load slot 1, drive 0": ERR=Child died from signal 15: Termination. Results=Program killed by Bacula (timeout) Label command failed for Volume MBX181. I also have 20100426-15:37:17 Device /dev/nst0 - not ready, retrying... in the log. I am not sure what I am doing wrong here, if anyone has had this before...please help. Also let me know if there is any other information that you might need. ekke85 +---------------------------------------------------------------------- |This was sent by ekk...@gmail.com via Backup Central. |Forward SPAM to ab...@backupcentral.com. +---------------------------------------------------------------------- ------------------------------------------------------------------------------ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users