Hi 

 

We have got Bacula-Mysql 2.0.3-1 loaded on Fedora Core 6
(2.6.20-1.2948.fc6) and we are having trouble with the Autoloader

 

The Autoloader is a HP MSL5030 with two Ultrium 2 drives

 

We have mtx-1.2.18-8.2.2 loaded and this seems to be OK.

 

Here is an extract from our bacula-sd.conf

 

Autochanger {

  Name = "HPML5300"

  Device = Drive0, Drive1

  Changer Device = /dev/sg0

  Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"

}

 

Device {

  Name = Drive0

  Drive Index = 0

  Media Type = LTO2

  Archive Device = /dev/nst0    # Normal archive device

  AutoChanger = yes

  LabelMedia = no;

  AutomaticMount = yes;

  AlwaysOpen = yes;

  Maximum Changer Wait = 180;

  RemovableMedia = yes;

}

 

Device {

  Name = Drive1

  Drive Index = 1

  Media Type = LTO2

  Archive Device = /dev/nst1    # Normal archive device

  Autochanger = yes

  LabelMedia = no;

  AutomaticMount = yes;

  AlwaysOpen = yes;

  Maximum Changer Wait = 180;

  RemovableMedia = yes;

}

 

 

Here is the extract from our bacula-dir.conf

 

Storage {

  Name = HPML5300

  Address = backup                # N.B. Use a fully qualified name here

  SDPort = 9103

  Password = "bacula2007"

  Device = HPML5300

  Media Type = LTO2

  Autochanger = yes

}

 

This is the error message we are getting when we issue a label barcodes
command

 

*label barcodes

Automatically selected Storage: HPML5300

Connecting to Storage daemon HPML5300 at backup:9103 ...

Enter autochanger drive[0]:

Connecting to Storage daemon HPML5300 at backup:9103 ...

3306 Issuing autochanger "slots" command.

Device "HPML5300" has 30 slots.

Connecting to Storage daemon HPML5300 at backup:9103 ...

3306 Issuing autochanger "list" command.

The following Volumes will be labeled:

Slot  Volume

==============

   1  STA697L2

   2  STA696L2

   3  STA695L2

   4  STA694L2

   5  STA693L2

Do you want to continue? (yes|no): yes

Defined Pools:

     1: Monday

     2: Tuesday

     3: Wednesday

     4: Thursday

     5: Friday

     6: Archive

Select the Pool (1-6): 5

Connecting to Storage daemon HPML5300 at backup:9103 ...

Sending label command for Volume "STA697L2" Slot 1 ...

3301 Issuing autochanger "loaded? drive 0" command.

3302 Autochanger "loaded? drive 0", result: nothing loaded.

3304 Issuing autochanger "load slot 1, drive 0" command.

3305 Autochanger "load slot 1, drive 0", status is OK.

3301 Issuing autochanger "loaded? drive 0" command.

3302 Autochanger "loaded? drive 0", result is Slot 1.

block.c:993 Read error on fd=5 at file:blk 0:0 on device "Drive0"
(/dev/nst0). ERR=Input/output error.

3000 OK label. VolBytes=64512 DVD=0 Volume="STA697L2" Device="Drive0"
(/dev/nst0)

Catalog record for Volume "STA697L2", Slot 1  successfully created.

Sending label command for Volume "STA696L2" Slot 2 ...

3301 Issuing autochanger "loaded? drive 0" command.

3302 Autochanger "loaded? drive 0", result is Slot 1.

3307 Issuing autochanger "unload slot 1, drive 0" command.

3995 Bad autochanger "unload slot 1, drive 0": ERR=Child exited with
code 1

Results=Unloading Data Transfer Element into Storage Element 1...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 = 53

mtx: Request Sense: Additional Sense Qualifier = 02

mtx: Request Sense: BLabel command failed for Volume STA696L2.

Sending label command for Volume "STA695L2" Slot 3 ...

3301 Issuing autochanger "loaded? drive 0" command.

3302 Autochanger "loaded? drive 0", result is Slot 1.

3307 Issuing autochanger "unload slot 1, drive 0" command.

3304 Issuing autochanger "load slot 3, drive 0" command.

3305 Autochanger "load slot 3, drive 0", status is OK.

3301 Issuing autochanger "loaded? drive 0" command.

3302 Autochanger "loaded? drive 0", result is Slot 3.

block.c:993 Read error on fd=5 at file:blk 0:0 on device "Drive0"
(/dev/nst0). ERR=Input/output error.

3000 OK label. VolBytes=64512 DVD=0 Volume="STA695L2" Device="Drive0"
(/dev/nst0)

Catalog record for Volume "STA695L2", Slot 3  successfully created.

Sending label command for Volume "STA694L2" Slot 4 ...

3301 Issuing autochanger "loaded? drive 0" command.

3302 Autochanger "loaded? drive 0", result is Slot 3.

3307 Issuing autochanger "unload slot 3, drive 0" command.

3304 Issuing autochanger "load slot 4, drive 0" command.

3305 Autochanger "load slot 4, drive 0", status is OK.

3301 Issuing autochanger "loaded? drive 0" command.

3302 Autochanger "loaded? drive 0", result is Slot 4.

block.c:993 Read error on fd=5 at file:blk 0:0 on device "Drive0"
(/dev/nst0). ERR=Input/output error.

