Re: [Bacula-users] DVD backup

2010-04-05 Thread Mads Rasmussen
Here is what I did, after this configuration you can run a full backup
(changing to the storage and pool defined below) 
Afterwards I can burn the files using f.ex k3b

Regards,

Mads

Bacula-sd.conf

Device {
  Name = DVDFileStorage
  Media Type = File
  Archive Device = /export/backup-dvd-spool
  LabelMedia = yes;   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;   # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}

Bacula-dir.conf

# Definition of file storage device
Storage {
  Name = DVDFile
# Do not use localhost here
  Address = 192.168.x.y  # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = hidden
  Device = DVDFileStorage
  Media Type = File
}

Pool {
  Name = DVDFilePool
  LabelFormat = BaculaDVD
  Pool Type = Backup
  Recycle = no# Bacula can automatically recycle Volumes
  AutoPrune = yes # Prune expired volumes
  Volume Retention = 365 days # one year
  Storage = DVDFile
  Maximum Volume Bytes = 47
}

Mads Rasmussen
TI

Octo Telematics
m...@octotelematics.com

Rua Leopoldo Couto de Magalhães Júnior, 110 | 8 andar 
Itaim Bibi | São Paulo | SP | 04.542-000
+55 11 3074 0313 | 7533 6292

AVISO LEGAL 

Esta mensagem, incluindo seus anexos, é destinada exclusivamente ao seu
destinatário, podendo conter informação confidencial, privilegiada e/ou
legalmente protegida. Se você não for o destinatário desta mensagem, fica
ciente sobre a proibição de divulgar, copiar, distribuir, examinar ou, de
qualquer forma, utilizar a informação contida nesta mensagem. Caso tenha
recebido esta mensagem por engano, solicitamos sua devolução imediata ao
remetente e a respectiva destruição do seu conteúdo em sua base de dados,
registros ou sistema de controle.

LEGAL ADVICE 

This message, including its attachments, is exclusively destined to the
designated addressee(s), and it can contain private, privileged and/or
legally protected information. If you are not the addressee of this message,
do not release, copy, distribute, check or, otherwise, use the information
contained in this message. If you received this message by mistake, please
immediately forward the message back to the sender and eliminate its
contents of your database, registrations or controls system.



--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup

2010-04-03 Thread Jari Fredriksson
On 3.4.2010 0:56, Phil Stracchino wrote:

 
 The officially recommended method, for those who have no better means of
 backup than DVD and a small enough data set to make it feasible, is to
 write DVD-sized disk volumes and then burn them to DVD as a separate
 operation.
 

This I have always wondered, and/but not tested it myself.

Bacula suggests writing parts of 800M, because large files can not be
written to a DVD. DVD movies also are made of many smaller files.

How could you burn a DVD-sized disk volume, if that is the case?


-- 
http://www.iki.fi/jarif/

It is easy to find fault, if one has that disposition.  There was once a man
who, not being able to find any other fault with his coal, complained that
there were too many prehistoric toads in it.
-- Mark Twain, Pudd'nhead Wilson's Calendar



signature.asc
Description: OpenPGP digital signature
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup

2010-04-02 Thread Matija Nalis
On Thu, Apr 01, 2010 at 08:23:41AM -0700, Wes Hardaker wrote:
 The last time I was at a store and was staring at the external USB
 hard-disks while holding a stack of re-writable DVDs I noticed that for
 about twice the stack of DVDs I could buy an external hard drive that
 I could always have connected and not worry about changing disks.  I
 haven't looked back since.

Of course, there are disadvantages too, especially if HDD is
connected all the time.

For example, the power surge that kills the main disks, might also
kill the HDD used for backups. An malign virus or software error or
user error (rm -rf / while mounted) might also nuke all your
backups as well as your main disk.

Also there is rendundancy in numbers - if you substitute one HDD for
100 of DVDs, you lose that redundancy (to gain convenience, of
course). But if your (one) backup HDD fails, you loose all your
backups. If one of your DVD dies however, there is quite a big chance
that you'll be able to recover some older state from some of the other
DVDs.

Thirdly (and that is specific to WORM media), no software activity
(like virus or user error) can erase backups from DVDs once they've
burned -- they are read only (and will only die with age)

You may alleviate some of the issues by buying stack od external HDDs
and rotating them on/off-site, but that will again lose you the
convenience (and gets more pricey). 


The main problem with DVDs however remains -- they are just too small
and too slow nowdays for anything but small sites...

So while there are solutions that are both convenient and relatively
secure, they tent to be pretty expensive. So there is no silver
bullet - the smaller sites just have to accept some disadvantages.
For some, DVDs might still be the best answer.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup

2010-04-02 Thread Wes Hardaker
 On Fri, 2 Apr 2010 11:58:42 +0200, Matija Nalis mnalis+bac...@carnet.hr 
 said:


MN Of course, there are disadvantages too, especially if HDD is
MN connected all the time.

Yep.  But if you're gonna go the paranoid route you also need to
consider fire and should be mailing your tapes/dvds/hard-drives to an
offsite backup location as well.

It's all about the trade-offs I agree.  The good news is that in 20
years of unix work I've yet to type rm -rf /.

MN You may alleviate some of the issues by buying stack od external HDDs
MN and rotating them on/off-site, but that will again lose you the
MN convenience (and gets more pricey). 

I actually think there is a way to do a write-once mode to a HDD if you
like too, but I can't remember where I saw that operation before.  If
nothing else, use dd and the right starting block number and treat it
the same way you would a tape or DVD (IE, no real file system).

MN The main problem with DVDs however remains -- they are just too small
MN and too slow nowdays for anything but small sites...

Don't forget fragile and subject to aging.  But they do fit in a
fire-safe nicely!
-- 
Wes Hardaker 
My Pictures:  http://capturedonearth.com/
My Thoughts:  http://pontifications.hardakers.net/

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup

2010-04-02 Thread Phil Stracchino
On 04/01/10 11:34, Stuart McGraw wrote:
 On 03/31/2010 07:27 PM, Phil Stracchino wrote:
 [...]
 DVD support is another issue.  Direct DVD writer support was deprecated
 in Bacula some time ago and is explicitly unmaintained and unsupported,
 because it turns out to be so problematic.  
 [...]
 
 Explicitly?  Where would that be exactly?
 
 I see in http://bacula.org/en/dev-manual/Current_State_Bacula.html
 
 + Advanced Support for most Storage Devices
 [...]
 * Supports writing to DVD.
 
 If you search the main doc for DVD you will find it mentioned in
 many places with nary a word about unmaintained and unsupported,
 There is even a subsection of the SD config section that describes 
 how to configure a DVD storage device.


OK, I have now cross-checked and verified this.

Yes, the documentation still covers DVD direct writing ... because that
has not been removed from the documentation yet.  (The documentation
could use a dedicated maintainer, actually.)  Yes, the old DVD direct
writing code is still there ... but it is broken, no-one is maintaining
it, and it is there only because it has not yet actually been removed.

The officially recommended method, for those who have no better means of
backup than DVD and a small enough data set to make it feasible, is to
write DVD-sized disk volumes and then burn them to DVD as a separate
operation.


-- 
  Phil Stracchino, CDK#2 DoD#299792458 ICBM: 43.5607, -71.355
  ala...@caerllewys.net   ala...@metrocast.net   p...@co.ordinate.org
 Renaissance Man, Unix ronin, Perl hacker, Free Stater
 It's not the years, it's the mileage.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup

2010-04-01 Thread Jari Fredriksson
On 1.4.2010 18:23, Wes Hardaker wrote:
 On Thu, 01 Apr 2010 05:25:22 +0300, Jari Fredriksson ja...@iki.fi said:
 
 JF I'm not whining DVD support to current Bacula, but just saying that if
 JF someone really wants it, there is the old 2.0.2 which just works. It
 JF does not have all the bells and whistles, but it works with DVD media.
 
 I specifically downgraded for a while to 2.0.4 (I think) which still had
 working DVD support.
 
 The last time I was at a store and was staring at the external USB
 hard-disks while holding a stack of re-writable DVDs I noticed that for
 about twice the stack of DVDs I could buy an external hard drive that
 I could always have connected and not worry about changing disks.  I
 haven't looked back since.
 

I agree, in that if I would now make the decision, I would buy a large
hard disk. But I though DVD was OK to bacula, when I bought the set of
DVD's. I wanted a media that could be taken off site (I had used to a
DDS-2 streamer, but it died).

-- 
http://www.iki.fi/jarif/

Steady movement is more important than speed, much of the time.  So long
as there is a regular progression of stimuli to get your mental hooks
into, there is room for lateral movement.  Once this begins, its rate is
a matter of discretion.
-- Corwin, Prince of Amber



signature.asc
Description: OpenPGP digital signature
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup

2010-04-01 Thread Phil Stracchino
On 04/01/10 11:34, Stuart McGraw wrote:
 On 03/31/2010 07:27 PM, Phil Stracchino wrote:
 [...]
 DVD support is another issue.  Direct DVD writer support was deprecated
 in Bacula some time ago and is explicitly unmaintained and unsupported,
 because it turns out to be so problematic.  
 [...]
 
 Explicitly?  Where would that be exactly?
 
 I see in http://bacula.org/en/dev-manual/Current_State_Bacula.html
 
 + Advanced Support for most Storage Devices
 [...]
 * Supports writing to DVD.
 
 If you search the main doc for DVD you will find it mentioned in
 many places with nary a word about unmaintained and unsupported,
 There is even a subsection of the SD config section that describes 
 how to configure a DVD storage device.

The situation may have changed.  The last I knew, direct DVD writing had
been deprecated.  I don't know for sure whether it was subsequently
fixed, or whether the documentation is out of date.  I'll check up on
this and verify which is the case.


-- 
  Phil Stracchino, CDK#2 DoD#299792458 ICBM: 43.5607, -71.355
  ala...@caerllewys.net   ala...@metrocast.net   p...@co.ordinate.org
 Renaissance Man, Unix ronin, Perl hacker, Free Stater
 It's not the years, it's the mileage.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup

2010-03-31 Thread Jari Fredriksson
On 1.4.2010 2:10, Mads Rasmussen wrote:
 I’m having trouble configuring bacula to backup on DVDs – I know it’s
 not the best solution and I will buy a tape drive but I wanted to play
 around with bacula in the mean time.
 
 I try using bconsole to run a new job but I never get around to writing
 something to DVD
 

Your configuration seems OK to me. However, I have never allowed Bacula
to autolabel my volumes, I labeled them manually in bconsole before
hand. Maybe you have do so too, as it seems to wait a named volume.

But.

When I converted from DAT to DVD some 1 and a half years ago, I could
not get the latest versions of Bacula working! There were always
something, different problems with different versions of Bacula.

Finally someone told that version 2.0.2 works for for him, and I
downloaded and compiled that.

And I have used it then, and never looked back. I strongly believe that
2.4.x or later will not work.

I have lost 2 DVD Writers during this 1½ years... when the last one went
belly up it just showed what you now see: no can do mount.

