Re: [Bacula-users] How to evaluate number of JobQueue-Entries?

2007-02-27 Thread Ralf Gross
Jonas Wueste schrieb:
 The problem is that bconsole only can be run with root rights.
 I want to transmit the querys result via nrpe to my nagios-server and 
 the nrpe user on the local machine has no root privileges.
 So, is there a possibility  to get the value without root privileges?

Change the permissions, you don't have to run bconsole as root.

VU0EM005:/opt/bacula/sbin# su - bacula
Kein Verzeichnis, Anmeldung mit HOME=/
[EMAIL PROTECTED]:/$ bconsole
Connecting to Director VU0EM005:9101
1000 OK: VU0EM005 Version: 2.0.2 (28 January 2007)
Enter a period to cancel a command.

Ralf

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] mtx-changer script - a few hairs left...

2007-02-27 Thread Steve Barnes
Hi List :)

At this time, I have a few hairs left on my head...(I recall a few
e-mails claiming this was easy to do and ran fine)...evidently my
bacula-fu is weak...

I'm (still) running Bacula Version: 1.38.11 (28 June 2006) with a
single, external HP DLT IV VS80 40/80G drive. Platform is FreeBSD6.1 on
a P4/256 with *lots* of disk space.

I'm trying to get the mtx-changer script
(http://www.bacula.org/rel-manual/mtx-changer.txt) to work to provide
auto-eject, auto-notify and auto-resume functionality. There may be
other, better ways to do this (feel free to suggest), but the
mtx-changer seemed to fit the bill.

I've been following the instructions on
http://www.bacula.org/rel-manual/Autochanger_Support.html.

According to the above link - That each Volume (tape) to be used must
be defined in the Catalog and have a Slot number assigned to it so that
Bacula knows where the Volume is in the autochanger. This is generally
done with the label command. See below for more details. You must
pre-label the tapes manually before using them.

Q1 - Do I need to do this *before* bacula has been told about the
auto-changer? So I label all of my tapes and then update the volume
manually assigning a slot number (in relation to how they have been
listed in the mtx-changer script)? Or, do I make bacula
autochanger-aware and *then* label my tapes? (so it prompts me for what
slot to use?)...or does it not matter on a well-functioning system?

My Storage Daemon's configuration is:

# Our pseudo-autochanger
#Autochanger {
#  Name = DLT-PSEUDO-CHANGER
#  Device = HP-DLT-VS80-01
#  Changer Device = /dev/nsa0
#  Changer Command = /usr/local/bin/mtx-changer %o %a %S
#}

# HP tape drive configuration
Device {
  Name = HP-DLT-VS80-01
  Description = HP DLT VS80 EXTERNAL
  Media Type = HPDLT-IV
  Archive Device = /dev/nsa0
  RemovableMedia = yes
  AutomaticMount = yes
  AlwaysOpen = yes
  Label Media = yes
  Device Type = tape
  Offline On Unmount = no
  Hardware End of Medium = no
  BSF at EOM = yes
  Backward Space Record = no
  Fast Forward Space File = no
  TWO EOF = yes
#  Autochanger = yes
} 

Elements have been commented out because I keep reverting back to a
single-drive operation...Offline On Unmount was commented out because I
had to keep walking across the building to re-insert the tapedoes
the above config look sane?

Also, the Director is configured using:

Storage {
Name= nasbox-sd
Address = nasbox1
SDPort  = 9103
Password= m00c0wTheGreat
#   Device  = DLT-PSEUDO-CHANGER
Device  = HP-DLT-VS80-01
Media Type  = HPDLT-IV
#   Autochanger = yes
}

Again, comments applied to revert to single-drive operation.

Permissions on /dev/nsa0 are:

lrwxr-xr-x  1 rootwheel6 Jan  1  1970 nsa0 - nsa0.0
crw-rw-rw-  1 rootbacula  0,  94 Feb 26 19:55 nsa0.0

As per Bacula documentation, /etc/devfs.conf:

own nsa0.0  root:bacula
permnsa0.0  0666

Here's a second problem...when I undo the comments on the above
configurations and stop/start fd/sd/dir, tail -f /var/log/mtx.log shows:

Tue Feb 27 11:26:59 EAT 2007 : loaded /dev/nsa0 0
mtx-changer: Request loaded, dev /dev/nsa0

This would seem to be a problem (at least for me)...the mtx-changer
script does a stat stor to implement the loaded command - this
causes a chicken-before-the-egg lock up. Looking at ps waux we see:

root4559  0.0  1.0  3868  1844  ??  Ss   11:26AM   0:00.01
/usr/local/sbin/bacula-fd -u root -g wheel -v -c
/usr/local/etc/bacula-fd.conf
bacula  4573  0.0  1.2  4540  2176  ??  Ss   11:26AM   0:00.02
/usr/local/sbin/bacula-sd -u bacula -g operator -v -c
/usr/local/etc/bacula-sd.conf
bacula  4575  0.0  0.6  1652  1092  ??  I11:26AM   0:00.01 /bin/sh
/usr/local/bin/mtx-changer loaded /dev/nsa0 0
bacula  4580  0.0  0.6  1652  1092  ??  I11:26AM   0:00.00 /bin/sh
/usr/local/bin/mtx-changer loaded /dev/nsa0 0
bacula  4582  0.0  1.2  4148  2172  ??  I11:26AM   0:00.02
/usr/local/sbin/bconsole -c /usr/local/etc/bconsole.conf
bacula  4583  0.0  0.5  1512   864  ??  I11:26AM   0:00.00
/usr/bin/grep /dev/nsa0
bacula  4584  0.0  0.5  1512   860  ??  I11:26AM   0:00.00 grep
^Device
bacula  4585  0.0  0.5  1512   860  ??  I11:26AM   0:00.00 grep -v
not open.
bacula  4586  0.0  0.5  1512   860  ??  I11:26AM   0:00.00 grep -v
ERR=
bacula  4587  0.0  0.5  1516   864  ??  I11:26AM   0:00.00 grep -v
no Bacula volume is mounted
bacula  4588  0.0  0.3  1232   636  ??  I11:26AM   0:00.00 sed -e
s/^.*Volume //
bacula  4589  0.0  0.3  1192   596  ??  I11:26AM   0:00.00 cut -d
-f2
bacula  4597  0.0  1.3  5188  2456  ??  Ss   11:27AM   0:00.05
/usr/local/sbin/bacula-dir -u bacula -g bacula -v -c
/usr/local/etc/bacula-dir.conf
root4600  0.0  1.4  5084  2544  p2  RV   11:28AM   0:00.00 grep
bacula (csh)

Which won't go away...the sd startup is calling mtx-changer which is in
turn calling stat stor in the console...the storage daemon 

[Bacula-users] Rif: Re: Change tape problem

2007-02-27 Thread Ferdinando Pasqualetti

Hi Arno,
thank you very much for your answer.
I will try asap the tests you are suggesting. By the way, I purged the
volumes involved in the error shown in the original message (it was the
third try), restarted the backup job and here is the (correct) result.

25-feb 19:55 bacula-dir: Start Backup JobId 12927,
Job=webfs3-job.2007-02-25_19.55.40
25-feb 19:55 bacula-dir: Recycled volume web-004
25-feb 19:55 webfs3: ClientRunBeforeJob: run command /root/restartsmb
25-feb 19:55 webfs3: ClientRunBeforeJob: Shutting down SMB services: [
OK ]
25-feb 19:55 webfs3: ClientRunBeforeJob: smbd: nessun processo terminato
25-feb 19:55 webfs3: ClientRunBeforeJob: smbd: nessun processo terminato
25-feb 19:55 webfs3: ClientRunBeforeJob: Starting SMB services: [ OK
]
25-feb 19:55 webfs3: ClientRunBeforeJob: [ OK ]
25-feb 19:55 bacula-sd: 3307 Issuing autochanger unload slot 7, drive
0 command.
25-feb 19:57 bacula-sd: 3304 Issuing autochanger load slot 3, drive
0 command.
25-feb 19:57 bacula-sd: 3305 Autochanger load slot 3, drive 0,
status is OK.
25-feb 19:57 bacula-sd: 3301 Issuing autochanger loaded? drive 0
command.
25-feb 19:57 bacula-sd: 3302 Autochanger loaded? drive 0, result
is Slot 3.
25-feb 19:57 bacula-sd: Recycled volume web-004 on device LTO1
(/dev/lto1), all previous data lost.
webfs3:   /proc is a different filesystem. Will not descend
from / into /proc
webfs3:   /boot is a different filesystem. Will not descend
from / into /boot
webfs3:   /dev is a different filesystem. Will not descend
from / into /dev
webfs3:   /var/lib/nfs/rpc_pipefs is a different filesystem.
Will not descend from / into /var/lib/nfs/rpc_pipefs
webfs3:   /sys is a different filesystem. Will not descend
from / into /sys
webfs3:   /uno is a different filesystem. Will not descend
from / into /uno
26-feb 04:14 bacula-sd: End of Volume web-004 at 594:6519 on
device LTO1 (/dev/lto1). Write of 64512 bytes got -1.
26-feb 04:14 bacula-sd: Re-read of last block succeeded.
26-feb 04:14 bacula-sd: End of medium on Volume web-004 Bytes=594,382,602,240
Blocks=9,213,519 at 26-feb-2007 04:14.
26-feb 04:14 bacula-dir: Recycled volume web-005
26-feb 04:14 bacula-sd: 3301 Issuing autochanger loaded? drive 0
command.
26-feb 04:14 bacula-sd: 3302 Autochanger loaded? drive 0, result
is Slot 3.
26-feb 04:14 bacula-sd: 3307 Issuing autochanger unload slot 3, drive
0 command.
26-feb 04:15 bacula-sd: 3304 Issuing autochanger load slot 4, drive
0 command.
26-feb 04:15 bacula-sd: 3305 Autochanger load slot 4, drive 0,
status is OK.
26-feb 04:15 bacula-sd: 3301 Issuing autochanger loaded? drive 0
command.
26-feb 04:15 bacula-sd: 3302 Autochanger loaded? drive 0, result
is Slot 4.
26-feb 04:15 bacula-sd: Recycled volume web-005 on device LTO1
(/dev/lto1), all previous data lost.
26-feb 04:15 bacula-sd: New volume web-005 mounted on device
LTO1 (/dev/lto1) at 26-feb-2007 04:15.
26-feb 10:21 bacula-sd: End of Volume web-005 at 528:6656 on
device LTO1 (/dev/lto1). Write of 64512 bytes got -1.
26-feb 10:21 bacula-sd: Re-read of last block succeeded.
26-feb 10:21 bacula-sd: End of medium on Volume web-005 Bytes=528,395,664,384
Blocks=8,190,656 at 26-feb-2007 10:21.
26-feb 10:21 bacula-dir: Recycled volume web-006
26-feb 10:21 bacula-sd: 3301 Issuing autochanger loaded? drive 0
command.
26-feb 10:21 bacula-sd: 3302 Autochanger loaded? drive 0, result
is Slot 4.
26-feb 10:21 bacula-sd: 3307 Issuing autochanger unload slot 4, drive
0 command.
26-feb 10:22 bacula-sd: 3304 Issuing autochanger load slot 5, drive
0 command.
26-feb 10:22 bacula-sd: 3305 Autochanger load slot 5, drive 0,
status is OK.
26-feb 10:22 bacula-sd: 3301 Issuing autochanger loaded? drive 0
command.
26-feb 10:22 bacula-sd: 3302 Autochanger loaded? drive 0, result
is Slot 5.
26-feb 10:23 bacula-sd: Recycled volume web-006 on device LTO1
(/dev/lto1), all previous data lost.
26-feb 10:23 bacula-sd: New volume web-006 mounted on device
LTO1 (/dev/lto1) at 26-feb-2007 10:23.
26-feb 13:49 bacula-sd: Job write elapsed time = 17:48:45, Transfer rate
= 21.65 M bytes/second
26-feb 13:49 bacula-sd: Alert: SCSI 2 tape drive:
26-feb 13:49 bacula-sd: Alert: File number=267, block number=0, partition=0.
26-feb 13:49 bacula-sd: Alert: Tape block size 0 bytes. Density code 0x44
(no translation).
26-feb 13:49 bacula-sd: Alert: Soft error count since last status=0
26-feb 13:49 bacula-sd: Alert: General status bits on (8101):
26-feb 13:49 bacula-sd: Alert: EOF ONLINE IM_REP_EN
26-feb 13:49 bacula-dir: Bacula 2.0.2 (28Jan07): 26-feb-2007 13:49:03
 JobId: 12927
 Job: 
webfs3-job.2007-02-25_19.55.40
 Backup Level:  Full
 Client:
webfs3 2.0.2 (28Jan07) i686-redhat-linux-gnu,redhat,Enterprise
release
 FileSet:webfs3-fileset
2005-04-30 07:13:53
 Pool: 
webfs (From Job resource)
 Storage:LTO-1
(From user selection)
 Scheduled time: 25-feb-2007 19:55:17
 Start time:   25-feb-2007
19:55:46
 End time:26-feb-2007
13:49:03
 Elapsed time:  17 hours 53 mins
17 

Re: [Bacula-users] Bacula Restore keeps crashing with Block checksum mismatch

2007-02-27 Thread Sven Hendriks
Hello Kern,

thank you very much for this hint, but the volume size is already limited to 
2GB.

Greetings
Sven Hendriks

 Von: Kern Sibbald [EMAIL PROTECTED]
 Gesendet: 26.02.07 19:37:24
 An: bacula-users@lists.sourceforge.net
 Betreff: Re: [Bacula-users] Bacula Restore keeps crashing with Block 
 checksum mismatch


 It looks to me like Samba shares don't support more that 2GB.
 
 Recommendations:
 - Don't write to any share of any kind (not Samba, not NFS, ...)
 - If you absolutely must write to a Samba share try limiting the Volume size 
 to 2GB -- that may resolve the problem.
 
 On Monday 26 February 2007 09:50, Sven Hendriks wrote:
  Hello,
 
  I'm running Bacula 2.0.2 built from source on the following system:
  XEN 3.0 with Gentoo, Kernel 2.6.16 as Dom0 running bacula-dir and
  bacula-sd. One deamon bacula-fd is also running here for test restores.
  File system is Ext3. Debian, Kernel 2.6.16 as DomU running one file daemon
  for backup. The file system here is XFS. The backups are done from the DomU
  file daemon and are stored via the storage daemon on a samba share with
  NTFS mounted with the cifs option in the Dom0.
 
  Backups are running well, unfortunately the Restores do not. Everytime I
  try to restore a backup sooner or later I get an error message like
 
  Error: block.c:317 Volume data error at 0:2068512761!
  Block checksum mismatch in block=65353 len=64512: calc=3deeeba7
  blk=962bd82e
 
  and later
 
  Error: attribs.c:409 File size of restored file X not correct.
  Original Y, restored Z.
 
  and Bacula stops.
 
  I tried to restore from the samba share to the same samba share into
  another directory via the file daemon on Dom0 and from the samba share to a
  XEN DomU with XFS via the file daemon on DomU. In both cases I get the
  error messages above. The backups are running at night, so it is very
  unlikely that file sizes are changing during backup. I hope my descriptions
  are not too confusing :-) I have no idea what causes this error and I'd be
  grateful for any hint that may help to solve my little problem.
 
  Greetings,
  Sven Hendriks


