Shon Stephens wrote:
> I'm a little unsure how its used in Bacula. If its for automatic 
> labeling of
> tapes, or ??? If I issue an update slots command in bconsole, I get this
> output, strange that there is an illegal character. Does anyone know how
> this output is supposed to look. Just for comparison I have the output of
> mtx-changer and mtx also. Should I use the barcodes as my Volume names 
> in my
> Pools? Does Bacula still need to label the tapes if thats so?
> 
> *update
> Update choice:
>     1: Volume parameters
>     2: Pool from resource
>     3: Slots from autochanger
> Choose catalog item to update (1-3): 3
> The defined Storage resources are:
>     1: Mentora_Files
>     2: Exabyte_224
> Select Storage resource (1-2): 2
> Connecting to Storage daemon Exabyte_224 at adm3:9103 ...
> 3306 Issuing autochanger "slots" command.
> Device "Magnum_224" has 12 slots.
> Connecting to Storage daemon Exabyte_224 at adm3:9103 ...
> 3306 Issuing autochanger "list" command.
> Illegal character "=" in a volume name.
> Invalid Volume name: 1:Full:VolumeTag=A00001
> Illegal character "=" in a volume name.
> Invalid Volume name: 2:Full:VolumeTag=A00002
> Illegal character "=" in a volume name.
> Invalid Volume name: 3:Full:VolumeTag=A00003
> Illegal character "=" in a volume name.
> Invalid Volume name: 4:Full:VolumeTag=A00004
> Illegal character "=" in a volume name.
> Invalid Volume name: 5:Full:VolumeTag=A00005
> Illegal character "=" in a volume name.
> Invalid Volume name: 6:Full:VolumeTag=A00006
> Illegal character "=" in a volume name.
> Invalid Volume name: 7:Full:VolumeTag=A00007
> Illegal character "=" in a volume name.
> Invalid Volume name: 8:Full:VolumeTag=A00008
> Illegal character "=" in a volume name.
> Invalid Volume name: 9:Full:VolumeTag=A00009
> Illegal character "=" in a volume name.
> Invalid Volume name: 10:Full:VolumeTag=A00010
> Illegal character "=" in a volume name.
> Invalid Volume name: 11:Full:VolumeTag=A00011
> Illegal character "=" in a volume name.
> Invalid Volume name: 12:Full:VolumeTag=A00012
> No Volumes found to label, or no barcodes.
> 
> ./mtx-changer /dev/scsi/changer/c5t4d1 list 0 /dev/rmt/0cbn 0
> 1:Full:VolumeTag=A00001
> 2:Full:VolumeTag=A00002
> 3:Full:VolumeTag=A00003
> 4:Full:VolumeTag=A00004
> 5:Full:VolumeTag=A00005
> 6:Full:VolumeTag=A00006
> 7:Full:VolumeTag=A00007
> 8:Full:VolumeTag=A00008
> 9:Full:VolumeTag=A00009
> 10:Full:VolumeTag=A00010
> 11:Full:VolumeTag=A00011
> 12:Full:VolumeTag=A00012
> 
> Does this output look like it should for mtx-changer?

No. Looks like some parse error inside mtx-changer script.
This is the line in question:

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

Run
   mtx -f /dev/scsi/changer/c5t4d1 status | grep " *Storage Element 
[0-9]*:.*Full"
   mtx -f /dev/scsi/changer/c5t4d1 status | grep " *Storage Element 
[0-9]*:.*Full" |
        awk "{print \$3 \$4}"
   mtx -f /dev/scsi/changer/c5t4d1 status | grep " *Storage Element 
[0-9]*:.*Full" |
        awk "{print \$3 \$4}" | sed "s/Full*\(:VolumeTag=\)*//"

and see at which step it breaks.


/usr/local/share/bacula/mtx-changer /dev/pass3 list 0 /dev/nsa0 0
1:AEJ435L3
2:AEJ434L3
3:AEJ423L3
4:AEJ422L3
5:AEJ436L3
6:CLN181L1
7:AEJ410L3
8:AEJ407L3
9:AEJ405L3
10:AEJ403L3
11:AEJ401L3
12:AEJ437L3
13:AEJ438L3
14:AEJ439L3
15:AMH020L3
16:AMH021L3
17:AEJ406L3
18:AEJ404L3
19:AEJ402L3
20:AEJ400L3
21:AEJ413L3
22:AEJ412L3
23:AEJ411L3



> mtx -f /dev/scsi/changer/c5t4d1 status
>  Storage Changer /dev/scsi/changer/c5t4d1:1 Drives, 12 Slots ( 1
> Import/Export )
> Data Transfer Element 0:Empty
>      Storage Element 1:Full :VolumeTag=A00001
>      Storage Element 2:Full :VolumeTag=A00002
>      Storage Element 3:Full :VolumeTag=A00003
>      Storage Element 4:Full :VolumeTag=A00004
>      Storage Element 5:Full :VolumeTag=A00005
>      Storage Element 6:Full :VolumeTag=A00006
>      Storage Element 7:Full :VolumeTag=A00007
>      Storage Element 8:Full :VolumeTag=A00008
>      Storage Element 9:Full :VolumeTag=A00009
>      Storage Element 10:Full :VolumeTag=A00010
> 
>      Storage Element 11:Full :VolumeTag=A00011
> 

mtx output is correct:

mtx -f /dev/pass3 status
   Storage Changer /dev/pass3:1 Drives, 24 Slots ( 1 Import/Export )
Data Transfer Element 0:Empty
       Storage Element 1:Full :VolumeTag=AEJ435L3
       Storage Element 2:Full :VolumeTag=AEJ434L3
       Storage Element 3:Full :VolumeTag=AEJ423L3
       Storage Element 4:Full :VolumeTag=AEJ422L3
       Storage Element 5:Full :VolumeTag=AEJ436L3
       Storage Element 6:Full :VolumeTag=CLN181L1
       Storage Element 7:Full :VolumeTag=AEJ410L3
       Storage Element 8:Full :VolumeTag=AEJ407L3
       Storage Element 9:Full :VolumeTag=AEJ405L3
       Storage Element 10:Full :VolumeTag=AEJ403L3
       Storage Element 11:Full :VolumeTag=AEJ401L3
       Storage Element 12:Full :VolumeTag=AEJ437L3
       Storage Element 13:Full :VolumeTag=AEJ438L3
       Storage Element 14:Full :VolumeTag=AEJ439L3
       Storage Element 15:Full :VolumeTag=AMH020L3
       Storage Element 16:Full :VolumeTag=AMH021L3
       Storage Element 17:Full :VolumeTag=AEJ406L3
       Storage Element 18:Full :VolumeTag=AEJ404L3
       Storage Element 19:Full :VolumeTag=AEJ402L3
       Storage Element 20:Full :VolumeTag=AEJ400L3
       Storage Element 21:Full :VolumeTag=AEJ413L3
       Storage Element 22:Full :VolumeTag=AEJ412L3
       Storage Element 23:Full :VolumeTag=AEJ411L3
       Storage Element 24 IMPORT/EXPORT:Empty


> Thanks,
> Shon
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> 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


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