Bacula-users

Re: [Bacula-users] Storage daemon didnt accept device

2008-09-25 01:22:07
Subject: Re: [Bacula-users] Storage daemon didnt accept device
From: Johan.Baarman AT fiskarsbrands DOT fi
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 25 Sep 2008 08:17:35 +0300

Hi again,

I managed to track this error down a bit further. It only occures when restoring from BAT, while restoring from bconsole works perfectly. Could this be a bug in bat or my something in my setup?

Br, Johan




Johan.Baarman AT fiskarsbrands DOT fi

23.09.2008 10:43

To
bacula-users AT lists.sourceforge DOT net
cc
Subject
[Bacula-users] Storage daemon didnt accept device






Hi list,


I'm a new user to bacula, I've just setup a few clients (both linux and windows) and run bacula 2.4.2 on debian lenny. I have file storage and tape storage on  a dell TL2000 24-slot autochanger. I've been hassling a few days with a irritating problem. I manage to run backups to both disk and tape but when I try to restore from tape it runs forever! When I cancel the restore job I get this output:



The job will require the following

  Volume(s)                 Storage(s)                SD Device(s)

===========================================================================

 
 
  000001L3                  TapeStorage               DELL-TL2000              



2 files selected to be restored.


.mod restoreclient="fiskarsa-9cibx5-fd" fileset="Full Set" storage="TapeStorage" replace="always" when="2008-09-23 08:19:44" bootstrap="/var/lib/bacula/bil-bak02-dir.restore.2.bsr" where="/backup/bacula-restores" priority="10" yes
Job queued. JobId=11


3-Sep 09:00 bil-bak02-sd JobId 11: Failed command: Jmsg Job=RestoreFiles.2008-09-23_08.19.11 type=6 level=1222149622 bil-bak02-sd JobId 11: Job RestoreFiles.2008-09-23_08.19.11 marked to be canceled.


23-Sep 09:00 bil-bak02-sd JobId 11: Fatal error:
    Device "DELL-TL2000" with MediaType "Tape" requested by DIR not found in SD Device resources.

23-Sep 09:00 bil-bak02-dir JobId 11: Fatal error:
    Storage daemon didn't accept Device "DELL-TL2000" because:

    3924 Device "DELL-TL2000" not in SD Device resources.

23-Sep 09:00 bil-bak02-dir JobId 11: Error: Bacula bil-bak02-dir 2.4.2 (26Jul08): 23-Sep-2008 09:00:31

 Build OS:               x86_64-pc-linux-gnu debian lenny/sid

 JobId:                  11

 Job:                    RestoreFiles.2008-09-23_08.19.11

 Restore Client:         fiskarsa-9cibx5-fd

 Start time:             23-Sep-2008 08:20:01

 End time:               23-Sep-2008 09:00:31

 Files Expected:         2

 Files Restored:         0

 Bytes Restored:         0

 Rate:                   0.0 KB/s

 FD Errors:              0

 FD termination status:  

 SD termination status:  

 Termination:            *** Restore Error ***




My bacula-dir.conf storage part looks like:


# Definition of DDS tape storage device

Storage {

 Name = TapeStorage    

#  Do not use "localhost" here

 Address =  10.122.102.49                # N.B. Use a fully qualified name here

 SDPort = 9103

 Password = "BaculaPa55wOrd"          # password for Storage daemon

 Device = DELL-TL2000                      # must be same as Device in Storage daemon

 Media Type = Tape                  # must be same as MediaType in Storage daemon

 Autochanger = yes                   # enable for autochanger device

}


... and device in bacula-sd.conf:


Autochanger {

 Name = DELL-TL2000

 Device = Drive-0

 Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"

 Changer Device = /dev/sg4

}


Device {

 Name = Drive-0

 Drive Index = 0

 Media Type = Tape

 Archive Device = /dev/nst0

 AutomaticMount = yes;               # when device opened, read it

 AlwaysOpen = yes;

 RemovableMedia = yes;

 RandomAccess = no;

 AutoChanger = yes

}


I followed the examples in bacula manual but clearly I made something wrong. Could someone help me with this?


Best regards,
Johan
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=""> Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>