__
XXL-Speicher, PC-Virenschutz, Spartarife  mehr: Nur im WEB.DE Club!
Jetzt gratis testen! http://freemail.web.de/home/landingpad/?mc=021130


-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] FileSet doc suggestions + question

2007-02-27 Thread IEM - network operating center
hi all.

setting up my test system i ran into some problems with the FileSet.


first of all, it took me a while to figure out, that only the File
sections are used to calculate the hash of the FileSet.
since i decided (probably because of wron assumptions) that i would do
most of the generic inclusion/exclusion in the Options{} SubResource,
my hash would not change, making me wrongly believe, that the FileSet
was not read correctly (since bacula would only do incremental backups
and not upgrade to Full backups, even though i did change something).

probably it would be nice to make it explicit in the manual, that only
the File sections of Include{} and Exlcude{} are used for the Hash.


my second problem myteriously resolved while i am writing this email
(cheerio to systematic testing!):

i would like to NOT backup all directories named tmp (e.g. /tmp AND
/home/user1/tmp AND /home/user2/subdir/tmp)
in theory this should be fairly simple, no?

i tried to specify wilddir as tmp, tmp/ and even as /tmp and
/tmp/ (though i had little hope with the last 2 ones), in the
Options{}-resource of Include{} (of course with 'exclude=yes').
however, this did not work.

i finally found out that i had to use 'wilddir = */tmp'.

(it is fairly simple to exclude directories where you do know the full
path before hand; however this may not work if you allow users to have
their own directory layout in their home directories)

i couldn't find any hint in the documentation, and i think this might be
interesting to a lot of people.
(but probably they are just faster with understanding FileSet's ;-))


finally:
is it possible to use other exclusion mechanisms, e.g. by file-size?
or do i have to write my own scripts to achieve something like this?


System:
debian/etch
bacula-2.0.2



mfg.asdr
IOhannes

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] Does bacula track and or store tape soft errors?

2007-02-27 Thread Kern Sibbald
On Monday 26 February 2007 21:18, Arno Lehmann wrote:
 I send this to -users and -devel because I don't know if the original
 poster is on -devel where this belongs, IMO...

 On 2/25/2007 3:43 AM, Dan Langille wrote:
   On 25 Feb 2007 at 3:33, Florian Heigl wrote:
 Just a silent heads up, if I may...
 
  Umm, how is this silent?  ;)

 Probably because Florian wrote that without mumbling the words while
 typing? ;-)

 I never noticed bacula didn't track media errors, but this *is* a missing
 feature

As far as I know, Bacula does keep track of all errors it encounters.  One of 
the current problems on many operating systems is that they return an I/O 
error at the end of the tape (Linux handles it correctly, if I remember 
right), so tracking the errors may not be accurate.

Bacula does not ask the SCSI controller for the soft errors -- i.e. those 
which are not seen by the program.


 Yes, and that's part of the reason for the feature request Adam and I
 submitted some time ago :-)

 I wasn't aware of the difference between soft and hard errors, but
 that's obviously important.

  - the backup tool is expected to have error counters for tape devices
 and media, both will fail lots once things scale up as they're just parts
  that wear off over time and one needs an indicator for replacing things
  on time.
 
 usually a tape should be blocked from being recycled after a certain
  point and a tape drive should be disabled for intervention.
 
  Sounds like you want to get this onto the projects page,and ready for
  the next vote.

 In my opinion that has already taken place:
 Item 25:  Improve Bacula's tape and drive usage and cleaning management.

Yes, and I hope a big part of this can be resolved by Python scripting even if 
most users may not like this idea.  It will in the long run provide a lot 
more flexibility.  Perhaps in the next major release, someone (or I) can 
create a nice set of Python scripts that really do something useful and can 
be a sort of default that users can tweak as they wish ...


 Currently item 7 - and I notice that the projects page on the web site
 is kind of broken. The overview and the actual descriptions are not
 representing the current state, I believe.

The projects file that is in the trunk of the SVN should be pretty close to 
the current state as I recently updated it.


  Or someone could just do the work.  If this is to be done, it must be
  modular: not every OS will collect the errors the same way.  It may
  even differ from device to device.

 I had discussed some of that with Kern quite a while ago.

 He suggested to keep the 'status poller' in an extra script or program,
 similar to mtx-changer.

 That does sound reasonable, and there even is a configuration directive
 for that purpose in existence: AlertCommand.

 We would only need a defined interface to return status information in a
 way that the SD can easily parse. In the thread 'Cleaning Jobs' on
 -users I presented some ideas that could be used, because the problem of
 cleaning job and this one here are tightly related: Basically, and as a
 first step, it's about getting status information from the drive at
 regular intervals.

 These need to be passed to the DIR, which could put them into the
 catalog, and which would have to determine if any action is necessary -
 drive cleaning, requesting operator assistence, or disabling the drive
 or tape altogether.

 Looks like Adam and I did not understand what our feature request should
 have contained, but we can always rewrite it. Quite soon, possibly :-)

Good idea -- you might also discuss with Eric what he is currently working on 
for tracking Device statistics since he is currently implementing many things 
that you will probably want (real read/write times, ...).

Also, I met Andrew Morton (the stable Linux kernel maintainer) at FOSDEM, and 
he agreed with me that the current Linux tape interface is rather primitive 
and promised to help me get in touch with the SCSI kernel developer.  I would 
like to see some significant improvements in the information returned by 
ioctl() -- mainly whether or not there is a tape in the drive, but perhaps we 
can define an interface that will directly return a lot of the tape 
statistics that interest us (tape soft/hard errors, read/write 
counts/times, ...).

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Cannot label tape from bconsole

2007-02-27 Thread Adam Cécile
Check permissions on /dev/nst0.

Alfonso Amato - Sintecnos srl a écrit :
 While setting up Bacula and following Brief Tutorial, I see a strange 
 problem: after the command run asking me for labelling the tape, I 
 give the command label, and bconsole gets lock for some 2 minutes, 
 than says:

 3910 Unable to open device DAT72 (/dev/nst0): ERR=dev.c:424 Unable to 
 open device DAT72 (/dev/nst0): ERR=Permission denied

 The most strange thing is that if I use btape /dev/nst0 and issue a 
 command label, it works correctly and the read command says the tape 
 has been correctly labelled.

 The Linux Box is a FC4.
 bacula-sd.conf file about device is:

 Device {
Name = DAT72
Media Type = DSS-3
Device Type = Tape
Archive Device = /dev/nst0
AutomaticMount = yes;
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
Label Media = yes;
Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'
 }


 and in the bacula-dir.conf:

 Storage {
Name = Tape
Address = backupserver.pippo.local  #existing address resolved
SDPort = 9103
Password = 
Device = DAT72
Media Type = DSS-3
 }

 Any help?

 Thanks
 Alfonso

 -
 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
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
   


-- 
Adam CECILELinbox / FreeALter Soft
152 rue de Grigy   tél: +33 3 87 50 87 95
Technopôle Metz 2000   fax: +33 3 87 75 19 26   
57070 METZ - Francehttp://www.linbox.com


-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Cannot label tape from bconsole

2007-02-27 Thread Alfonso Amato - Sintecnos srl
Changed permission of /dev/nst0* into 660 and works correctly! I suggest 
to add the chmod  line into the Brief tutorial while testing not on 
file but on real tape.

Thanks alot Adam!

Alfonso

Adam Cécile wrote:
 Check permissions on /dev/nst0.
 
 Alfonso Amato - Sintecnos srl a écrit :
 While setting up Bacula and following Brief Tutorial, I see a 
 strange problem: after the command run asking me for labelling the 
 tape, I give the command label, and bconsole gets lock for some 2 
 minutes, than says:

 3910 Unable to open device DAT72 (/dev/nst0): ERR=dev.c:424 Unable 
 to open device DAT72 (/dev/nst0): ERR=Permission denied

 The most strange thing is that if I use btape /dev/nst0 and issue a 
 command label, it works correctly and the read command says the 
 tape has been correctly labelled.

 The Linux Box is a FC4.
 bacula-sd.conf file about device is:

 Device {
Name = DAT72
Media Type = DSS-3
Device Type = Tape
Archive Device = /dev/nst0
AutomaticMount = yes;
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
Label Media = yes;
Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'
 }


 and in the bacula-dir.conf:

 Storage {
Name = Tape
Address = backupserver.pippo.local  #existing address resolved
SDPort = 9103
Password = 
Device = DAT72
Media Type = DSS-3
 }

 Any help?

 Thanks
 Alfonso

 -
 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
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
   
 
 

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] How to evaluate number of JobQueue-Entries?

2007-02-27 Thread Arno Lehmann
Hi,

On 2/27/2007 9:04 AM, Ralf Gross wrote:
 Jonas Wueste schrieb:
 
The problem is that bconsole only can be run with root rights.
I want to transmit the querys result via nrpe to my nagios-server and 
the nrpe user on the local machine has no root privileges.
So, is there a possibility  to get the value without root privileges?
 
 
 Change the permissions, you don't have to run bconsole as root.
 
 VU0EM005:/opt/bacula/sbin# su - bacula
 Kein Verzeichnis, Anmeldung mit HOME=/
 [EMAIL PROTECTED]:/$ bconsole
 Connecting to Director VU0EM005:9101
 1000 OK: VU0EM005 Version: 2.0.2 (28 January 2007)
 Enter a period to cancel a command.

If you're worried about access to your Bacula by unauthorized users, you 
can also restrict the console connection to only allow the status 
command, by the way.

Arno

 Ralf
 
 -
 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
 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

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Alaways using the inserted volume and auto label if needed

2007-02-27 Thread sefi
Dear list,

I got a bacula setup with a number of tapes that are switched on a daily 
basis during the week. During the weekend the same tape stays in. There 
are about 11 tapes in the rotation (but this shouldn't matter).

The desired behaviour is that bacula should not demand other tapes and 
always use the inserted one no matter what. It should not matter if the 
tape is not already labelled, used or if any other Volume is marked as 
recycled. If the tape is not labelled yet, it should be labelled.

My approach (of which I'm not sure if it does work as intented) is to 
set AutoPrune to 'no' (so old volumes don't get pruned and purged 
automatically and are not chosen over the inserted volume). Second I set 
VolumeRetention to a small time span, say '10 days', and Recycle Current 
Volume to 'yes' so that the current tape will be recycled and used (my 
rotation is longer than 10 days, so this should suffice). Is this 
approach correct? Is there any other method to achieve the desired 
behaviour?

Cheers,
Philipp

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Question about Tape handling

2007-02-27 Thread Kern Sibbald
On Monday 26 February 2007 22:11, Tim Schoellhammer wrote:
 The answer was in

 http://www.nabble.com/Slow-positioning-at-the-end-of-the-tape--tf2826338.ht
ml#a7909209

 Now with:
 Autochanger {
   Name = MSL
   Device = Drive-1, Drive-2
   Changer Command = /usr/local/share/bacula/mtx-changer %c %o %S %a %d
   Changer Device = /dev/pass0
 }

 Device {
   Name = Drive-1  #
   Drive Index = 0
   Media Type = LTO-2
   Device Type = Tape
   Archive Device = /dev/nsa0
   AutomaticMount = yes;   # when device opened, read it
   AlwaysOpen = yes;
   RemovableMedia = yes;
   RandomAccess = no;
   AutoChanger = yes
   # Enable the Alert command only if you have the mtx package loaded
   Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'
   Hardware End of Medium = No
  #Fast Forward Space File = No
  # BSF at EOM = yes
  # Backward Space Record = yes
 #  Fast Forward Space File = no
  # TWO EOF = yes
 }

 Device {
   Name = Drive-2  #
   Drive Index = 1
   Media Type = LTO-2
   Device Type = Tape
   Archive Device = /dev/nsa1
   AutomaticMount = yes;   # when device opened, read it
   AlwaysOpen = yes;
   RemovableMedia = yes;
   RandomAccess = no;
   AutoChanger = yes
   # Enable the Alert command only if you have the mtx package loaded
   Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'
   Hardware End of Medium = No
   #Fast Forward Space File = No
   #BSF at EOM = yes
   #Backward Space Record = yes
 #  Fast Forward Space File = no
   #TWO EOF = yes
 }

 and
 mt -f  /dev/nsa0 seteotmodel 1
 mt -f  /dev/nsa0 blocksize 0
 mt -f  /dev/nsa0 comp enable
 mt -f  /dev/nsa1 seteotmodel 1
 mt -f  /dev/nsa1 blocksize 0
 mt -f  /dev/nsa1 comp enable

 it works fine.

 It is two times faster in recovery as the veritas backupexec.

Nice.  Thanks for reporting that.  It is always nice to be faster than the big 
guys :-)

By the way, I imagine you have done so, but please run a btape test to 
ensure that your new Device resource works correctly with your drive.  I have 
no reason to believe that it won't but it is always good to check.  
btape test is not 100% foolproof, but it will catch a lot of subtile 
problems that could show up later ...


 I love it. :)

 Tim

 Tim Schoellhammer schrieb:
  Hi list,
 
  first of all i will thanks the developer of this great software.
 
  I have a question about the bacula tape handling.
 
  Environment: FreeBSD amd64 6.2 Bacula 2.0.2 Autochanger MSL6030 with two
  LTO-2 drives.
 
  Backup an Restore worked how i expected.
  But the restore of selected files from a backup is very slow.
 
  Tested with to jobs one restore 102mb an a solaris server. Takes 50
  minutes to restore. The second job was restore 400mb on a windows 2003
  server. This takes 1h and 20 minutes.
 
  Now the question.
  When i do a restore job in bacula. The SD load the Tape for the restore.
  How get Bacula the position of the files.
 
  Any settings to the sd-conf or the dir-conf to force bacula to write a
  signature an the tape to speed the spool of the drive up?
 
 
  Sorry for the bad english.
  I hope anyone understand my question.
 
  Tim
 
  -
  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
  Bacula-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/bacula-users

 -
 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
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula Restore keeps crashing with Block checksum mismatch

2007-02-27 Thread Kern Sibbald
On Tuesday 27 February 2007 09:54, Sven Hendriks wrote:
 Hello Kern,

 thank you very much for this hint, but the volume size is already limited
 to 2GB.

Well, I don't think it is working correctly, because your output indicates 
that Bacula is attempting to read at an address greater than 2,000,000,000 
when it gets the error.



 Greetings
 Sven Hendriks

  Von: Kern Sibbald [EMAIL PROTECTED]
  Gesendet: 26.02.07 19:37:24
  An: bacula-users@lists.sourceforge.net
  Betreff: Re: [Bacula-users] Bacula Restore keeps crashing with Block
  checksum mismatch
 
 
  It looks to me like Samba shares don't support more that 2GB.
 
  Recommendations:
  - Don't write to any share of any kind (not Samba, not NFS, ...)
  - If you absolutely must write to a Samba share try limiting the Volume
  size to 2GB -- that may resolve the problem.
 
  On Monday 26 February 2007 09:50, Sven Hendriks wrote:
   Hello,
  
   I'm running Bacula 2.0.2 built from source on the following system:
   XEN 3.0 with Gentoo, Kernel 2.6.16 as Dom0 running bacula-dir and
   bacula-sd. One deamon bacula-fd is also running here for test restores.
   File system is Ext3. Debian, Kernel 2.6.16 as DomU running one file
   daemon for backup. The file system here is XFS. The backups are done
   from the DomU file daemon and are stored via the storage daemon on a
   samba share with NTFS mounted with the cifs option in the Dom0.
  
   Backups are running well, unfortunately the Restores do not. Everytime
   I try to restore a backup sooner or later I get an error message like
  
   Error: block.c:317 Volume data error at 0:2068512761!
   Block checksum mismatch in block=65353 len=64512: calc=3deeeba7
   blk=962bd82e
  
   and later
  
   Error: attribs.c:409 File size of restored file X not correct.
   Original Y, restored Z.
  
   and Bacula stops.
  
   I tried to restore from the samba share to the same samba share into
   another directory via the file daemon on Dom0 and from the samba share
   to a XEN DomU with XFS via the file daemon on DomU. In both cases I get
   the error messages above. The backups are running at night, so it is
   very unlikely that file sizes are changing during backup. I hope my
   descriptions are not too confusing :-) I have no idea what causes this
   error and I'd be grateful for any hint that may help to solve my little
   problem.
  
   Greetings,
   Sven Hendriks

 __
 XXL-Speicher, PC-Virenschutz, Spartarife  mehr: Nur im WEB.DE Club!
 Jetzt gratis testen! http://freemail.web.de/home/landingpad/?mc=021130


 -
 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
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula Restore keeps crashing with Block checksum mismatch

2007-02-27 Thread Alan Brown
On Mon, 26 Feb 2007, Kern Sibbald wrote:

 It looks to me like Samba shares don't support more that 2GB.

Incorrect. My CIFS servers are happily providing 1000+Gb shares.

It's certainly suboptimal for Bacula to be reading or writing to remote 
shares though. Far better to put a samba-fd directly on the host machines.


-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Does bacula track and or store tape soft errors?

2007-02-27 Thread Alan Brown
On Mon, 26 Feb 2007, Rex Wheeler wrote:

 Do you have the expertise to write something which can parse this
 information or would it need to go on the Bacula wishlist?

 I do have the expertise, but not sure about the time. It would be a
 reasonable undertaking. It would involve:

 1) Updating the storage daemon to send the appropriate SCSI commands to
 inquire about error counts at mount and unmount times (or possibly with
 each block read / write.) This shouldn't be too bad as the sg_logs
 utility is out there and can access these statistics. The code could
 either be pulled from that tool, or the storage daemon could just call
 that tool and parse the results.

Loading/unloadng is handled by external scripts, so could be quite 
modular.

 2) Updating the configuration syntax and parser for the storage daemon
 so the soft error recording logic could be enabled from the
 configuration file.

This is likely more complex

 3) Changing the protocol between the storage daemon and the director to
 include the new soft error count information.

 4) Changing the protocol between the director and the catalog service to
 include the new soft error count information.

 5) Changing the schema in the configuration store to hold this new
 information.

 6) Other stuff I haven't though of because I have only about an hour of
 looking at the bacula source code.

If this is done in an external program then things are somewhat easier. 
There is already some scripting logic in place to flag to the operator 
when cleaning is needed or other errors have been encountered and it would 
be terrific if more detailed stats were kept on individual tapes


-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Backup Windows System to a NAS

2007-02-27 Thread Sascha Knific
Hi,

I'm trying to set up bacula 2.0.2 to back up Windows XP (for testing, 
later Win2k3 Server for production) to a NAS (supporting SMB) with no 
success. The problem is to access the smb share with the storage daemon.


First I changed the account for the storage daemon / service to a local 
user account (the account I'm logged in).

Then I tried this:

 bacula-sd.conf 
...
Device {
  Name = FileStorage
  Media Type = File
  Archive Device = pegasus\\backup
  LabelMedia = yes   # lets Bacula label unlabeled media
  Random Access = Yes
  AutomaticMount = yes   # when device opened, read it
  RemovableMedia = no
  AlwaysOpen = no
}
...



then this (share mounted manually):

 bacula-sd.conf 
...
Device {
  Name = FileStorage
  Media Type = File
  Archive Device = L:\\
  LabelMedia = yes   # lets Bacula label unlabeled media
  Random Access = Yes
  AutomaticMount = yes   # when device opened, read it
  RemovableMedia = no
  AlwaysOpen = no
}
...



and this:

 bacula-sd.conf 
...
Device {
  Name = FileStorage
  Media Type = File
  Archive Device = L:\\
  LabelMedia = yes   # lets Bacula label unlabeled media
  Random Access = Yes
  AlwaysOpen = no
  RequiresMount = yes
  MountPoint = L:\\
  MountCommand = \C:\\WINDOWS\\SYSTEM32\\NET USE L: 
netdisk1\\backup /PERSISTENT:NO\
  UnmountCommand = \C:\\WINDOWS\\SYSTEM32\\NET USE L: /DELETE\
}
...




I always get a error message like this:



27-Feb 13:58 hades-dir: Start Backup JobId 13, Job=Client1.2007-02-27_13.58.09
27-Feb 13:58 hades-sd: Client1.2007-02-27_13.58.09 Error: 
../../stored/dev.c:126 Unable to stat device L:\: ERR=Das System kann den 
angegebenen Pfad nicht finden.

27-Feb 13:58 hades-sd: Client1.2007-02-27_13.58.09 Warning: 
 Device FileStorage requested by DIR could not be opened or does not 
exist.
27-Feb 13:58 hades-sd: Client1.2007-02-27_13.58.09 Error: 
../../stored/dev.c:126 Unable to stat device L:\: ERR=Das System kann den 
angegebenen Pfad nicht finden.

27-Feb 13:58 hades-sd: Client1.2007-02-27_13.58.09 Warning: 
 Device FileStorage requested by DIR could not be opened or does not 
exist.
27-Feb 13:58 hades-sd: Client1.2007-02-27_13.58.09 Error: 
../../stored/dev.c:126 Unable to stat device L:\: ERR=Das System kann den 
angegebenen Pfad nicht finden.

27-Feb 13:58 hades-sd: Client1.2007-02-27_13.58.09 Warning: 
 Device FileStorage requested by DIR could not be opened or does not 
exist.
27-Feb 13:58 hades-sd: Failed command: Jmsg Job=Client1.2007-02-27_13.58.09 
type=5 level=1172581091 hades-sd: Client1.2007-02-27_13.58.09 Warning: 
 Device FileStorage requested by DIR could not be opened or does not 
exist.

27-Feb 13:58 hades-sd: Client1.2007-02-27_13.58.09 Fatal error: 



Has anybody got a similar setup working?

Best Regards,
Sascha

-- 
Sascha Knific   K Systems  Design
Tel. +49-8151-773260Waxensteinstr. 32
Fax. +49-8151-77326282319 Starnberg, Germany
[EMAIL PROTECTED] http://www.k-sysdes.net


-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Cannot label tape from bconsole

2007-02-27 Thread IEM - network operating center
Alfonso Amato - Sintecnos srl wrote:
 Changed permission of /dev/nst0* into 660 and works correctly! I suggest 
 to add the chmod  line into the Brief tutorial while testing not on 
 file but on real tape.
 

i rather suggest adding a line like make sure you do have the correct
permissions to access the tape if it is not already there.

your chmod trick might well not work on all systems (e.g. udev/devfs
will recreate the devices on bootup, thus losing the new permissions if
you don't configure your system accordingly)

mfga.sdr
IOhannes

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Mounting/Label question

2007-02-27 Thread Andreas Lüdtke
Hi Arno,

thanks for your comments. Please find my answers inline. 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Arno Lehmann
 Sent: Monday, February 26, 2007 8:44 PM
 To: 'bacula-users'
 Subject: Re: [Bacula-users] Mounting/Label question

  Device config:
  
  Device {
Name = Quantum
Changer Device = tape0
Media Type = DLT-V4
Device Type = Tape
Archive Device = Tape0
AutomaticMount = yes
AlwaysOpen = yes
RemovableMedia = yes
RandomAccess = no
AutoChanger = no
Alert Command = tapeinfo -f %c | findstr TapeAlert
Spool Directory = V:\\BaculaSpool
Maximum Spool Size = 2 GB
Changer Command = mtx-changer %o %a %S
Maximum Changer Wait = 4d
Offline On Unmount = yes
Label media = yes
  }
 
 That configuration looks funny... is that an autochanger or a single 
 drive? The configuration looks like a 1.36 one - i.e. no separate 
 autochanger section - but that was not ported to windows.

I don't have an autochanger. The last four lines were added recently to achive 
that a tape
is automatically ejected, that a new inserted tape is mounted automatically and 
that a new
tape is also automatically labeled. The idea behind was, that a normal user 
could change
the tape himself and that no admin is needed to mount the tape etc.. These 
lines were
actually taken from this list some days ago(Erich Prinz - Win32 
mtx-changer.cmd and
single drive).

  Data spooling: 0 active jobs, 0 bytes; 7 total jobs, 2,000,050,371 max 
  bytes/job.
  Attr spooling: 1 active jobs, 9,135,494 bytes; 6 total jobs, 17,783,343 max 
  bytes.
 
 But there are attributes still spooled... looks like the SD 
 is currently despooling attributes after a completed job.
 
 Is that possible, i.e. did the Job finish some time after you 
 wrote your mail?

I looked in the log and the Full Backup showed a Termination:*** 
Backup Error
***. See below for the whole log entry of that job.

 If it did not, I'd like to see the 'sta dir' output, because above you 
 state that the director is still waiting for a tape but didn't give 
 any output showing us how it did wait :-)

Arno you're right, that was a mistake on my side. The yesterday evening backup 
was
normally executed.

Do you have a clue why the director couldn't get the record for JobId 97?

Thanks

Andreas

Log entry for job:

25-Feb 23:05 srv-dir: Start Backup JobId 97, Job=PTHHSrv.2007-02-25_23.05.00
25-Feb 23:05 srv-dir: Max configured use duration exceeded. Marking Volume 
Tape04 as
Used.
25-Feb 23:06 srv-sd: Please mount Volume FirstTape on Storage Device 
Quantum (Tape0)
for Job Srv.2007-02-25_23.05.00
26-Feb 00:06 srv-sd: Please mount Volume FirstTape on Storage Device 
Quantum (Tape0)
for Job Srv.2007-02-25_23.05.00
26-Feb 02:06 srv-sd: Please mount Volume FirstTape on Storage Device 
Quantum (Tape0)
for Job Srv.2007-02-25_23.05.00
26-Feb 06:06 srv-sd: Please mount Volume FirstTape on Storage Device 
Quantum (Tape0)
for Job Srv.2007-02-25_23.05.00
26-Feb 09:37 srv-sd: Wrote label to prelabeled Volume Tape05 on device 
Quantum (Tape0)
26-Feb 09:37 srv-sd: Spooling data ...
26-Feb 09:37 srv-fd: Generate VSS snapshots. Driver=VSS Win 2003, 
Drive(s)=CDEV
26-Feb 09:40 srv-sd: User specified spool size reached.
26-Feb 09:40 srv-sd: Writing spooled data to Volume. Despooling 2,000,050,371 
bytes ...
26-Feb 09:43 srv-sd: Despooling elapsed time = 00:02:07, Transfer rate = 15.74 M
bytes/second
26-Feb 09:43 srv-sd: Spooling data again ...
26-Feb 09:45 srv-sd: User specified spool size reached.
26-Feb 09:45 srv-sd: Writing spooled data to Volume. Despooling 2,000,050,386 
bytes ...
26-Feb 09:47 srv-sd: Despooling elapsed time = 00:01:55, Transfer rate = 17.39 M
bytes/second
26-Feb 09:47 srv-sd: Spooling data again ...
26-Feb 09:50 srv-sd: User specified spool size reached.
26-Feb 09:50 srv-sd: Writing spooled data to Volume. Despooling 2,000,050,389 
bytes ...
26-Feb 09:52 srv-sd: Despooling elapsed time = 00:01:43, Transfer rate = 19.41 M
bytes/second
26-Feb 09:52 srv-sd: Spooling data again ...
26-Feb 09:53 srv-sd: User specified spool size reached.
26-Feb 09:53 srv-sd: Writing spooled data to Volume. Despooling 2,000,050,350 
bytes ...
26-Feb 09:56 srv-sd: Despooling elapsed time = 00:02:18, Transfer rate = 14.49 M
bytes/second
26-Feb 09:56 srv-sd: Spooling data again ...
26-Feb 09:57 srv-sd: User specified spool size reached.
26-Feb 09:57 srv-sd: Writing spooled data to Volume. Despooling 2,000,050,383 
bytes ...
26-Feb 09:59 srv-sd: Despooling elapsed time = 00:02:16, Transfer rate = 14.70 M
bytes/second
26-Feb 09:59 srv-sd: Spooling data again ...
26-Feb 10:00 srv-sd: Job write elapsed time = 00:22:02, Transfer rate = 7.759 M
bytes/second
26-Feb 10:00 srv-sd: Committing spooled data to Volume Tape05. Despooling 
268,975,553
bytes ...
26-Feb 10:00 srv-sd: Despooling elapsed time = 00:00:20, Transfer rate = 13.44 M
bytes/second
26-Feb 10:00 srv-sd: Alert: cannot 

[Bacula-users] bacula not responding

2007-02-27 Thread Chris Sarginson
Hi All,

Running a status dir command in bconsole essentially hangs the console.
  I am running bacula-dir 2.0.1 on Centos 4.3 with a MySQL backend.
Having checked the MySQL database is approx 2.5G in size.  Obviously
this is getting to be a little on the large size, so I have run dbcheck
and selected Eliminate orphaned Job records. There are 3 to remove.

I believe this is working as the mysql daemon is now using 95% of my cpu
:-), however it has been running for a little while, so I was looking
for some examples of configuration tips for optimal usage of bacula boxes.

