Hello Kern, hello list,
good news!

This autochanger works perfectly (with bacula 1.38.9), see the attached file 
btape.ok:
Kern, you can add it to working autochangers  :-)

OS              Man.            Media           Model                   Slots   
Cap/Slot
Linux   Quantum         DLT-S4          Superloader 3           16              
800/1600 GB

This is what Rocco Diez from "www.Computacenter.de" got from Quantum Germany: 
"""
Hallo Herr Diez,
 
hiermit bestätigen wir die Zertifizierung für folgende Umgebung:
 
- Superloader 3 mit DLT-S4
- Gentoo Linux
- BackupSoftware Bacula 1.38.9
 
Mit freundlichen Grüßen 
Markus Kunkel
VAR Manager CE 
Quantum Storage Germany GmbH
Willy-Brandt-Allee 4
D-81829 München
"""

Because of this statement we bought the device from "Computacenter" an we will 
switch from testing to production very soon.

This is from our bacula-sd.conf-file
"""
Autochanger {
  Name = Autochanger
  Device = DLT-S4
  Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg1
}

Device {
  Name = DLT-S4
  Drive Index = 0
  Media Type = DLT-S4
  Archive Device = /dev/st0
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
  # Enable the Alert command only if you have the mtx package loaded
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}

"""

http://www.quantum.com/ServiceandSupport/SoftwareandDocumentationDownloads/SuperLoader3/Index.aspx

Best regards
Thomas
bacula2 ~ # btape -c /etc/bacula/bacula-sd.conf /dev/st0
Tape block granularity is 1024 bytes.
btape: butil.c:272 Using device: "/dev/st0" for writing.
27-Nov 15:25 btape: 3301 Issuing autochanger "loaded drive 0" command.
27-Nov 15:25 btape: 3302 Autochanger "loaded drive 0", result is Slot 5.
27-Nov 15:25 btape: 3301 Issuing autochanger "loaded drive 0" command.
27-Nov 15:25 btape: 3302 Autochanger "loaded drive 0", result is Slot 5.
btape: btape.c:338 open device "DLT-S4" (/dev/st0): OK
*test

=== Write, rewind, and re-read test ===

I'm going to write 1000 records and an EOF
then write 1000 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:795 Wrote 1000 blocks of 64412 bytes.
btape: btape.c:469 Wrote 1 EOF to "DLT-S4" (/dev/st0)
btape: btape.c:811 Wrote 1000 blocks of 64412 bytes.
btape: btape.c:469 Wrote 1 EOF to "DLT-S4" (/dev/st0)
btape: btape.c:820 Rewind OK.
1000 blocks re-read correctly.
Got EOF on tape.
1000 blocks re-read correctly.
=== Test Succeeded. End Write, rewind, and re-read test ===


=== Write, rewind, and position test ===

I'm going to write 1000 records and an EOF
then write 1000 records and an EOF, then rewind,
and position to a few blocks and verify that it is correct.

This is an *essential* feature ...

btape: btape.c:907 Wrote 1000 blocks of 64412 bytes.
btape: btape.c:469 Wrote 1 EOF to "DLT-S4" (/dev/st0)
btape: btape.c:923 Wrote 1000 blocks of 64412 bytes.
btape: btape.c:469 Wrote 1 EOF to "DLT-S4" (/dev/st0)
btape: btape.c:932 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:999
Block 1000 re-read correctly.
Reposition to file:block 1:0
Block 1001 re-read correctly.
Reposition to file:block 1:600
Block 1601 re-read correctly.
Reposition to file:block 1:999
Block 2000 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:438 Rewound "DLT-S4" (/dev/st0)
                                btape: btape.c:1531 Wrote one record of 64412 
bytes.
                                btape: btape.c:1533 Wrote block to device.
                                btape: btape.c:469 Wrote 1 EOF to "DLT-S4" 
(/dev/st0)
                                btape: btape.c:1531 Wrote one record of 64412 
bytes.
                                btape: btape.c:1533 Wrote block to device.
                                btape: btape.c:1531 Wrote one record of 64412 
bytes.
                                btape: btape.c:1533 Wrote block to device.
                                btape: btape.c:469 Wrote 1 EOF to "DLT-S4" 
(/dev/st0)
                                btape: btape.c:1531 Wrote one record of 64412 
bytes.
                                btape: btape.c:1533 Wrote block to device.
                                btape: btape.c:1531 Wrote one record of 64412 
bytes.
                                btape: btape.c:1533 Wrote block to device.
                                btape: btape.c:1531 Wrote one record of 64412 
bytes.
                                btape: btape.c:1533 Wrote block to device.
                                btape: btape.c:469 Wrote 1 EOF to "DLT-S4" 
