Hi,

On 6/20/2006 6:50 PM, Sullivan, Michael wrote:
> I am trying to get Bacula up and running on a Debian Stable system.  I
> have been able to use btape to check out the the ability of the box to
> write to the tape drive - everything seems fine, and I can mount a tape,
> but when I try to run a little test job on the system itself, I error
> out.  It appears to me that I have a problem with naming devices

Yes :-)

> Here are some appropriate messages / conf info:
> 
>>From bacula-sd.conf:
> 
> Device {
>   Name = HP-C1557A                       
>   Media Type = DDS-3
>   Archive Device = /dev/st0

This should be /dev/nst0, but that's more or less cosmetic. It only 
helps if you don't keep this device open.

>   AutomaticMount = yes;               # when device opened, read it
>   AlwaysOpen = yes;
>   RemovableMedia = yes;
>   RandomAccess = no;
>  Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d";
>  Changer Device = /dev/sg0;
>  AutoChanger = yes;
>  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'";
> }
> 
> 
> 
>>From bacula-dir.conf:
> 
> # Definition of DDS tape storage device
> Storage {
>   Name = HP-C1557A   
> #  Do not use "localhost" here
>   Address = SD02102JYGZD014                # N.B. Use a fully qualified

Is this really the host name of the machine running the SD?

> name here
>   SDPort = 9103
>   Password = ""          # password for Storage daemon
>   Device = HP-C1557A                      # must be same as Device in
> Storage daemon
>   Media Type = DDS-3                  # must be same as MediaType in
> Storage daemon
> }
> 
> 
> Mounting the tape drive in bconsole:
> 
> *mount
> The defined Storage resources are:
>      1: File
>      2: HP-C1557A
> Select Storage resource (1-2): 2
> 3001 Mounted Volume: tapetestX
> 3001 Device /dev/st0 is mounted with Volume "tapetestX"
> 
> 
> Error message after run in bconsole:
> 
> 20-Jun 11:25 SD02102JYGZD014-sd: Client1.2006-06-20_11.24.57 Fatal
> error:
>      Device "HP-C1557A" with MediaType "DDS-3" requested by Dir not
> found in SD Device resources.
> 20-Jun 11:25 SD02102JYGZD014-dir: Client1.2006-06-20_11.24.57 Fatal
> error:
>      Storage daemon didn't accept Device "HP-C1557A" because:
>      3924 Device "HP-C1557A" not in SD Device resources.
> 
> 
> NOTE:  if I change Device = HP-C1557A to Device = /dev/st0 in
> bacula-dir.conf and then run the job, I get the same errors as before,
> but with "/dev/st0" instead

Indeed that's what I'd expect... anyway, I don't have a solution here, 
at least I don't see anything obvious.

It might help to know if the DIR and the SD run on the same machine (I 
assume that). Also, try the "show storage" command and "status storage" 
and compare the device names - might be an overlooked typo, or you 
forgot to restart the DIR or SD after a configuration change.

Finally, if the above suggestions don't help, try running the DIR and 
the SD with debug output enabled and redirected to a file (for example, 
use 'bacula-sd -c ... -d 100 2>&1 >>/tmp/bacula-sd.debugout' as the 
start command.

One more question / hint: Which version of Bacula are you running? The 
configuration you give above is not correct for version 1.38.0 and above 
- you need an "Autochanger"-section in the SD configuration then.

Hope that helps,

Arno

> 
> 
> Any help appreciated.  While I am not a trembling virgin with Linux, I
> haven't set up a backup server with a tape drive before.......
> 
> - --------------------------------------------------------------------
> 
> 
> 
> 
> Music from EMI 
> 
> This e-mail including any attachments is confidential and may be legally 
> privileged. If you have received it in error please advise the sender 
> immediately by return email and then delete it from your system. The 
> unauthorised use, distribution, copying or alteration of this email is 
> strictly forbidden. If you need assistance please contact us on +44 20 7795 
> 7000. 
> 
> This email is from a unit or subsidiary of EMI Group plc. 
> 
> Registered Office: 27 Wrights Lane, London W8 5SW 
> 
> Registered in England No 229231.
> 
> 
> - --------------------------------------------------------------------
> 
> 
> 
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 

-- 
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de

All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to