We are going to be configuring several machines to back up 100+ servers
on our network, to allow for us to split the network load etc.  The data
will be held as 1 full backup taken every sunday and then six
incremental backups.

With this in mind I wanted to check the following settings in the dir
that we create for every client we are to backup:

Client {
   Name = srv-IP_IP_IP_IP
   Address = blahblahblah.ukfast.net
   FDPort = 9102
   Catalog = MyCatalog
   Password = passwordhere
   File Retention = 30 days (can this be changed to 7 days?)
   Job Retention = 6 months (can this be changed to 7 days?)
   AutoPrune = yes
}

Storage {
   Name = file-IP_IP_IP_IP
   Address = storage_device.ukfast
   SDPort = 9103
   Password = storagepasswordhere
   Device = storage-IP_IP_IP_IP
   Media Type = File
}

JobDefs {
   Name = IP_IP_IP_IP Job
   Type = Backup
   Level = Incremental
   Client = srv-IP_IP_IP_IP
   FileSet = Full Set
   Schedule = WeeklyCycle
   Storage = file-IP_IP_IP_IP
   Messages = Standard
   Pool = pool-IP_IP_IP_IP
   Priority = 10
}

Job {
   Name = IP_IP_IP_IP Job
   JobDefs = IP_IP_IP_IP Job
   Write Bootstrap = /home/bacula/bootstraps/srv-IP_IP_IP_IP.bsr
}

Pool {
   Name = pool-IP_IP_IP_IP
   Pool Type = Backup
   Recycle = yes
   AutoPrune = yes
   Recycle = yes
   Maximum Volumes = 5
   Maximum Volume Jobs = 7
   Maximum Volume Bytes = 5g
   VolumeRetention = 7d
   Volume Use Duration = 0
   LabelFormat = srv-IP_IP_IP_IP-
}

I have a couple of settings that I have queried in brackets - would
these affect the size of the MySQL database?

Also, should dbcheck be configured to run regularly (IE through cron say
once a day)?

Does anyone have any further tips - I'd like to get all this in place
before I have to roll out a bunch of these machines thanks :-)

-- 
Kind Regards,

Chris Sarginson
Technical Support
UKFast.Net Ltd

(t) 0870 111 8866
(f) 0870 458 4545
(e) [EMAIL PROTECTED]

The UK's Best Business Host 2007
The UK's Best Hosting Provider 2006 and 2005

Dedicated Servers - Managed Hosting - Domain Names- http://www.ukfast.net

UKFast.Net Ltd,  Abbey House,  32 Booth Street,  Manchester,  M2 4AB
Registered in England. Number 384 5616



-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Mounting/Label question

2007-02-27 Thread Arno Lehmann
Hi,

On 2/27/2007 3:24 PM, Andreas Lüdtke wrote:
 Hi Arno,
 
 thanks for your comments. Please find my answers inline. 
 
 
-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of Arno Lehmann
Sent: Monday, February 26, 2007 8:44 PM
To: 'bacula-users'
Subject: Re: [Bacula-users] Mounting/Label question
 
 
Device config:

Device {
  Name = Quantum
  Changer Device = tape0
  Media Type = DLT-V4
  Device Type = Tape
  Archive Device = Tape0
  AutomaticMount = yes
  AlwaysOpen = yes
  RemovableMedia = yes
  RandomAccess = no
  AutoChanger = no
  Alert Command = tapeinfo -f %c | findstr TapeAlert
  Spool Directory = V:\\BaculaSpool
  Maximum Spool Size = 2 GB
  Changer Command = mtx-changer %o %a %S
  Maximum Changer Wait = 4d
  Offline On Unmount = yes
  Label media = yes
}

That configuration looks funny... is that an autochanger or a single 
drive? The configuration looks like a 1.36 one - i.e. no separate 
autochanger section - but that was not ported to windows.
 
 
 I don't have an autochanger. The last four lines were added recently to 
 achive that a tape
 is automatically ejected, that a new inserted tape is mounted automatically 
 and that a new
 tape is also automatically labeled. The idea behind was, that a normal user 
 could change
 the tape himself and that no admin is needed to mount the tape etc.. These 
 lines were
 actually taken from this list some days ago(Erich Prinz - Win32 
 mtx-changer.cmd and
 single drive).

Ah, ok. Well, unfortunately I didn't follow that thread, but I think I 
get a general understanding of what you set up...

 
Data spooling: 0 active jobs, 0 bytes; 7 total jobs, 2,000,050,371 max 
bytes/job.
Attr spooling: 1 active jobs, 9,135,494 bytes; 6 total jobs, 17,783,343 max 
bytes.

But there are attributes still spooled... looks like the SD 
is currently despooling attributes after a completed job.

Is that possible, i.e. did the Job finish some time after you 
wrote your mail?
 
 
 I looked in the log and the Full Backup showed a Termination:*** 
 Backup Error
 ***. See below for the whole log entry of that job.
 
 
If it did not, I'd like to see the 'sta dir' output, because above you 
state that the director is still waiting for a tape but didn't give 
any output showing us how it did wait :-)
 
 
 Arno you're right, that was a mistake on my side. The yesterday evening 
 backup was
 normally executed.

Good to hear.

 Do you have a clue why the director couldn't get the record for JobId 97?

No, that's hard to tell... usually, that would indicate a database 
problem. Like when your database was shutdown and immediately restarted, 
but then you would normally see more errors.

Anyway, this is hard to analyze whan it was a unique, one-time problem.

If this problem persists, you should closely observer the backups, and 
tje database, too.

 Thanks
 
   Andreas
 
 Log entry for job:
 
 25-Feb 23:05 srv-dir: Start Backup JobId 97, Job=PTHHSrv.2007-02-25_23.05.00
 25-Feb 23:05 srv-dir: Max configured use duration exceeded. Marking Volume 
 Tape04 as
 Used.
 25-Feb 23:06 srv-sd: Please mount Volume FirstTape on Storage Device 
 Quantum (Tape0)
 for Job Srv.2007-02-25_23.05.00
 26-Feb 00:06 srv-sd: Please mount Volume FirstTape on Storage Device 
 Quantum (Tape0)
 for Job Srv.2007-02-25_23.05.00
 26-Feb 02:06 srv-sd: Please mount Volume FirstTape on Storage Device 
 Quantum (Tape0)
 for Job Srv.2007-02-25_23.05.00
 26-Feb 06:06 srv-sd: Please mount Volume FirstTape on Storage Device 
 Quantum (Tape0)
 for Job Srv.2007-02-25_23.05.00
 26-Feb 09:37 srv-sd: Wrote label to prelabeled Volume Tape05 on device 
 Quantum (Tape0)
 26-Feb 09:37 srv-sd: Spooling data ...
 26-Feb 09:37 srv-fd: Generate VSS snapshots. Driver=VSS Win 2003, 
 Drive(s)=CDEV
 26-Feb 09:40 srv-sd: User specified spool size reached.
 26-Feb 09:40 srv-sd: Writing spooled data to Volume. Despooling 2,000,050,371 
 bytes ...
 26-Feb 09:43 srv-sd: Despooling elapsed time = 00:02:07, Transfer rate = 
 15.74 M
 bytes/second
 26-Feb 09:43 srv-sd: Spooling data again ...
 26-Feb 09:45 srv-sd: User specified spool size reached.
 26-Feb 09:45 srv-sd: Writing spooled data to Volume. Despooling 2,000,050,386 
 bytes ...
 26-Feb 09:47 srv-sd: Despooling elapsed time = 00:01:55, Transfer rate = 
 17.39 M
 bytes/second
 26-Feb 09:47 srv-sd: Spooling data again ...
 26-Feb 09:50 srv-sd: User specified spool size reached.
 26-Feb 09:50 srv-sd: Writing spooled data to Volume. Despooling 2,000,050,389 
 bytes ...
 26-Feb 09:52 srv-sd: Despooling elapsed time = 00:01:43, Transfer rate = 
 19.41 M
 bytes/second
 26-Feb 09:52 srv-sd: Spooling data again ...
 26-Feb 09:53 srv-sd: User specified spool size reached.
 26-Feb 09:53 srv-sd: Writing spooled data to Volume. Despooling 2,000,050,350 
 bytes ...
 26-Feb 09:56 srv-sd: Despooling elapsed time = 00:02:18, Transfer rate = 
 14.49 M
 bytes/second
 26-Feb 09:56 srv-sd: Spooling data again ...
 26-Feb 09:57 srv-sd: User 

Re: [Bacula-users] bacula not responding

2007-02-27 Thread Arno Lehmann
Hi,

On 2/27/2007 3:37 PM, Chris Sarginson wrote:
 Hi All,
 
 Running a status dir command in bconsole essentially hangs the console.

That's ususally because there is some hard catalog work happening. 
Simply wait...

   I am running bacula-dir 2.0.1 on Centos 4.3 with a MySQL backend.
 Having checked the MySQL database is approx 2.5G in size.  Obviously
 this is getting to be a little on the large size, so I have run dbcheck
 and selected Eliminate orphaned Job records. There are 3 to remove.

That's not much. Anyway, file and path records might take up much more 
space in the catalog.

 I believe this is working as the mysql daemon is now using 95% of my cpu
 :-), however it has been running for a little while, so I was looking
 for some examples of configuration tips for optimal usage of bacula boxes.

That looks like the (more or less common) problem of suboptimal indexes. 
Check which indexes exist for your catalog database, and compare that to 
what has been discussed on this list some times...
   We are going to be configuring several machines to back up 100+ servers
 on our network, to allow for us to split the network load etc.  The data
 will be held as 1 full backup taken every sunday and then six
 incremental backups.
 
 With this in mind I wanted to check the following settings in the dir
 that we create for every client we are to backup:
 
 Client {
Name = srv-IP_IP_IP_IP
Address = blahblahblah.ukfast.net
FDPort = 9102
Catalog = MyCatalog
Password = passwordhere
File Retention = 30 days   (can this be changed to 7 days?)
Job Retention = 6 months   (can this be changed to 7 days?)

You can shorten these retention times, but personally I would try to 
keep at least two backup generations. When doing weekly full backups, 
your retention times should then be about two weeks.

AutoPrune = yes
 }
 
 Storage {
Name = file-IP_IP_IP_IP
Address = storage_device.ukfast
SDPort = 9103
Password = storagepasswordhere
Device = storage-IP_IP_IP_IP
Media Type = File
 }
 
 JobDefs {
Name = IP_IP_IP_IP Job
Type = Backup
Level = Incremental
Client = srv-IP_IP_IP_IP
FileSet = Full Set
Schedule = WeeklyCycle
Storage = file-IP_IP_IP_IP
Messages = Standard
Pool = pool-IP_IP_IP_IP
Priority = 10
 }
 
 Job {
Name = IP_IP_IP_IP Job
JobDefs = IP_IP_IP_IP Job
Write Bootstrap = /home/bacula/bootstraps/srv-IP_IP_IP_IP.bsr
 }
 
 Pool {
Name = pool-IP_IP_IP_IP
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Recycle = yes
Maximum Volumes = 5
Maximum Volume Jobs = 7
Maximum Volume Bytes = 5g
VolumeRetention = 7d
Volume Use Duration = 0
LabelFormat = srv-IP_IP_IP_IP-
 }
 
 I have a couple of settings that I have queried in brackets - would
 these affect the size of the MySQL database?

Perhaps - most of the catalog is usually used by the File table, and 
that remains more or less stable in size unless you have many new file 
names on a regular basis.

 Also, should dbcheck be configured to run regularly (IE through cron say
 once a day)?

I would not do that on a daily basis... in most installations I know, 
running dbcheck once every few months is sufficient, but there are cases 
where a more regular schedule can be advisable.

This has been discussed recently, and someone mentioned mail storage as 
one example where you get lots and lots of new file names every day 
which will vanish soon - and then, running dbcheck can really reduce the 
catalog size.

 Does anyone have any further tips - I'd like to get all this in place
 before I have to roll out a bunch of these machines thanks :-)

