Re: [Bacula-users] Rewinding or non-rewinding tapes

2006-06-01 Thread Michel Meyers
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jérôme Warnier wrote:
 Hi guys,

 Just a general question:
 is it best with Bacula under Linux to use tapes with rewind or
 non-rewind device?

It really depends on what you're doing but usually you should use the
non-rewinding device nodes to avoid having the drive rewind
unexpectedly. When using Backup software like Bacula, you actually MUST
use the non-rewinding device, otherwise you get into trouble (the
software does its own rewinds and doesn't expect the tape to be rewound
without it having done it itself).

Greetings,
Michel
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32) - GPGrelay v0.959

iD8DBQFEfos02Vs+MkscAyURAqEhAKDZ4tTOOFP7dbhlOpxCF1P8XLuXWACeKaTQ
zCaERObnH+TkwTkBTKZ5bTg=
=0Bqa
-END PGP SIGNATURE-


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


Re: [Bacula-users] XFS and ACLs

2006-06-01 Thread MaxxAtWork
On 5/31/06, Kern Sibbald [EMAIL PROTECTED] wrote:
 Hello,

 If anyone on this list is using XFS and ACLs, would you please let me know.  I
 need some help debugging an apparent problem with Bacula ACLs.


Hello Kern,
I'm not exactly using XFS and ACL, but on my bacula-director server
(not yet in full production) I have a terabyte storage formatted under
XFS, so if you have a specific
test in mind, I can try to execute it.

Regards
-- 
Maxx


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


Re: [Bacula-users] Consistent backup failures with Windows 2000 clients

2006-06-01 Thread Marcus Hallberg
In my case it turned out to be a network problem... It has now finished. 
It turned out that I had missed to set the compress directive so it 
didn't break just in the end as I thought.

I did get som errors during the backup:
Could not stat C:/some/file ERR=reference (handle) is faulty (the 
error message is translated by me so it could differ...)

Does anyone know what it means?

Thanks for the help.

/marcus


Marcus Hallberg wrote:

Bill Moran wrote:

  

Marcus Hallberg [EMAIL PROTECTED] wrote:

 



Now has the director reported as failed it took two hours.

The final output from the director is:

26-May 14:06 edstrom-fd: edstrom.2006-05-22_10.07.42 Fatal error: 
c:\cygwin\home\kern\bacula\k\src\win32\filed\../../filed/backup.c:500 
Network send error to SD. ERR=Input/output error
26-May 14:06 edstrom-fd: edstrom.2006-05-22_10.07.42 Error: 
c:\cygwin\home\kern\bacula\k\src\win32\lib\../../lib/bnet.c:393 Write error 
sending len to Storage daemon:localhost:9103: ERR=Input/output error
26-May 16:05 neo-dir: edstrom.2006-05-22_10.07.42 Fatal error: Network error 
with FD during Backup: ERR=Connection reset by peer
   

  

[snip]

 



The Network error with FD during Backup: does that indicate that there 
is a problem for the director to talk to the filedaemon or for the 
filedaemon to talk to the storagedaemon?
   

  

Looks to be between the FD and the SD.  Sure you don't have any firewalls
or other traffic control equipment between the two that's interfering with
the FD reliably contacting the SD?

 



There is no firewall blocking the communication between the bacula units 
and it worked fine for five days... It has broken twice on what could be 
the same place.

I started a new fullbackup wich should be at this place in a couple of 
days so if it breaks on the same place then I will know that it is not 
network related.

/marcus


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



-- 
/Marcus Hallberg
Wimlet Consulting AB
Djurgårdsgatan 10
414 62 Göteborg
mobil: 0707-141716
e-post: [EMAIL PROTECTED]
hemsida: www.wimlet.se



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


Re: [Bacula-users] XFS and ACLs

2006-06-01 Thread Kern Sibbald
Hello,

Thanks for your offer of help.

On Thursday 01 June 2006 08:41, MaxxAtWork wrote:
 On 5/31/06, Kern Sibbald [EMAIL PROTECTED] wrote:
  Hello,
 
  If anyone on this list is using XFS and ACLs, would you please let me
  know.  I need some help debugging an apparent problem with Bacula ACLs.

 Hello Kern,
 I'm not exactly using XFS and ACL, but on my bacula-director server
 (not yet in full production) I have a terabyte storage formatted under
 XFS, so if you have a specific
 test in mind, I can try to execute it.

Yes, it sounds like you might be an ideal site for testing the problems 
reported on the developer's list.  I include a copy of the email below.  I am 
going to try to learn more about his setup today.  Can I assume that you are 
using or trying 1.38.9 and that you can build from source?

I've now added some debug code to the acl.c source file so, if we can 
reproduce his problems, at least we can see exactly what Bacula is 
complaining about.

Do you know anything about ACLs on XFS?


-- 
Best regards,

Kern

== previous emails =
Re: [Bacula-users] ACL restore failed
 From: le dahut [EMAIL PROTECTED]
 To: Kern Sibbald [EMAIL PROTECTED]
 
