Hi,

Yeah see the below output from lsscsi

lsscsi -g

[8:0:0:0]    tape    HP       Ultrium 5-SCSI   Y6PW  /dev/st1   /dev/sg40
[9:0:0:0]    tape    HP       Ultrium 5-SCSI   Y6PW  /dev/st0 /dev/sg38
[9:0:0:1]    mediumx HP       MSL G3 Series    9.40  /dev/sch0 /dev/sg39

If i do use st0 and st1


[root@union bacula]# ./mtx-changer /dev/st1 listall
cannot open SCSI device '/dev/st1' - No medium found
[root@union bacula]# ./mtx-changer /dev/st0 listall
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 bacula]#

thanks,

Jeff di domenico.

On 10/11/2021 1:53 pm, Radosław Korzeniewski wrote:
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

--
Jeffrey Di Domenico
Systems Administrator

Direct: +44 020 7608 7463

Email:jdidomen...@integrafin.co.uk
Transact - take control

Phone: +44 (0)20 7608 4900
Web:www.transact-online.co.uk
Address: 29 Clement's Lane, London EC4N 7AE
Please consider the environment before printing this email
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to