3000 OK label. VolBytes=64512 DVD=0 Volume="STA694L2" Device="Drive0"
(/dev/nst0)

Catalog record for Volume "STA694L2", Slot 4  successfully created.

Sending label command for Volume "STA693L2" Slot 5 ...

3301 Issuing autochanger "loaded? drive 0" command.

3302 Autochanger "loaded? drive 0", result is Slot 4.

3307 Issuing autochanger "unload slot 4, drive 0" command.

3304 Issuing autochanger "load slot 5, drive 0" command.

3305 Autochanger "load slot 5, drive 0", status is OK.

3301 Issuing autochanger "loaded? drive 0" command.

3302 Autochanger "loaded? drive 0", result is Slot 5.

block.c:993 Read error on fd=5 at file:blk 0:0 on device "Drive0"
(/dev/nst0). ERR=Input/output error.

3000 OK label. VolBytes=64512 DVD=0 Volume="STA693L2" Device="Drive0"
(/dev/nst0)

Catalog record for Volume "STA693L2", Slot 5  successfully created.

*

As you can see it failed to label the volume in slot 2

 

This occurs all the time, however we sometime get the same issue when
labelling tapes in slot 4 as well.

 

I have removed the # ${MTX} -f $ctl inventory but this made no
difference

 

   list)

      debug "Doing mtx -f $ctl -- to list volumes"

      make_temp_file

# Enable the following if you are using barcodes and need an inventory

     ${MTX} -f $ctl inventory

      ${MTX} -f $ctl status >${TMPFILE}

      rtn=$?

      cat ${TMPFILE} | grep " *Storage Element [0-9]*:.*Full" | awk
"{print \$3 \$4}" | sed "s/Full *\(:VolumeTag=\)*//"

      cat ${TMPFILE} | grep "^Data Transfer Element [0-9]*:Full (Storage
Element [0-9]" | awk '{printf "%s:%s\n",$7,$10}'

      rm -f ${TMPFILE} >/dev/null 2>&1

 

 

I have turned on the debug in the mtx-changer script and here is the
output

 

20070506-01:04:43 Parms: /dev/sg0 slots 0 /dev/nst0 0

20070506-01:04:43 Doing mtx -f /dev/sg0 -- to get count of slots

20070506-01:04:43 Parms: /dev/sg0 list 0 /dev/nst0 0

20070506-01:04:43 Doing mtx -f /dev/sg0 -- to list volumes

20070506-01:05:08 Parms: /dev/sg0 loaded 1 /dev/nst0 0

20070506-01:05:08 Doing mtx -f /dev/sg0 0 -- to find what is loaded

20070506-01:05:08 Parms: /dev/sg0 load 1 /dev/nst0 0

20070506-01:05:08 Doing mtx -f /dev/sg0 load 1 0

20070506-01:05:43 Parms: /dev/sg0 loaded 1 /dev/nst0 0

20070506-01:05:43 Doing mtx -f /dev/sg0 0 -- to find what is loaded

20070506-01:05:58 Parms: /dev/sg0 loaded 2 /dev/nst0 0

20070506-01:05:58 Doing mtx -f /dev/sg0 0 -- to find what is loaded

20070506-01:05:58 Parms: /dev/sg0 unload 1 /dev/nst0 0

20070506-01:05:58 Doing mtx -f /dev/sg0 unload 1 0

20070506-01:06:05 Parms: /dev/sg0 loaded 3 /dev/nst0 0

20070506-01:06:05 Doing mtx -f /dev/sg0 0 -- to find what is loaded

20070506-01:06:05 Parms: /dev/sg0 unload 1 /dev/nst0 0

20070506-01:06:05 Doing mtx -f /dev/sg0 unload 1 0

20070506-01:06:35 Parms: /dev/sg0 load 3 /dev/nst0 0

20070506-01:06:35 Doing mtx -f /dev/sg0 load 3 0

20070506-01:07:10 Parms: /dev/sg0 loaded 3 /dev/nst0 0

20070506-01:07:10 Doing mtx -f /dev/sg0 0 -- to find what is loaded

20070506-01:07:25 Parms: /dev/sg0 loaded 4 /dev/nst0 0

20070506-01:07:25 Doing mtx -f /dev/sg0 0 -- to find what is loaded

20070506-01:07:26 Parms: /dev/sg0 unload 3 /dev/nst0 0

20070506-01:07:26 Doing mtx -f /dev/sg0 unload 3 0

20070506-01:07:55 Parms: /dev/sg0 load 4 /dev/nst0 0

20070506-01:07:55 Doing mtx -f /dev/sg0 load 4 0

 

 


_____________________________________________________________________
The information in this email is confidential and may be legally privileged. It 
is intended solely for the addressee. Access to this email by anyone else is 
unauthorised. If you are not the intended recipient, any disclosure, copying, 
distribution, or any action taken or omitted to be taken in reliance on it, is 
prohibited and may be unlawful. You may use and apply this information only for 
its intended purpose. When addressed to our clients any opinions or advice or 
quotations contained in this email are subject to the Hytec Information 
Security Limited standard terms and conditions. Neither Hytec Information 
Security Limited nor the sender accepts responsibility for viruses. It is your 
responsibility to scan the email and any attachments.

This message has been checked for all known viruses by MessageLabs.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to