Hello,

śr., 10 lis 2021 o 12:08 Jeffrey Di Domenico <jdidomen...@integrafin.co.uk>
napisał(a):

> Hi,
>
> Thanks for responding.
>
> I assume you are trying to use a standard SCSI library and not the ACSLS
> managed one, right? - yes.
>
> The rest of the answers are below, the mtx -f command fails so that
> doesn't seem to be working, I hadn't tried that yet so have only just seen
> it, also mtx-changer command doesn't exist.
>
The `mtx-changer` command is located at Bacula's script directory, so in my
setup it is at: `/opt/bacula/scripts/mtx-changer`.
It is not at the $PATH until you explicitly add it.


>
> [root@union dev]# mtx -f /dev/sg38 status
> 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
> READ ELEMENT STATUS Command Failed
> [root@union dev]# mtx -f /dev/sg40 status
> 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
> READ ELEMENT STATUS Command Failed
> [root@union dev]#
>
You should resolve the errors above before you will be able to use Bacula
for this library.
BTW. Are you sure that `/dev/sg38` and `/dev/sg40` are your changer devices?
What does `lsscsi -g | grep mediumx` show?


>
>
> [root@union dev]# mtx -f /dev/sg40 inquiry
> Product Type: Tape Drive
> Vendor ID: 'HP      '
> Product ID: 'Ultrium 5-SCSI  '
> Revision: 'Y6PW'
> Attached Changer API: No
> [root@union dev]# mtx -f /dev/sg38 inquiry
> Product Type: Tape Drive
> Vendor ID: 'HP      '
> Product ID: 'Ultrium 5-SCSI  '
> Revision: 'Y6PW'
> Attached Changer API: No
>
So `/dev/sg40` is not your changer device for sure. It is a tape drive
device.


> [root@union dev]#
>
> [root@union dev]# mtx-changer /dev/sg40 listall
> -bash: mtx-changer: command not found
>
Check where your mtx-changer script from Bacula distribution is located.

I hope this helps.
-- 
Radosław Korzeniewski
rados...@korzeniewski.net
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to