[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bacula-users
Subject:    Re: [Bacula-users] Can't Label Tapes
From:       Radosław_Korzeniewski <radoslaw () korzeniewski ! net>
Date:       2021-11-11 15:28:32
Message-ID: CAF_EmoBt3+QxgT97rdRQ5MOAQ_h2DW9CmqKTdAj+LeZKJEcpwQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello,

śr., 10 lis 2021 o 17:04 Jeffrey Di Domenico <jdidomenico@integrafin.co.uk>
napisał(a):

> 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
>
> So, from I can see you have a following devices you should use:
- autochanger device: /dev/sg39
- storage device #0 /dev/nst0
- storage device #1 /dev/nst1

For the mtx command you should always use an "autochanger device" as
described above. Others simply won't work.

> If i do use st0 and st1
>
???
Why?

> [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]#
>
You should make sure that the following command will run without any
issues: mtx -f /dev/sg39 status
Then you can move to Bacula configuration. If this command won't work for
you then Bacula won't work either.

You should check kernel logs or events at the tape library to check what is
going on. Then simply solve it.

best regards
-- 
Radosław Korzeniewski
radoslaw@korzeniewski.net

[Attachment #5 (text/html)]

<div dir="ltr"><div dir="ltr">Hello,</div><br><div class="gmail_quote"><div dir="ltr" \
class="gmail_attr">śr., 10 lis 2021 o 17:04  Jeffrey Di Domenico &lt;<a \
href="mailto:jdidomenico@integrafin.co.uk">jdidomenico@integrafin.co.uk</a>&gt; \
napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">  
    
  
  <div>
    <p>Hi,</p>
    <p>Yeah see the below output from lsscsi<br>
    </p>
    <p><font face="Courier New">lsscsi -g</font></p>
    <p><font face="Courier New">[8:0:0:0]       tape       HP             Ultrium
        5-SCSI     Y6PW   /dev/st1     /dev/sg40<br>
        [9:0:0:0]       tape       HP             Ultrium 5-SCSI     Y6PW   /dev/st0  \
  /dev/sg38<br>
        [9:0:0:1]       mediumx HP             MSL G3 Series       9.40   /dev/sch0  
        /dev/sg39</font><br>
    </p>
    <p></p></div></blockquote><div>So, from I can see you have a following devices \
you should use:</div><div>- autochanger device: /dev/sg39</div><div>- storage device \
#0 /dev/nst0</div><div><div>- storage device #1 \
/dev/nst1</div><div><br></div></div><div>For the mtx command you should always use an \
&quot;autochanger device&quot; as described above. Others simply won&#39;t \
work.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><p>If i do use \
st0 and st1</p></div></blockquote><div>???</div><div>Why?</div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div><p><font face="Courier New">  [root@union \
bacula]# ./mtx-changer /dev/st1 listall<br>  cannot open SCSI device \
&#39;/dev/st1&#39; - No medium found<br>  [root@union bacula]# ./mtx-changer /dev/st0 \
listall<br>  mtx: Request Sense: Long Report=yes<br>
        mtx: Request Sense: Valid Residual=no<br>
        mtx: Request Sense: Error Code=70 (Current)<br>
        mtx: Request Sense: Sense Key=Illegal Request<br>
        mtx: Request Sense: FileMark=no<br>
        mtx: Request Sense: EOM=no<br>
        mtx: Request Sense: ILI=no<br>
        mtx: Request Sense: Additional Sense Code = 20<br>
        mtx: Request Sense: Additional Sense Qualifier = 00<br>
        mtx: Request Sense: BPV=no<br>
        mtx: Request Sense: Error in CDB=no<br>
        mtx: Request Sense: SKSV=no<br>
        READ ELEMENT STATUS Command Failed<br>
        [root@union bacula]#</font><br></p></div></blockquote><div>You should make \
sure that the following command will run without any issues: mtx -f /dev/sg39 \
status</div><div>Then you can move to Bacula configuration. If this command won&#39;t \
work for you then Bacula won&#39;t work  either.</div><div>  </div><div>You should \
check kernel logs or events at the tape library to check what is going on. Then \
simply solve it.</div><div><br></div><div>best regards</div></div>-- <br><div \
dir="ltr" class="gmail_signature">Radosław Korzeniewski<br><a \
href="mailto:radoslaw@korzeniewski.net" \
target="_blank">radoslaw@korzeniewski.net</a></div></div>





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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic