2006/8/15, [EMAIL PROTECTED] <[EMAIL PROTECTED] >:
Send Bacula-users mailing list submissions to
         bacula-users@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/bacula-users
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bacula-users digest..."


Today's Topics:

   1. can not write to DVD (stefan)
   2. Re: can not write to DVD (Richard Mortimer)
   3. Re: can not write to DVD (stefan)
   4. Fwd:  can not write to DVD (John Drescher)
   5. Can I quit backup on database errors? (graham.dicker)
   6. Re: Can I quit backup on database errors? (Kern Sibbald)
   7. Re: can not write to DVD (Troy Daniels)
   8. Getting bootstrap file name & Schedule job overrides
      (Timo Neuvonen)


----------------------------------------------------------------------

Message: 1
Date: Tue, 15 Aug 2006 00:30:33 +0200
From: stefan < [EMAIL PROTECTED]>
Subject: [Bacula-users] can not write to DVD
To: bacula-users@lists.sourceforge.net
Message-ID: < [EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-15"

Hello all,

I have bacula 1.38.11 on debian 3.1 installed and want to backup to DVD.
I edit the bacula-sd.conf:

"Device {
  Name = "DVD-Writer"
  Media Type = dvd
  Archive Device = /media/cdrom1  # I also changed this to /dev/hdc but the #
#same
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = yes;
  AlwaysOpen = no;
  MaximumPartSize = 800M;
  RequiresMount = yes;
  MountPoint = /media/cdrom1;
  MountCommand = "/bin/mount -t iso9660 -o ro %a %m";
  UnmountCommand = "/bin/umount %m";
  SpoolDirectory = /tmp/backup;
  WritePartCommand = "/etc/bacula/dvd-handler %a write %e %v"
  FreeSpaceCommand = "/etc/bacula/dvd-handler %a free"
}
"
and restart the service but I always get the error when I run  a job:

"15-Aug 00:13 server-dir: Start Backup JobId 16,
Job=Client1.2006-08-15_00.13.29
15-Aug 00:13 server-sd: Failed command:
15-Aug 00:13 server-sd: Client1.2006-08-15_00.13.29 Fatal error:
     Device "DVD" with MediaType "DVD" requested by DIR not found in SD Device
resources.
15-Aug 00:13 server-dir: Client1.2006-08-15_00.13.29 Fatal error:
     Storage daemon didn't accept Device "DVD" because:
     3924 Device "DVD" not in SD Device resources.
15-Aug 00:13 server-dir: Client1.2006-08-15_00.13.29 Error: Bacula 1.38.11
(28Jun06): 15-Aug-2006 00:13:31"

It seems I have to edit the SD Device resources but I dont know where.

Can someone help?

tia
stefan

Hi you have in bacula-sd.conf:
"Device {
  Name = "DVD-Writer"
  Media Type = dvd
....
}

The name of the device is "DVD-Writer" but in your bacula-dir.conf you have:
Storage {
....
Device="DVD"    #this is the name of the device
....
}
That is wrong, the name should be the same that you put in the bacula-sd.conf "DVD-Writer" not "DVD".
Bye

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 483 bytes
Desc: not available
Url : http://sourceforge.net/mailarchive/forum.php?forum=bacula-users/attachments/20060815/6345a521/attachment.bin

------------------------------

Message: 2
Date: Tue, 15 Aug 2006 00:24:47 +0100
From: Richard Mortimer < [EMAIL PROTECTED]>
Subject: Re: [Bacula-users] can not write to DVD
To: [EMAIL PROTECTED]
Cc: bacula-users@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain

On Tue, 2006-08-15 at 00:30 +0200, stefan wrote:
> Hello all,
>
> I have bacula 1.38.11 on debian 3.1 installed and want to backup to DVD.
> I edit the bacula-sd.conf:
>
> "Device {
>   Name = "DVD-Writer"
>   Media Type = dvd
Not sure if case is sensitive but I use DVD there.
>   Archive Device = /media/cdrom1  # I also changed this to /dev/hdc but the #
> #same
That should be /dev/hdc or whatever your DVD device appears as. It is
NOT the filesystem mountpoint

>   LabelMedia = yes;                   # lets Bacula label unlabeled media
>   Random Access = Yes;
>   AutomaticMount = yes;               # when device opened, read it
>   RemovableMedia = yes;
>   AlwaysOpen = no;
>   MaximumPartSize = 800M;
>   RequiresMount = yes;
>   MountPoint = /media/cdrom1;
>   MountCommand = "/bin/mount -t iso9660 -o ro %a %m";
>   UnmountCommand = "/bin/umount %m";
>   SpoolDirectory = /tmp/backup;
Does /tmp/backup exist? It probably will not get recreated on reboot.
>   WritePartCommand = "/etc/bacula/dvd-handler %a write %e %v"
>   FreeSpaceCommand = "/etc/bacula/dvd-handler %a free"
> }
> "
>  and restart the service but I always get the error when I run  a job:
>
> "15-Aug 00:13 server-dir: Start Backup JobId 16,
> Job=Client1.2006-08-15_00.13.29
> 15-Aug 00:13 server-sd: Failed command:
> 15-Aug 00:13 server-sd: Client1.2006-08-15_00.13.29 Fatal error:
>      Device "DVD" with MediaType "DVD" requested by DIR not found in SD Device
> resources.
The only obvious difference is your use of dvd  versus DVD.