Hello,

We work for the French education ministry. We have about 1200 servers 
running Bacula which cannot restore there files. Those servers are used 
by teachers and students (about 500 users for a server) so very much 
people will be affected if there's a problem.

I tested it many times and on different machines, and I still get the 
same error.

It's really urgent to find a solution. Can you help us ? Must I contact 
someone else (who ?) ?

Sorry for being so insistent, it's dramatic for us.


Regards,
Klaas TJEBBES



Kern Sibbald a écrit :
 Hello,

 While restoring files on a XFS file system with ACLs, Bacula 1.38.9-2
 returns me an error :
 
 127.0.0.1-fd: drwxrwx---   2 root root 6 2006-05-24
 11:41:17  /home/test/
 29-mai 10:45 127.0.0.1-fd: RestoreFiles.2006-05-29_10.45.23 Warning:
 restore.c:347 Can't restore ACL of /home/test/
 29-mai 10:45 127.0.0.1-fd: RestoreFiles.2006-05-29_10.45.23 Warning:
 restore.c:359 Can't restore default ACL of /home/test/
 

 what's happening ?
 
 Groan!!! In looking at the code, I see that the author did not print any
 error messages that include the reason for the failure. So, it is not
 currently possible to know what went wrong.
 
 Possibilities are: Your OS does not have ACLs. You are trying to restore
 ACLs to a different filesystem type. ACL support was not configured into
 the FD. Your OS is not one of the ones supported.  The ACL type is
 different from those that Bacula supports.  You don't have proper
 permissions to write the ACLs.  You changed ACL versions between the
 backup and the restore.
 
 The error handling is something I'll try to clean up before the next major
 release.
 

 K.

 
 
 Best regards, Kern


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


Re: [Bacula-users] Bacula install in Ubuntu 5.10

2006-06-01 Thread Danie
Hi Jesper ,

I decided to build from source , but thanks for the suggestions!

I will definitely give this a try on my test machine , I have been 
experiencing difficulties using the make install-autostart script :(




Jesper Krogh wrote:
 Hi.

 1.38.something has been dropped into Debian/unstable. If you (like I) would
 like to have a system where there is as small part as possible installed
 using sources, you could easily backport these to Ubuntu 5.10 (or 6.06) by:

 1) Adding the deb-src entry for Debian/unstable in your sources.list'
 2) apt-get source bacula
 3) cd bacula-somthing
 4) dpkg-buildpackage -a -rfakeroot

 Then you'd get the packages build for your Ubuntu system.
 (When you've installed alle the build dependencies).

 Jesper (running bacula 1.36 on Ubuntu 5.10/6.06)

   
 Hi!


 I just did this today, but then on ubuntu 6.06.


 If you install the packages:
 build-essential, mysql-server and gnome-devel (last if you want the gnome
 console)

 and do the following configure: ./configure --enable-gnome
 --enable-tray-monitor --with-mysql
 --with-fd-password=[password] --with-sd-password=[password]
 --with-dir-password=[password] --enable-smartalloc


 then it should work... (worked for me)

 Greetings,
 Ger.



 Op dinsdag 30 mei 2006 14:17, schreef Danie:

 
 Hi all ,


 Busy with a new install in Ubuntu 5.10 , I first tried the apt-get way
 ,
 but the packages seems to be depreciated (1.36 I think) , so I opted to
 compile bacula from source however I'm having trouble with mysql.

 When I run the ./configure script (I used the example in the manual)
 all goes well up to the mysql where it complains about not finding the
 working directory :

 configure: error: Invalid MySQL directory /usr/include/mysql/ - unable
 to find mysql.h under /usr/include/mysql/

 now I check and mysql.h is in fact in this directory , please help as I
  am a bit stuck.

 TIA


 Daniel



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

   

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


 


   



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


Re: [Bacula-users] Rewinding or non-rewinding tapes

2006-06-01 Thread Jérôme Warnier
Le jeudi 01 juin 2006 à 08:37 +0200, Michel Meyers a écrit :
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Jérôme Warnier wrote:
  Hi guys,
 
  Just a general question:
  is it best with Bacula under Linux to use tapes with rewind or
  non-rewind device?
 
 It really depends on what you're doing but usually you should use the
 non-rewinding device nodes to avoid having the drive rewind
 unexpectedly. When using Backup software like Bacula, you actually MUST
 use the non-rewinding device, otherwise you get into trouble (the
 software does its own rewinds and doesn't expect the tape to be rewound
 without it having done it itself).
I used to do backups with tar and cpio, and used to use non-rewinding
tape device drivers, but for such a system as Bacula, I did not know if
this was still applicable or if Bacula didn't care internally.
I will switch to non-rewind and see what happens.

Thanks

 Greetings,
 Michel




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


Re: [Bacula-users] XFS and ACLs

2006-06-01 Thread MaxxAtWork
On 6/1/06, Kern Sibbald [EMAIL PROTECTED] wrote:
 Hello,

 Thanks for your offer of help.


 Yes, it sounds like you might be an ideal site for testing the problems
 reported on the developer's list.  I include a copy of the email below.  I am
 going to try to learn more about his setup today.  Can I assume that you are
 using or trying 1.38.9 and that you can build from source?

 I've now added some debug code to the acl.c source file so, if we can
 reproduce his problems, at least we can see exactly what Bacula is
 complaining about.

 Do you know anything about ACLs on XFS?


Hi,

I know just enough about ACLs to steer away from them unless there is
a real need :-)

