Re: [Bacula-users] Can't Label Tapes

2021-11-10 Thread Jeffrey Di Domenico

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 
 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


Re: [Bacula-users] Can't Label Tapes

2021-11-10 Thread Radosław Korzeniewski
Hello,

śr., 10 lis 2021 o 12:08 Jeffrey Di Domenico 
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


[Bacula-users] Can't resume failed restore job

2021-11-10 Thread Samuel Zaslavsky
Hello everyone,

I created a restore job that failed because of no more space on the
targeted hard drive.
I changed the hard drive, remounted it, etc, and tried a resume command,
but this causes an error :

*Could not get pool record for selected JobId=587. ERR=*


This restore job is quite long ( I have to change target HDD, insert and
remove tapes from LTO, etc.), so I would be pleased if I can resume it
instead of starting all over.

Does anyone have any hint on how to work around this ?

Thanks a lot for your help !

Samuel
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Can't Label Tapes

2021-11-10 Thread Jeffrey Di Domenico

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.



[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]#

[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

[root@union dev]#

[root@union dev]# mtx-changer /dev/sg40 listall
-bash: mtx-changer: command not found
[root@union dev]#

On 05/11/2021 5:35 pm, Radosław Korzeniewski wrote:

Hello,

pt., 5 lis 2021 o 17:52 Jeffrey Di Domenico 
 napisał(a):


Hi,

I have loaded new tapes with physical labels but Bacula can't
label them, I get the timeout error below but I've had them in the
past and Bacula has still labelled the tapes, I can't see that
there is anything wrong with the drives and it doesn't seem to be
taking that long but it fails every time. Any suggestions for what
I can do to resolve this would be greatly appreciated.

I assume you are trying to use a standard SCSI library and not 
the ACSLS managed one, right?


First of all check if your library is working with standard mtx 
utility (i.e. mtx -f /dev/sg0 status). If not, solve it in the first 
place as Bacula is using mtx to manage tape cartridges in your library.
Then check if a standard bacula mtx-changer script is working with the 
command: listall (i.e. mtx-changer /dev/sg0 listall).
The `/dev/sg0` device in the examples above is the scsi generic device 
for your changer. To check which device to use, check with lsscsi -g 
command.


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