> 15-Aug 00:13 server-dir: Client1.2006-08-15_00.13.29 Fatal error:
>      Storage daemon didn't accept Device "DVD" because:
>      3924 Device "DVD" not in SD Device resources.
> 15-Aug 00:13 server-dir: Client1.2006-08-15_00.13.29 Error: Bacula 1.38.11
> (28Jun06): 15-Aug-2006 00:13:31"
>
> It seems I have to edit the SD Device resources but I dont know where.
>
> Can someone help?

Don't forget to restart bacula-sd after you change the configuration
file. Use
/etc/init.d/bacula-sd restart

Also note that DVD writing doesn't work fully in 1.38 (some commands
like label, relabel, purge will not work). Hopefully it will be fully
functional in 1.40. I haven't tried the newer Debian packages because
I've been building from CVS lately.

Have fun

Richard

--
Richard Mortimer <[EMAIL PROTECTED]>




------------------------------

Message: 3
Date: Tue, 15 Aug 2006 08:47:36 +0200
From: stefan <[EMAIL PROTECTED]>
Subject: Re: [Bacula-users] can not write to DVD
To: bacula-users@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED] >
Content-Type: text/plain; charset="utf-8"

I made the changes:
"Device {
  Name = "DVD-Writer"
  Media Type = dvd
  Archive Device = /dev/hdc
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = yes;
  AlwaysOpen = no;
  MaximumPartSize = 800M;
  RequiresMount = yes;
  MountPoint = /media/cdrom1;
  MountCommand = "/bin/mount -t iso9660 -o ro %a %m";
  UnmountCommand = "/bin/umount %m";
  SpoolDirectory = /tmp/backup;
  WritePartCommand = "/etc/bacula/dvd-handler %a write %e %v"
  FreeSpaceCommand = "/etc/bacula/dvd-handler %a free"
}"

> Don't forget to restart bacula-sd after you change the configuration
> file. Use
> /etc/init.d/bacula-sd restart

okay. But I get the same error:
"15-Aug 08:27 server-dir: Start Backup JobId 17,
Job=Client1.2006-08-15_08.27.22
15-Aug 08:27 server-sd: Failed command:
15-Aug 08:27 server-sd: Client1.2006-08-15_08.27.22 Fatal error:
     Device "DVD" with MediaType "DVD" requested by DIR not found in SD Device
resources.
15-Aug 08:27 server-dir: Client1.2006-08-15_08.27.22 Fatal error:
     Storage daemon didn't accept Device "DVD" because:
     3924 Device "DVD" not in SD Device resources.
15-Aug 08:27 server-dir: Client1.2006-08-15_08.27.22 Error: Bacula 1.38.11
(28Jun06): 15-Aug-2006 08:27:24"

What is wrong?

Can someone help?

tia
stefan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 483 bytes
Desc: not available
Url : http://sourceforge.net/mailarchive/forum.php?forum=bacula-users/attachments/20060815/98cf86e0/attachment.bin

------------------------------

Message: 4
Date: Tue, 15 Aug 2006 03:12:31 -0400
From: "John Drescher" < [EMAIL PROTECTED]>
Subject: [Bacula-users] Fwd:  can not write to DVD
To: bacula-users <Bacula-users@lists.sourceforge.net >
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

---------- Forwarded message ----------
From: John Drescher <[EMAIL PROTECTED]>
Date: Aug 15, 2006 3:12 AM
Subject: Re: [Bacula-users] can not write to DVD
To: [EMAIL PROTECTED]


What does your Storage section in your bacula-dir.conf file look like?

Here is mine:

# Definiton of dvd storage device
Storage {
  Name = JMD0-DVD
  Address = jmd0                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "####DELETED#####"
  Device = "DVD-WRITER"
  Media Type = DVD
}

Storage {
  Name = JMD1-DVD
  Address = jmd1                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "####DELETED####"
  Device = "JMD1-DVD-WRITER"
  Media Type = DVD
}

And then my jobs use JMD1-DVD to write to the dvd writer on jmd1 or
JMD0-DVD to write to the dvd on jmd0.

John


--
John M. Drescher



------------------------------

Message: 5
Date: Tue, 15 Aug 2006 08:35:27 +0100
From: "graham.dicker" <[EMAIL PROTECTED]>
Subject: [Bacula-users] Can I quit backup on database errors?
To: <bacula-users@lists.sourceforge.net>
Message-ID:
        <[EMAIL PROTECTED] >
Content-Type: text/plain; charset="us-ascii"

Is there a way to make Bacula abandon a backup job if the database is
corrupt?



>From time to time a Bacula backup creates a huge log file full of
database error messages. This prevents the "backup result" email being
sent because the message is too big. On some systems the hard drive gets
full and that causes more problems. It would be very useful to be able
to specify to abandon the backup if the number of database errors
exceeds some given number.