Can you mount it from shell? When bacula can't mount it does not tell
any error messages, but in shell you may see something. To me, it said
No media.


-- 
http://www.iki.fi/jarif/

Q:  What do you have when you have a lawyer buried up to his neck in sand?
A:  Not enough sand.



signature.asc
Description: OpenPGP digital signature
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup

2010-03-31 Thread Phil Stracchino
On 03/31/10 19:59, Jari Fredriksson wrote:
 On 1.4.2010 2:10, Mads Rasmussen wrote:
 I’m having trouble configuring bacula to backup on DVDs – I know it’s
 not the best solution and I will buy a tape drive but I wanted to play
 around with bacula in the mean time.

 I try using bconsole to run a new job but I never get around to writing
 something to DVD

 
 Your configuration seems OK to me. However, I have never allowed Bacula
 to autolabel my volumes, I labeled them manually in bconsole before
 hand. Maybe you have do so too, as it seems to wait a named volume.
 
 But.
 
 When I converted from DAT to DVD some 1 and a half years ago, I could
 not get the latest versions of Bacula working! There were always
 something, different problems with different versions of Bacula.
 
 Finally someone told that version 2.0.2 works for for him, and I
 downloaded and compiled that.
 
 And I have used it then, and never looked back. I strongly believe that
 2.4.x or later will not work.

Will not work with what?  Will not work with a DVD writer?  Will not
work, period?  Will not autolabel volumes?

I have had disk volume autolabeling working with no problems since
v2.4.something (which is when I first used it), and am now using 5.0.1
and it's still working.

DVD support is another issue.  Direct DVD writer support was deprecated
in Bacula some time ago and is explicitly unmaintained and unsupported,
because it turns out to be so problematic.  The recommended method of
backing up to DVD media using Bacula is to create 4.7GB (or 9.4GB, for
dual-layer) disk volumes and then separately burn them to DVD outside of
Bacula.

In any case, with modern disk sizes, backing up any non-trivial dataset
from fractional-terabyte-and-larger disks to DVDs has become as
impractical as backing up fractional-gigabyte-and-larger disks to floppy
did, except that it's even slower in proportion to the size of the dataset.

(Yes, I remember sitting there for three or four hours at a time doing
nothing but swap floppy disks every fifty seconds or so.  You couldn't
even get anything done in between swaps.)

-- 
  Phil Stracchino, CDK#2 DoD#299792458 ICBM: 43.5607, -71.355
  ala...@caerllewys.net   ala...@metrocast.net   p...@co.ordinate.org
 Renaissance Man, Unix ronin, Perl hacker, Free Stater
 It's not the years, it's the mileage.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup

2010-03-31 Thread Jari Fredriksson
On 1.4.2010 4:27, Phil Stracchino wrote:
 On 03/31/10 19:59, Jari Fredriksson wrote:

 And I have used it then, and never looked back. I strongly believe that
 2.4.x or later will not work.
 
 Will not work with what?  Will not work with a DVD writer?  Will not
 work, period?  Will not autolabel volumes?
 

Will not work, period. I don't remember any more the issues after issues
that were posted to old bug tracking, and then closed as not supported.

I'm not whining DVD support to current Bacula, but just saying that if
someone really wants it, there is the old 2.0.2 which just works. It
does not have all the bells and whistles, but it works with DVD media.

-- 
http://www.iki.fi/jarif/

You have an ability to sense and know higher truth.



signature.asc
Description: OpenPGP digital signature
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD Backup Version 2.0.2 OK?

2008-12-11 Thread michael riehemann

Am 01.12.2008 um 07:42 schrieb Nils Blanck-Wehde:

 I edited the corresponding line in /usr/lib/bacula/dvd-handler.  
 Unforutnately it didn't make a difference. On the other hand I could  
 NOT see that the disc was actually being ejected after the first part.
 Should the tray have opened?
 Maybe I need to edit something else?

Did anybody find out what to do to get the disc automatic ejected and  
reloaded after writing?

I ´m back on version 2.0.2 and with manually eject the dvd everything  
works fine for me.

greetings

Michael


--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup problems gone!

2008-12-02 Thread Alan Brown
On Sat, 29 Nov 2008, michael riehemann wrote:

 it´s great to have backups forever

Forever is relative. DVD R/RW and CD R/RW are both fragile media if not
kept under optimum conditions (cool dark place, a film refridgerator is
best)

AB
-
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=100url=/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD Backup Version 2.0.2 OK?

2008-11-30 Thread Richard Mortimer
Hi,

I'll add some comments here I cannot guarantee that they all apply to
2.4.x because I'm still using 2.2.x and haven't been tracking
development that closely for well over a year. That said I did have DVD
writing working and many of the errors that you report do look familiar.

On Sat, 2008-11-29 at 20:26 +0100, Nils Blanck-Wehde wrote:
 Hi John, hi everyone!
 
 I think I am getting closer to get DVD-burning to work. I would really
 love to use this feature and I would be glad to help fix it.
 
 I just checked, I had dvd+rw-tools-7.0-0.el5.3.rpm installed. As this
 is is 7.04 I uninstalled the rpm and compiled / installed from this
 sources:
 http://fy.chalmers.se/~appro/linux/DVD+RW/tools/dvd
 +rw-tools-7.1.tar.gz
 Now, growisofs is version 7.1:
 * growisofs by [EMAIL PROTECTED], version 7.1
 Does this version still require patching before building?
 
I used the Debian version that already had the patches applied.

 Here is what happens now: DVD burning works AS LONG as bacula doesn't
 write more than one part. After the first part a mount error occurs. I
 think that bacula for some reason tries to mount the dvd after each
 part, maybe to check what it just wrote or to calculate the remaining
 space.
It does try to check how much space is left.

The mount failure isn't necessarily a problem doing the operating system
mount of the DVD but rather that Bacula didn't find when it expected or
maybe that it tried to open a file on the DVD in read/write mode.

  As far as I understand, it is NOT safe to burn parts  800MB to a dvd
 so I left the default value of 800M in bacula-sd.conf.
 I ran the SD as root (/usr/sbin/bacula-sd -d 99) so I don't think that
 there really is a mount error. Maybe the debug-output is misleading?
Yes I agree. See what I wrote above.

 
 You will find the (somewhat lengthy) debug output of DIR and SD
 attached.
 
 If ANY other information (versions, configurations, hardware etc.)
 might help solve the issue, please ask. I will provide you with
 anything needed asap.

I don't have time to look too closely at the moment but the following
may help.

First off I always found that I needed to comment out the following line
in the /etc/bacula/scripts/dvd-handler script.

   growcmd +=  -use-the-force-luke=notray

Add a # at the start of the line to make it

#   growcmd +=  -use-the-force-luke=notray

This is because linux does (did?) not re-read the disk geometry
automatically. The above line forces the DVD to be ejected after writing
and the mount reloads it causing the OS to re-read the geometry and find
the new data written to the DVD.

I actually think that this is the problem that you are seeing because
without it the OS will report unreadable blocks when doing the low level
mount command.

You may also find it useful to go through the steps in

http://bridge.oldelvet.org.uk/bacula/BaculaDVDSetup.html

If those steps are not all successful then Bacula has very little chance
or correctly writing to the DVD.

Regards

Richard


 
 Many thanks in advance
 
 Nils
 
 
 
 This is the debug output from the director:
 29-Nov 20:02 company_bacula-dir JobId 3: Start Backup JobId 3,
 Job=nightly-self-backup.2008-11-29_20.02.19
 29-Nov 20:02 company_bacula-dir JobId 3: Created new Volume
 BaculaDVD0003 in catalog.
 29-Nov 20:02 company_bacula-dir JobId 3: Using Device DVDWriter
 29-Nov 20:02 company_bacula-sd JobId 3: Labeled new Volume
 BaculaDVD0003 on device DVDWriter (/dev/hda).
 29-Nov 20:02 company_bacula-sd JobId 3: Wrote label to prelabeled
 Volume BaculaDVD0003 on device DVDWriter (/dev/hda)
 29-Nov 20:02 company_bacula-dir JobId 3: Max Volume jobs exceeded.
 Marking Volume BaculaDVD0003 as Used.
 29-Nov 20:03 company_bacula-sd JobId 3: Part 1 (52384166 bytes)
 written to DVD.
 29-Nov 20:03 company_bacula-sd JobId 3: Remaining free space
 4,695,588,864 on DVDWriter (/dev/hda)
 29-Nov 20:03 company_bacula-sd JobId 3: Fatal error: block.c:856
 Unable to open device next part DVDWriter (/dev/hda): ERR=Could not
 mount DVD device DVDWriter (/dev/hda).
 
 This is the debug-output of the SD:
 
 Volume Label:
 Id: Bacula 1.0 immortal
 VerNo : 11
 VolName   : BaculaDVD0003
 PrevVolName   :
 VolFile   : 0
 LabelType : PRE_LABEL
 LabelSize : 175
 PoolName  : DVDPool
 MediaType : DVD
 PoolType  : Backup
 HostName  : company-bacula
 Date label written: 29-Nov-2008 20:02
 company_bacula-sd: reserve.c:316-0 jid=3 enter
 reserve_volume=BaculaDVD0003 drive=DVDWriter (/dev/hda)
 company_bacula-sd: reserve.c:189-0 jid=3 List begin reserve_volume:
 BaculaDVD0003 in_use=1 on device DVDWriter (/dev/hda)
 company_bacula-sd: reserve.c:331-0 jid=3 Vol attached=BaculaDVD0003,
 newvol=BaculaDVD0003 volinuse=1 on DVDWriter (/dev/hda)
 company_bacula-sd: reserve.c:339-0 jid=3 === set reserved
 vol=BaculaDVD0003 dev=DVDWriter (/dev/hda)
 company_bacula-sd: reserve.c:418-0 jid=3 === set in_use.
 

Re: [Bacula-users] DVD Backup Version 2.0.2 OK?

2008-11-30 Thread Michel Meyers
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Richard Mortimer wrote:
 I just checked, I had dvd+rw-tools-7.0-0.el5.3.rpm installed. As this
 is is 7.04 I uninstalled the rpm and compiled / installed from this
 sources:
 http://fy.chalmers.se/~appro/linux/DVD+RW/tools/dvd
 +rw-tools-7.1.tar.gz
 Now, growisofs is version 7.1:
 * growisofs by [EMAIL PROTECTED], version 7.1
 Does this version still require patching before building?

 I used the Debian version that already had the patches applied.

Just to clear this part up, the recent Debian version doesn't need the
patch any more since it was included upstream. Quoting from the changelog:

 -- Daniel Baumann [EMAIL PROTECTED]  Mon, 23 Jun 2008 16:27:00 +0200

dvd+rw-tools (7.1-1) unstable; urgency=low

  * New upstream release:
- Rediffed all patches.
- Dropped 05-bacula.dpatch, went upstream.
- Dropped 06-ia64-threading.dpatch, different fix went upstream.


Which also means that the stock growisofs v7.1 shouldn't need the patch.

Greetings,
   Michel
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)

