Dear All ! Thanks for your suggestion to try restoring data, while doing that i realized that i could not read any of the tapes, they all gave the "Volume unlabeled" error. This made me search for a more global cause and it turned out that i had forgotten to upload the encryption key to the drive after the last power cycle:
> karl@sx252:~/bacula/repo/LTO/encryption$ sudo ./stenc -f > /dev/tape/by-id/scsi-C3EB53C004 --detail > Status for /dev/tape/by-id/scsi-C3EB53C004 > -------------------------------------------------- > Device Mfg: IBM > Product ID: ULTRIUM-HH7 > Product Revision: Q387 > Drive Encryption: off > Drive Output: Not decrypting > Raw encrypted data not outputted > Drive Input: Not encrypting > Key Instance Counter: 3 > Volume Encryption: Encrypted, but unable to decrypt due to invalid key. > Volume Key Desc.(uKAD): DGA2023 > Volume Algorithm: 3 > karl@sx252:~/bacula/repo/LTO/encryption$ sudo ./stenc -f > /dev/tape/by-id/scsi-C3EB53C004 -e on -k ./myaes.key -a 1 > Provided key length is 256 bits. > Key checksum is 141. > Turning on encryption on device '/dev/tape/by-id/scsi-C3EB53C004'... > Success! See '/var/log/stenc' for a key change audit log. > karl@sx252:~/bacula/repo/LTO/encryption$ sudo ./stenc -f > /dev/tape/by-id/scsi-C3EB53C004 --detail > Status for /dev/tape/by-id/scsi-C3EB53C004 > -------------------------------------------------- > Device Mfg: IBM > Product ID: ULTRIUM-HH7 > Product Revision: Q387 > Drive Encryption: on > Drive Output: Decrypting > Unencrypted data not outputted > Drive Input: Encrypting > Key Instance Counter: 4 > Encryption Algorithm: 1 > Drive Key Desc.(uKAD): DGA2023 > Volume Encryption: Encrypted and able to decrypt > Volume Algorithm: 3 > karl@sx252:~/bacula/repo/LTO/encryption$ Timeout, server sx252 not responding. So, for posterity: The Bacula Error "Volume appears to be unlabeled" > 22-Mar 08:42 bacula-sd JobId 1245: Error: [SE0203] The Volume=MU0014L7 on > device="LTO7-0" (/dev/tape/by-id/scsi- > C3EB53C004-nst) appears to be unlabeled. Is caused by the drive being unable to read any data off the tape due to missing decryption keys. Thanks all for your help, i really appreciate the quick and helpful answers, Cheers, KK > Assuming the command is available on your OS, what is the output of 'lsscsi'? > > Please paste the definitions for your tape devices from bacula-sd.conf > > What happens if you eject the tape, and then reinsert it? > > What happens if you attempt to restore data from this tape, or another tape > that was previously used > > What happens if you stop bacula, change the device type back to st from the > preferred nst, restart bacula, then > attempt to restore data? > > ################### > THE FOLLOWING SUGGESTIONS ARE DATA DESTRUCTIVE AND SHOULD BE RAN WITH A > NON-BACULA TAPE THAT DOES NOT HAVE IMPORTANT > DATA ON IT > ################### > What do you see if you take a scratch tape with no important data on it, > insert this tape into the drive, stop bacula, > start bacula's btape utility, and run the 'test' command? Please note that > all data on this tape will be erased! Since > you do have some new hardware, maybe initial testing like that done when > first setting up bacula could reveal whether > the tape drive / library are working the way we expect that they should be. > > Here are some resources on testing a tape drive, using btape, and > troubleshooting tape system settings. > > btape utility manual entry: > https://www.bacula.org/13.0.x-manuals/en/utility/Volume_Utility_Tools.html#SECTION001900000000000000000 > > Tape testing chapter from the problem resolution guide: > https://www.bacula.org/13.0.x-manuals/en/problems/Testing_Your_Tape_Drive_Wit.html#blb:TapeTestingChapter > > > Regards, > Robert Gerber > 402-237-8692 > r...@craeon.net > > > On Fri, Mar 22, 2024 at 8:56 AM MMag. Dr. Karl Kashofer <k...@kashofer.org> > wrote: > > Dear all ! > > > > I try to work with a 50 slot Quantum Scalar i3 Library with an IBM LTO7 > > drive. I have a set of 10 LTO7 tapes as a > > storage pool in bacula and it has been backing up user directories for a > > while. > > > > Recently we needed to swap the library chassis due to drive issues. I > > unmounted the library, shut down bacula, > > transferred the tapes to the new library (again a Quantum Scalar i3 with > > the drives from the old one), adjusted the > > scsi > > paths of the storage demon config and fired up bacula. During the change I > > did switch from the "st" to the "nst" > > devices > > as apparently these are preferred. > > > > Bacula now sees the changer device, sees the pool of tapes, but when it > > tried to do the next backup it horribly died > > on > > the current append volume with: > > > > 22-Mar 08:42 bacula-sd JobId 1245: Error: [SE0203] The Volume=MU0014L7 on > > device="LTO7-0" (/dev/tape/by-id/scsi- > > C3EB53C004-nst) appears to be unlabeled. > > > > There is already 45GB of data on that tape and i really dont see why it > > suddenly calls it "unlabeled". > > > > Any idea what could be wrong ? > > > > I did find this thread and am unsure if thats related: > > https://bacula-users.narkive.com/JWcvt8eZ/bacula-loses-tape-label > > > > Please help, > > Thanks, > > Karl > > > > _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users