Ok, so for your test:
- I should create a XFS filesystem and activate the default ACLs.
- Populate it with some random data
- Backup it (I guess I doesn't matter whether backup is done on disk or tape)
- Perhaps modify some data
- Restore data
- Post the results

My server is a Debian sid, kernel 2.6.15-1-686-smp, and I have
installed bacula 1.38.9-9 from .deb packages, but I can recompile
[part of] it if needed.

-- 
Maxx


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


Re: [Bacula-users] Rewinding or non-rewinding tapes

2006-06-01 Thread Michel Meyers
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jérôme Warnier wrote:
 I used to do backups with tar and cpio, and used to use non-rewinding
 tape device drivers, but for such a system as Bacula, I did not know if

Generally, software prefers to 'do it yourself' and thus the
non-rewinding nodes.

 this was still applicable or if Bacula didn't care internally.
 I will switch to non-rewind and see what happens.

If you read the Bacula tape testing chapter in the manual it states:
http://www.bacula.org/rel-manual/Testing_Your_Tape_Drive.html#_ChapterStart27

Specifying a Device Name For a Tape
[...]
When specifying a tape device, it is preferable that the non-rewind
variant of the device file name be given.

Greetings,
 Michel
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32) - GPGrelay v0.959

iD8DBQFEfqur2Vs+MkscAyURAiJGAKCqvxeLW9eEs8deORCHdJlhf4S2tACghDkv
+XqGIf5djRMZrZbwKwJMIGE=
=vj9V
-END PGP SIGNATURE-


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


Re: [Bacula-users] Bacula install in Ubuntu 5.10

2006-06-01 Thread Martin Simmons
 On Wed, 31 May 2006 10:45:50 +0200, Danie [EMAIL PROTECTED] said:
 
 Hi ,
 
 
 Ger Apeldoorn wrote:
  Hi!
 
  I just did this today, but then on ubuntu 6.06.
 
  If you install the packages:
  build-essential, mysql-server and gnome-devel (last if you want the gnome 
  console)
 
  and do the following configure:
  ./configure --enable-gnome --enable-tray-monitor --with-mysql 
  --with-fd-password=[password] --with-sd-password=[password] 
  --with-dir-password=[password] --enable-smartalloc

 This went smooth , when I did a make install I get :
 
 make[1]: *** No rule to make target `../lib/libbac.a', needed by 
 `bacula-dir'.  Stop.

Run make (with no args) first.

__Martin


  then it should work... (worked for me)
 
  Greetings,
  Ger.
 
 
  Op dinsdag 30 mei 2006 14:17, schreef Danie:

  Hi all ,
 
  Busy with a new install in Ubuntu 5.10 , I first tried the apt-get way ,
  but the packages seems to be depreciated (1.36 I think) , so I opted to
  compile bacula from source however I'm having trouble with mysql.
 
  When I run the ./configure script (I used the example in the manual) all
  goes well up to the mysql where it complains about not finding the
  working directory :
 
  configure: error: Invalid MySQL directory /usr/include/mysql/ - unable
  to find mysql.h under /usr/include/mysql/
 
  now I check and mysql.h is in fact in this directory , please help as I
  am a bit stuck.
 
  TIA
 
  Daniel
 
 
  ___
  Bacula-users mailing list
  Bacula-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/bacula-users
  
 
 
 
  ___
  Bacula-users mailing list
  Bacula-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/bacula-users
 

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


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


Re: [Bacula-users] XFS and ACLs

2006-06-01 Thread Steen
On Wednesday 31 May 2006 17:56, Kern Sibbald wrote:

 Hello,

 If anyone on this list is using XFS and ACLs, would you please let me know.
  I need some help debugging an apparent problem with Bacula ACLs.

I use xfs with acl's on a client samba server and also partly on the bacula 
server - but there I don't use the acl's

I don't know much about it, just turned it on and it worked

-- 
Regards

Steen Meyer


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


Re: [Bacula-users] [Bacula-devel] Expanding the Job database table entry + manual license

2006-06-01 Thread Erich Prinz

On May 27, 2006, at 3:31 AM, Kern Sibbald wrote:

 Hello,

 I've been running two Bacula issues over in my head for awhile now,  
 and
 though I have worked out solutions, I thought I would should throw  
 them
 out for your consideration and input:

 1. To make migration (and later copy) work correctly, after a  
 migration
 job has run (moved data from one pool to another), it is inserted  
 in the
 catalog with the time and date of the original job. If I didn't do  
 this, a
 restore would not be possible since the restore is based on job  
 level and
 the time the job ran.

 However, to do automatic migration it is necessary to know when the  
 job
 *really* ran so that it can be moved to another pool after a specified
 period, if the user configures this feature.  So, additional  
 information
 must be kept in the catalog. For the moment, this info is kept in a
 separate table. However, I am not very happy with this for performance
 reasons -- most all SQL commands will either need to be modified or  
 have a
 second command that checks if this information is available.

 My solution (not yet implemented) is to eliminate the extra table  
 and add
 the necessary data (several time values and possibly several integer
 values) to the Job table. Even though this information is only  
 needed in
 migration and copy jobs, since there are not normally millions of  
 Jobs, I
 prefer this to the additional complexity and the performance hit of a
 separate table.

 Comments?

First a qualifier: I'm only a dabbler in database work -

When the migration occurs, you're essentially making a copy of the  
existing pool and labeling it for archival purposes. It seems to me  
then, this data simply has additional characteristics. Clark Kent,  
mild mannered news reporter -- Superman.. still the same guy, just  
different costume and hair doo. So, why raise the complexity value by  
adding a relational table when it's easier to create a new record  
with added attributes?




 2. When doing a migration of a Volume Bacula must start one Job for  
 each
 Job that is backed up on a Volume. Now, if you have 10,000 Jobs on a
 Volume, this could be a huge flood of jobs all started at the same  
 time,
 which would be rather nasty and probably cause something to break.
 Obviously long term, we will need to find some solution to this (i.e.
 start one job that makes all the necessary Job entries in the catalog
 while copying all the data).  Probably for the moment, I am just  
 going to
 let Bacula fire off all the jobs and see what happens since there is
 really no good mechanism to wait (I could wait until the number of
 running/waiting jobs drops below a certain level before starting  
 more jobs
 ...).  For those of you who are using Tivoli or NetWorker, please  
 remember
 that Bacula is job based, which means that each Job must be moved  
 or at
 least the catalog entry of each Job must be properly updated. There  
 is no
 other way of pulling data from a Volume (especially because Job  
 data can
 spill over from a previous Volume or spill over to another Volume  
 after
 the one being Migrated ...).

 Comments?

You lost me at 10,000 Jobs.



 3. Currently the manual is licensed under a somewhat restrictive  
 license
 that does not permit commercial reproduction of the manual without
 explicit authorization. This means that the manual does not mean the
 definition of Free Software.  My idea in keeping the license  
 commercially
 restricted was so that someone could possibly publish the manual  
 (or use
 it as the basis of something to be published) and that a part of the
 revenues would revert to the project.

 However, I am now convinced that there is little chance that  
 someone would
 want to publish the manual without working with us and that it is  
 better
 to change the license to GPL version 2.  There are, of course, all  
 sorts
 of other open source licenses, but given that the source is GPL v2,  
 this
 is the logical license for the manual as well.

 Comments?

Another caveat: I know little about the licensing mechanisms. This is  
hypothetical.

If this can happen: Worst case scenario - someone publishes w/o  
working with you and benefits financially leaving you and all the  
developers high and dry. Are you and the rest of the community okay  
with that happening?

What would the fallout be?

What risk is there to the project?

Is there perhaps a benefit to the project?



Bacula is in my mind an excellent option to the commercially  
available software on the market today. I plan to use Bacula in  
future deployments for client sites as opposed to utilizing Veritas/ 
Symantec or CA. The value/pricing proposition is quickly diminishing  
with the improvements in Bacula and the bare metal recovery tools in  
the open source community.

Hope these musings will generate a little more commentary on your post.

Erich





Re: [Bacula-users] XFS and ACLs

2006-06-01 Thread Helmut Raubenheimer
At a customer site i use ACLs on XFS.
Have had no problems backing up and restoring lots of them.

OS: SuSE 9.3
Bacula: 1.38.5 compiled from source.
Tape: VXA-320 Packetloader

I'm just using ACLS and have no indeep knowledge from a programmers 
point of view.

If i can help, let me know how to.
I can do some tests in my test-environment.

Best regards

Helmut

Kern Sibbald schrieb:
 Hello,
 
 If anyone on this list is using XFS and ACLs, would you please let me know.  
 I 
 need some help debugging an apparent problem with Bacula ACLs.
 


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


Re: [Bacula-users] Wrong calculation of Max Use Duration?!

2006-06-01 Thread Martin Simmons
 On Wed, 31 May 2006 13:15:37 +0200 (CEST), Michael 'buk' Scherer 
 [EMAIL PROTECTED] said:
 
 Hi all Baculas.
 
 This night I had a slight problem when Bacula changed and recycled tapes.
 We have a Max Use Duration of 36 hours configured for our daily pool.
 
 As you can see from the attached output of one job this night, that time 
 wasn't 
 used correctly, cause a tape that was recycled at 3:07am was marked used 
 ~45 
 minutes later.
 I can't provide any other information on the state before the backup than 
 that 
 the tapes was marked purged and was therefor correctly used.
 
 As you can see below we are running 1.38.5 on a Linux 2.6 machinge (suse 
 10.0).
 Any known problems with that?

What does

llist volumes pool=Daily

show?

__Martin


 -- Forwarded message --
 From: Bacula
 To:  Backup-Master
 Date: Wed, 31 May 2006 03:53:20 +0200
 Subject: [Bacula] :OK: Backup-Job 6262 (raid_fserv1)
 
 31-May 01:34 GiS-dir: Start Backup JobId 6262, 
 Job=raid_fserv1.2006-05-31_00.00.01
 31-May 01:34 bck01-sd: 3301 Issuing autochanger loaded drive 0 command.
 31-May 01:34 bck01-sd: 3302 Autochanger loaded drive 0, result is Slot 1.
 31-May 01:34 bck01-sd: 3301 Issuing autochanger loaded drive 0 command.
 31-May 01:34 bck01-sd: 3302 Autochanger loaded drive 0, result is Slot 1.
 31-May 01:35 bck01-sd: Volume D13291 previously written, moving to end of 
 data.
 31-May 01:36 bck01-sd: Ready to append to end of Volume D13291 at file=107.
 31-May 03:04 bck01-sd: End of Volume D13291 at 184:4974 on device 
 TapeStorage (/dev/tape). Write of 64512 bytes got -1.
 31-May 03:05 bck01-sd: Re-read of last block succeeded.
 31-May 03:05 bck01-sd: End of medium on Volume D13291 Bytes=179,878,423,235 
 Blocks=2,788,299 at 31-May-2006 03:05.
 31-May 03:05 bck01-sd: 3301 Issuing autochanger loaded drive 0 command.
 31-May 03:05 bck01-sd: 3302 Autochanger loaded drive 0, result is Slot 1.
 31-May 03:05 bck01-sd: 3307 Issuing autochanger unload slot 1, drive 0 
 command.
 31-May 03:06 bck01-sd: 3304 Issuing autochanger load slot 2, drive 0 
 command.
 31-May 03:07 bck01-sd: 3305 Autochanger load slot 2, drive 0, status is OK.
 31-May 03:07 bck01-sd: 3301 Issuing autochanger loaded drive 0 command.
 31-May 03:07 bck01-sd: 3302 Autochanger loaded drive 0, result is Slot 2.
 31-May 03:07 bck01-sd: Recycled volume D13290 on device TapeStorage 
 (/dev/tape), all previous data lost.
 31-May 03:07 bck01-sd: New volume D13290 mounted on device TapeStorage 
 (/dev/tape) at 31-May-2006 03:07.
 31-May 03:51 GiS-dir: Max configured use duration exceeded. Marking Volume 
 D13290 as Used.
 31-May 03:53 GiS-dir: Bacula 1.38.5 (18Jan06): 31-May-2006 03:53:19
   JobId:  6262
   Job:raid_fserv1.2006-05-31_00.00.01
   Backup Level:   Full
   Client: bck01 x86_64-suse-linux-gnu,suse,10.0
   FileSet:raid_fserv1 2005-12-15 00:00:02
   Pool:   Daily
   Storage:LTO
   Scheduled time: 31-May-2006 00:00:00
   Start time: 31-May-2006 01:34:24
   End time:   31-May-2006 03:53:19
   Priority:   80
   FD Files Written:   744,724
   SD Files Written:   744,724
   FD Bytes Written:   92,948,981,352
   SD Bytes Written:   93,071,639,372
   Rate:   11151.6 KB/s
   Software Compression:   None
   Volume name(s): D13291|D13290
   Volume Session Id:  287
   Volume Session Time:1146829671
   Last Volume Bytes:  15,840,661,079
   Non-fatal FD errors:0
   SD Errors:  0
   FD termination status:  OK
   SD termination status:  OK
   Termination:Backup OK
 
 31-May 03:53 GiS-dir: Begin pruning Jobs.
 31-May 03:53 GiS-dir: No Jobs found to prune.
 31-May 03:53 GiS-dir: Begin pruning Files.
 31-May 03:53 GiS-dir: No Files found to prune.
 31-May 03:53 GiS-dir: End auto prune.
 
 
 
 
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
 


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


[Bacula-users] Cannot use DVD for backup's, several errors. Help!

2006-06-01 Thread Robert Dhaene












Hello all,




I am having a lot of trouble setting up Bacula to use DVD+RWs for its
backup media. Unfortunately I do not have the money for a home tape
system, so I decided to go with DVD+RWs. Here is what is going
on. When I attempt to run a backup job the console requests that I mount
a media volume (chdata1-0001, is the default setting for the first label per my
config files listed below). Since it a blank DVD+RW I am unable to mount
it. Also, I am unable to label it manually. This makes sense since
you mount file systems not a drive. I am running Bacula version 1.38.9
with dvd+rw-tools version 5.21.4.10.8 patched with the provided Bacula source
patch file. I am running Gentoo Linux Distribution. In
my system log file I am receiving some interesting errors:



May 31 13:18:46 chdata1 Unable to identify CD-ROM format.

May 31 13:18:47 chdata1 Unable to identify CD-ROM format.

May 31 13:18:47 chdata1 Unable to identify CD-ROM format.

May 31 13:18:48 chdata1 Unable to identify CD-ROM format.

May 31 13:20:01 chdata1 cron[9758]: (root) CMD (test -x
/usr/sbin/run-crons  /usr/sbin/run-c$

May 31 13:20:18 chdata1 attempt to access beyond end of
device

May 31 13:20:18 chdata1 hdc: rw=0, want=68, limit=4

May 31 13:20:18 chdata1 isofs_fill_super: bread failed,
dev=hdc, iso_blknum=16, block=16

May 31 13:20:19 chdata1 attempt to access beyond end of
device

May 31 13:20:19 chdata1 hdc: rw=0, want=68, limit=4

May 31 13:20:19 chdata1 isofs_fill_super: bread failed,
dev=hdc, iso_blknum=16, block=16

May 31 13:20:19 chdata1 attempt to access beyond end of
device

May 31 13:20:19 chdata1 hdc: rw=0, want=68, limit=4

May 31 13:20:19 chdata1 isofs_fill_super: bread failed,
dev=hdc, iso_blknum=16, block=16



My DVD Writer does support the media I am using, and
it has been formatted using dvd+rw-tools. I have also attempted to use
DVD-R and DVD+R with the same result. The exact requests I receive in
Bacula are as follows: 



01-Jun 11:31 chdata1-dir: No prior Full backup Job record
found.

01-Jun 11:31 chdata1-dir: No prior or suitable Full backup
found. Doing FULL backup.

01-Jun 11:31 chdata1-dir: Start Backup JobId 8,
Job=Client1.2006-06-01_11.31.22

01-Jun 11:31 chdata1-dir: Created new Volume
chdata1-0001 in catalog.

01-Jun 11:31 chdata1-sd: Please mount Volume
chdata1-0001 on Storage Device DVD Writer (/dev/cdrom)
for Job Client1.2006-06-01_11.31.22



I then issue command:

*mount

Automatically selected Storage: DVD

3001 OK mount. Device=DVD Writer (/dev/cdrom)



With this result:

*messages

01-Jun 11:32 chdata1-sd: Please mount Volume
chdata1-0001 on Storage Device DVD Writer (/dev/cdrom)
for Job Client1.2006-06-01_11.31.22



Any help is greatly appreciated. I am now at a loss
after a week of reading online. I am somewhat new to *nix, not to
computers at all. I would consider myself on a scale of 1-10 on knowledge
at a 4 with *nix with always more to learn :] .



Thanks. Below are config and log files.



Below is my bacula-sd.conf
contents (NOTE: I removed unneeded portions for ease of reading):



# Default Bacula Storage Daemon Configuration file

#

# For Bacula release 1.38.9 (02 May 2006) -- gentoo
1.6.14

#

# You may need to change the name of your tape drive

# on the Archive Device directive in
the Device

# resource. If you change the Name and/or
the

# Media Type in the Device resource,
please ensure

# that dird.conf has corresponding changes.

#



Storage
{
# definition of myself

 Name = chdata1-sd

 SDPort =
9103
# Director's port

 WorkingDirectory = /var/lib/bacula

 Pid Directory = /var/run

 Maximum Concurrent Jobs = 20



# A DVD device

#

Device {

 Name = DVD Writer

 Media Type = DVD

 Archive Device = /dev/cdrom

 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 = /mnt/cdrom;

 MountCommand = /bin/mount -t iso9660 -o ro %a
%m;

 UnmountCommand = /bin/umount %m;

 SpoolDirectory = /tmp/backup;

 WritePartCommand = /etc/bacula/dvd-handler %a
write %e %v

 FreeSpaceCommand = /etc/bacula/dvd-handler %a
free

}



My Bacula-dir.conf
(NOTE: also edited out non-relevant settings):



#

# Default Bacula Director Configuration file

#

# The only thing that MUST be changed is to add one or
more

# file or directory names in the Include directive
of the

# FileSet resource.

#

# For Bacula release 1.38.9 (02 May 2006) -- gentoo
1.6.14

#

# You might also want to change the default email
address

# from root to your address. See the
mail and operator

# directives in the Messages resource.

#



Director
{
# define myself

 Name = chdata1-dir

 DIRport =
9101
# where we listen for UA connections

 QueryFile = /usr/libexec/bacula/query.sql

 WorkingDirectory = /var/lib/bacula

 PidDirectory = /var/run

 Maximum Concurrent Jobs = 1

 Password =
6RkpiDThtkE09b5cKrjF7x2m8hrqD6AAHKzs68t4fnok

Re: [Bacula-users] Cannot use DVD for backup's, several errors. Help!

2006-06-01 Thread drescher0110-bacula
Have you installed the patch for dvd+rwtools?



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


[Bacula-users] Setting up new Bacula install, need some pointers..

2006-06-01 Thread Joseph Silverman
So, the daunting manual has left me speechless (it's so BIG) and our  
printer in need of a new transfer kit.  I can't find out tape library  
on the list of supported devices, so I ask here.  We have a Dell 128T  
with a single LTO drive.  This is the equivalent of a HP SureStore  
2/20 (otherwise known as a 7200) - so I am told.  How do we set up to  
use this library from Bacula?  Anyone with experience doing this out  
there?
THANKS - Joseph Silverman


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


Re: [Bacula-users] Cannot use DVD for backup's, several errors. Help!

2006-06-01 Thread Robert Dhaene
Yes, I patched it from the patch folder.  It did state that it patched
successfully.  I am running dvd+rw-tools vs 5.21.4.10.8.  I re-patched and
re-installed just to insure it was done properly.  And I am still receiving
the same errors.  Thanks for all the help so far!

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 01, 2006 14:21
To: Robert Dhaene; bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Cannot use DVD for backup's, several errors.
Help!

Have you installed the patch for dvd+rwtools?



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


Re: [Bacula-users] Cannot use DVD for backup's, several errors. Help!

2006-06-01 Thread drescher0110-bacula
 patch file.  I am running Gentoo Linux Distribution.In my system log
 file I am receiving some interesting errors:
 
  
 
 May 31 13:18:46 chdata1 Unable to identify CD-ROM format.
 
 May 31 13:18:47 chdata1 Unable to identify CD-ROM format.
 
 May 31 13:18:47 chdata1 Unable to identify CD-ROM format.
 
 May 31 13:18:48 chdata1 Unable to identify CD-ROM format.
 
 May 31 13:20:01 chdata1 cron[9758]: (root) CMD (test -x /usr/sbin/run-crons
  /usr/sbin/run-c$
 
 May 31 13:20:18 chdata1 attempt to access beyond end of device
 
 May 31 13:20:18 chdata1 hdc: rw=0, want=68, limit=4
 
 May 31 13:20:18 chdata1 isofs_fill_super: bread failed, dev=hdc,
 iso_blknum=16, block=16
 
 May 31 13:20:19 chdata1 attempt to access beyond end of device
 
 May 31 13:20:19 chdata1 hdc: rw=0, want=68, limit=4
 
 May 31 13:20:19 chdata1 isofs_fill_super: bread failed, dev=hdc,
 iso_blknum=16, block=16
 
 May 31 13:20:19 chdata1 attempt to access beyond end of device
 
 May 31 13:20:19 chdata1 hdc: rw=0, want=68, limit=4
 
 May 31 13:20:19 chdata1 isofs_fill_super: bread failed, dev=hdc,
 iso_blknum=16, block=16
 
 
I believe these errors are normal with dvd writing on bacula as I recieve them 
too
but dvd writing works for me..
 
 
  My DVD Writer does support the media I am using, and it has been formatted
 using dvd+rw-tools.  I have also attempted to use DVD-R and DVD+R with the
 same result.  The exact requests I receive in Bacula are as follows: 
 
  
 
Did you blank the disk with this command? I don't think just a format is enough.
dd if=/dev/zero bs=1024 count=512 | growisofs -Z /dev/xxx=/dev/fd/0

Also you can try canceling the job prune volume chdata1-0001 and then deleting 
the
folder /tmp/backup/chdata1-0001 as you may be having problems with failed data. 

A couple of other things. I found to use dvd media bacula must autolabel the 
media
because the label command does not work with dvds (at least it has never worked 
for
me). I have had the most success with dvd+rw media. Also there is an append 
patch in
this list (in last 60 days) that you may need to get bacula to write more data 
to
the disk after the inital write. I reposted the patch along with a gentoo ebuild
that applies the patch. 

John 

John


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


Re: [Bacula-users] Maildir Backups

2006-06-01 Thread Tijl Van den Broeck
Quite a brilliant idea indeed, although it might consume a considerable amount of resources. As far as the existing solutions (ext2compr and double) reach, I don't really think they would apply for such a setup as I don't think they're still maintained. But some kind of gzip fifo solution could possibly do the trick.
By the way, as mentioned by Bill Moran. Maildir does not inherently keep its own indexes, it only applies unique names to its mails so indexing can not be an issue during backup. The only issue can occur if and only if a message is received during the moving of a new message and at the same time an ls (readdir()) is done on the directory the backup could skip a new email. So in the worst case you could lose a few unread new mails. 
More about the maildir format here: http://cr.yp.to/proto/maildir.html  it's locking issues on http://en.wikipedia.org/wiki/Maildir
Is it possible to mount a zip file in loopback? Like one can do with an
.iso file? Instead of an encrypted file system, does a compressed filesystem exist? Then he could simply rsync the folders with this filesystem mounted in loopback, unmount it and backup the files that sat
underneath it. It might make sense to do that user per user to make therestore operation a little bit more practical.
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Can the storage daemon unload a tape?

2006-06-01 Thread Gregory Brauer
Arno Lehmann wrote:
 Hello,
 
 On 5/26/2006 11:05 PM, Bill Moran wrote:
 Gregory Brauer [EMAIL PROTECTED] wrote:

 At the end of our weekly cycle I would like to command
 our loader to unload any tapes that are in the drive
 to make for easy tape swapping.  With versions of bacula
 prior to 1.38 the director daemon was running as root,
 so ejecting the tape was a simple matter of creating a
 job that ran an mtx unload as a RunBeforeJob rule.
 Now that bacula-dir is running as the bacula user for
 security, the bacula-dir no longer has permission to run
 mtx commands directly.  I was wondering if there is a way
 I can command bacula-sd to eject the tapes on behalf of the
 director.


 I use a combination of sudo and RunAfterJob to accomplish this.  If 
 there's
 a better way, I'd love to hear it :)
 
 Use the umount command from a Bacula shell?
 
 (Also possible in a RunAfterJob like 'echo umount XXX|bconsole -c ...' 
 in a shell.)

umount only detaches the storage deamon from the tape drive.  It doesn't
actually force a changer tape unload.

Looks like I'll be using the sudo method, but I'd sure like to
see this filed as a feature request:

 Add a bconsole command that will unload all tapes from all
 drives in all changers.

Greg


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


Re: [Bacula-users] Cannot use DVD for backup's, several errors. Help!

2006-06-01 Thread Robert Dhaene
I found out what my issue was.  It was my brain.  In the dvd-handler there
are some var's you can set up top.  The vars for the location of the
dvd+rw-tool were incorrect.  After fixing the error it started working like
a charm.  I hope this helps out for anyone else out there.  Just Tripple
check every path.  And do not try to type or use root after taking a
sleeping pill like I just did.  Spell check is going nuts.  Thanks to
everyone that helped.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 01, 2006 16:31
To: Robert Dhaene; bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Cannot use DVD for backup's, several errors.
Help!

 patch file.  I am running Gentoo Linux Distribution.In my system log
 file I am receiving some interesting errors:
 
  
 
 May 31 13:18:46 chdata1 Unable to identify CD-ROM format.
 
 May 31 13:18:47 chdata1 Unable to identify CD-ROM format.
 
 May 31 13:18:47 chdata1 Unable to identify CD-ROM format.
 
 May 31 13:18:48 chdata1 Unable to identify CD-ROM format.
 
 May 31 13:20:01 chdata1 cron[9758]: (root) CMD (test -x 
 /usr/sbin/run-crons  /usr/sbin/run-c$
 
 May 31 13:20:18 chdata1 attempt to access beyond end of device
 
 May 31 13:20:18 chdata1 hdc: rw=0, want=68, limit=4
 
 May 31 13:20:18 chdata1 isofs_fill_super: bread failed, dev=hdc, 
 iso_blknum=16, block=16
 
 May 31 13:20:19 chdata1 attempt to access beyond end of device
 
 May 31 13:20:19 chdata1 hdc: rw=0, want=68, limit=4
 
 May 31 13:20:19 chdata1 isofs_fill_super: bread failed, dev=hdc, 
 iso_blknum=16, block=16
 
 May 31 13:20:19 chdata1 attempt to access beyond end of device
 
 May 31 13:20:19 chdata1 hdc: rw=0, want=68, limit=4
 
 May 31 13:20:19 chdata1 isofs_fill_super: bread failed, dev=hdc, 
 iso_blknum=16, block=16
 
 
I believe these errors are normal with dvd writing on bacula as I recieve
them too but dvd writing works for me..
 
 
  My DVD Writer does support the media I am using, and it has been 
 formatted using dvd+rw-tools.  I have also attempted to use DVD-R and 
 DVD+R with the same result.  The exact requests I receive in Bacula are as
follows:
 
  
 
Did you blank the disk with this command? I don't think just a format is
enough.
dd if=/dev/zero bs=1024 count=512 | growisofs -Z /dev/xxx=/dev/fd/0

Also you can try canceling the job prune volume chdata1-0001 and then
deleting the folder /tmp/backup/chdata1-0001 as you may be having problems
with failed data. 

A couple of other things. I found to use dvd media bacula must autolabel the
media because the label command does not work with dvds (at least it has
never worked for me). I have had the most success with dvd+rw media. Also
there is an append patch in this list (in last 60 days) that you may need to
get bacula to write more data to the disk after the inital write. I reposted
the patch along with a gentoo ebuild that applies the patch. 

John 

John



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