daniel, were you able to successfully complete the btape test
command from the bconsole? if it encounters errors it can 
suggest modifications to you configuration which may help.

-- michael

On Thu, Dec 13, 2007 at 12:51:46PM -0300, Daniel Bareiro wrote:
> 
> I modified the autochanger resource definition. Now, does it look
> better? :-)
> 
> Autochanger {
>   Name = Autochanger
>   Device = Drive-1
>   Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
>   Changer Device = /dev/sg2
> }
> 
> Device {
>   Name = Drive-1                  #
>   Media Type = DLT-7000
>   Archive Device = /dev/nst0
>   Autochanger = yes
>   LabelMedia = no
>   AutomaticMount = yes;               # when device opened, read it
>   AlwaysOpen = yes
> }
> 
> This is the output of 'status storage':
> 
> *status storage
> The defined Storage resources are:
>      1: respaldadora-sd
>      2: File
> Select Storage resource (1-2): 1
> Connecting to Storage daemon respaldadora-sd at sparky.educ.gov.ar:9103
> 
> respaldadora-sd Version: 1.38.11 (28 June 2006) sparc-unknown-linux-gnu 
> debian 4.0
> Daemon started 13-dic-07 06:33, 0 Jobs run since started.
> 
> Running Jobs:
> No Jobs running.
> ====
> 
> Jobs waiting to reserve a drive:
> ====
> 
> Terminated Jobs:
> JobId  Level   Files          Bytes Status   Finished        Name
> ======================================================================
>     1  Full          0              0 Other    11-dic-07 15:20 Backup_Usuarios
>     2  Full          0              0 Cancel   13-dic-07 01:17 Backup_Usuarios
> ====
> 
> Device status:
> Autochanger "Autochanger" with devices:
>    "Drive-1" (/dev/nst0)
> Device "FileStorage" (/tmp) is not open or does not exist.
> Device "Drive-1" (/dev/nst0) open but no Bacula volume is mounted.
>    Slot 1 is loaded in drive 0.
>    Total Bytes Read=0 Blocks Read=0 Bytes/block=0
>    Positioned at File=0 Block=0
> ====
> 
> In Use Volume status:
> ====
> 
> Then, I try label the volumes but I got an input/output error message
> after a delay. Performing the operation over another slot shows the same
> error.
> 
> The defined Storage resources are:
>      1: respaldadora-sd
>      2: File
> Select Storage resource (1-2): 1
> Enter autochanger drive[0]:
> Enter new Volume name: TestVolume1
> Enter slot (0 or Enter for none): 1
> Automatically selected Pool: Default
> Connecting to Storage daemon respaldadora-sd at sparky.educ.gov.ar:9103...
> Sending label command for Volume "TestVolume1" 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.
> 3301 Issuing autochanger "loaded drive 0" command.
> 3302 Autochanger "loaded drive 0", result is Slot 1.
> 3912 Failed to label Volume: ERR=dev.c:678 Rewind error on "Drive-1"
> (/dev/nst0). ERR=Error de entrada/salida.
> 
> Label command failed for Volume TestVolume1.
> Do not forget to mount the drive!!!
> 
> Any idea? The permissions are correct, I think.
> 
> sparky:/etc/bacula# ll /dev/st0 /dev/sg2
> crw-rw---- 1 root tape 21, 2 2007-12-12 11:54 /dev/sg2
> crw-rw---- 1 root tape  9, 0 2007-12-12 11:54 /dev/st0
> 
> sparky:/etc/bacula# id bacula
> uid=105(bacula) gid=105(bacula) grupos=105(bacula),26(tape)
> 
> Regards,
> Daniel
> -- 
> Daniel Bareiro - System Administrator
> Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
> Powered by Debian GNU/Linux Etch - Linux user #188.598




-------------------------------------------------------------------------
SF.Net email is sponsored by:
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