(/dev/st0)
                                27-Nov 15:27 btape: 3301 Issuing autochanger 
"loaded drive 0" command.
                                27-Nov 15:27 btape: 3302 Autochanger "loaded 
drive 0", result is Slot 5.
                                btape: btape.c:338 open device "DLT-S4" 
(/dev/st0): OK
                                btape: btape.c:438 Rewound "DLT-S4" (/dev/st0)
                                btape: btape.c:1061 Now moving to end of medium.
                                btape: btape.c:490 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:1531 Wrote one record of 64412 
bytes.
                                btape: btape.c:1533 Wrote block to device.
                                btape: btape.c:469 Wrote 1 EOF to "DLT-S4" 
(/dev/st0)
                                btape: btape.c:438 Rewound "DLT-S4" (/dev/st0)
                                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:438 Rewound "DLT-S4" (/dev/st0)
                                btape: btape.c:674 Wrote first record of 64412 
bytes.
                                btape: btape.c:685 Wrote second record of 64412 
bytes.
                                btape: btape.c:696 Wrote third record of 64412 
bytes.
                                btape: btape.c:469 Wrote 1 EOF to "DLT-S4" 
(/dev/st0)
                                btape: btape.c:712 Backspaced over EOF OK.
                                btape: btape.c:717 Backspace record OK.
                                btape: btape.c:735
                                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:438 Rewound "DLT-S4" (/dev/st0)
                                btape: btape.c:1531 Wrote one record of 64412 
bytes.
                                btape: btape.c:1533 Wrote block to device.
                                btape: btape.c:469 Wrote 1 EOF to "DLT-S4" 
(/dev/st0)
                                btape: btape.c:1531 Wrote one record of 64412 
bytes.
                                btape: btape.c:1533 Wrote block to device.
                                btape: btape.c:1531 Wrote one record of 64412 
bytes.
                                btape: btape.c:1533 Wrote block to device.
                                btape: btape.c:469 Wrote 1 EOF to "DLT-S4" 
(/dev/st0)
                                btape: btape.c:1531 Wrote one record of 64412 
bytes.
                                btape: btape.c:1533 Wrote block to device.
                                btape: btape.c:1531 Wrote one record of 64412 
bytes.
                                btape: btape.c:1533 Wrote block to device.
                                btape: btape.c:1531 Wrote one record of 64412 
bytes.
                                btape: btape.c:1533 Wrote block to device.
                                btape: btape.c:469 Wrote 1 EOF to "DLT-S4" 
(/dev/st0)
                                btape: btape.c:1531 Wrote one record of 64412 
bytes.
                                btape: btape.c:1533 Wrote block to device.
                                btape: btape.c:1531 Wrote one record of 64412 
bytes.
                                btape: btape.c:1533 Wrote block to device.
                                btape: btape.c:469 Wrote 1 EOF to "DLT-S4" 
(/dev/st0)
                                btape: btape.c:1531 Wrote one record of 64412 
bytes.
                                btape: btape.c:1533 Wrote block to device.
                                btape: btape.c:469 Wrote 1 EOF to "DLT-S4" 
(/dev/st0)
                                btape: btape.c:438 Rewound "DLT-S4" (/dev/st0)
                                btape: btape.c:1276 Now forward spacing 1 file.
                                We should be in file 1. I am at file 1. This is 
correct!
                                btape: btape.c:1288 Now forward spacing 2 files.
                                We should be in file 3. I am at file 3. This is 
correct!
                                btape: btape.c:438 Rewound "DLT-S4" (/dev/st0)
                                btape: btape.c:1301 Now forward spacing 4 files.
                                We should be in file 4. I am at file 4. This is 
correct!

                                btape: btape.c:1319 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): y


                                 === Autochanger test ===

                                 3301 Issuing autochanger "loaded" command.
                                 Slot 5 loaded. I am going to unload it.
                                 3302 Issuing autochanger "unload 5 0" command.
                                 unload status=OK 0
                                 3303 Issuing autochanger "load 1 0" command.
                                 3303 Autochanger "load 1 0" status is OK.
                                 27-Nov 15:33 btape: 3301 Issuing autochanger 
"loaded drive 0" command.
                                 27-Nov 15:33 btape: 3302 Autochanger "loaded 
drive 0", result is Slot 1.
                                 btape: btape.c:338 open device "DLT-S4" 
(/dev/st0): OK
                                 btape: btape.c:1206 Rewound "DLT-S4" (/dev/st0)
                                 btape: btape.c:1213 Wrote EOF to "DLT-S4" 
(/dev/st0)

                                 The test autochanger worked!!

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