I'd recommend to check the database indexes first.

Arno


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

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] force bacula to do a specific type of backup

2007-02-27 Thread Arno Lehmann
Hi,

On 2/26/2007 10:01 PM, Oliver Lehmann wrote:
 Arno Lehmann wrote:
 
 
Hi,

On 2/26/2007 4:32 PM, Oliver Lehmann wrote:

Hi,

my volumes are limited.

Always a bad thing...


I want to force bacula to do the scheduled type
of backup (incr, diff, full) and nothing different.

That should happen anyway, with one important exception:
When there's no full backup left, Bacula will run one instead of what 
you scheduled. The Rerun failed levels setting can lead to multiple 
attempts to do backups of a higher level after a job failed, but you'd 
know this because you have to set this up explicitly, I think.


On one client many files changed, and bacula made a fullbackup instead of
a diff backup like it was scheduled.

No.

I mean, possibly many files changed, and possibly Bacula ran a full 
instead of a differental backup, but as far as I know there would not be 
a causal correlation between both.


I now deleted the full backup and
want bacula to do the diff backup even if it is nearly a full backup -
how do I do this?

I don't think you can do that, because I guess that there *is* no longer 
a previous full backup known to Bacula. 
 
 
 There is one... Full-0001 the next backup will create a Full-0002.

Hmmm... then I really don't see why Bacula would insist on doing a full 
backup next time... anyway, there might be failed full jobs in between. 
In the restore command, you will only be presented with jobs that ran 
ok. If the last full is considered broken, Bacula will upgrade a 
differential to a new full job.

 Defined Clients:
  1: nudel-fd
  2: kartoffel-fd
  3: fiori-fd
  4: gurke-fd
  5: avocado-fd
 Select the Client (1-5): 5
 Automatically selected FileSet: avocado-files
 +---+---+--+---+-++---+
 | JobId | Level | JobFiles | JobBytes  | StartTime   | VolumeName 
 | StartFile |
 +---+---+--+---+-++---+
 |   385 | F |   12,895 | 1,208,383,604 | 2007-02-04 01:05:11 | Full-0001  
 | 0 |
 |   469 | D |  991 |47,422,871 | 2007-02-18 01:05:25 | Diff-0002  
 | 0 |
 |   475 | I |  763 |31,293,685 | 2007-02-19 01:05:27 | Inc-0003   
 | 0 |
 |   487 | I |  159 |32,039,843 | 2007-02-21 01:05:12 | Inc-0004   
 | 0 |
 |   493 | I |  178 |29,398,212 | 2007-02-22 01:05:25 | Inc-0005   
 | 0 |
 |   499 | I |  157 |30,879,188 | 2007-02-23 01:05:24 | Inc-0006   
 | 0 |
 |   505 | I |  153 |29,462,405 | 2007-02-24 01:05:11 | Inc-0001   
 | 0 |
 +---+---+--+---+-++---+
 You have selected the following JobIds: 385,469,475,487,493,499,505
 
 Building directory tree for JobId 385 ...  
 +
 Building directory tree for JobId 469 ...  
 Building directory tree for JobId 475 ...  
 Building directory tree for JobId 487 ...  
 Building directory tree for JobId 493 ...  
 Building directory tree for JobId 499 ...  
 Building directory tree for JobId 505 ...  
 7 Jobs, 12,769 files inserted into the tree and marked for extraction.
 
 
 
Try the catalog query for the last 20 full Backups for the client. That 
might show you the reason.
 
 
 how do i do this?

Use the 'query' command in a Bacula console...

Arno

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

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] wx-console crashing

2007-02-27 Thread Brian Debelius
OS: Windows 2003

Where can I enable debugging to determine why the wx-consle crashes so 
frequently?

thanks,
brian

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula Restore keeps crashing with Block checksum mismatch

2007-02-27 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kern Sibbald wrote:
 On Tuesday 27 February 2007 09:54, Sven Hendriks wrote:
 Hello Kern,

 thank you very much for this hint, but the volume size is already limited
 to 2GB.
 
 Well, I don't think it is working correctly, because your output indicates 
 that Bacula is attempting to read at an address greater than 2,000,000,000 
 when it gets the error.

Incidentally, though off-topic for this list, Samba is capable of more
than 2GB files if it has been properly built for it.
- --
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer III
 |$| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF5FORmb+gadEcsb4RAifxAJ9GKikIC22kfeGFhQSn7fTfXg6syQCgk+Do
acpz5zfzAiG2jthaWCuSA4U=
=70ue
-END PGP SIGNATURE-


-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Could not get Job Volume Parameters

2007-02-27 Thread Dan Langille
For the archives...

A client contacted me with this error:

26-Feb 23:50 meson-dir: BackupCatalog.2007-02-26_23.10.00 Error: 
Could not get Job Volume Parameters to update Bootstrap file. 
ERR=sql_get.c:399 No volumes found for JobId=950 

We reran the jobs.  They ran fine.

We attributed the problem to a disk issue:

Feb 26 11:20:13 localhost kernel: ata7: soft resetting port
Feb 26 11:20:13 localhost kernel: ata7: SATA link up 1.5 Gbps 
(SStatus 113 SControl 300)
Feb 26 11:20:13 localhost kernel: ata7.00: configured for UDMA/133
Feb 26 11:20:13 localhost kernel: ata7: EH pending after completion, 
repeating EH (cnt=4)
Feb 26 11:20:13 localhost kernel: ata7: EH complete

Just in case someone else sees the same error...  Oh wait, someone 
already did: http://article.gmane.org/gmane.comp.bacula.user/3778/

-- 
Dan Langille : Software Developer looking for work
my resume: http://www.freebsddiary.org/dan_langille.php
PGCon - The PostgreSQL Conference - http://www.pgcon.org/



-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Mounting/Label question

2007-02-27 Thread Kern Sibbald
Hello Arno,

It looks like the retention periods are set incorrectly since the Volume was 
pruned while the job was running.

On Tuesday 27 February 2007 16:03, Arno Lehmann wrote:
 Hi,

 On 2/27/2007 3:24 PM, Andreas Lüdtke wrote:
  Hi Arno,
 
  thanks for your comments. Please find my answers inline.
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Arno Lehmann
 Sent: Monday, February 26, 2007 8:44 PM
 To: 'bacula-users'
 Subject: Re: [Bacula-users] Mounting/Label question
 
 Device config:
 
 Device {
   Name = Quantum
   Changer Device = tape0
   Media Type = DLT-V4
   Device Type = Tape
   Archive Device = Tape0
   AutomaticMount = yes
   AlwaysOpen = yes
   RemovableMedia = yes
   RandomAccess = no
   AutoChanger = no
   Alert Command = tapeinfo -f %c | findstr TapeAlert
   Spool Directory = V:\\BaculaSpool
   Maximum Spool Size = 2 GB
   Changer Command = mtx-changer %o %a %S
   Maximum Changer Wait = 4d
   Offline On Unmount = yes
   Label media = yes
 }
 
 That configuration looks funny... is that an autochanger or a single
 drive? The configuration looks like a 1.36 one - i.e. no separate
 autochanger section - but that was not ported to windows.
 
  I don't have an autochanger. The last four lines were added recently to
  achive that a tape is automatically ejected, that a new inserted tape is
  mounted automatically and that a new tape is also automatically labeled.
  The idea behind was, that a normal user could change the tape himself and
  that no admin is needed to mount the tape etc.. These lines were actually
  taken from this list some days ago(Erich Prinz - Win32 mtx-changer.cmd
  and single drive).

 Ah, ok. Well, unfortunately I didn't follow that thread, but I think I
 get a general understanding of what you set up...

 Data spooling: 0 active jobs, 0 bytes; 7 total jobs, 2,000,050,371 max
  bytes/job. Attr spooling: 1 active jobs, 9,135,494 bytes; 6 total jobs,
  17,783,343 max bytes.
 
 But there are attributes still spooled... looks like the SD
 is currently despooling attributes after a completed job.
 
 Is that possible, i.e. did the Job finish some time after you
 wrote your mail?
 
  I looked in the log and the Full Backup showed a Termination:   
  *** Backup Error ***. See below for the whole log entry of that job.
 
 If it did not, I'd like to see the 'sta dir' output, because above you
 state that the director is still waiting for a tape but didn't give
 any output showing us how it did wait :-)
 
  Arno you're right, that was a mistake on my side. The yesterday evening
  backup was normally executed.

 Good to hear.

  Do you have a clue why the director couldn't get the record for JobId 97?

 No, that's hard to tell... usually, that would indicate a database
 problem. Like when your database was shutdown and immediately restarted,
 but then you would normally see more errors.

 Anyway, this is hard to analyze whan it was a unique, one-time problem.

 If this problem persists, you should closely observer the backups, and
 tje database, too.

  Thanks
 
  Andreas
 
  Log entry for job:
 
  25-Feb 23:05 srv-dir: Start Backup JobId 97,
  Job=PTHHSrv.2007-02-25_23.05.00 25-Feb 23:05 srv-dir: Max configured use
  duration exceeded. Marking Volume Tape04 as Used.
  25-Feb 23:06 srv-sd: Please mount Volume FirstTape on Storage Device
  Quantum (Tape0) for Job Srv.2007-02-25_23.05.00
  26-Feb 00:06 srv-sd: Please mount Volume FirstTape on Storage Device
  Quantum (Tape0) for Job Srv.2007-02-25_23.05.00
  26-Feb 02:06 srv-sd: Please mount Volume FirstTape on Storage Device
  Quantum (Tape0) for Job Srv.2007-02-25_23.05.00
  26-Feb 06:06 srv-sd: Please mount Volume FirstTape on Storage Device
  Quantum (Tape0) for Job Srv.2007-02-25_23.05.00
  26-Feb 09:37 srv-sd: Wrote label to prelabeled Volume Tape05 on device
  Quantum (Tape0) 26-Feb 09:37 srv-sd: Spooling data ...
  26-Feb 09:37 srv-fd: Generate VSS snapshots. Driver=VSS Win 2003,
  Drive(s)=CDEV 26-Feb 09:40 srv-sd: User specified spool size reached.
  26-Feb 09:40 srv-sd: Writing spooled data to Volume. Despooling
  2,000,050,371 bytes ... 26-Feb 09:43 srv-sd: Despooling elapsed time =
  00:02:07, Transfer rate = 15.74 M bytes/second
  26-Feb 09:43 srv-sd: Spooling data again ...
  26-Feb 09:45 srv-sd: User specified spool size reached.
  26-Feb 09:45 srv-sd: Writing spooled data to Volume. Despooling
  2,000,050,386 bytes ... 26-Feb 09:47 srv-sd: Despooling elapsed time =
  00:01:55, Transfer rate = 17.39 M bytes/second
  26-Feb 09:47 srv-sd: Spooling data again ...
  26-Feb 09:50 srv-sd: User specified spool size reached.
  26-Feb 09:50 srv-sd: Writing spooled data to Volume. Despooling
  2,000,050,389 bytes ... 26-Feb 09:52 srv-sd: Despooling elapsed time =
  00:01:43, Transfer rate = 19.41 M bytes/second
  26-Feb 09:52 srv-sd: Spooling data again ...
  26-Feb 09:53 srv-sd: User specified spool size reached.
  26-Feb 09:53 srv-sd: Writing spooled data to Volume. 

[Bacula-users] What to do when tape full?

2007-02-27 Thread Nexus Seven
What is the procedure to follow when a tape is full? I have a tape drive with 
40/80 DLT tape that fills up over 2-3 months. Then one night the tape gets 
full, and the job running at the time is blocked. At this point, I unmount in 
bconsole, physically eject the tape and put in a new or pre-labeled tape (which 
is past the volume retention). The status of the storage at this point is 
Device is BLOCKED. User unmounted during wait for media/mount.

I label the new tape or mount the pre-labeled. At that point, the status of the 
storage is shown as mounted with such and such volume. But the jobs never 
start, and the status also shows that Device is BLOCKED waiting for media 
right below the line stating the device is mounted with a certain volume of a 
certain pool.

I've tried various commands such as add, update, etc. and looked at the User's 
Guide for hints, but I always end up rebooting to get past this point. This 
happens whether or not the pool for the jobs queued have other volumes defined. 
All of the jobs use this one pool. 

What is the correct way to handle this basic case? Thanks.




 

It's here! Your new message!  
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] bacula-dir won't start from a script

2007-02-27 Thread Beren

Hi Guys,

The bacula startup script won't start the director, however typing
bacula-dir -c /etc/bacula/bacula-dir.conf works fine.

I tried putting this line into a script and running it:

/usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf

It also didn't work...however, if I type it in the command line letter for
letter, it works fine.
-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula-dir won't start from a script

2007-02-27 Thread Bill Moran
In response to Beren [EMAIL PROTECTED]:

 Hi Guys,
 
 The bacula startup script won't start the director, however typing
 bacula-dir -c /etc/bacula/bacula-dir.conf works fine.
 
 I tried putting this line into a script and running it:
 
 /usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf
 
 It also didn't work...however, if I type it in the command line letter for
 letter, it works fine.

Try running the script as sh -x script_name and see if the debugging
output helps any.

-- 
Bill Moran
Collaborative Fusion Inc.

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] FOSDEM

2007-02-27 Thread Eric Bollengier

if you want to see kern in action !

http://ftp.belnet.be/mirrors/FOSDEM/2007/FOSDEM2007-Bacula.ogg

(you can use vlc to see this presentation
vlc http://ftp.belnet.be/mirrors/FOSDEM/2007/FOSDEM2007-Bacula.ogg)

bye

Le Lundi 26 Février 2007 18:36, Kern Sibbald a écrit :
 On Friday 23 February 2007 01:33, Arno Lehmann wrote:
  Hi all,
 
  I decided to visit FOSDEM this year, admittedly mainly to meet Kern.

 Nice. :-)  It was quite a pleasant surprise to see you there (and a few
 other guys too).  Thanks for coming, and I hope your long journey home was
 not too hard ...

  I
  hope to see some of you others, too.
 
  As I don't want to spend more then a day there, and live more or less
  close to Bruxelles, I will drive there early and return late on Sunday.
 
  If any of you want to go there, look for a ride, and live (more or less)
  along my route, send me an email. I'll start in Osnabrück and pass
  Münster, Gelsenkirchen, Duisburg and so on - if you live somewhere there
  you'll know the route :-)
 
  Arno

 -
 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-devel mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/bacula-devel