iEYEARECAAYFAkkyp1sACgkQ2Vs+MkscAyXahgCgjm4XnebIuCgc1+OQ2LWbsM67
u/sAn3dxukpz2feQ2V3wrG8Kz616evEj
=P4HQ
-END PGP SIGNATURE-


-
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=100url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD Backup Version 2.0.2 OK?

2008-11-30 Thread Nils Blanck-Wehde

Hi Richard,

thanks for your comments.
I edited the corresponding line in /usr/lib/bacula/dvd-handler. 
Unforutnately it didn't make a difference. On the other hand I could NOT 
see that the disc was actually being ejected after the first part.

Should the tray have opened?
Maybe I need to edit something else?

Has anyone tried to write parts with 4,5GB? If this was possible I 
wouldn't need to write more than one part to each disc and everything 
was fine.

I'm not much into the various XX-book standards...

Nils


Richard Mortimer schrieb:

Hi,

I'll add some comments here I cannot guarantee that they all apply to
2.4.x because I'm still using 2.2.x and haven't been tracking
development that closely for well over a year. That said I did have DVD
writing working and many of the errors that you report do look familiar.

On Sat, 2008-11-29 at 20:26 +0100, Nils Blanck-Wehde wrote:
  

Hi John, hi everyone!

I think I am getting closer to get DVD-burning to work. I would really
love to use this feature and I would be glad to help fix it.

I just checked, I had dvd+rw-tools-7.0-0.el5.3.rpm installed. As this
is is 7.04 I uninstalled the rpm and compiled / installed from this
sources:
http://fy.chalmers.se/~appro/linux/DVD+RW/tools/dvd
+rw-tools-7.1.tar.gz
Now, growisofs is version 7.1:
* growisofs by [EMAIL PROTECTED], version 7.1
Does this version still require patching before building?



I used the Debian version that already had the patches applied.

  

Here is what happens now: DVD burning works AS LONG as bacula doesn't
write more than one part. After the first part a mount error occurs. I
think that bacula for some reason tries to mount the dvd after each
part, maybe to check what it just wrote or to calculate the remaining
space.


It does try to check how much space is left.

The mount failure isn't necessarily a problem doing the operating system
mount of the DVD but rather that Bacula didn't find when it expected or
maybe that it tried to open a file on the DVD in read/write mode.

  

 As far as I understand, it is NOT safe to burn parts  800MB to a dvd
so I left the default value of 800M in bacula-sd.conf.
I ran the SD as root (/usr/sbin/bacula-sd -d 99) so I don't think that
there really is a mount error. Maybe the debug-output is misleading?


Yes I agree. See what I wrote above.

  

You will find the (somewhat lengthy) debug output of DIR and SD
attached.

If ANY other information (versions, configurations, hardware etc.)
might help solve the issue, please ask. I will provide you with
anything needed asap.



I don't have time to look too closely at the moment but the following
may help.

First off I always found that I needed to comment out the following line
in the /etc/bacula/scripts/dvd-handler script.

   growcmd +=  -use-the-force-luke=notray

Add a # at the start of the line to make it

#   growcmd +=  -use-the-force-luke=notray

This is because linux does (did?) not re-read the disk geometry
automatically. The above line forces the DVD to be ejected after writing
and the mount reloads it causing the OS to re-read the geometry and find
the new data written to the DVD.

I actually think that this is the problem that you are seeing because
without it the OS will report unreadable blocks when doing the low level
mount command.

You may also find it useful to go through the steps in

http://bridge.oldelvet.org.uk/bacula/BaculaDVDSetup.html

If those steps are not all successful then Bacula has very little chance
or correctly writing to the DVD.

Regards

Richard


  

Many thanks in advance

Nils



This is the debug output from the director:
29-Nov 20:02 company_bacula-dir JobId 3: Start Backup JobId 3,
Job=nightly-self-backup.2008-11-29_20.02.19
29-Nov 20:02 company_bacula-dir JobId 3: Created new Volume
BaculaDVD0003 in catalog.
29-Nov 20:02 company_bacula-dir JobId 3: Using Device DVDWriter
29-Nov 20:02 company_bacula-sd JobId 3: Labeled new Volume
BaculaDVD0003 on device DVDWriter (/dev/hda).
29-Nov 20:02 company_bacula-sd JobId 3: Wrote label to prelabeled
Volume BaculaDVD0003 on device DVDWriter (/dev/hda)
29-Nov 20:02 company_bacula-dir JobId 3: Max Volume jobs exceeded.
Marking Volume BaculaDVD0003 as Used.
29-Nov 20:03 company_bacula-sd JobId 3: Part 1 (52384166 bytes)
written to DVD.
29-Nov 20:03 company_bacula-sd JobId 3: Remaining free space
4,695,588,864 on DVDWriter (/dev/hda)
29-Nov 20:03 company_bacula-sd JobId 3: Fatal error: block.c:856
Unable to open device next part DVDWriter (/dev/hda): ERR=Could not
mount DVD device DVDWriter (/dev/hda).

This is the debug-output of the SD:

Volume Label:
Id: Bacula 1.0 immortal
VerNo : 11
VolName   : BaculaDVD0003
PrevVolName   :
VolFile   : 0
LabelType : PRE_LABEL
LabelSize : 175
PoolName  : DVDPool
MediaType : DVD
PoolType  : Backup
HostName  : company-bacula
Date label written: 29-Nov-2008 20:02

Re: [Bacula-users] DVD backup problems gone!

2008-11-29 Thread Jari Fredriksson
 Jari Fredriksson wrote:
 
 All very true.  Great.  I suggest that waiting slightly
 longer than you 
 did is generally a good idea.  A period of  24 hours
 isn't best practice. 

I wrote my query to Users 8th november with a Subject Strange DVD backup 
problem. Before that I wrote under Subject Moving from Tape to DVD, that was 
7th Nov.

Bug reports were filed 10th November, because Arno Lehmann responded that I 
think you've got enough information for a bug report at 
bugs.bacula.org 

Besides that, the only response was

Hi, sorry I can´t help you, but I have the same problem Here. No idea what can 
help. tried with 2.28 and 2.4.3Maybe a bug report is what helps.

And now my bug file is premature?

Regards
jarif - trying to help you to help me to help you to help me




 
 As we speak, I'm doing backups with a slightly modified
 2.2.28 version, and hope to get something out of it.But
 it's not easy.  
 
 Great.  It'll be great to see the patches in the bug
 report.  But as it stands now, the bug report is
 premature. Please, I'm trying to *help* 
 you *help* us *help* you.  :)
 
 thanks.
 
 
 -
 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=100url=/
 ___  
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.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=100url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup problems gone!

2008-11-29 Thread Nils Blanck-Wehde

Hello everyone,

I am trying hard to get DVD backups working as well.
I posted about this to the list last week (topic: ERR=Could not mount 
DVD device), unfortunately with no reply so far. It looks like backing 
up to DVD isn't a very common thing around here...


If anyone actually did manage to backup to DVD with a recent version of 
bacula, I would be very glad to here about it so at least i know that it 
in fact is possible.
There is a message bundeled with the source code that suggests using an 
block-device above an UTF formatted DVD-RW. If someone successfully did 
this, I would be very glad if you shared.


Many thanks in advance

Nils




Jari Fredriksson schrieb:

Jari Fredriksson wrote:

All very true.  Great.  I suggest that waiting slightly
longer than you 
did is generally a good idea.  A period of  24 hours
isn't best practice. 



I wrote my query to Users 8th november with a Subject Strange DVD backup problem. 
Before that I wrote under Subject Moving from Tape to DVD, that was 7th Nov.

Bug reports were filed 10th November, because Arno Lehmann responded that I think you've got enough information for a bug report at 
bugs.bacula.org 


Besides that, the only response was

Hi, sorry I can´t help you, but I have the same problem Here. No idea what can 
help. tried with 2.28 and 2.4.3Maybe a bug report is what helps.

And now my bug file is premature?

Regards
jarif - trying to help you to help me to help you to help me




  

As we speak, I'm doing backups with a slightly modified
2.2.28 version, and hope to get something out of it.But
it's not easy.  
  

Great.  It'll be great to see the patches in the bug
report.  But as it stands now, the bug report is
premature. Please, I'm trying to *help* 
you *help* us *help* you.  :)


thanks.

-
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=100url=/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD Backup Version 2.0.2 OK?

2008-11-29 Thread Jari Fredriksson
 Hi all together,
 
 and, sorry for my english :)
 
 I read that version 2.0.2 is running fine for DVD Backups.
 I tried with 2.4 and 2.2.8 both are buggy.
 
 Version 2.0.2 is not (any more) at sourceforge.
 
 Anybody knows where to get source code or debian (etch)
 packages with 
 debs?
 
 Many thanks in advance

Good question! Someone must have it, so let's keep this thread public. I want 
that version too!


-
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=100url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD Backup Version 2.0.2 OK?

2008-11-29 Thread John Drescher
On Sat, Nov 29, 2008 at 11:55 AM, John Drescher [EMAIL PROTECTED] wrote:
 On Sat, Nov 29, 2008 at 10:50 AM, michael riehemann
 [EMAIL PROTECTED] wrote:
 Hi all together,

 and, sorry for my english :)

 I read that version 2.0.2 is running fine for DVD Backups.
 I tried with 2.4 and 2.2.8 both are buggy.


 Did you use a patched dvd+rw-tools?  Or a 7.04 or greater?

 John




-- 
John M. Drescher

-
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=100url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup problems gone!

2008-11-29 Thread Dan Langille
Jari Fredriksson wrote:
 Jari Fredriksson wrote:

 All very true.  Great.  I suggest that waiting slightly
 longer than you 
 did is generally a good idea.  A period of  24 hours
 isn't best practice. 
 
 I wrote my query to Users 8th november with a Subject Strange DVD backup 
 problem. Before that I wrote under Subject Moving from Tape to DVD, that 
 was 7th Nov.
 
 Bug reports were filed 10th November, because Arno Lehmann responded that I 
 think you've got enough information for a bug report at 
 bugs.bacula.org

I didn't see any URL to the mailing list archives.  This is part of the 
process.  See http://bugs.bacula.org/ where it is stated quite clearly.

This helps the developers see that you've gone through the process and 
lets them review what has all ready been said.

 Besides that, the only response was
 
 Hi, sorry I can´t help you, but I have the same problem Here. No idea what 
 can help. tried with 2.28 and 2.4.3Maybe a bug report is what helps.
 
 And now my bug file is premature?

Jari: Think whatever you want.  I've said my bit.  Take it as you will.

I look forward to your patches.  Best wishes.

-
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=100url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD Backup Version 2.0.2 OK?

2008-11-29 Thread Bruno Friedmann
All packages are in SF
but you must dig to find them :-)

https://sourceforge.net/search/index.php?group_id=50727form_submit=Searchsearch_file_name=1search_release_name=1search_release_notes=1search_changelog=1type_of_search=filesall_words=2.0.2exact_phrase=some_word=without_words=package_id[]=44845file_type=processor=released_by=release_date_start=release_date_end=

hope you will find your bonheur