TIA



Graham Dicker





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://sourceforge.net/mailarchive/forum.php?forum=bacula-users/attachments/20060815/4e465dde/attachment.html

------------------------------

Message: 6
Date: Tue, 15 Aug 2006 10:07:46 +0200
From: Kern Sibbald <[EMAIL PROTECTED]>
Subject: Re: [Bacula-users] Can I quit backup on database errors?
To: bacula-users@lists.sourceforge.net
Cc: "graham.dicker" <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain;  charset="iso-8859-15"

On Tuesday 15 August 2006 09:35, graham.dicker wrote:
> Is there a way to make Bacula abandon a backup job if the database is
> corrupt?

In general, Bacula does fail a job if the database is corrupt, but the problem
is to define what kinds of errors are fatal and what errors are non-fatal.

>
>
>
> >From time to time a Bacula backup creates a huge log file full of
> database error messages.

I think you should look into why this is happening.  I've been running Bacula
for over 6 years now, and this has never happened to me.  I can imagine that
it happens because of some unusal event, but if it is happening "from time to
time", it is most likely a problem you can resolve.

> This prevents the "backup result" email being
> sent because the message is too big. On some systems the hard drive gets
> full and that causes more problems. It would be very useful to be able
> to specify to abandon the backup if the number of database errors
> exceeds some given number.

Can you provide some examples of what kind of errors you are getting?

What SQL engine are you using?

What version of Bacula are you using?

If you are using bsmtp, it has an option that can limit the size of the email
message.  It won't resolve the problem of not getting the Job Report, but it
might keep your HD from filling.

>
>
>
> TIA
>
>
>
> Graham Dicker
>
>
>
>
>
>



------------------------------

Message: 7
Date: Tue, 15 Aug 2006 16:35:06 +0800
From: Troy Daniels <[EMAIL PROTECTED]>
Subject: Re: [Bacula-users] can not write to DVD
To: [EMAIL PROTECTED]
Cc: bacula-users@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi Stefan,
> I made the changes:
> "Device {
>   Name = "DVD-Writer"
>   Media Type = dvd
>
The above line *might* be wrong.
> 15-Aug 08:27 server-sd: Client1.2006-08-15_08.27.22 Fatal error:
>      Device "DVD" with MediaType "DVD" requested by DIR not found in SD Device
> resources.
>
You have Media Type = 'dvd' instead of  'DVD' - try changing it to match
what Bacula is looking for and see if it works.

Putting it in quotes might make a difference too (Media Type = "DVD")

Troy Daniels




------------------------------

Message: 8
Date: Tue, 15 Aug 2006 14:28:05 +0300
From: "Timo Neuvonen" <[EMAIL PROTECTED]>
Subject: [Bacula-users] Getting bootstrap file name & Schedule job
        overrides
To: bacula-users@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain;       charset="iso-8859-15"

Bacula documentation lists some job options that can be overriden in the
schedule resource. "Write Bootstrap" is not mentioned in this list, can the
bootstrap file also be specified differently for differently scheduled
variations of the same job?  And further, if I could do this, can I use
character substitutions similar to eg. "Run After Job" in bootsrap file name
to specify the client in question?

Why doing this? Because I would be using two pools (one for Jan, Mar,
May etc, and the other one for Feb, Apr, Jun etc) and I'd like to keep the
bootsrap files for both pools separate. The jobs would be similar to each
other in other respects, so I would find it very simple to use the job
overrides in the schedule resource to specify this.

So, I'm looking for schedule like this:

Schedule {
  Name = "NightlyCycle"
  Run = Pool=Month135 WriteBootstrap=/var/bacula/%c-135.bsr \
    jan mar may jul sep nov at 01:05
  Run = Pool=Month246 WriteBootstrap=/var/bacula/%c-246.bsr \
    feb apr jun aug oct dec at 01:05
}


If there is a way to solve this, I have a further problem:

I'd like to have the bootstrap file being emailed using the job resource's
"Run After Job" option. This is, first writing the bootstrap file to a local
disk (no NFS filesystems on another hardware available), and then emailing a
"backup" of the bootstrap file to bacula admin. This would require knowing
the name of the bootstrap file somehow.
The character substitution options of the Run After Job (%c for client's
name etc) don't include a direct way for getting the name of bootstrap file,
nor they don't seem to include the pool's name so I could use client's and
pool's names to re-construct the bootstrap file's name. The command needed
would ideally be something like:
Run After Job = "nail -a /var/bacula/%bootstrap [EMAIL PROTECTED]"

Does anyone have any ideas how to specify this? The problem is, I don't have
another linux server on the same side of the firewall, so it's difficult to
have mounted network filesystems available, and having an ftp server
available is also difficult. If I had either of those, then I could simply
forward every time all my bootstrap files although they all hadn't changed
at all. But sending unnecessary emails isn't so nice, since they don't
overwrite the older exactly alike copies.


Regards,
Timo





------------------------------

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

------------------------------

_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


End of Bacula-users Digest, Vol 4, Issue 57
*******************************************



--
By Diego...  >8-P
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to