-- 
I like when it comes by night and sucks the vital essence from 
my computers.

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Cannot label tape from bconsole

2007-02-27 Thread Alfonso Amato - Sintecnos srl
I agree and your position is true.

Can you tell me what method you have in mind for changing permissions? A 
shell line inside /etc/init.d/bacula-sd.conf (I use Fedora) with the 
chmod previously said or a different command?

Alfonso

IEM - network operating center wrote:
 Alfonso Amato - Sintecnos srl wrote:
 Changed permission of /dev/nst0* into 660 and works correctly! I suggest 
 to add the chmod  line into the Brief tutorial while testing not on 
 file but on real tape.

 
 i rather suggest adding a line like make sure you do have the correct
 permissions to access the tape if it is not already there.
 
 your chmod trick might well not work on all systems (e.g. udev/devfs
 will recreate the devices on bootup, thus losing the new permissions if
 you don't configure your system accordingly)
 
 mfga.sdr
 IOhannes

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] FOSDEM

2007-02-27 Thread Kern Sibbald
On Tuesday 27 February 2007 18:18, Eric Bollengier wrote:
 if you want to see kern in action !

 http://ftp.belnet.be/mirrors/FOSDEM/2007/FOSDEM2007-Bacula.ogg

Egads, what a horror!  :-)

Every time I do a live demo, something goes wrong.  What I forgot was that in 
a certain sense, my whole presentation was a live demo because I had to run 
OpenOffice to display my slides -- it started off very slowly with the SuSE 
update consuming my whole underpowered machine for about 5 minutes :-(


 (you can use vlc to see this presentation
 vlc http://ftp.belnet.be/mirrors/FOSDEM/2007/FOSDEM2007-Bacula.ogg)

 bye

 Le Lundi 26 Février 2007 18:36, Kern Sibbald a écrit :
  On Friday 23 February 2007 01:33, Arno Lehmann wrote:
   Hi all,
  
   I decided to visit FOSDEM this year, admittedly mainly to meet Kern.
 
  Nice. :-)  It was quite a pleasant surprise to see you there (and a few
  other guys too).  Thanks for coming, and I hope your long journey home
  was not too hard ...
 
   I
   hope to see some of you others, too.
  
   As I don't want to spend more then a day there, and live more or less
   close to Bruxelles, I will drive there early and return late on Sunday.
  
   If any of you want to go there, look for a ride, and live (more or
   less) along my route, send me an email. I'll start in Osnabrück and
   pass Münster, Gelsenkirchen, Duisburg and so on - if you live somewhere
   there you'll know the route :-)
  
   Arno
 
  -
  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-devel mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/bacula-devel

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] force bacula to do a specific type of backup

2007-02-27 Thread Oliver Lehmann
Arno Lehmann wrote:

 Use the 'query' command in a Bacula console...

Choose a query (1-16): 3
Enter Client name: avocado-fd
+---++-+--+---+-++
| JobId | Client | StartTime   | JobFiles | JobBytes  | VolFile 
| VolumeName |
+---++-+--+---+-++
|   385 | avocado-fd | 2007-02-04 01:05:11 |   12,895 | 1,208,383,604 |   0 
| Full-0001  |
+---++-+--+---+-++
*

When I now start an incr. backup:


Select Job resource (1-11): 1
Run Backup job
JobName:  client-avocado-files
Level:Incremental
Client:   avocado-fd
FileSet:  avocado-files
Pool: Default (From Job resource)
Storage:  File (From Job resource)
When: 2007-02-27 19:25:27
Priority: 10
OK to run? (yes/mod/no): yes
Job queued. JobId=534
*status dir
nudel-dir Version: 2.0.2 (28 January 2007) i386-portbld-freebsd6.2 freebsd 
6.2-PRERELEASE
Daemon started 26-Feb-07 17:33, 8 Jobs run since started.
 Heap: bytes=72,209 max_bytes=1,429,676 bufs=459 max_bufs=584

[...]
Running Jobs:
 JobId Level   Name   Status
==
   534 Fullclient-avocado-files.2007-02-27_19.25.31 is waiting for Client 
avocado-fd to connect to Storage File

[...]


Full not Incr :-/
-- 
 Oliver Lehmann
  http://www.pofo.de/
  http://wishlist.ans-netz.de/

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] force bacula to do a specific type of backup

2007-02-27 Thread Oliver Lehmann
Oliver Lehmann wrote:

 [...]
 Running Jobs:
  JobId Level   Name   Status
 ==
534 Fullclient-avocado-files.2007-02-27_19.25.31 is waiting for Client 
 avocado-fd to connect to Storage File
 
 [...]
 
 
 Full not Incr :-/

27-Feb 19:25 nudel-dir: No prior Full backup Job record found.
27-Feb 19:25 nudel-dir: No prior or suitable Full backup found in catalog. 
Doing FULL backup.
27-Feb 19:25 nudel-dir: Start Backup JobId 534, 
Job=client-avocado-files.2007-02-27_19.25.31
27-Feb 19:25 nudel-dir: Created new Volume Full-0002 in catalog.
27-Feb 19:25 nudel-dir: Bacula 2.0.2 (28Jan07): 27-Feb-2007 19:25:58

The question is why :-/

-- 
 Oliver Lehmann
  http://www.pofo.de/
  http://wishlist.ans-netz.de/

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Cannot label tape from bconsole

2007-02-27 Thread Andrea Conti
 Can you tell me what method you have in mind for changing permissions? A 
 shell line inside /etc/init.d/bacula-sd.conf (I use Fedora) with the 
 chmod previously said or a different command?

I suppose you're using a recent (2) version of fedora, so your system
should be running udev.
If that's the case, you just need to tell udev which
owner/group/permissions you want that device node to be created with.

Create a file named 10-tape.rules in /etc/udev/rules.d with the
following line in it:

KERNEL==nst0, OWNER=foo, GROUP=bar, MODE=0660

If you don't need to set the owner or group simply leave out the
corresponding section.

Taking a look at the udev documentation on rule writing might also be a
good idea, since there is much more you can do with it.

Andrea

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Mounting/Label question

2007-02-27 Thread Arno Lehmann
Hi,

On 2/27/2007 5:04 PM, Kern Sibbald wrote:
 Hello Arno,
 
 It looks like the retention periods are set incorrectly since the Volume was 
 pruned while the job was running.

Ah, ok... in that case, you should do an 'llist volume=...' (IIRC) with 
the volume in question. And,of course, also check your pool and client 
settings for their retention times, and also keep in mind that 
individual volumes may need to be updated to have their retention times 
updated after a pool change...

And, of course, this shows how important it is to report problems with 
the right sort of information attached to it :-)

Arno

 On Tuesday 27 February 2007 16:03, Arno Lehmann wrote:
 
Hi,

On 2/27/2007 3:24 PM, Andreas Lüdtke wrote:

Hi Arno,

thanks for your comments. Please find my answers inline.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Arno Lehmann
Sent: Monday, February 26, 2007 8:44 PM
To: 'bacula-users'
Subject: Re: [Bacula-users] Mounting/Label question


Device config:

Device {
 Name = Quantum
 Changer Device = tape0
 Media Type = DLT-V4
 Device Type = Tape
 Archive Device = Tape0
 AutomaticMount = yes
 AlwaysOpen = yes
 RemovableMedia = yes
 RandomAccess = no
 AutoChanger = no
 Alert Command = tapeinfo -f %c | findstr TapeAlert
 Spool Directory = V:\\BaculaSpool
 Maximum Spool Size = 2 GB
 Changer Command = mtx-changer %o %a %S
 Maximum Changer Wait = 4d
 Offline On Unmount = yes
 Label media = yes
}

That configuration looks funny... is that an autochanger or a single
drive? The configuration looks like a 1.36 one - i.e. no separate
autochanger section - but that was not ported to windows.

I don't have an autochanger. The last four lines were added recently to
achive that a tape is automatically ejected, that a new inserted tape is
mounted automatically and that a new tape is also automatically labeled.
The idea behind was, that a normal user could change the tape himself and
that no admin is needed to mount the tape etc.. These lines were actually
taken from this list some days ago(Erich Prinz - Win32 mtx-changer.cmd
and single drive).

Ah, ok. Well, unfortunately I didn't follow that thread, but I think I
get a general understanding of what you set up...


Data spooling: 0 active jobs, 0 bytes; 7 total jobs, 2,000,050,371 max
bytes/job. Attr spooling: 1 active jobs, 9,135,494 bytes; 6 total jobs,
17,783,343 max bytes.

But there are attributes still spooled... looks like the SD
is currently despooling attributes after a completed job.

Is that possible, i.e. did the Job finish some time after you
wrote your mail?

I looked in the log and the Full Backup showed a Termination:   
*** Backup Error ***. See below for the whole log entry of that job.


If it did not, I'd like to see the 'sta dir' output, because above you
state that the director is still waiting for a tape but didn't give
any output showing us how it did wait :-)

Arno you're right, that was a mistake on my side. The yesterday evening
backup was normally executed.

Good to hear.


Do you have a clue why the director couldn't get the record for JobId 97?

No, that's hard to tell... usually, that would indicate a database
problem. Like when your database was shutdown and immediately restarted,
but then you would normally see more errors.

Anyway, this is hard to analyze whan it was a unique, one-time problem.

If this problem persists, you should closely observer the backups, and
tje database, too.


Thanks

 Andreas

Log entry for job:

25-Feb 23:05 srv-dir: Start Backup JobId 97,
Job=PTHHSrv.2007-02-25_23.05.00 25-Feb 23:05 srv-dir: Max configured use
duration exceeded. Marking Volume Tape04 as Used.
25-Feb 23:06 srv-sd: Please mount Volume FirstTape on Storage Device
Quantum (Tape0) for Job Srv.2007-02-25_23.05.00
26-Feb 00:06 srv-sd: Please mount Volume FirstTape on Storage Device
Quantum (Tape0) for Job Srv.2007-02-25_23.05.00
26-Feb 02:06 srv-sd: Please mount Volume FirstTape on Storage Device
Quantum (Tape0) for Job Srv.2007-02-25_23.05.00
26-Feb 06:06 srv-sd: Please mount Volume FirstTape on Storage Device
Quantum (Tape0) for Job Srv.2007-02-25_23.05.00
26-Feb 09:37 srv-sd: Wrote label to prelabeled Volume Tape05 on device
Quantum (Tape0) 26-Feb 09:37 srv-sd: Spooling data ...
26-Feb 09:37 srv-fd: Generate VSS snapshots. Driver=VSS Win 2003,
Drive(s)=CDEV 26-Feb 09:40 srv-sd: User specified spool size reached.
26-Feb 09:40 srv-sd: Writing spooled data to Volume. Despooling
2,000,050,371 bytes ... 26-Feb 09:43 srv-sd: Despooling elapsed time =
00:02:07, Transfer rate = 15.74 M bytes/second
26-Feb 09:43 srv-sd: Spooling data again ...
26-Feb 09:45 srv-sd: User specified spool size reached.
26-Feb 09:45 srv-sd: Writing spooled data to Volume. Despooling
2,000,050,386 bytes ... 26-Feb 09:47 srv-sd: Despooling elapsed time =
00:01:55, Transfer rate = 17.39 M bytes/second
26-Feb 09:47 srv-sd: Spooling data again ...
26-Feb 09:50 srv-sd: User specified spool size reached.
26-Feb 09:50 

Re: [Bacula-users] Question about Tape handling

2007-02-27 Thread Arno Lehmann
Hi,

On 2/27/2007 7:12 PM, Tim Schoellhammer wrote:
 Kern Sibbald schrieb:
 
 
It is two times faster in recovery as the veritas backupexec.

Nice.  Thanks for reporting that.  It is always nice to be faster than the 
big 
guys :-)

By the way, I imagine you have done so, but please run a btape test to 
ensure that your new Device resource works correctly with your drive.  I have 
no reason to believe that it won't but it is always good to check.  
btape test is not 100% foolproof, but it will catch a lot of subtile 
problems that could show up later ...

 
 
 Yes i did run btape and test. Before and after the changes both works 
 correctly thats wy i get confused.

Well, I'm not a FreeBSD person, but I hope they (Dan especially :-) 
allow me to point out that the Two EOF for EOT can really bite you - 
this seems to be more or less BSD-specific...

(and I know that the linux kernel is also kind of funny when working 
with tapes.)

It seems like there is no common standard regarding how a tape drive 
should behave from the applications point of view - SysV, BSD and linux 
are quite incompatible there. Really a shame...

Arno

 I tested also a backup of testfiles.
 
 dd if=/dev/urandom of=/backupdir/test1.file
 
 multiple times.
 
 make a md5sum from the files.
 Take a Backup. Delete the files and make a restore to full testing the 
 backup an restore functions.
 After the restore i compare the md5sum of the files an all is correct.
 
 Thanks to Kern an the other Developers of this great software.
 
 Tim
 
 -
 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
 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

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] What to do when tape full?

2007-02-27 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote:
 What is the procedure to follow when a tape is full? I have a tape drive with 
 40/80 DLT tape that fills up over 2-3 months. Then one night the tape gets 
 full, and the job running at the time is blocked. At this point, I unmount in 
 bconsole, physically e
 ject the tape and put in a new or pre-labeled tape (which is past the volume 
 retention). The status of the storage at this point is Device is BLOCKED. 
 User unmounted during wait for media/mount.
 
 I label the new tape or mount the pre-labeled. At that point, the status of 
 the storage is shown as mounted with such and such volume. But the jobs never 
 start, and the status also shows that Device is BLOCKED waiting for media 
 right below the line st
 ating the device is mounted with a certain volume of a certain pool.
 
 I've tried various commands such as add, update, etc. and looked at the 
 User's Guide for hints, but I always end up rebooting to get past this point. 
 This happens whether or not the pool for the jobs queued have other volumes 
 defined. All of the jobs us
 e this one pool. 
 
 What is the correct way to handle this basic case? Thanks.

mount storage=...

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office:  Kirchenstr. 5,   D-82194 Groebenzell,Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
Put your Nose to the Grindstone!
 -- Amalgamated Plastic Surgeons and Toolmakers, Ltd.

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Restore Problem / File Retention

2007-02-27 Thread alexander . nolte
Hello everybody!

After getting some storages together at last I have a really bad problem
when I try to restore some files. As I got some Windows and some Linux
Servers to Backup I put them onto different storages and here comes the
problem:

I created the following job definition for the restore:

Job {
  Name = restore-linux-server
  Type = Restore
  Client = linux-server
  FileSet = linux-server-set
  Storage = StorageDaemon-LinuxServer
  Pool = linux-pool
  Messages = Standard
  Where = /tmp/bacula-restores
}

But after I marked the files and typed done, Bacula wants to create a job
with the windows storage daemon rather the one that is listed in the job
definition above. Even when I modify the job so that I should use the
right storage daemon it still tries to use the windows storage daemon and
creates the following error message:

08-Feb 12:54 StorageDaemon: restore-linux-server.2007-02-08_12.54.51 Fatal
error: acquire.c:109 Read open device Storage-WindowsServer
(/mnt/windows-server-bac
kup) Volume linux failed: ERR=dev.c:450 Could not open:
/mnt/windows-server-backup/linux, ERR=Datei oder Verzeichnis nicht
gefunden

I hope that someone here can help as I really dont know what to do about it.
Thanks a lot in advance.

Alexander Nolte

P.S.: It would be glad if someone could also tell me how to answer to
posts in this mailinglist as I dont want to put all my posts on the top
level. ;-)

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Using bacula witch iomega rev loader

2007-02-27 Thread Schofar
You excuse to me, are new and sò not to write well in English. I
wish to use bacula with iomega rev loader. Someone has already tried, and it
knows to me to say if it works. Thanks 
-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] bacula not responding

2007-02-27 Thread Chris Sarginson -Technical Support
Hi All,

Running a status dir command in bconsole essentially hangs the console. 
  I am running bacula-dir 2.0.1 on Centos 4.3 with a MySQL backend. 
Having checked the MySQL database is approx 2.5G in size.  Obviously 
this is getting to be a little on the large size, so I have run dbcheck 
and selected Eliminate orphaned Job records. There are 3 to remove.

I believe this is working as the mysql daemon is now using 95% of my cpu 
:-), however it has been running for a little while, so I was looking 
for some examples of configuration tips for optimal usage of bacula boxes.

We are going to be configuring several machines to back up 100+ servers 
on our network, to allow for us to split the network load etc.  The data 
will be held as 1 full backup taken every sunday and then six 
incremental backups.

With this in mind I wanted to check the following settings in the dir 
that we create for every client we are to backup:

Client {
   Name = srv-IP_IP_IP_IP
   Address = blahblahblah.ukfast.net
   FDPort = 9102
   Catalog = MyCatalog
   Password = passwordhere
   File Retention = 30 days (can this be changed to 7 days?)
   Job Retention = 6 months (can this be changed to 7 days?)
   AutoPrune = yes
}

Storage {
   Name = file-IP_IP_IP_IP
   Address = storage_device.ukfast
   SDPort = 9103
   Password = storagepasswordhere
   Device = storage-IP_IP_IP_IP
   Media Type = File
}

JobDefs {
   Name = IP_IP_IP_IP Job
   Type = Backup
   Level = Incremental
   Client = srv-IP_IP_IP_IP
   FileSet = Full Set
   Schedule = WeeklyCycle
   Storage = file-IP_IP_IP_IP
   Messages = Standard
   Pool = pool-IP_IP_IP_IP
   Priority = 10
}

Job {
   Name = IP_IP_IP_IP Job
   JobDefs = IP_IP_IP_IP Job
   Write Bootstrap = /home/bacula/bootstraps/srv-IP_IP_IP_IP.bsr
}

Pool {
   Name = pool-IP_IP_IP_IP
   Pool Type = Backup
   Recycle = yes
   AutoPrune = yes
   Recycle = yes
   Maximum Volumes = 5
   Maximum Volume Jobs = 7
   Maximum Volume Bytes = 5g
   VolumeRetention = 7d
   Volume Use Duration = 0
   LabelFormat = srv-IP_IP_IP_IP-
}

I have a couple of settings that I have queried in brackets - would 
these affect the size of the MySQL database?

Also, should dbcheck be configured to run regularly (IE through cron say 
once a day)?

Does anyone have any further tips - I'd like to get all this in place 
before I have to roll out a bunch of these machines thanks :-)

-- 
Kind Regards,

Chris Sarginson
Technical Support
UKFast.Net Ltd

(t) 0870 111 8866
(f) 0870 458 4545
(e) [EMAIL PROTECTED]

The UK's Best Business Host 2007
The UK's Best Hosting Provider 2006 and 2005

Dedicated Servers - Managed Hosting - Domain Names- http://www.ukfast.net

UKFast.Net Ltd,  Abbey House,  32 Booth Street,  Manchester,  M2 4AB
Registered in England. Number 384 5616


-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula-dir won't start from a script

2007-02-27 Thread Beren Gamble

Hi Bill,

I tried the command... no help really :)

[EMAIL PROTECTED] bacula]# cat bacrestart
/etc/bacula/bacula restart
/usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf

[EMAIL PROTECTED] bacula]# sh -x bacrestart
+ /etc/bacula/bacula restart
Stopping the Bacula File daemon
Stopping the Bacula Storage daemon
Stopping the Bacula Director daemon

Starting the Bacula Storage daemon
Starting the Bacula File daemon
Starting the Bacula Director daemon
+ /usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf



On 27/02/07, Bill Moran [EMAIL PROTECTED] wrote:


In response to Beren [EMAIL PROTECTED]:

 Hi Guys,

 The bacula startup script won't start the director, however typing
 bacula-dir -c /etc/bacula/bacula-dir.conf works fine.

 I tried putting this line into a script and running it:

 /usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf

 It also didn't work...however, if I type it in the command line letter
for
 letter, it works fine.

Try running the script as sh -x script_name and see if the debugging
output helps any.

--
Bill Moran
Collaborative Fusion Inc.

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] What to do when tape full?

2007-02-27 Thread John Drescher
On 2/27/07, Nexus Seven [EMAIL PROTECTED] wrote:
 What is the procedure to follow when a tape is full? I have a tape drive with 
 40/80 DLT tape that fills up over 2-3 months. Then one night the tape gets 
 full, and the job running at the time is blocked. At this point, I unmount in 
 bconsole, physically eject the tape and put in a new or pre-labeled tape 
 (which is past the volume retention).

I use the following for my DLT drive that automatically ejects the
tape when it is full.

Device {
  Name = DLT-IV
  Media Type = DLT-IV
  Archive Device = /dev/nst0
  Autochanger=no
  AutomaticMount = yes;   # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  Spool Directory = /var/spool/bacula/tape
  Maximum Job Spool Size = 2G
  Volume Poll Interval = 5 minutes
  Close on Poll = Yes
  Offline On Unmount = Yes
  LabelMedia = Yes
}

 I've tried various commands such as add, update, etc. and looked at the 
 User's Guide for hints, but I always end up rebooting to get past this point.

You never have to reboot. if the job will not cancel restarting the
storage daemon will do the trick. For me this is

/etc/init.d/bacula-sd restart

John

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restore Problem / File Retention

2007-02-27 Thread Arno Lehmann
Hello,

On 2/26/2007 7:46 PM, [EMAIL PROTECTED] wrote:
 Hello everybody!
 
 After getting some storages together at last I have a really bad problem
 when I try to restore some files. As I got some Windows and some Linux
 Servers to Backup I put them onto different storages and here comes the
 problem:
 
 I created the following job definition for the restore:
 
 Job {
   Name = restore-linux-server
   Type = Restore
   Client = linux-server
   FileSet = linux-server-set
   Storage = StorageDaemon-LinuxServer
   Pool = linux-pool
   Messages = Standard
   Where = /tmp/bacula-restores
 }
 
 But after I marked the files and typed done, Bacula wants to create a job
 with the windows storage daemon rather the one that is listed in the job
 definition above. Even when I modify the job so that I should use the
 right storage daemon it still tries to use the windows storage daemon

The quick work around is to symlink the file to where it wants it.

 and
 creates the following error message:
 
 08-Feb 12:54 StorageDaemon: restore-linux-server.2007-02-08_12.54.51 Fatal
 error: acquire.c:109 Read open device Storage-WindowsServer
 (/mnt/windows-server-bac
 kup) Volume linux failed: ERR=dev.c:450 Could not open:
 /mnt/windows-server-backup/linux, ERR=Datei oder Verzeichnis nicht
 gefunden
 
 I hope that someone here can help as I really dont know what to do about it.
 Thanks a lot in advance.

I assume you have the same file type for the two storage devices you 
created, which will lead to the problems you encounter.

Set up different file types and things should go much better. (This is 
mentioned in the manual, I believe.)


 Alexander Nolte
 
 P.S.: It would be glad if someone could also tell me how to answer to
 posts in this mailinglist as I dont want to put all my posts on the top
 level. ;-)

Erm, I ususally simply press the Reply to all button and remove the 
individual senders. (Which is necessary because Thunderbird doesn't 
handle mailing list mail better by itself - I miss a Reply to list 
button...)

You're using SquirrelMail, which is a web mailer, which is something I 
really don't like. So, my recommendaton is to set up a proper mail client.

Arno

 -
 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
 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

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Using bacula witch iomega rev loader

2007-02-27 Thread Arno Lehmann
Hello,

On 2/26/2007 10:35 PM, Schofar wrote:
 
 You excuse to me, are new and sò not to write well in English.

We will manage :-)
Hopefully you can understand what we write because then tis list will be 
most useful to you ;-)

 I wish to 
 use bacula with iomega rev loader. Someone has already tried, and it 
 knows to me to say if it works. Thanks

I haven't tried it myself, but I'd recommend to simply set it up like a 
removable hard drive.

So, file storage, at best automatically mounted by the OS, and then 
point your Bacula storage device to the mount point.

Others might have configuration files to share...

Arno


 
 
 
 -
 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
 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


-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula-dir won't start from a script

2007-02-27 Thread Arno Lehmann
Hi,

On 2/27/2007 6:07 PM, Beren Gamble wrote:
 Hi Bill,
 
 I tried the command... no help really :)

snip lots of stuff - debugging why the start script doesn't work 
correctly in all cases


Which OS do you use, and where does the Bacula installation come from? 
Packages, compiled yourself, whatever... also, has the start script been 
modified by you?

Arno

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

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] force bacula to do a specific type of backup

2007-02-27 Thread Oliver Lehmann
Arno Lehmann wrote:

 Apart from that, you should examine the job 385 in more detail, and 
 compare with 534. I'm quite sure there must be a significant difference 
 - either the job name or the client are not identical, I think.
 
 I don't have a running Bacula ready at the moment, but I *think* you can 
 use 'llist jobid=...' to get that information. Or query the catalog 
 directly if you prefer that.
 
 If you don't find the reason, please post the information here, and also 
 add your job definitions, related to this broblem job / client.

What is important here: I changed *nothing* in bacula, I only changed *many* 
files on the client. That was all. And during the nightly scheduled incremental 
backup bacula started a full backup. A modification in the bacula config took 
not place. All I can assume is bacula calculated the amount of files / size 
from the affected files and came to the conclusion that the incremental backup 
to do would be nearly like a full backup, so it changed the job by its own to 
make a full backup to have the next incremental backups much more smaller. That 
sounds reasonable, but I don't want that kind of consideration ;)

Ok, here the Output:

(I cancled 534 before the Full Backup really started.)

*llist jobid=385
   JobId: 385
 Job: client-avocado-files.2007-02-04_01.05.00
Name: client-avocado-files
 PurgedFiles: 0
Type: B
   Level: F
ClientId: 5
Name: avocado-fd
   JobStatus: T
   SchedTime: 2007-02-04 01:05:00
   StartTime: 2007-02-04 01:05:11
 EndTime: 2007-02-04 04:25:49
 RealEndTime: 2007-02-04 04:25:49
JobTDate: 1,170,559,549
VolSessionId: 37
  VolSessionTime: 1,170,003,206
JobFiles: 12,895
   JobErrors: 0
 JobMissingFiles: 0
  PoolId: 1
PooLname: Full-Pool
  PriorJobId: 0
   FileSetId: 7
 FileSet: avocado-files

*llist jobid=534 
   JobId: 534
 Job: client-avocado-files.2007-02-27_19.25.31
Name: client-avocado-files
 PurgedFiles: 0
Type: B
   Level: F
ClientId: 5
Name: avocado-fd
   JobStatus: A
   SchedTime: 2007-02-27 19:25:27
   StartTime: 2007-02-27 19:25:53
 EndTime: 2007-02-27 19:25:58
 RealEndTime: 2007-02-27 19:25:58
JobTDate: 1,172,600,758
VolSessionId: 5
  VolSessionTime: 1,172,507,626
JobFiles: 0
   JobErrors: 0
 JobMissingFiles: 0
  PoolId: 1
PooLname: Full-Pool
  PriorJobId: 0
   FileSetId: 8
 FileSet: avocado-files

*

And here the definitions:

Job {
  Name = client-avocado-files
  Type = Backup
  JobDefs = defaults
  Client = avocado-fd
  FileSet = avocado-files
  Write Bootstrap = /var/db/bacula/client-avocado-files.bsr
  Schedule = WeeklyCycle
}

Client {
  Name = avocado-fd
  Address = gurke
  FDPort = 19102
  Catalog = MyCatalog
  Password =   # password for FileDaemon
  File Retention = 30 days# 30 days
  Job Retention = 6 months# six months
  AutoPrune = yes # Prune expired Jobs/Files
  Maximum Concurrent Jobs = 20
}

FileSet {
  Name = avocado-files
  Include {
Options {
  signature   = MD5
  compression = GZIP
}

File = 
  }
}

Schedule {
  Name = WeeklyCycle
  Run = Full 1st sun at 1:05
  Run = Differential 2nd-5th sun at 1:05
  Run = Incremental mon-sat at 1:05
}

Pool {
  Name = Full-Pool
  Pool Type = Backup
  Recycle = yes   # automatically recycle Volumes
  AutoPrune = yes # Prune expired volumes
  Volume Retention = 40 days
  Maximum Volume Jobs = 5
  Label Format = Full-
  Maximum Volumes = 2
}
Pool {
  Name = Inc-Pool  
  Pool Type = Backup   
  Recycle = yes   # automatically recycle Volumes
  AutoPrune = yes # Prune expired volumes
  Volume Retention = 6 days
  Maximum Volume Jobs = 5 
  Label Format = Inc-
  Maximum Volumes = 6
}


-- 
 Oliver Lehmann
  http://www.pofo.de/
  http://wishlist.ans-netz.de/

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] force bacula to do a specific type of backup

2007-02-27 Thread Arno Lehmann
Hi,

On 2/27/2007 9:17 PM, Oliver Lehmann wrote:
 Arno Lehmann wrote:
 
 
 Apart from that, you should examine the job 385 in more detail, and
  compare with 534. I'm quite sure there must be a significant
 difference - either the job name or the client are not identical, I
 think.
 
 I don't have a running Bacula ready at the moment, but I *think*
 you can use 'llist jobid=...' to get that information. Or query the
 catalog directly if you prefer that.
 
 If you don't find the reason, please post the information here, and
 also add your job definitions, related to this broblem job /
 client.
 
 
 What is important here: I changed *nothing* in bacula,

I doubt that... details below.

 I only changed
 *many* files on the client. That was all. And during the nightly
 scheduled incremental backup bacula started a full backup. A
 modification in the bacula config took not place. All I can assume is
 bacula calculated the amount of files / size from the affected files
 and came to the conclusion that the incremental backup to do would be
 nearly like a full backup, so it changed the job by its own to make a
 full backup to have the next incremental backups much more smaller.
 That sounds reasonable, but I don't want that kind of consideration
 ;)

Bacula doesn't do that sort of thing... unless Kern or someone put that 
in without telling us... and without anyone noticing it.

 
 Ok, here the Output:
 
 (I cancled 534 before the Full Backup really started.)

Ok.

I'll shorten the output to the relevant details:

 *llist jobid=385 JobId: 385
  FileSetId: 7
  FileSet: avocado-files

and

 *llist jobid=534
  FileSetId: 8
 FileSet: avocado-files

The fileset has been changed, and, as I learned just recently, what you 
have in the File= clauses.

Bacula keeps a hash over that in the catalog, and when it notices a 
change it creates a new fileset. You can override that in the fileset 
resource. The name will remain the same, but the ID will change.

Arno


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

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] force bacula to do a specific type of backup

2007-02-27 Thread Ralf Gross
Oliver Lehmann schrieb:
 Arno Lehmann wrote:
 
  Apart from that, you should examine the job 385 in more detail, and 
  compare with 534. I'm quite sure there must be a significant difference 
  - either the job name or the client are not identical, I think.
  
  I don't have a running Bacula ready at the moment, but I *think* you can 
  use 'llist jobid=...' to get that information. Or query the catalog 
  directly if you prefer that.
  
  If you don't find the reason, please post the information here, and also 
  add your job definitions, related to this broblem job / client.
 
 What is important here: I changed *nothing* in bacula, I only
 changed *many* files on the client. That was all. And during the
 nightly scheduled incremental backup bacula started a full backup. A
 modification in the bacula config took not place. All I can assume
 is bacula calculated the amount of files / size from the affected
 files and came to the conclusion that the incremental backup to do
 would be nearly like a full backup, so it changed the job by its own
 to make a full backup to have the next incremental backups much more
 smaller. That sounds reasonable, but I don't want that kind of
 consideration ;)

I'm quite sure bacula will never decide to update a inc. backup to a
full one because of the amount of data that has changed.

The FileSet Id's of the two jobs are different. If the FileSet did
change since te last backup, the inc. will be promoted to a full one.

 *llist jobid=385
JobId: 385
[...]
   PriorJobId: 0
FileSetId: 7
  FileSet: avocado-files
 
 *llist jobid=534 
JobId: 534
[...]
   PriorJobId: 0
FileSetId: 8
  FileSet: avocado-files

Ralf

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] force bacula to do a specific type of backup

2007-02-27 Thread Kern Sibbald
On Tuesday 27 February 2007 21:40, Arno Lehmann wrote:
 Hi,

 On 2/27/2007 9:17 PM, Oliver Lehmann wrote:
  Arno Lehmann wrote:
  Apart from that, you should examine the job 385 in more detail, and
   compare with 534. I'm quite sure there must be a significant
  difference - either the job name or the client are not identical, I
  think.
 
  I don't have a running Bacula ready at the moment, but I *think*
  you can use 'llist jobid=...' to get that information. Or query the
  catalog directly if you prefer that.
 
  If you don't find the reason, please post the information here, and
  also add your job definitions, related to this broblem job /
  client.
 
  What is important here: I changed *nothing* in bacula,

 I doubt that... details below.

  I only changed
  *many* files on the client. That was all. And during the nightly
  scheduled incremental backup bacula started a full backup. A
  modification in the bacula config took not place. All I can assume is
  bacula calculated the amount of files / size from the affected files
  and came to the conclusion that the incremental backup to do would be
  nearly like a full backup, so it changed the job by its own to make a
  full backup to have the next incremental backups much more smaller.
  That sounds reasonable, but I don't want that kind of consideration
  ;)

 Bacula doesn't do that sort of thing... unless Kern or someone put that
 in without telling us... and without anyone noticing it.

You are absolutely right, Bacula doesn't do that, and no, I haven't put such a 
thing in, though perhaps it isn't such a bad idea ... :-)


  Ok, here the Output:
 
  (I cancled 534 before the Full Backup really started.)

 Ok.

 I'll shorten the output to the relevant details:
  *llist jobid=385 JobId: 385
 
   FileSetId: 7
   FileSet: avocado-files

 and

  *llist jobid=534
 
   FileSetId: 8
 
  FileSet: avocado-files

 The fileset has been changed, and, as I learned just recently, what you
 have in the File= clauses.

 Bacula keeps a hash over that in the catalog, and when it notices a
 change it creates a new fileset. You can override that in the fileset
 resource. The name will remain the same, but the ID will change.

 Arno

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula Restore keeps crashing with Block checksum mismatch

2007-02-27 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Alan Brown wrote:
 On Mon, 26 Feb 2007, Kern Sibbald wrote:
 
 It looks to me like Samba shares don't support more that 2GB.
 
 Incorrect. My CIFS servers are happily providing 1000+Gb shares.
 
 It's certainly suboptimal for Bacula to be reading or writing to remote 
 shares though. Far better to put a samba-fd directly on the host machines.

Samba can be built without large file support, if the OS that it is
built on does not support it or similar reasons. There can be a 2GB
limit either within Samba or within the OS of the machine running Samba.
HP-UX, for example, has to have its filesystems formatted the right way
and to have Samba built the right way.

- --
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer III
 |$| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF5KIZmb+gadEcsb4RAqvRAJ4lX4L4O5Y3nX/NgdCsqaJys0jq2wCgi5uU
V3Addeir2mEtZtGLVTScP8A=
=l7wj
-END PGP SIGNATURE-


-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Few notes regarding the restricted console commands

2007-02-27 Thread Zeratul
Hi

Recently I tested the patch that fix the bug 767 (see bugs.bacula.org). The
patch works fine -  the restricted console is not able anymore to cancel
running jobs that not belongs to it. 
With this occasion I tested other commands and I found few things which, in my
opinion, should be mentioned, maybe for future references:

- the shortcuts for commands (for example st or sta instead of status)
can't be used in a restricted console, except the case when the shortcuts are
literally mentioned in the CommandACL.
- the command help retuns the full commands list and, for a restricted user,
typing commands that returns ... is an invalid command can be frustrating
because the user have no idea about the allowed commands
- the show command returns information related to other jobs than the ones
configured in the restricted console configuration file
- the query command allows queries against job ids different than the ones
related to the restricted console. Based on this, I get the volume names and
job ids for other bacula clients and I tried to restore some files. It's true
I wasn't able to restore any files from other jobs, but I was able to browse
the files list. One mention here - this is true only when the restore
command is used and not when the restore tab is used in wx-console.

Daniel


-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Messages to console(s)

2007-02-27 Thread Zeratul
Hi

Having 2 or more consoles opened to bacula directory, only one console gets
the messages. There is any way to send the messages to all opened consoles?
Any idea would be appreciated. Thanks.

Daniel



-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula Director daemon does not start on boot

2007-02-27 Thread David Hatcher
I run the Bacula (v2.0.1) server on a Fedora Core 5 machine named
BACULA.  When I boot this machine, only two of the three Bacula
daemons start.  When I type service bacula status, I see the
bacula-dir daemon is stopped.   

[EMAIL PROTECTED] /]# service bacula status
bacula-sd (pid 1858) is running...
bacula-fd (pid 1871) is running...
bacula-dir is stopped
[EMAIL PROTECTED] /]#

I can start the Bacula Director daemon manually by typing service
bacula start.  But how to I enable all three daemons to start upon
boot?  

Thanks,
David


-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula Director daemon does not start on boot

2007-02-27 Thread Jason King
usually a service in bacula doesn't start at boot because it is running 
as the wrong user. While when you manually invoke it, it is running as 
the correct user. Make sure the scripts being used to start the director 
deamon have the correct permissions.

Jason

David Hatcher wrote:
 I run the Bacula (v2.0.1) server on a Fedora Core 5 machine named
 BACULA.  When I boot this machine, only two of the three Bacula
 daemons start.  When I type service bacula status, I see the
 bacula-dir daemon is stopped.   

 [EMAIL PROTECTED] /]# service bacula status
 bacula-sd (pid 1858) is running...
 bacula-fd (pid 1871) is running...
 bacula-dir is stopped
 [EMAIL PROTECTED] /]#

 I can start the Bacula Director daemon manually by typing service
 bacula start.  But how to I enable all three daemons to start upon
 boot?  

 Thanks,
 David


 -
 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
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
   

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula-dir won't start from a script

2007-02-27 Thread Jason King
First of all, we need to know what OS you are trying this on. Secondly, 
when you create a script you need to tell the script which shell you 
will be using in the first line of the script:

#!/bin/bash

or something like that. Take a look at some of your other shell scripts. 
Also if you are using this script to start the service automatically you 
have to make sure you are running it as the correct user. You shouldn't 
have to create a Script to start a single line service though. You 
could put the command in the bootup process of your particular distro.

Beren wrote:
 Hi Guys,

 The bacula startup script won't start the director, however typing 
 bacula-dir -c /etc/bacula/bacula-dir.conf works fine.

 I tried putting this line into a script and running it:

 /usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf

 It also didn't work...however, if I type it in the command line letter 
 for letter, it works fine.





 

 -
 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
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
   

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula Director daemon does not start on boot

2007-02-27 Thread Mike Hanby
On Fedora 6, I have the following services (created by the RPM's):
bacula-dir
bacula-sd
bacula-fd

So, in my case, to set bacula-dir to start on boot:
# chkconfig bacula-dir on

This will set it to start automatically for several run levels (not sure off
the top of my head, but 3 and 5 for sure).

To disable auto start:
# chkconfig bacula-dir off

To check the auto start status:
# chkconfig --list | grep bacula

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason King
Sent: Tuesday, February 27, 2007 15:58
To: David Hatcher; bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Bacula Director daemon does not start on boot

usually a service in bacula doesn't start at boot because it is running 
as the wrong user. While when you manually invoke it, it is running as 
the correct user. Make sure the scripts being used to start the director 
deamon have the correct permissions.

Jason

David Hatcher wrote:
 I run the Bacula (v2.0.1) server on a Fedora Core 5 machine named
 BACULA.  When I boot this machine, only two of the three Bacula
 daemons start.  When I type service bacula status, I see the
 bacula-dir daemon is stopped.   

 [EMAIL PROTECTED] /]# service bacula status
 bacula-sd (pid 1858) is running...
 bacula-fd (pid 1871) is running...
 bacula-dir is stopped
 [EMAIL PROTECTED] /]#

 I can start the Bacula Director daemon manually by typing service
 bacula start.  But how to I enable all three daemons to start upon
 boot?  

 Thanks,
 David


 -
 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
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
   

-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula 2.0.2 for SuSE 10.2 released

2007-02-27 Thread PattiMichelle
I just uploaded the rpm's built on SuSE 10.2 x86_64 (dual core) to
sourceforge.net

rpms-contrib-psheaffer
-
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Advise debugging bweb / bconsole issues

2007-02-27 Thread Alan Sparks
Have a working Bacula install, and have been working on getting Bweb 
running.  Mostly it works, but a few parts do not.  Commands like 'Jobs 
/ Defined Jobs', and 'Current Jobs' from a clients list have problems -- 
there is a delay loading the page (30-40 seconds), and finally the page 
(with no defined jobs, or no client status).

I figure this has something to do with spawning bconsole, or 
communicating with it.  But I cannot determine what the problem is.
I have set permissions on bconsole to be executable by the httpd uid, 
and set the bconsole.conf and bweb.conf file permissions accordingly.
I use the configuration /usr/sbin/bconsole -n -c 
/etc/bacula/bconsole.conf in the bweb.conf file.

Setting debugging on does not provide any useful information.  Only 
debugging I'm finding is in httpd/error_log:
[Tue Feb 27 20:19:03 2007] [error] [client 10.1.10.112] Use of 
uninitialized value in scalar assignment at 
/usr/lib/perl5/site_perl/5.8.5/Bconsole.pm line 153., referer: 
http://eagle/cgi-bin/bweb.pl?action=client

Does anyone have advice on how to debug problems with bweb talking to 
bconsole?  Thanks in advance.
-Alan

-- 
Alan Sparks, UNIX/Linux Systems Integration and Administration
[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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users