Bacula-users

Re: [Bacula-users] disk-changer

2008-06-22 17:02:11
Subject: Re: [Bacula-users] disk-changer
From: Kern Sibbald <kern AT sibbald DOT com>
To: SpoerlA AT gmx DOT de
Date: Sun, 22 Jun 2008 23:01:42 +0200
Hello,

I'm sorry, but I cannot give support any more -- I don't even have the time to 
program everything I want :-(  If you have any more questions about any part 
of Bacula, please direct them to the bacula-users email list.

In looking at the error messages below, it appears to me that you have not 
created the directories /remote/backup1/lw  and /remote/backup2/lw.  The 
disk-changer script will not create them for you.  Also, I suspect you want 
to specify Maximum Volume Size, rather than Maximum File Size (which is the 
max size between EOF marks on a tape).

Good luck,

Kern

On Sunday 22 June 2008 19:40:13 SpoerlA AT gmx DOT de wrote:
> Hi,
>
> i have a problem with my private linux server an you bacula disk-changer
> script......
>
> i use bacula 2.2.8
>
> i receive every time an error when i start a backup after i have implement
> your script. i had 2 usb harddisk on my linux server which i want to use
> for bacula. but with a config without autochanger bacula only use one of
> them..... i have hoped your script is the solution for my problem but i
> have some problem....
>
> i have already try different archive devices.....
>
> when i use the disk-changer script from commandline it bring no errors
> /etc/bacula/scripts/disk-changer /etc/bacula/conf load 1
> /remote/backup1/lw 0
>
> i receive every time this error:
> 22-Jun 17:35 erde-dir JobId 84: Start Backup JobId 84,
> Job=mailin-normal.2008-06-22_17.35.03
> 22-Jun 17:35 erde-sd JobId 84: Error: dev.c:121 Unable to stat device
> /remote/backup1/lw: ERR=No such file or directory
> 22-Jun 17:35 erde-sd JobId 84: Warning:
>      Device "FileStorage1" in changer "acone" requested by DIR could not
> be opened or does not exist.
> 22-Jun 17:35 erde-sd JobId 84: Error: dev.c:121 Unable to stat device
> /remote/backup2/lw: ERR=No such file or directory
> 22-Jun 17:35 erde-sd JobId 84: Warning:
>      Device "FileStorage2" in changer "acone" requested by DIR could not
> be opened or does not exist.
> 22-Jun 17:35 erde-sd JobId 84: Error: dev.c:121 Unable to stat device
> /remote/backup1/lw: ERR=No such file or directory
> 22-Jun 17:35 erde-sd JobId 84: Warning:
>      Device "FileStorage1" in changer "acone" requested by DIR could not
> be opened or does not exist.
> 22-Jun 17:35 erde-sd JobId 84: Error: dev.c:121 Unable to stat device
> /remote/backup2/lw: ERR=No such file or directory
> 22-Jun 17:35 erde-sd JobId 84: Warning:
>      Device "FileStorage2" in changer "acone" requested by DIR could not
> be opened or does not exist.
> 22-Jun 17:35 erde-sd JobId 84: Error: dev.c:121 Unable to stat device
> /remote/backup1/lw: ERR=No such file or directory
> 22-Jun 17:35 erde-sd JobId 84: Warning:
>      Device "FileStorage1" in changer "acone" requested by DIR could not
> be opened or does not exist.
> 22-Jun 17:35 erde-sd JobId 84: Error: dev.c:121 Unable to stat device
> /remote/backup2/lw: ERR=No such file or directory
> 22-Jun 17:35 erde-sd JobId 84: Warning:
>      Device "FileStorage2" in changer "acone" requested by DIR could not
> be opened or does not exist.
> 22-Jun 17:35 erde-sd JobId 84: Failed command: Jmsg
> Job=mailin-normal.2008-06-22_17.35.03 type=5 level=1214148932 erde-sd
> JobId 84: Warning:
>      Device "FileStorage2" in changer "acone" requested by DIR could not
> be opened or does not exist.
>
> 22-Jun 17:35 erde-sd JobId 84: Fatal error:
>      Device "acone" with MediaType "File" requested by DIR not found in SD
> Device resources.
> 22-Jun 17:35 erde-dir JobId 84: Fatal error:
>      Storage daemon didn't accept Device "acone" because:
>      3924 Device "acone" not in SD Device resources.
> 22-Jun 17:35 erde-dir JobId 84: Error: Bacula erde-dir 2.2.8 (26Jan08):
> 22-Jun-2008 17:35:32
>   Build OS:               x86_64-pc-linux-gnu debian lenny/sid
>   JobId:                  84
>   Job:                    mailin-normal.2008-06-22_17.35.03
>   Backup Level:           Full
>   Client:                 "mailin-fd" 2.2.8 (26Jan08)
> i486-pc-linux-gnu,debian,lenny/sid
>   FileSet:                "mailin" 2008-06-15 21:11:37
>   Pool:                   "backup-pool" (From Job resource)
>   Storage:                "File" (From Job resource)
>   Scheduled time:         22-Jun-2008 17:35:29
>   Start time:             22-Jun-2008 17:35:32
>   End time:               22-Jun-2008 17:35:32
>   Elapsed time:           0 secs
>   Priority:               10
>   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
>   Storage Encryption:     no
>   Volume name(s):
>   Volume Session Id:      1
>   Volume Session Time:    1214148924
>   Last Volume Bytes:      0 (0 B)
>   Non-fatal FD errors:    0
>   SD Errors:              0
>   FD termination status:
>   SD termination status:
>   Termination:            *** Backup Error ***
>
>
> my config:
>
> --------------------------
> bacula-sd.conf
> .....cut.....
> Device {
>   Name = FileStorage0
>   Media Type = File
>   Archive Device = /remote/backup1/lw
>   LabelMedia = yes;                   # lets Bacula label unlabeled media
>   Random Access = Yes;
>   AutomaticMount = yes;               # when device opened, read it
>   RemovableMedia = no
>   AlwaysOpen = no
>   Maximum File Size = 3500MB
>   AutoChanger = yes
>   Drive Index = 0
> }
>
> Device {
>   Name = FileStorage1
>   Media Type = File
>   Archive Device = /remote/backup2/lw
>   LabelMedia = yes;                   # lets Bacula label unlabeled media
>   Random Access = Yes;
>   AutomaticMount = yes;               # when device opened, read it
>   RemovableMedia = no
>   AlwaysOpen = no
>   Maximum File Size = 5000MB
>   AutoChanger = yes
>   Drive Index = 1
> }
> Autochanger {
>   Name = acone
>   Device = FileStorage0
>   Device = FileStorage1
>   Changer Command = "/etc/bacula/scripts/disk-changer %c %o %S %a %d"
>   Changer Device = /etc/bacula/conf
> }
> .....cut.....
>
> --------------------------
> /etc/bacula/conf
> maxslot=200
> maxdrive=2
>
> --------------------------
> bacula-dir.conf
> ....cut.....
>
> Storage {
>   Name = File
>   Address = erde                # N.B. Use a fully qualified name here
>   SDPort = 9103
>   Password = "xxx"
>   Device = acone
>   Media Type = File
>   Autochanger = yes
> }
> --------------------------
>
> Thanks
> Andy



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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>
  • Re: [Bacula-users] disk-changer, Kern Sibbald <=