On Mon, Jan 14, 2008 at 10:34:45PM +0000, Nick - wrote:
> I'm having difficulty posting so I apologize if this is a repost.
>  
>  
>  
>  
> Hello Everyone,
>  
>             I’m new to using Bacula and am having a little trouble setting up 
> the configurations.
>  
>  
> When I run cat /proc/scsi/scsi I get the following back
>  
> Attached devices:
> Host: scsi0 Channel: 00 Id: 00 Lun: 00
>   Vendor: DELL     Model: PV-132T          Rev: 308D
>   Type:   Medium Changer                   ANSI SCSI revision: 02
> Host: scsi0 Channel: 00 Id: 01 Lun: 00
>   Vendor: IBM      Model: ULTRIUM-TD2      Rev: 53Y3
>   Type:   Sequential-Access                ANSI SCSI revision: 03
> Host: scsi0 Channel: 01 Id: 02 Lun: 00
>   Vendor: IBM      Model: ULTRIUM-TD2      Rev: 37RH
>   Type:   Sequential-Access                ANSI SCSI revision: 03
> Host: scsi1 Channel: 00 Id: 08 Lun: 00
>   Vendor: DP       Model: BACKPLANE        Rev: 1.05
>   Type:   Enclosure                        ANSI SCSI revision: 05
> Host: scsi1 Channel: 02 Id: 00 Lun: 00
>   Vendor: DELL     Model: PERC 5/i         Rev: 1.03
>   Type:   Direct-Access                    ANSI SCSI revision: 05
>  
> Next I run mtx –f /dev/sg0 status
>  
>   Storage Changer /dev/sg0:2 Drives, 23 Slots ( 1 Import/Export )
> Data Transfer Element 0:Empty
> Data Transfer Element 1:Empty
>       Storage Element 1:Full :VolumeTag=000013                          
>       Storage Element 2:Full :VolumeTag=000019                          
>       Storage Element 3:Full :VolumeTag=000020                          
>       Storage Element 4:Full :VolumeTag=000021                          
>       Storage Element 5:Full :VolumeTag=000017                          
>       Storage Element 6:Full :VolumeTag=000018                          
>       Storage Element 7:Full :VolumeTag=000022                          
>       Storage Element 8:Full :VolumeTag=000001                          
>       Storage Element 9:Full :VolumeTag=000008                          
>       Storage Element 10:Full :VolumeTag=000004                          
>       Storage Element 11:Full :VolumeTag=000007                          
>       Storage Element 12:Full :VolumeTag=000011                          
>       Storage Element 13:Full :VolumeTag=000009                          
>       Storage Element 14:Full :VolumeTag=000010                          
>       Storage Element 15:Full :VolumeTag=000016                          
>       Storage Element 16:Full :VolumeTag=000002                          
>       Storage Element 17:Empty:VolumeTag=                                
>       Storage Element 18:Full :VolumeTag=000014                          
>       Storage Element 19:Full :VolumeTag=000015                          
>       Storage Element 20:Full :VolumeTag=000003                          
>       Storage Element 21:Full :VolumeTag=000005                          
>       Storage Element 22:Full :VolumeTag=000006                          
>       Storage Element 23 IMPORT/EXPORT:Full :VolumeTag=000012  
>  
> /mtx –f /dev/sg0 inquiry shows:
>  
> Product Type: Medium Changer
> Vendor ID: 'DELL    '
> Product ID: 'PV-132T         '
> Revision: '308D'
> Attached Changer API: No
>  
> /mtx –f /dev/sg1 inquiry shows:
> Product Type: Tape Drive
> Vendor ID: 'IBM     '
> Product ID: 'ULTRIUM-TD2     '
> Revision: '53Y3'
> Attached Changer API: No
>  
> /mtx –f /dev/sg2 inquiry shows:
> Product Type: Tape Drive
> Vendor ID: 'IBM     '
> Product ID: 'ULTRIUM-TD2     '
> Revision: '37RH'
> Attached Changer API: No
>  
> /mt –f /dev/nst0 status shows:
> SCSI 2 tape drive:
> File number=-1, block number=-1, partition=0.
> Tape block size 0 bytes. Density code 0x0 (default).
> Soft error count since last status=0
> General status bits on (50000):
>  DR_OPEN IM_REP_EN
>  
>  
>  
> In bacula-sd.conf I have the following setup:
>  
> Autochanger {
>   Name = Autochanger
>   Device = DellPowerVault132T
>   Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
>   Changer Device = /dev/sg0
> }
>  
> Device {
>   Name = DellPowerVault132T
>   LabelMedia = yes
>   Drive Index = 0
>   Media Type = LTO-3
>   Archive Device = /dev/nst0
>   AutomaticMount = yes;
>   AlwaysOpen = yes;
>   RemovableMedia = yes;
> RandomAccess = no;
> AutoChanger = yes
> Hardware End of Medium = No
> BSF at EOM = yes
> # Enable the Alert command only if you have the mtx package loaded 
> Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
> TWO EOF = yes
> }
>  
>  
> Also in the bacula-dir.conf I have the following setup:
> Storage {
>   Name = File
> # Do not use "localhost" here    
>   Address = <<server_name>>                # N.B. Use a fully qualified name 
> here
>   SDPort = 9103
>   Password = "<xxx>"
>   Device = DellPowerVault132T
>   Media Type = LTO-3
> }
>  
>  
> Does everything look correctly setup? 
>  
> When I try to mounting the storage using the Webmin Bacula console I get the 
> following error:
>  
> Mounting volume on storage device File .. Automatically selected Catalog: 
> MyCatalogUsing Catalog "MyCatalog"3301 Issuing autochanger "loaded? drive 0" 
> command.3302 Autochanger "loaded? drive 0", result: nothing loaded.3901 open 
> device failed: ERR=dev.c:433 Unable to open device "DellPowerVault132T" 
> (/dev/nst0): ERR=No medium found 
>  

looks like it just cannot load a tape. did you work thru the btape test parts 
of the bacula manual? might
try from the console:

update slots
mount 


-- michael



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to