michael riehemann wrote:
 Hi all together,
 
 and, sorry for my english :)
 
 I read that version 2.0.2 is running fine for DVD Backups.
 I tried with 2.4 and 2.2.8 both are buggy.
 
 Version 2.0.2 is not (any more) at sourceforge.
 
 Anybody knows where to get source code or debian (etch) packages with  
 debs?
 
 Many thanks in advance
 
 
 Michael
 
 
 
 


-- 

 Bruno Friedmann


-
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=100url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup problems gone!

2008-11-29 Thread Jari Fredriksson
 Jari: Think whatever you want.  I've said my bit.  Take
 it as you will. 
 
 I look forward to your patches.  Best wishes.
 

For patches. Tell me about the plan, if you know it.

When recycling a DVD media Bacula writes a 0 bytes length label file, and 
documents that it is how it should be.
When mounting a DVD media Bacula tries to read the label file, and complains if 
it is 0 bytes and has no data.

Does anyone has any idea how it should work?

I can not provide patches, unless I know what is the plan. And if I knew the 
plan, I still could not provide the patch. I have seen the code, and it is 
rather complex to maintain.


-
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=100url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup problems gone!

2008-11-29 Thread John Drescher
 For patches. Tell me about the plan, if you know it.

 When recycling a DVD media Bacula writes a 0 bytes length label file, and 
 documents that it is how it should be.
 When mounting a DVD media Bacula tries to read the label file, and complains 
 if it is 0 bytes and has no data.


Is that the only problem?

I can think of a workaround for that. I mean delete the recycled media
from bacula. Then blank the media and use it as new media.

John

-
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=100url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD Backup Version 2.0.2 OK?

2008-11-29 Thread Jari Fredriksson
 On Sat, Nov 29, 2008 at 11:55 AM, John Drescher
 [EMAIL PROTECTED] wrote: 
 On Sat, Nov 29, 2008 at 10:50 AM, michael riehemann
 [EMAIL PROTECTED] wrote:
 Hi all together,
 
 and, sorry for my english :)
 
 I read that version 2.0.2 is running fine for DVD
 Backups. I tried with 2.4 and 2.2.8 both are buggy.
 
 
 Did you use a patched dvd+rw-tools?  Or a 7.04 or
 greater? 
 
 John

I have patched dvd+rw-tools on latest Debian. And I can confirm that both the 
2.2.8 and 2.4 branch do not work.

-
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=100url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD Backup Version 2.0.2 OK?

2008-11-29 Thread michael riehemann
hi,


i use:

* growisofs by [EMAIL PROTECTED], version 7.1,
   front-ending to mkisofs: mkisofs 2.01 is not what you see here.  
This line is only a fake for too clever
GUIs and other frontend applications. In fact, this program is:
genisoimage 1.1.2 (Linux)


only binary growisofs compiled from source.

Michael


Am 29.11.2008 um 17:55 schrieb John Drescher:

 On Sat, Nov 29, 2008 at 11:55 AM, John Drescher  
 [EMAIL PROTECTED] wrote:
 On Sat, Nov 29, 2008 at 10:50 AM, michael riehemann
 [EMAIL PROTECTED] wrote:
 Hi all together,

 and, sorry for my english :)

 I read that version 2.0.2 is running fine for DVD Backups.
 I tried with 2.4 and 2.2.8 both are buggy.


 Did you use a patched dvd+rw-tools?  Or a 7.04 or greater?

 John




 -- 
 John M. Drescher

 -
 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=100url=/
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.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=100url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup problems gone!

2008-11-29 Thread Jari Fredriksson
 For patches. Tell me about the plan, if you know it.
 
 When recycling a DVD media Bacula writes a 0 bytes
 length label file, and documents that it is how it
 should be. When mounting a DVD media Bacula tries to
 read the label file, and complains if it is 0 bytes and
 has no data.   
 
 
 Is that the only problem?

No it is not. Its the bug #0001186, the main problem is bug #0001184

 
 I can think of a workaround for that. I mean delete the
 recycled media 
 from bacula. Then blank the media and use it as new media.
 
 John

It was mentioned as an example how hard it is to write patches. I have worked 
on the main problem, but did nothing to the mentioned problem as a patch, as 
there must be a plan.

There must be a reason a developer has decided to write a zero-length file when 
recycling. What is that reason? The mount function does not appreciate that, 
but should I patch that then? Which way I go? Indeed that one is not that hard, 
but its not the case I was working with.

The bastard is #0001184, why does it not update the last Part to the Catalog? 
As I do not work (either) full time with bacula, that remains a mystery to me.

#0001184 says 2.4.x does not update the last part to catalog.

2.2.8 has totally different problems, and I have not currently anything to say 
publicly about it (I removed it from disk).

I'm currently downloading everything with svn and will see what happens.

I understand that DVD backup is not important to corporations. But it is a 
feature in Bacula, and I went that route as my DDS-drive died I wanted a new 
solution without a Lottery win. DVD+RW media is not very cheap, I could have 
bought a hard disk with much more capacity then the discs provide, but...


-
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=100url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup problems gone!

2008-11-29 Thread michael riehemann
 I could have bought a hard disk with much more capacity then the  
discs provide, but...


it´s great to have backups forever - if some of my costumer ask for  
a file from one or two years
ago, i can say - ok, let me have a look, maybe it is possible.

Michael


Am 29.11.2008 um 19:12 schrieb Jari Fredriksson:

 For patches. Tell me about the plan, if you know it.

 When recycling a DVD media Bacula writes a 0 bytes
 length label file, and documents that it is how it
 should be. When mounting a DVD media Bacula tries to
 read the label file, and complains if it is 0 bytes and
 has no data.


 Is that the only problem?

 No it is not. Its the bug #0001186, the main problem is bug #0001184


 I can think of a workaround for that. I mean delete the
 recycled media
 from bacula. Then blank the media and use it as new media.

 John

 It was mentioned as an example how hard it is to write patches. I  
 have worked on the main problem, but did nothing to the mentioned  
 problem as a patch, as there must be a plan.

 There must be a reason a developer has decided to write a zero- 
 length file when recycling. What is that reason? The mount function  
 does not appreciate that, but should I patch that then? Which way I  
 go? Indeed that one is not that hard, but its not the case I was  
 working with.

 The bastard is #0001184, why does it not update the last Part to the  
 Catalog? As I do not work (either) full time with bacula, that  
 remains a mystery to me.

 #0001184 says 2.4.x does not update the last part to catalog.

 2.2.8 has totally different problems, and I have not currently  
 anything to say publicly about it (I removed it from disk).

 I'm currently downloading everything with svn and will see what  
 happens.

 I understand that DVD backup is not important to corporations. But  
 it is a feature in Bacula, and I went that route as my DDS-drive  
 died I wanted a new solution without a Lottery win. DVD+RW media is  
 not very cheap, I could have bought a hard disk with much more  
 capacity then the discs provide, but...


 -
 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=100url=/
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.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=100url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD Backup Version 2.0.2 OK?

2008-11-29 Thread Nils Blanck-Wehde

Hi John, hi everyone!

I think I am getting closer to get DVD-burning to work. I would really 
love to use this feature and I would be glad to help fix it.


I just checked, I had dvd+rw-tools-7.0-0.el5.3.rpm installed. As this is 
is 7.04 I uninstalled the rpm and compiled / installed from this sources:
   
http://fy.chalmers.se/~appro/linux/DVD+RW/tools/dvd+rw-tools-7.1.tar.gz

Now, growisofs is version 7.1:
   * growisofs by [EMAIL PROTECTED], version 7.1
Does this version still require patching before building?

Here is what happens now: DVD burning works AS LONG as bacula doesn't 
write more than one part. After the first part a mount error occurs. I 
think that bacula for some reason tries to mount the dvd after each 
part, maybe to check what it just wrote or to calculate the remaining 
space. As far as I understand, it is NOT safe to burn parts  800MB to a 
dvd so I left the default value of 800M in bacula-sd.conf.
I ran the SD as root (/usr/sbin/bacula-sd -d 99) so I don't think that 
there really is a mount error. Maybe the debug-output is misleading?


You will find the (somewhat lengthy) debug output of DIR and SD attached.

If ANY other information (versions, configurations, hardware etc.) might 
help solve the issue, please ask. I will provide you with anything 
needed asap.


Many thanks in advance

Nils



This is the debug output from the director:
29-Nov 20:02 company_bacula-dir JobId 3: Start Backup JobId 3, 
Job=nightly-self-backup.2008-11-29_20.02.19
29-Nov 20:02 company_bacula-dir JobId 3: Created new Volume 
BaculaDVD0003 in catalog.

29-Nov 20:02 company_bacula-dir JobId 3: Using Device DVDWriter
29-Nov 20:02 company_bacula-sd JobId 3: Labeled new Volume 
BaculaDVD0003 on device DVDWriter (/dev/hda).
29-Nov 20:02 company_bacula-sd JobId 3: Wrote label to prelabeled Volume 
BaculaDVD0003 on device DVDWriter (/dev/hda)
29-Nov 20:02 company_bacula-dir JobId 3: Max Volume jobs exceeded. 
Marking Volume BaculaDVD0003 as Used.
29-Nov 20:03 company_bacula-sd JobId 3: Part 1 (52384166 bytes) written 
to DVD.
29-Nov 20:03 company_bacula-sd JobId 3: Remaining free space 
4,695,588,864 on DVDWriter (/dev/hda)
29-Nov 20:03 company_bacula-sd JobId 3: Fatal error: block.c:856 Unable 
to open device next part DVDWriter (/dev/hda): *ERR=Could not mount 
DVD device DVDWriter (/dev/hda)*.


This is the debug-output of the SD:

Volume Label:
Id: Bacula 1.0 immortal
VerNo : 11
VolName   : BaculaDVD0003
PrevVolName   :
VolFile   : 0
LabelType : PRE_LABEL
LabelSize : 175
PoolName  : DVDPool
MediaType : DVD
PoolType  : Backup
HostName  : company-bacula
Date label written: 29-Nov-2008 20:02
company_bacula-sd: reserve.c:316-0 jid=3 enter 
reserve_volume=BaculaDVD0003 drive=DVDWriter (/dev/hda)
company_bacula-sd: reserve.c:189-0 jid=3 List begin reserve_volume: 
BaculaDVD0003 in_use=1 on device DVDWriter (/dev/hda)
company_bacula-sd: reserve.c:331-0 jid=3 Vol attached=BaculaDVD0003, 
newvol=BaculaDVD0003 volinuse=1 on DVDWriter (/dev/hda)
company_bacula-sd: reserve.c:339-0 jid=3 === set reserved 
vol=BaculaDVD0003 dev=DVDWriter (/dev/hda)
company_bacula-sd: reserve.c:418-0 jid=3 === set in_use. 
vol=BaculaDVD0003 dev=DVDWriter (/dev/hda)
company_bacula-sd: reserve.c:189-0 jid=3 List end new volume: 
BaculaDVD0003 in_use=1 on device DVDWriter (/dev/hda)

company_bacula-sd: reserve.c:490-0 Dec reserve=0 dev=DVDWriter (/dev/hda)
company_bacula-sd: append.c:96-0 Begin append device=DVDWriter (/dev/hda)
company_bacula-sd: dvd.c:311-0 Enter: == open_next_part part=1 npart=0 
dev=DVDWriter (/dev/hda) vol=BaculaDVD0003 mode=2 file_addr=52383955
company_bacula-sd: dvd.c:227-0 dvd_write_part: device is DVDWriter 
(/dev/hda), part is 1, is_mounted=0
company_bacula-sd: dvd.c:256-0 Write part: 
cmd=/usr/lib/bacula/dvd-handler /dev/hda write 1 
/tmp/backup/BaculaDVD0003 timeout=16000
company_bacula-sd: dvd.c:258-0 Write part status=0 result=Running 
growisofs -use-the-force-luke=notray -quiet -use-the-force-luke=4gms -A 
'Bacula Data' -input-charset=default -iso-level 3 -pad -p 'dvd-handler / 
growisofs' -sysid 'BACULADATA' -R -Z /dev/hda /tmp/backup/BaculaDVD0003
Executing 'mkisofs -quiet -A Bacula Data -input-charset=default 
-iso-level 3 -pad -p dvd-handler / growisofs -sysid BACULADATA -R 
/tmp/backup/BaculaDVD0003 | builtin_dd of=/dev/hda obs=32k seek=0'

/dev/hda: Current Write Speed is 16.4x1352KBps.
/dev/hda: flushing cache
/dev/hda: updating RMA
/dev/hda: closing session

Part file /tmp/backup/BaculaDVD0003 successfully written to disk.

company_bacula-sd: dvd.c:287-0 = unlink(/tmp/backup/BaculaDVD0003)
company_bacula-sd: dvd.c:341-0 Inc part=2 num_dvd_parts=1
company_bacula-sd: dev.c:570-0 open_dvd_device: part=2 num_dvd_parts=1, 
VolCatInfo.VolCatParts=1

company_bacula-sd: dev.c:619-0 DVD device mount failed.
company_bacula-sd: append.c:220-0 Got write_block_to_dev error on device 
DVDWriter 

Re: [Bacula-users] DVD backup problems gone!

2008-11-28 Thread Jari Fredriksson
No, sorry.

Next job fails now with message

29-Nov 04:27 wellington-sd JobId 8982: Fatal error: dvd.c:580 Error writing. 
Current part less than total number of parts (5/5, device=DVD_RW (/dev/hdc))

5 is less than 5 and it fails. Dammit.




 I went from tape to DVD a month ago, and everything
 failed. 
 
 Bug reports:
 
 http://bugs.bacula.org/view.php?id=1184
 http://bugs.bacula.org/view.php?id=1186
 
 
 Yahoo! Google!
 
 I downgraded to 2.2.8 for the dir/stored server, and I
 made it! Backup successful! 
 
 I don't remember when was it, but the stored code was
 rewritten. Seems that broke the DVD code. 
 
 I have not restored yet, but at least each DVD part
 updates the database, and everyting seems to work fine in
 backup.  
 
 
 Downgrading from latest to 2.2.8 did not need changes in
 database, and at least backup works fine now. I have no
 idea yet how the recycle bug sorts out, I have DVD+RW's
 for 1 years needs, but let's see next year when they all
 fill up.
 
 At least backup works! Cool.
 
 -
 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=100url=/
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.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=100url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup problems gone!

2008-11-28 Thread Dan Langille
Jari Fredriksson wrote:
 
 I went from tape to DVD a month ago, and everything
 failed. 

 Bug reports:

 http://bugs.bacula.org/view.php?id=1184
 http://bugs.bacula.org/view.php?id=1186


 Yahoo! Google!

 I downgraded to 2.2.8 for the dir/stored server, and I
 made it! Backup successful! 

 I don't remember when was it, but the stored code was
 rewritten. Seems that broke the DVD code. 

 I have not restored yet, but at least each DVD part
 updates the database, and everyting seems to work fine in
 backup.  


 Downgrading from latest to 2.2.8 did not need changes in
 database, and at least backup works fine now. I have no
 idea yet how the recycle bug sorts out, I have DVD+RW's
 for 1 years needs, but let's see next year when they all
 fill up.

 At least backup works! Cool.

  No, sorry.
 
  Next job fails now with message
 
  29-Nov 04:27 wellington-sd JobId 8982: Fatal error: dvd.c:580 Error 
writing. Current part less than total number of parts (5/5, 
device=DVD_RW (/dev/hdc))
 
  5 is less than 5 and it fails. Dammit.

Sorry, I can't help you.  But in general, you're better off seeking help 
here first before you file a bug report.

see http://www.bacula.org/en/?page=support

cheers

-
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=100url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup problems gone!

2008-11-28 Thread Jari Fredriksson
 
 Sorry, I can't help you.  But in general, you're better
 off seeking help here first before you file a bug report.
 
 see http://www.bacula.org/en/?page=support
 
 cheers
 

Cheers.

That page was about different kind ofsupport for Bacula.

1. Professional Support.

I don't want Professional, paid support. I use this at home, have used for 
years without problems, with Tape. But now my streamer died and I converted to 
DVD+RW.

2. Reading Bacula Users and Bacula bugs. I already do that. Have done for years.

3. About not sending messages to Kern. Ok. Trying to stay on Users and Bugs.

I have tried to be clear and concise in my bug reports. It is easy to comment a 
bug report if it is not reasonable.

I have a feeling that some people are using Bacula with DVD+RW with success. I 
have had comments that

Here, same problem

and

Here, all good with 2.0.2

There is no such version as 2.0.2 downloadable. That is why I'm writing here? 
What version works with DVD? Some do, some dont.

I kind of feel betrayed when I have used Bacula for years with my tapes, and 
now I'm offered http://www.bacula.org/en/?page=support


Cheers and thanks.


-
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=100url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup problems gone!

2008-11-28 Thread Dan Langille
Jari Fredriksson wrote:
 Sorry, I can't help you.  But in general, you're better
 off seeking help here first before you file a bug report.

 see http://www.bacula.org/en/?page=support

 cheers

 
 Cheers.
 
 That page was about different kind ofsupport for Bacula.

Yes.  This mailing list is one form of support.

 I have tried to be clear and concise in my bug reports. It is easy to comment 
 a bug report if it is not reasonable.

Bug reports give work to developers.  That's who reads the bug reports. 
  By asking the users mailing list first, you allow other users to 
contribute to the project and at the same time lessen the workload for 
developers.

 I kind of feel betrayed when I have used Bacula for years with my tapes, and 
 now I'm offered http://www.bacula.org/en/?page=support

You aren't being asked to do anything new or being singled out.

The main point was: please post here and seek help *before* filing a bug 
report.  http://www.bacula.org/en/?page=bugs is also quite clear on this 
point.

regards.  :)

-
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=100url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup problems gone!

2008-11-28 Thread Jari Fredriksson
 
 The main point was: please post here and seek help
 *before* filing a bug report. 
 http://www.bacula.org/en/?page=bugs is also quite clear
 on this point. 
 
 regards.  :)
 

And that is all I have done.

I started this with writing to users.

All help I got was Yes I have the same problem.

Then I downloaded the source and debugged. Tried and tried to understand what 
the code does. Could not do it with my 20 years of C/C++ work history.

THEN I filed a bug report.

As we speak, I'm doing backups with a slightly modified 2.2.28 version, and 
hope to get something out of it.But it's not easy.

Regards


-
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=100url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup problems gone!

2008-11-28 Thread Dan Langille
Jari Fredriksson wrote:
 The main point was: please post here and seek help
 *before* filing a bug report. 
 http://www.bacula.org/en/?page=bugs is also quite clear
 on this point. 

 regards.  :)

 
 And that is all I have done.
 
 I started this with writing to users.
 
 All help I got was Yes I have the same problem.
 
 Then I downloaded the source and debugged. Tried and tried to understand what 
 the code does. Could not do it with my 20 years of C/C++ work history.
 
 THEN I filed a bug report.

All very true.  Great.  I suggest that waiting slightly longer than you 
did is generally a good idea.  A period of  24 hours isn't best practice.

 As we speak, I'm doing backups with a slightly modified 2.2.28 version, and 
 hope to get something out of it.But it's not easy.

Great.  It'll be great to see the patches in the bug report.  But as it 
stands now, the bug report is premature. Please, I'm trying to *help* 
you *help* us *help* you.  :)

thanks.


-
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=100url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD Backup handler - Wrong concept?

2007-06-15 Thread [EMAIL PROTECTED]
Hi Arno,

Arno Lehmann schrieb:
 Hi,

 On 6/15/2007 9:47 AM, [EMAIL PROTECTED] wrote:
   
 Hello List,

 when backing up to a dvd, bacula stored its file in the spool directory.
 If the DVD is full, does then the whole backup process stop and wait for 
 a new media?
 

 Yes.
   
Ohje.
   
 Example: I am on holiday for 14 days. After 4 Days the DVD is full. Does 
 then backula not back up at all until my DVD is writeable again?
 That would mean that i dont even have backups on my hard disk or spool 
 directory?
 

 Right.

   
Ohhhno.
 In my optionion bacula should carry on writing to the spool directory 
 and catch it up once a new DVD is inserted.
 

 That's not how Bacula does it... sounds more like amanda with its disk 
 staging concept.

   
 Did i understand the whole process wrong, or am i right?
 Any comments to this are desired.
 

 Well, the solution would be to run backups to disk and later migrate to DVD.

 D2D2D :-)


   

Thanks Arno :)


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD Backup handler - Wrong concept?

2007-06-15 Thread Arno Lehmann
Hi,

On 6/15/2007 9:47 AM, [EMAIL PROTECTED] wrote:
 Hello List,
 
 when backing up to a dvd, bacula stored its file in the spool directory.
 If the DVD is full, does then the whole backup process stop and wait for 
 a new media?

Yes.

 Example: I am on holiday for 14 days. After 4 Days the DVD is full. Does 
 then backula not back up at all until my DVD is writeable again?
 That would mean that i dont even have backups on my hard disk or spool 
 directory?

Right.

 In my optionion bacula should carry on writing to the spool directory 
 and catch it up once a new DVD is inserted.

That's not how Bacula does it... sounds more like amanda with its disk 
staging concept.

 Did i understand the whole process wrong, or am i right?
 Any comments to this are desired.

Well, the solution would be to run backups to disk and later migrate to DVD.

D2D2D :-)

 Cheers, Mario

Arno

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

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup not starting

2007-05-31 Thread Lucio Crusca
Arno Lehmann wrote:
  3910 Unable to open device DVD-Writer (/dev/hdb): ERR=dev.c:651 Could
  not open: /tmp/backup/Backup-0003, ERR=No such file or directory

 Hmm... permissions problem? Make sure the SD can write to /tmp/backup.
That was the problem: /tmp/backup did not exist at all (I forgot to create it 
when I installed bacula and then I forgot I had changed the Spool Directory 
setting).

Thanks.



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup not starting

2007-05-30 Thread Lucio Crusca
Arno Lehmann wrote:
 You should ensure that no autmounting mechanism is active for that
 device anyway... I found that writes to DVD would work without problems,
 but the data could not be accessed when I had udev/hal automounting a
 DVD I used for Bacula.
I've verified that no automounting mechanism is configured on that system by 
inserting in the DVD unit a CD media that my linux desktop system mounts 
automatically: the server didn't mount it. However the backup still doesn't 
start:

*messages
30-May 10:10 server-Emmeti-dir: Start Backup JobId 38, 
Job=Client1.2007-05-30_10.10.23
30-May 10:10 server-Emmeti-sd: Please mount Volume Backup-0003 on Storage 
Device DVD-Writer (/dev/hdb) for Job Client1.2007-05-30_10.10.23

  Does the label command work against blank media?

* label
Automatically selected Catalog: MyCatalog
Using Catalog MyCatalog
Automatically selected Storage: server-Emmeti-sd
Enter new Volume name: Backup-0003
Automatically selected Pool: Default
Connecting to Storage daemon server-Emmeti-sd at server-Emmeti:9103 ...
Sending label command for Volume Backup-0003 Slot 0 ...
3910 Unable to open device DVD-Writer (/dev/hdb): ERR=dev.c:651 Could not 
open: /tmp/backup/Backup-0003, ERR=No such file or directory

Label command failed for Volume Backup-0003.
Do not forget to mount the drive!!!

So the problem seems to be:
Could not open: /tmp/backup/Backup-0003, ERR=No such file or directory

What can I do to fix it?

Lucio.

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup not starting

2007-05-30 Thread Arno Lehmann
Hi,

On 5/30/2007 10:50 AM, Lucio Crusca wrote:
 Arno Lehmann wrote:
 You should ensure that no autmounting mechanism is active for that
 device anyway... I found that writes to DVD would work without problems,
 but the data could not be accessed when I had udev/hal automounting a
 DVD I used for Bacula.
 I've verified that no automounting mechanism is configured on that system by 
 inserting in the DVD unit a CD media that my linux desktop system mounts 
 automatically: the server didn't mount it.

That's good.

 However the backup still doesn't 
 start:

That's bad.

 *messages
 30-May 10:10 server-Emmeti-dir: Start Backup JobId 38, 
 Job=Client1.2007-05-30_10.10.23
 30-May 10:10 server-Emmeti-sd: Please mount Volume Backup-0003 on Storage 
 Device DVD-Writer (/dev/hdb) for Job Client1.2007-05-30_10.10.23
 
 Does the label command work against blank media?
 
 * label
 Automatically selected Catalog: MyCatalog
 Using Catalog MyCatalog
 Automatically selected Storage: server-Emmeti-sd
 Enter new Volume name: Backup-0003
 Automatically selected Pool: Default
 Connecting to Storage daemon server-Emmeti-sd at server-Emmeti:9103 ...
 Sending label command for Volume Backup-0003 Slot 0 ...
 3910 Unable to open device DVD-Writer (/dev/hdb): ERR=dev.c:651 Could not 
 open: /tmp/backup/Backup-0003, ERR=No such file or directory

Hmm... permissions problem? Make sure the SD can write to /tmp/backup.

 Label command failed for Volume Backup-0003.
 Do not forget to mount the drive!!!
 
 So the problem seems to be:
 Could not open: /tmp/backup/Backup-0003, ERR=No such file or directory
 
 What can I do to fix it?

Please post your storage daemon configuration for DVD-Writer again.

Arno

 Lucio.
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup not starting

2007-05-23 Thread Lucio
Arno Lehmann wrote:
  Running Jobs:
   JobId Level   Name   Status
  ==
  18 Increme  Client1.2007-05-21_12.21.30 is waiting for a mount
  request
 
  (still waiting about 20 minutes after run), and:

 Ok.

 Have you tried issuing a mount at this time?
Now I have. If the media is blank the mount obviously fails and nothing 
happens. 
If the media already has at least one session and its appendable the mount 
succeeds but in bacula still nothing happens.

 Also, use trace=1, so you have a bconsle command of 'setdebug level=200
 trace=1 sd=server-Emmeti-sd'

 Then, look at the trace file in the working directory of the SD... IIRC,
 it would be called server-Emmeti-sd.trace.

I post here the parts that I believe can be useful to find the problem 
(blank DVD media in this case):

server-Emmeti-sd: askdir.c:204 do_reqest_vol_info return true slot=0 
Volume=Backup-0003
server-Emmeti-sd: reserve.c:159 New Vol=Backup-0003 dev=DVD-Writer (/dev/hdb)
server-Emmeti-sd: reserve.c:735 JobId=27 looking for Volume=Backup-0003
server-Emmeti-sd: reserve.c:862 reserve_append device is disk
server-Emmeti-sd: reserve.c:893 PrefMnt=1 exact=1 suitable=1 chgronly=0 any=0
server-Emmeti-sd: reserve.c:944 failed: Not exact match have= want=Backup-0003
server-Emmeti-sd: reserve.c:866 can_reserve_drive!=1
server-Emmeti-sd: reserve.c:258 free_unused_volume Backup-0003
server-Emmeti-sd: reserve.c:760 Not OK.
server-Emmeti-sd: reserve.c:597 Suitable device found=DVD-Writer, not used: busy

[...]

server-Emmeti-sd: dircmd.c:206 dird: run
server-Emmeti-sd: dircmd.c:220 Do command: run
server-Emmeti-sd: job.c:153 Run_cmd: run
server-Emmeti-sd: job.c:172 Client1.2007-05-23_14.01.20 waiting 1800 sec for FD 
to contact SD
server-Emmeti-sd: bnet.c:1154 who=client host=127.0.0.1 port=36643
server-Emmeti-sd: dircmd.c:169 Conn: Hello Start Job Client1.2007-05-23_14.01.20
server-Emmeti-sd: job.c:214 Found Job Client1.2007-05-23_14.01.20

[...]

server-Emmeti-sd: job.c:190 Running job Client1.2007-05-23_14.01.20
server-Emmeti-sd: fd_cmds.c:122 Start run Job=Client1.2007-05-23_14.01.20
server-Emmeti-sd: fd_cmds.c:160 filed: append open session
server-Emmeti-sd: fd_cmds.c:228 Append open session: append open session
server-Emmeti-sd: fd_cmds.c:238 filed: 3000 OK open ticket = 1
server-Emmeti-sd: fd_cmds.c:160 filed: append data 1
server-Emmeti-sd: fd_cmds.c:190 Append data: append data 1
server-Emmeti-sd: fd_cmds.c:192 bfiled: append data 1
server-Emmeti-sd: append.c:73 Start append data. res=1
server-Emmeti-sd: acquire.c:318 acquire_append device is DVD
server-Emmeti-sd: acquire.c:384 Not in append mode, try mount.
server-Emmeti-sd: acquire.c:390 Do mount_next_write_vol
server-Emmeti-sd: mount.c:74 Enter mount_next_volume(release=0) 
dev=DVD-Writer (/dev/hdb)
server-Emmeti-sd: mount.c:84 mount_next_vol retry=0
server-Emmeti-sd: mount.c:110 Before dir_find_next_appendable_volume.
server-Emmeti-sd: askdir.c:252 dir_find_next_appendable_volume
server-Emmeti-sd: askdir.c:266 dird: CatReq Job=Client1.2007-05-23_14.01.20 
FindMedia=1 pool_name=Default media_type=DVD
server-Emmeti-sd: askdir.c:182 dird 1000 OK VolName=Backup-0003 VolJobs=0 
VolFiles=0 VolBlocks=0 VolBytes=0 VolMounts=0 VolErrors=0 VolWrites=0 
MaxVolBytes=460800 VolCapacityBytes=0 VolStatus=Append Slot=0 MaxVolJobs=0 
MaxVolFiles=0 InChanger=0 VolReadTime=0 VolWriteTime=0 EndFile=0 EndBlock=0 
VolParts=0 LabelType=0 MediaId=3
server-Emmeti-sd: askdir.c:204 do_reqest_vol_info return true slot=0 
Volume=Backup-0003
server-Emmeti-sd: reserve.c:323 Vol=Backup-0003 not in use.
server-Emmeti-sd: reserve.c:159 New Vol=Backup-0003 dev=DVD-Writer (/dev/hdb)
server-Emmeti-sd: mount.c:122 After find_next_append. Vol=Backup-0003 Slot=0 
Parts=0
server-Emmeti-sd: autochanger.c:121 Device DVD-Writer (/dev/hdb) is not an 
autochanger
server-Emmeti-sd: mount.c:142 autoload_dev returns 0
server-Emmeti-sd: mount.c:158 Ask=0 autochanger=0
server-Emmeti-sd: mount.c:168 want vol=Backup-0003
server-Emmeti-sd: dev.c:295 open dev: type=3 dev_name=DVD-Writer (/dev/hdb) 
vol=Backup-0003 mode=OPEN_READ_WRITE
server-Emmeti-sd: dev.c:302 call open_dvd_device mode=OPEN_READ_WRITE
server-Emmeti-sd: dev.c:510 Enter: open_dvd_dev: DVD vol= mode=OPEN_READ_WRITE
server-Emmeti-sd: dev.c:521 Volume=Backup-0003
server-Emmeti-sd: dev.c:533 Set part=1
server-Emmeti-sd: dev.c:546 open DVD part=1 num_dvd_parts=0
server-Emmeti-sd: dev.c:563 open_dvd_device: part=1 num_dvd_parts=0, 
VolCatInfo.VolCatParts=0
server-Emmeti-sd: dev.c:1957 Enter mount
server-Emmeti-sd: dev.c:2005 do_mount: cmd=/bin/mount /dev/hdb mounted=0
server-Emmeti-sd: dev.c:2017 do_mount run_prog=/bin/mount /dev/hdb
server-Emmeti-sd: dev.c:1996 === mount=0
server-Emmeti-sd: dev.c:2040 Device DVD-Writer (/dev/hdb) cannot be mounted. 
stat=268435488 result=mount: wrong fs type, bad option, bad superblock on 
/dev/hdb,
   missing codepage or other error
   In 

Re: [Bacula-users] DVD backup not starting

2007-05-23 Thread Richard Mortimer
On Wed, 2007-05-23 at 15:11 +0200, Lucio wrote:
 Arno Lehmann wrote:
   Running Jobs:
JobId Level   Name   Status
   ==
   18 Increme  Client1.2007-05-21_12.21.30 is waiting for a mount
   request
  
   (still waiting about 20 minutes after run), and:
 
  Ok.
 
  Have you tried issuing a mount at this time?
 Now I have. If the media is blank the mount obviously fails and nothing 
 happens. 
 If the media already has at least one session and its appendable the mount 
 succeeds but in bacula still nothing happens.
 
  Also, use trace=1, so you have a bconsle command of 'setdebug level=200
  trace=1 sd=server-Emmeti-sd'
 
  Then, look at the trace file in the working directory of the SD... IIRC,
  it would be called server-Emmeti-sd.trace.
 
 I post here the parts that I believe can be useful to find the problem 
 (blank DVD media in this case):
 
 server-Emmeti-sd: askdir.c:204 do_reqest_vol_info return true slot=0 
 Volume=Backup-0003
 server-Emmeti-sd: reserve.c:159 New Vol=Backup-0003 dev=DVD-Writer 
 (/dev/hdb)
 server-Emmeti-sd: reserve.c:735 JobId=27 looking for Volume=Backup-0003
 server-Emmeti-sd: reserve.c:862 reserve_append device is disk
 server-Emmeti-sd: reserve.c:893 PrefMnt=1 exact=1 suitable=1 chgronly=0 any=0
 server-Emmeti-sd: reserve.c:944 failed: Not exact match have= want=Backup-0003
 server-Emmeti-sd: reserve.c:866 can_reserve_drive!=1
 server-Emmeti-sd: reserve.c:258 free_unused_volume Backup-0003
 server-Emmeti-sd: reserve.c:760 Not OK.
 server-Emmeti-sd: reserve.c:597 Suitable device found=DVD-Writer, not used: 
 busy
 
The last line does not look good. It says not used: busy. Are you sure
that you do not have any automount or other automatic mounter running.


 [...]
 
 server-Emmeti-sd: dircmd.c:206 dird: run
 server-Emmeti-sd: dircmd.c:220 Do command: run
 server-Emmeti-sd: job.c:153 Run_cmd: run
 server-Emmeti-sd: job.c:172 Client1.2007-05-23_14.01.20 waiting 1800 sec for 
 FD to contact SD
 server-Emmeti-sd: bnet.c:1154 who=client host=127.0.0.1 port=36643
 server-Emmeti-sd: dircmd.c:169 Conn: Hello Start Job 
 Client1.2007-05-23_14.01.20
 server-Emmeti-sd: job.c:214 Found Job Client1.2007-05-23_14.01.20
 
 [...]
 
 server-Emmeti-sd: job.c:190 Running job Client1.2007-05-23_14.01.20
 server-Emmeti-sd: fd_cmds.c:122 Start run Job=Client1.2007-05-23_14.01.20
 server-Emmeti-sd: fd_cmds.c:160 filed: append open session
 server-Emmeti-sd: fd_cmds.c:228 Append open session: append open session
 server-Emmeti-sd: fd_cmds.c:238 filed: 3000 OK open ticket = 1
 server-Emmeti-sd: fd_cmds.c:160 filed: append data 1
 server-Emmeti-sd: fd_cmds.c:190 Append data: append data 1
 server-Emmeti-sd: fd_cmds.c:192 bfiled: append data 1
 server-Emmeti-sd: append.c:73 Start append data. res=1
 server-Emmeti-sd: acquire.c:318 acquire_append device is DVD
 server-Emmeti-sd: acquire.c:384 Not in append mode, try mount.
 server-Emmeti-sd: acquire.c:390 Do mount_next_write_vol
 server-Emmeti-sd: mount.c:74 Enter mount_next_volume(release=0) 
 dev=DVD-Writer (/dev/hdb)
 server-Emmeti-sd: mount.c:84 mount_next_vol retry=0
 server-Emmeti-sd: mount.c:110 Before dir_find_next_appendable_volume.
 server-Emmeti-sd: askdir.c:252 dir_find_next_appendable_volume
 server-Emmeti-sd: askdir.c:266 dird: CatReq Job=Client1.2007-05-23_14.01.20 
 FindMedia=1 pool_name=Default media_type=DVD
 server-Emmeti-sd: askdir.c:182 dird 1000 OK VolName=Backup-0003 VolJobs=0 
 VolFiles=0 VolBlocks=0 VolBytes=0 VolMounts=0 VolErrors=0 VolWrites=0 
 MaxVolBytes=460800 VolCapacityBytes=0 VolStatus=Append Slot=0 
 MaxVolJobs=0 MaxVolFiles=0 InChanger=0 VolReadTime=0 VolWriteTime=0 EndFile=0 
 EndBlock=0 VolParts=0 LabelType=0 MediaId=3
 server-Emmeti-sd: askdir.c:204 do_reqest_vol_info return true slot=0 
 Volume=Backup-0003
 server-Emmeti-sd: reserve.c:323 Vol=Backup-0003 not in use.
 server-Emmeti-sd: reserve.c:159 New Vol=Backup-0003 dev=DVD-Writer 
 (/dev/hdb)
 server-Emmeti-sd: mount.c:122 After find_next_append. Vol=Backup-0003 Slot=0 
 Parts=0
 server-Emmeti-sd: autochanger.c:121 Device DVD-Writer (/dev/hdb) is not an 
 autochanger
 server-Emmeti-sd: mount.c:142 autoload_dev returns 0
 server-Emmeti-sd: mount.c:158 Ask=0 autochanger=0
 server-Emmeti-sd: mount.c:168 want vol=Backup-0003
 server-Emmeti-sd: dev.c:295 open dev: type=3 dev_name=DVD-Writer (/dev/hdb) 
 vol=Backup-0003 mode=OPEN_READ_WRITE
 server-Emmeti-sd: dev.c:302 call open_dvd_device mode=OPEN_READ_WRITE
 server-Emmeti-sd: dev.c:510 Enter: open_dvd_dev: DVD vol= mode=OPEN_READ_WRITE
 server-Emmeti-sd: dev.c:521 Volume=Backup-0003
 server-Emmeti-sd: dev.c:533 Set part=1
 server-Emmeti-sd: dev.c:546 open DVD part=1 num_dvd_parts=0
 server-Emmeti-sd: dev.c:563 open_dvd_device: part=1 num_dvd_parts=0, 
 VolCatInfo.VolCatParts=0
 server-Emmeti-sd: dev.c:1957 Enter mount
 server-Emmeti-sd: dev.c:2005 do_mount: cmd=/bin/mount /dev/hdb mounted=0
 server-Emmeti-sd: 

Re: [Bacula-users] DVD backup not starting

2007-05-23 Thread Lucio Crusca
Richard wrote:
  server-Emmeti-sd: reserve.c:760 Not OK.
  server-Emmeti-sd: reserve.c:597 Suitable device found=DVD-Writer, not
  used: busy

 The last line does not look good. It says not used: busy. Are you sure
 that you do not have any automount or other automatic mounter running.
I'm not sure and I can't check just now, but it's a blank media anyway, so 
even if I had hundreds of automounters none of them could mount anything.

  Shouldn't SD format (label) the media before trying to
  mount it?

 Only if you have set automatic label up. From memory your -sd Device
 config needs LabelMedia = Yes I do not remember if you need to set
 anything in the -dir.conf. At a minimum you probably need a
 LabelFormat=xxx in the Pool definition
I have both variables set.

 Does the label command work against blank media?
Do you mean the label command available in bconsole? I've not tried that 
because it's being described as label a tape, so I've assumed it's of no 
use for DVDs... I'll try asap.

Lucio.

-- 
Virtual Bit di Lucio Crusca
via Isonzo, 5
10069 - Villar Perosa (TO)
http://virtualbit.sulweb.org

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup not starting

2007-05-23 Thread Arno Lehmann
Hi,

On 5/24/2007 1:48 AM, Lucio Crusca wrote:
 Richard wrote:
 server-Emmeti-sd: reserve.c:760 Not OK.
 server-Emmeti-sd: reserve.c:597 Suitable device found=DVD-Writer, not
 used: busy
 The last line does not look good. It says not used: busy. Are you sure
 that you do not have any automount or other automatic mounter running.
 I'm not sure and I can't check just now, but it's a blank media anyway, so 
 even if I had hundreds of automounters none of them could mount anything.

You should ensure that no autmounting mechanism is active for that 
device anyway... I found that writes to DVD would work without problems, 
but the data could not be accessed when I had udev/hal automounting a 
DVD I used for Bacula.

 Shouldn't SD format (label) the media before trying to
 mount it?
 Only if you have set automatic label up. From memory your -sd Device
 config needs LabelMedia = Yes I do not remember if you need to set
 anything in the -dir.conf. At a minimum you probably need a
 LabelFormat=xxx in the Pool definition
 I have both variables set.

Hmm... at least in your log excerpt I didn't see the DIR and SD deciding 
to create a new volume. These two settings should be enough.

 Does the label command work against blank media?
 Do you mean the label command available in bconsole? I've not tried that 
 because it's being described as label a tape, so I've assumed it's of no 
 use for DVDs... I'll try asap.

That's a bug in the manual, then... it should be described as labeling 
  a volume. As all volumes Bacula uses have to be labeled, that command 
applies to tapes, disk files, and DVDs.

Arno

 Lucio.
 

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

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup not starting

2007-05-21 Thread Lucio
Arno Lehmann wrote:
 Are there any messages regarding this job?
No, but:

Running Jobs:
 JobId Level   Name   Status
==
18 Increme  Client1.2007-05-21_12.21.30 is waiting for a mount request

(still waiting about 20 minutes after run), and:

Device status:
Device DVD-Writer (/dev/hdb) is not open.
Device is BLOCKED waiting for media.


 LabelMedia = yes
 It should work if you've enabled it in the DIR too.
I've googled around a bit in order to figure out what that means, but I've 
only found the Label Format documentation, and that is already specified in 
the director configuration. Is there anything else I should put to enable 
autolabeling in the director?

 Then, you probably need a patched version of the dvd+rw-tools.
Debian dvd+rw-tools-7.0-4 package (which is what I use) already has the patch.

 Try the free space command: '/etc/bacula/dvd-handler /dev/hdb free ;
# su - bacula
$ /etc/bacula/scripts/dvd-handler /dev/hdb free
4689887232
No Error reported.

 echo $?
0

 It should return a reasonable number of free space on the disk 
 and an error code of zero. If it doesn't, verify the disk is empty and
 your dvd+rw-mediainfo (IIRC) works correctly.
The disk is empty and dvd+rw-mediainfo works (both from root and bacula 
users).

 Then, he the write command to write a reasonably sized file to an empty
 disk. 
# su - bacula
$ /etc/bacula/scripts/dvd-handler /dev/hdb write 1 /var/lib/bacula/testfile
Running /usr/bin/growisofs -use-the-force-luke=notray -quiet 
-use-the-force-luke=4gms -A 'Bacula 
Data' -input-charset=default -iso-level 3 -pad -p 'dvd-handler / 
growisofs' -sysid 'BACULADATA' -R -Z /dev/hdb /var/lib/bacula/testfile
Executing 'mkisofs -quiet -A Bacula Data -input-charset=default -iso-level 
3 -pad -p dvd-handler / growisofs -sysid 
BACULADATA -R /var/lib/bacula/testfile | builtin_dd of=/dev/hdb obs=32k 
seek=0'
/dev/hdb: Current Write Speed is 1.0x1352KBps.
/dev/hdb: flushing cache
/dev/hdb: closing track
/dev/hdb: closing session

Part file /var/lib/bacula/testfile successfully written to disk.

 Finally, if these all work correctly, enable debug output in the SD and
 see if there are any DVD related messages that indicate problems.
