Hello,

2014-05-27 13:28 GMT+02:00 Keith T <keithb...@yahoo.com>:

> Hi Radoslaw,
>
> I am trying to backup data to two HDDs using two USB dockings. I tried the
> configurations as below but still failed.
>
> #bacula-sd.conf
> Autochanger {
>   Name = usb-changer-1
>   Device = usb-changer-1-drive-0
>   Device = usb-changer-1-drive-1
>   Changer Command = ""        #if not added, got error
>   Changer Device = /dev/null    #if not added, got error
> }
>
> Device {
>   Name = usb-changer-1-drive-0
>   Drive Index = 0
>   Autochanger = yes;
>   Device Type = File
>   Media Type = Disk
>   Archive Device = /mnt/usbdocking1
>   LabelMedia = yes;
>   Random Access = Yes;
>   AutomaticMount = yes;
>   RemovableMedia = no;
>   AlwaysOpen = yes;
>   Maximum Concurrent Jobs = 5
> }
>
> Device {
>   Name = usb-changer-1-drive-1
>   Drive Index = 1
>   Autochanger = yes;
>   Device Type = File
>   Media Type = Disk
>   #Archive Device = /mnt/usbdocking1
>   Archive Device = /mnt/usbdocking2
>

Different archive device. You need a different Media type for this device.


>   LabelMedia = yes;
>   Random Access = Yes;
>   AutomaticMount = yes;
>   RemovableMedia = no;
>   AlwaysOpen = yes;
>   Maximum Concurrent Jobs = 5
> }
>
> #bacula-dir.conf
>
> JobDefs {
>   Name = "TestJob"
>   Type = Backup
>   Level = Full
>   Client = bacula-fd
>   FileSet = "Test Backup"
>   Storage = usbchanger1
>   Messages = Standard
>   Pool = TestPool
>   Priority = 11
> }
>
>
> Storage {
>   Name = usbchanger1
>   Address = localhost
>   SDPort = 9103
>   Password = "WfYdG2,/8P"
>   Device = usb-changer-1
>   Media Type = File
>   Autochanger = yes;
> }
>
> Pool {
>   Name = TestPool
>   Pool Type = Backup
>   Recycle = no
>   AutoPrune = yes
>   Volume Retention = 7 days
>   Label Format = Test-
> }
>
>
> #Error
> 27-May 19:18 bacula-dir JobId 867: Start Backup JobId 867,
> Job=TestBkup.2014-05-27_19.18.40_03
> 27-May 19:18 bacula-sd JobId 867: Fatal error: Device reservation failed
> for JobId=867:
> 27-May 19:18 bacula-dir JobId 867: Fatal error:
>      Storage daemon didn't accept Device "usb-changer-1" because:
>      3924 Device "usb-changer-1" not in SD Device resources or no matching
> Media Type.
>

No matching media type for Director point of view of Storage and Storage
itself (File vs. Disk).


> 27-May 19:18 bacula-dir JobId 867: Error: Bacula bacula-dir 5.2.13
> (19Jan13):
>   Build OS:               x86_64-unknown-linux-gnu redhat
>   JobId:                  867
>   Job:                    TestBkup.2014-05-27_19.18.40_03
>   Backup Level:           Full
>   Client:                 "bacula-fd" 5.2.13 (19Jan13)
> x86_64-unknown-linux-gnu,redhat,
>   FileSet:                "Test Backup" 2014-05-27 12:40:48
>   Pool:                   "TestPool" (From Job resource)
>   Catalog:                "MyCatalog" (From Client resource)
>   Storage:                "usbchanger1" (From Job resource)
>   Scheduled time:         27-May-2014 19:18:38
>   Start time:             27-May-2014 19:18:42
>   End time:               27-May-2014 19:18:42
>   Elapsed time:           0 secs
>   Priority:               11
>   FD Files Written:       0
>   SD Files Written:       0
>   FD Bytes Written:       0 (0 B)
>   SD Bytes Written:       0 (0 B)
>   Rate:                   0.0 KB/s
>   Software Compression:   None
>   VSS:                    no
>   Encryption:             no
>   Accurate:               no
>   Volume name(s):
>   Volume Session Id:      1
>   Volume Session Time:    1401189512
>   Last Volume Bytes:      0 (0 B)
>   Non-fatal FD errors:    1
>   SD Errors:              0
>   FD termination status:
>   SD termination status:
>   Termination:            *** Backup Error ***
>
> When changed Media Type from "Disk" to "File', I could run the job but a
> new volume was created on usbdocking1 but not usbdocking2 when HDD is full
> on usbdocking1? If using same archive device (e.g. usbdocking1), it won't
> backup on to another even the HDD is full.
> Any hints? Thanks in advance!
>

What do you expect? Bacula uses single disk storage like a single tape
library. There is no build in mechanism for failover a libraries.

If I where you I'll fasten both drives into a single filesystem any method.

best regards
-- 
Radosław Korzeniewski
rados...@korzeniewski.net
------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to