Robin Blanchard wrote:
> Trying to label the 20 tapes with their corresponding barcodes....Is the
> problem with my device (sd) configuration or is this stemming from the
> mtx-changer script ?
> 
> *label barcodes
> Automatically selected Catalog: MyCatalog
> Using Catalog "MyCatalog"
> Automatically selected Storage: Drive-1
> Connecting to Storage daemon Drive-1 at lewis.itos.uga.edu:9103 ...
> Connecting to Storage daemon Drive-1 at lewis.itos.uga.edu:9103 ...
> 3306 Issuing autochanger "slots" command.
> Device "Drive-1" has 0 slots.
> No slots in changer to scan.

At first, I said, where's the problem.  OH THERE IT IS.  It helps if you 
explicitly point it out to us old folks.

Check permissions on your mtx-changer script, and the devices it 
accesses with respect to the UID/GID that bacula-sd runs as.

I suspect the script, not the configuration.

> # mtx -f /dev/pass0 status
> 
>   Storage Changer /dev/pass0:2 Drives, 20 Slots ( 0 Import/Export )
> Data Transfer Element 0:Empty
> Data Transfer Element 1:Empty
>       Storage Element 1:Full :VolumeTag=B00023L3                        
>       Storage Element 2:Full :VolumeTag=B00039L3                        
>       Storage Element 3:Full :VolumeTag=B00029L3                        
>       Storage Element 4:Full :VolumeTag=B00025L3                        
>       Storage Element 5:Full :VolumeTag=B00028L3                        
>       Storage Element 6:Full :VolumeTag=B00022L3                        
>       Storage Element 7:Full :VolumeTag=B00026L3                        
>       Storage Element 8:Full :VolumeTag=B00031L3                        
>       Storage Element 9:Full :VolumeTag=B00030L3                        
>       Storage Element 10:Full :VolumeTag=B00037L3
> 
>       Storage Element 11:Full :VolumeTag=B00034L3
> 
>       Storage Element 12:Full :VolumeTag=B00035L3
> 
>       Storage Element 13:Full :VolumeTag=B00036L3
> 
>       Storage Element 14:Full :VolumeTag=B00038L3
> 
>       Storage Element 15:Full :VolumeTag=B00032L3
> 
>       Storage Element 16:Full :VolumeTag=B00024L3
> 
>       Storage Element 17:Full :VolumeTag=B00021L3
> 
>       Storage Element 18:Full :VolumeTag=B00020L3
> 
>       Storage Element 19:Full :VolumeTag=B00027L3
> 
>       Storage Element 20:Full :VolumeTag=B00033L3
> 
> 
> Device {
>   Name = Drive-1
>   Drive Index = 0
>   Media Type = LTO3
>   Description = "IBM Ultrium"
>   Archive Device = /dev/nsa0
>   SpoolDirectory = /export/bacula/spool;
>   AutomaticMount = yes;               
>   AlwaysOpen = yes
>   RemovableMedia = yes;
>   RandomAccess = no;
>   AutoChanger = yes
>   Offline On Unmount = no
>   Hardware End of Medium = no
>   BSF at EOM = yes
>   Backward Space Record = no
>   Fast Forward Space File = no
>   TWO EOF = yes
>   Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
> }

-- 
Dan Langille

BSDCan - The Technical BSD Conference : http://www.bsdcan.org/
PGCon  - The PostgreSQL Conference:     http://www.pgcon.org/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to