* setd
Enter new debug level: 5
Available daemons are:
 1: Director
 2: Storage
 3: Client
 4: All
Select daemon type to set debug level (1-4):  2
Automatically selected Storage: server-Emmeti-sd
Connecting to Storage daemon server-Emmeti-sd at server-Emmeti:9103
3000 OK setdebug=5
* status 2

[...]

Device status:
Device DVD-Writer (/dev/hdb) is not open.
Device is BLOCKED waiting for media.
Configured device capabilities:
EOF BSR BSF FSR FSF EOM REM RACCESS AUTOMOUNT LABEL !ANONVOLS !ALWAYSOPEN
Device state:
!OPENED !TAPE !LABEL !MALLOC !APPEND !READ !EOT !WEOT !EOF !NEXTVOL !SHORT 
!MOUNTED
num_writers=0 block=2

Device parameters:
Archive name: /dev/hdb Device name: DVD-Writer
File=0 block=0
Min block=0 Max block=0

[...]

But now I don't understand this debug output. What does it mean? Do you see 
anything strange?


-- 
Virtual Bit di Lucio Crusca
via Isonzo, 5
10069 - Villar Perosa (TO)
P.IVA 09534960019
http://www.sulweb.org

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup not starting

2007-05-21 Thread Arno Lehmann
Hello,

On 5/21/2007 1:03 PM, Lucio wrote:
 Arno Lehmann wrote:
 Are there any messages regarding this job?
 No, but:
 
 Running Jobs:
  JobId Level   Name   Status
 ==
 18 Increme  Client1.2007-05-21_12.21.30 is waiting for a mount request
 
 (still waiting about 20 minutes after run), and:

Ok.

Have you tried issuing a mount at this time?

 Device status:
 Device DVD-Writer (/dev/hdb) is not open.
 Device is BLOCKED waiting for media.
 
 
 LabelMedia = yes
 It should work if you've enabled it in the DIR too.
 I've googled around a bit in order to figure out what that means, but I've 
 only found the Label Format documentation, and that is already specified in 
 the director configuration. Is there anything else I should put to enable 
 autolabeling in the director?

No, that's the thing I was referring to.

 Then, you probably need a patched version of the dvd+rw-tools.
 Debian dvd+rw-tools-7.0-4 package (which is what I use) already has the patch.

Good.

 Try the free space command: '/etc/bacula/dvd-handler /dev/hdb free ;
 # su - bacula
 $ /etc/bacula/scripts/dvd-handler /dev/hdb free
 4689887232
 No Error reported.
 
 echo $?
 0

Good.

 It should return a reasonable number of free space on the disk 
 and an error code of zero. If it doesn't, verify the disk is empty and
 your dvd+rw-mediainfo (IIRC) works correctly.
 The disk is empty and dvd+rw-mediainfo works (both from root and bacula 
 users).
 
 Then, he the write command to write a reasonably sized file to an empty
 disk. 
 # su - bacula
 $ /etc/bacula/scripts/dvd-handler /dev/hdb write 1 /var/lib/bacula/testfile
 Running /usr/bin/growisofs -use-the-force-luke=notray -quiet 
 -use-the-force-luke=4gms -A 'Bacula 
 Data' -input-charset=default -iso-level 3 -pad -p 'dvd-handler / 
 growisofs' -sysid 'BACULADATA' -R -Z /dev/hdb /var/lib/bacula/testfile
 Executing 'mkisofs -quiet -A Bacula Data -input-charset=default -iso-level 
 3 -pad -p dvd-handler / growisofs -sysid 
 BACULADATA -R /var/lib/bacula/testfile | builtin_dd of=/dev/hdb obs=32k 
 seek=0'
 /dev/hdb: Current Write Speed is 1.0x1352KBps.
 /dev/hdb: flushing cache
 /dev/hdb: closing track
 /dev/hdb: closing session
 
 Part file /var/lib/bacula/testfile successfully written to disk.

Great.

 Finally, if these all work correctly, enable debug output in the SD and
 see if there are any DVD related messages that indicate problems.
 * setd
 Enter new debug level: 5

I'd recommend something like level=200 or above here.

 Available daemons are:
  1: Director
  2: Storage
  3: Client
  4: All
 Select daemon type to set debug level (1-4):  2
 Automatically selected Storage: server-Emmeti-sd
 Connecting to Storage daemon server-Emmeti-sd at server-Emmeti:9103
 3000 OK setdebug=5
 * status 2

Also, use trace=1, so you have a bconsle command of 'setdebug level=200 
trace=1 sd=server-Emmeti-sd'

Then, look at the trace file in the working directory of the SD... IIRC, 
it would be called server-Emmeti-sd.trace.

 [...]
 
 Device status:
 Device DVD-Writer (/dev/hdb) is not open.
 Device is BLOCKED waiting for media.
 Configured device capabilities:
 EOF BSR BSF FSR FSF EOM REM RACCESS AUTOMOUNT LABEL !ANONVOLS !ALWAYSOPEN
 Device state:
 !OPENED !TAPE !LABEL !MALLOC !APPEND !READ !EOT !WEOT !EOF !NEXTVOL !SHORT 
 !MOUNTED
 num_writers=0 block=2
 
 Device parameters:
 Archive name: /dev/hdb Device name: DVD-Writer
 File=0 block=0
 Min block=0 Max block=0
 
 [...]
 
 But now I don't understand this debug output. What does it mean? Do you see 
 anything strange?

No, the above looks perfect, though I admit I haven't any current 
experience with DVD writing.

In the trace file I mentioned, you'll find all the internal steps Bacula 
takes. Try to find the location where it accesses the DVD device and 
look through it. If unsure, post the relevant part - starting with the 
job start, up to the point where the SD can't continue.

Arno

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

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup not starting

2007-05-20 Thread Lucio Crusca
I wrote:
 Since Etch includes version 7.0 and
 there isn't a patch for that version, I've assumed that 7.0 already has the
 patch included upstream. 

I've checked that: upstream sources aren't patched but Debian ones are, from 
version 7.0-2 of the package (my setup has 7.0-4):

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=395071

-- 
Virtual Bit di Lucio Crusca
via Isonzo, 5
10069 - Villar Perosa (TO)
http://virtualbit.sulweb.org

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup not starting

2007-05-19 Thread Arno Lehmann
Hello,

On 5/18/2007 5:23 PM, Lucio Crusca wrote:
 Hello *,
 
 I've a problem with my 1st bacula installation (quite normal I suppose). I'm 
 running bacula 2.0.3 on Debian Etch/i386. It has to backup a single folder on 
 DVD, classic full/monthly, diff/weekly, incr/daily schema.
 
 When I enter bacula-console I try a test backup with the run command. 
 bacula-sd closes the DVD tray but never starts writing.

It's a while ago that I played with DVD writing, but perhaps some 
helpful hints:

 If I ask status 2 I get (among other things):
 
 Device status:
 Device DVD-Writer (/dev/hdb) is not open.
 Device is being initialized.
 
 for a few seconds, and then:
 
 Running Jobs:
 Writing: Incremental Backup job Client1 JobId=13 Volume=Backup-0003
 pool=Default device=DVD-Writer (/dev/hdb)
 spooling=0 despooling=0 despool_wait=0
 Files=0 Bytes=0 Bytes/sec=0
 FDReadSeqNo=6 in_msg=6 out_msg=4 fd=6
 
 [...]
 
 Device status:
 Device DVD-Writer (/dev/hdb) is not open.
 Device is BLOCKED waiting for media.

Are there any messages regarding this job?

 But I've put in bacula-sd.conf :
 
 Device {
   Name = DVD-Writer
   Media Type = DVD
   Archive Device = /dev/hdb
   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/cdrom0;
 #  MountCommand = /bin/mount -t iso9660 -o ro %a %m;
   MountCommand = /bin/mount %a;
   UnmountCommand = /bin/umount %m;
   SpoolDirectory = /tmp/backup;
   WritePartCommand = /etc/bacula/dvd-handler %a write %e %v
   FreeSpaceCommand = /etc/bacula/dvd-handler %a free
 }
 
 so the SD should label the media on my behalf, right?

It should work if you've enabled it in the DIR too.

Then, you probably need a patched version of the dvd+rw-tools.

Finally, try running the commands from your configuration from the 
shell, as the user the SD runs as.

Make sure your mount an unmount commands work (they most likely do).
Try the free space command: '/etc/bacula/dvd-handler /dev/hdb free ; 
echo $?' It should return a reasonable number of free space on the disk 
and an error code of zero. If it doesn't, verify the disk is empty and 
your dvd+rw-mediainfo (IIRC) works correctly.
Then, he the write command to write a reasonably sized file to an empty 
disk. Note that from my experience the file must not be too small - some 
100 MB might be the reasonable minimum.
Finally, if these all work correctly, enable debug output in the SD and 
see if there are any DVD related messages that indicate problems.

Arno


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

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup not starting

2007-05-19 Thread Lucio Crusca
Arno Lehmann wrote:
LabelMedia = yes;   # lets Bacula label unlabeled media
 
  so the SD should label the media on my behalf, right?

 It should work if you've enabled it in the DIR too.
Should I put a LabelMedia = yes in bacula-dir.conf also?


 Then, you probably need a patched version of the dvd+rw-tools.
I had read about the patch, but the website says there are patches for 
versions 5.21 and 6.1 of dvd+rw-tools. Since Etch includes version 7.0 and 
there isn't a patch for that version, I've assumed that 7.0 already has the 
patch included upstream. BTW, what does the patch do?


-- 
Virtual Bit di Lucio Crusca
via Isonzo, 5
10069 - Villar Perosa (TO)
http://virtualbit.sulweb.org

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup

2007-04-16 Thread Alan Brown
On Thu, 12 Apr 2007, Lucio wrote:

 Hello list,

 I have a little system I want to backup on DVD with Bacula. It needs to backup
 not more than 100Mb/day. Will bacula reuse the same DVD appending new
 sessions to it?


I have not tried this in a real backup situation, however it has appended 
to DVD in test sessions I've run.



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup

2007-04-12 Thread Richard Mortimer
On Thu, 2007-04-12 at 15:49 +0200, Lucio wrote:
 Hello list,
 
 I have a little system I want to backup on DVD with Bacula. It needs to 
 backup 
 not more than 100Mb/day. Will bacula reuse the same DVD appending new 
 sessions to it?
Yes I have done this with both DVD-R and DVD-RW media and it works fine.

Richard


-- 
Richard Mortimer [EMAIL PROTECTED]


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Bacula-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD backup problem.

2006-05-11 Thread Jacek Konieczny
On Thu, May 11, 2006 at 02:31:07PM -0400, Yanik Doucet wrote:
 Now everything seems to work fine for normal backup, but I'd like to use
 the dvd writing feature.  If I try to make the backup to dvd, I'm told
 to use the label command first, so here's the output of label:
 
 --
 *label

label command doesn't seem to work on DVD. But it is not needed --
just let Bacula label dics itself. That works for me perfectly. 

On the other side... having a working label command would be nice
feature, indeed.

Greets,
Jacek


---
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=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users