Am 07.04.2018 um 22:11 schrieb Dan Langille: >> On Apr 1, 2018, at 11:12 AM, Sebastian Suchanek <[email protected]> wrote: >> >> [...] >> Any idea what exactly is going wrong here? What can I do to track down >> the reason for this error? What can I do to fix it? > > It is usually permissions. It it nearly always permission.
I agree - during my years of dealing with Linux, I've come across many problems that were caused by permission issues of some sort. > This might be your best bet: > https://dan.langille.org/2016/02/04/dell-tl4000-tape-library-running-btape-and-configuring-baculas-mtx-changer/ > [...] I repeated almost all tests you described in your blog post (of course adapted to my system): ----------------------------- 8< ----------------------------- bacula@tigersclaw:~$ lsscsi -g [0:0:1:0] tape HP Ultrium 4-SCSI H63H /dev/st0 /dev/sg3 [1:0:0:0] disk ATA Samsung SSD 850 2B6Q /dev/sda /dev/sg0 [2:0:0:0] disk ATA WDC WD40EFRX-68W 0A82 /dev/sdb /dev/sg1 [3:0:0:0] disk ATA WDC WD40EFRX-68W 0A82 /dev/sdc /dev/sg2 [7:0:0:0] mediumx OVERLAND NEO Series 0616 /dev/sch0 /dev/sg4 [7:0:0:1] tape SEAGATE ULTRIUM06242-XXX 1603 /dev/st1 /dev/sg5 bacula@tigersclaw:~$ /usr/sbin/mtx -f /dev/sg4 inquiry Product Type: Medium Changer Vendor ID: 'OVERLAND' Product ID: 'NEO Series ' Revision: '0616' Attached Changer API: No bacula@tigersclaw:~$ /usr/sbin/tapeinfo -f /dev/nst0 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 INQUIRY Command Failed bacula@tigersclaw:~$ /usr/sbin/tapeinfo -f /dev/sg3 Product Type: Tape Drive Vendor ID: 'HP ' Product ID: 'Ultrium 4-SCSI ' Revision: 'H63H' Attached Changer API: No SerialNumber: 'HUE4020D8F' MinBlock: 1 MaxBlock: 16777215 SCSI ID: 1 SCSI LUN: 0 Ready: yes BufferedMode: yes Medium Type: Not Loaded Density Code: 0x46 BlockSize: 0 DataCompEnabled: yes DataCompCapable: yes DataDeCompEnabled: yes CompType: 0x1 DeCompType: 0x1 BOP: yes Block Position: 0 Partition 0 Remaining Kbytes: 799204 Partition 0 Size in Kbytes: 799204 ActivePartition: 0 EarlyWarningSize: 0 NumPartitions: 0 MaxPartitions: 0 bacula@tigersclaw:~$ /usr/sbin/tapeinfo -f /dev/sg4 Product Type: Medium Changer Vendor ID: 'OVERLAND' Product ID: 'NEO Series ' Revision: '0616' Attached Changer API: No SerialNumber: '2B44300035' SCSI ID: 0 SCSI LUN: 0 Ready: yes bacula@tigersclaw:~$ /usr/sbin/mtx -f /dev/sg4 status Storage Changer /dev/sg4:2 Drives, 30 Slots ( 1 Import/Export ) Data Transfer Element 0:Full (Storage Element 1 Loaded):VolumeTag = SU1001L1 Data Transfer Element 1:Full (Storage Element 20 Loaded):VolumeTag = SU4101L4 Storage Element 1:Empty Storage Element 2:Full :VolumeTag=SU1002L1 Storage Element 3:Full :VolumeTag=SU1003L1 Storage Element 4:Full :VolumeTag=SU1004L1 Storage Element 5:Full :VolumeTag=SU1005L1 Storage Element 6:Full :VolumeTag=SU1006L1 Storage Element 7:Full :VolumeTag=SU1007L1 Storage Element 8:Full :VolumeTag=SU1008L1 Storage Element 9:Full :VolumeTag=SU1009L1 Storage Element 10:Full :VolumeTag=SU1010L1 Storage Element 11:Full :VolumeTag=SU1101L1 Storage Element 12:Full :VolumeTag=SU1102L1 Storage Element 13:Full :VolumeTag=SU1103L1 Storage Element 14:Full :VolumeTag=SU1104L1 Storage Element 15:Full :VolumeTag=SU4001L4 Storage Element 16:Full :VolumeTag=SU4002L4 Storage Element 17:Full :VolumeTag=SU4003L4 Storage Element 18:Full :VolumeTag=SU4004L4 Storage Element 19:Full :VolumeTag=SU4005L4 Storage Element 20:Empty Storage Element 21:Full :VolumeTag=SU4102L4 Storage Element 22:Full :VolumeTag=SU4103L4 Storage Element 23:Full :VolumeTag=SU4104L4 Storage Element 24:Full :VolumeTag=SU4105L4 Storage Element 25:Full :VolumeTag=SU4106L4 Storage Element 26:Full :VolumeTag=SU4107L4 Storage Element 27:Full :VolumeTag=SU4108L4 Storage Element 28:Full :VolumeTag=SU4109L4 Storage Element 29:Full :VolumeTag=SU4110L4 Storage Element 30 IMPORT/EXPORT:Empty bacula@tigersclaw:~$ /usr/sbin/mtx -f /dev/sg4 load 1 0 Loading media from Storage Element 1 into drive 0...done bacula@tigersclaw:~$ mt -f /dev/nst1 status SCSI 2 tape drive: File number=0, block number=0, partition=0. Tape block size 512 bytes. Density code 0x0 (default). Soft error count since last status=0 General status bits on (41010000): BOT ONLINE IM_REP_EN bacula@tigersclaw:~$ /etc/bacula/scripts/mtx-changer /dev/sg4 loaded x x 0 1 bacula@tigersclaw:~$ /etc/bacula/scripts/mtx-changer /dev/sg4 loaded x x 1 20 bacula@tigersclaw:~$ /etc/bacula/scripts/mtx-changer /dev/sg4 unload 20 /dev/nst0 1 Unloading drive 1 into Storage Element 20...done ----------------------------- 8< ----------------------------- The only test missing is the btape "fill" test run as the bacula user. (Because of lack of time so far.) As soon as I find the time for this, I'll post the result here. Best regards Sebastian ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Bacula-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-users
