Hello,
when I try to label and add tapes (in an autochanger with tape drives) to a
pool, I get errors and the tapedrive disapears in Linux.
I can see the autochanger with the drives in the webui and the tapes are also
listed. When I try to run *label barcodes I get errors that look like this:
--
Connecting to Storage daemon Tape at testbackup:9103 ...
Sending label command for Volume "000310" Slot 1 ...
3304 Issuing autochanger "load slot 1, drive 0" command.
3992 Bad autochanger "load slot 1, drive 0": ERR=Child exited with code 1.
Results=Loading media from Storage Element 1 into drive 0...mtx: Request Sense:
Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=70 (Current)
mtx: Request Sense: Sense Key=Illegal Request
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 20
mtx: Request Sense: Additional Sense Qualifier = 00
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
MOVE MEDIUM from Element Address 4096 to 256 Failed
Label command failed for Volume 000310.
Sending label command for Volume "SEQ064" Slot 2 ...
3991 Bad autochanger "loaded? drive 0" command: ERR=Child exited with code 1.
Results=mtx: Request Sense: Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=0 (Unknown?!)
mtx: Request Sense: Sense Key=No Sense
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 00
mtx: Request Sense: Additional Sense Qualifier = 00
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
Mode sense (0x1A) for Page 0x1D failed
mtx: Request Sense: Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=0 (Unknown?!)
mtx: Request Sense: Sense Key=No Sense
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 00
mtx: Request Sense: Additional Sense Qualifier = 00
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
READ ELEMENT STATUS Command Failed
3991 Bad autochanger "loaded? drive 0" command: ERR=Child exited with code 1.
Results=no Data Transfer Element reported
3991 Bad autochanger "loaded? drive 0" command: ERR=Child exited with code 1.
Results=no Data Transfer Element reported
3991 Bad autochanger "loaded? drive 1" command: ERR=Child exited with code 1.
Results=no Data Transfer Element reported
3304 Issuing autochanger "load slot 2, drive 0" command.
3992 Bad autochanger "load slot 2, drive 0": ERR=Child died from signal 15:
Termination.
Results=Program killed by BAREOS (timeout)
--
After these errors, the first tape drive (st/nst0) is not available in Linux
anymore:
--
> ls -l /dev/tape/by-id/
insgesamt 0
lrwxrwxrwx 1 root root 9 Jul 17 09:14 scsi-1QUANTUM_D1H0332614_LLA -> ../../sg2
lrwxrwxrwx 1 root root 9 Jul 17 09:14 scsi-3500308c38e0c9004 -> ../../st1
lrwxrwxrwx 1 root root 10 Jul 17 09:14 scsi-3500308c38e0c9004-nst -> ../../nst1
--
Is there something wrong with the mtx-changer command? Allthough I tested it
for example with: sudo /usr/lib/bareos/scripts/mtx-changer
/dev/tape/by-id/scsi-1QUANTUM_D1H0332614_LLA listall 0 which lists all tapes
correctly.
One strange thing I noticed is that I can't choose the pool Tape when I try to
label the tape via the webui (only the Scratch pool is available).
Here is my setup:
--
> ls -l /dev/tape/by-id/
insgesamt 0
lrwxrwxrwx 1 root root 9 Jul 17 09:14 scsi-1QUANTUM_D1H0332614_LLA -> ../../sg2
lrwxrwxrwx 1 root root 9 Jul 17 09:14 scsi-3500308c38e0c9000 -> ../../st0
lrwxrwxrwx 1 root root 10 Jul 17 09:14 scsi-3500308c38e0c9000-nst -> ../../nst0
lrwxrwxrwx 1 root root 9 Jul 17 09:14 scsi-3500308c38e0c9004 -> ../../st1
lrwxrwxrwx 1 root root 10 Jul 17 09:14 scsi-3500308c38e0c9004-nst -> ../../nst1
--
/etc/bareos/bareos-sd.d/autochanger/autochanger-0.conf
--
Autochanger {
Name = "autochanger-0"
Changer Device = /dev/tape/by-id/scsi-1QUANTUM_D1H0332614_LLA
Device = tapedrive-0
Device = tapedrive-1
Changer Command = "/usr/lib/bareos/scripts/mtx-changer %c %o %S %a %d"
}
--
/etc/bareos/bareos-sd.d/device/tapedrive-0.conf
--
Device {
Name = "tapedrive-0"
DeviceType = tape
DriveIndex = 0
ArchiveDevice = /dev/tape/by-id/scsi-3500308c38e0c9000-nst
MediaType = LTO6
Check Labels = yes
AutoChanger = yes
AutomaticMount = yes
MaximumFileSize = 10GB
}
--
/etc/bareos/bareos-sd.d/device/tapedrive-1.conf
--
Device {
Name = "tapedrive-1"
DeviceType = tape
DriveIndex = 1
ArchiveDevice = /dev/tape/by-id/scsi-3500308c38e0c9004-nst
MediaType = LTO6
Check Labels = yes
AutoChanger = yes
AutomaticMount = yes
MaximumFileSize = 10GB
}
--
/etc/bareos/bareos-dir.d/pool/Tape.conf
--
Pool {
Name = Tape
Pool Type = Backup
Recycle = yes # Bareos can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 7 days # How long should the Full Backups be
kept? (#06)
Cleaning Prefix = "CLN"
}
--
Regards
Paul
BTW: Is there some way of formatting the posts (especially for code blocks)? I
don't get any menu or something (just a text box) and searching for formatting
google groups didn't help either so I just tried dashes.
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.