Re: [Bacula-users] mysql bacula tables

2006-04-11 Thread Jonas Björklund

Hello,

On Tue, 11 Apr 2006, victoria wrote:


for a moment i'm writing simple script, which makes for me summary
report about last backup process. I want select records directly from
database. So i just got a few questions.
I want to know where in a database i can find following records:
- Rate
- Files count (what is the difference between SD and FD files count?)
- Bytes

Other needed records i found.

Or maybe someone can point me to the documentation, where i can find
description for each table?


Take a look at the script examples/report.pl. I think it will give you 
some ideas.


/Jonas


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Backup Type -- Can one skip differentials?

2006-04-11 Thread Troy Daniels

Hi Mark,

Normally different levels are specified in the Schedule with something
like the

Schedule {
   Name = WeeklyCycle
   Run = Full Pool=slain_full_weekly Fri at 12:00
   Run = Incremental Sat-Thu
}


If this doesn't help, We'll need more information than you've provided
I'm afraid.

Including the Schedule definition and actual Job definition as a
minimum. JobDefs is a definition of Job Defaults, you need to show us
the Job section of your director config file.

Cheers,


Troy.




Mark Clarke wrote:

Hi all,

I am trying to setup a job schedule that does a full weekly backup and
then an incremental backup daily for 7 days. I have a job defined as 



JobDefs {
  Name = Job
  Type = Backup
  Level = Incremental
  Client = slain-fd
  FileSet = Full Set
  Schedule = WeeklyCycle
  Storage = Deadlock_Disk2
  Messages = Standard
  Pool = default
  Full Backup Pool = slain_full_weekly
  Differential Backup Pool = slain_incremental_daily
  Priority = 10
}

The job runs the full ok but never runs the incremental job. Instead it
default to the default pool and starts doing differential backups. Why
is this? Am I missing something? 


thanks


===
Cyber Designs - Put you business on the net
http://www.CyberDesigns.co.za

Jumping Bean - Your Java and Linux Experts
http://www.JumpingBean.co.za

Tel: 011-781 80 14
Fax: 011-781 80 15
===
Disclaimer

Any views or opinions presented in this email are solely those of the author 
and do not necessarily represent those of the company. Employees of Cyber 
Designs are expressly required not to make defamatory statements and not to 
infringe or authorize any infringement of copyright or any other legal right by 
email communications. Any such communication is contrary to company policy and 
outside the scope of the employment of the individual concerned. The company 
will not accept any liability in respect of such communication, and the 
employee responsible will be personally liable for any damages or other 
liability arising.


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] column file.markedid does not exist error

2006-04-11 Thread Kern Sibbald
On Monday 10 April 2006 21:33, Joe Park wrote:
 bacula ver: 1.38.6
 OS: FreeBSD 6.0
 DB: postgresql 8.1.3
 Changer/Tapedrive: Dell PowerVault 122T


 Hello,

 I have this error messeges repeated in system log file --


 Apr  9 03:40:47 localhost postgres[18833]: [1-1] ERROR:  column
 file.markedid does not exist
 Apr  9 06:38:20 localhost postgres[20267]: [1-1] ERROR:  column
 file.markedid does not exist
 Apr  9 10:04:23 localhost postgres[21200]: [1-1] ERROR:  column
 file.markedid does not exist


 The error coincides with bacula verify job end time.  I see that bacula db
 has file.mark column, but not file.markedid column.  Any help is
 appreciated.

This is a bug (typo in SQL).  I have just fixed it.  Thanks for reporting it.

The fix will be in 1.38.8

-- 
Best regards,

Kern

  (
  /\
  V_V


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Backup Type -- Can one skip differentials?

2006-04-11 Thread Mark Clarke
Hi all,

I am trying to setup a job schedule that does a full weekly backup and
then an incremental backup daily for 7 days. I have a job defined as 


JobDefs {
  Name = Job
  Type = Backup
  Level = Incremental
  Client = slain-fd
  FileSet = Full Set
  Schedule = WeeklyCycle
  Storage = Deadlock_Disk2
  Messages = Standard
  Pool = default
  Full Backup Pool = slain_full_weekly
  Differential Backup Pool = slain_incremental_daily
  Priority = 10
}

The job runs the full ok but never runs the incremental job. Instead it
default to the default pool and starts doing differential backups. Why
is this? Am I missing something? 

thanks


===
Cyber Designs - Put you business on the net
http://www.CyberDesigns.co.za

Jumping Bean - Your Java and Linux Experts
http://www.JumpingBean.co.za

Tel: 011-781 80 14
Fax: 011-781 80 15
===
Disclaimer

Any views or opinions presented in this email are solely those of the author 
and do not necessarily represent those of the company. Employees of Cyber 
Designs are expressly required not to make defamatory statements and not to 
infringe or authorize any infringement of copyright or any other legal right by 
email communications. Any such communication is contrary to company policy and 
outside the scope of the employment of the individual concerned. The company 
will not accept any liability in respect of such communication, and the 
employee responsible will be personally liable for any damages or other 
liability arising.


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] mysql bacula tables

2006-04-11 Thread Kern Sibbald
On Tuesday 11 April 2006 07:53, victoria wrote:
 Hello,

 for a moment i'm writing simple script, which makes for me summary
 report about last backup process. I want select records directly from
 database. So i just got a few questions.
 I want to know where in a database i can find following records:
 - Rate
 - Files count (what is the difference between SD and FD files count?)
 - Bytes

 Other needed records i found.

 Or maybe someone can point me to the documentation, where i can find
 description for each table?

 Thank You in advice.

I suspect that in the long run you will save yourself a lot of time if you 
would look at installing bacula-web.  Though it may not give you all the 
information you want because not everything is in the DB, it does give nice 
looking management level reports in a Web browser.

Many users such as myself running on Fedora Core 4 have zero problems 
installing it. Other users on some releases have had difficulties getting all 
the components installed, but IMO, it just requires a careful reading of the 
bacula-web manual (very small ...).


 Victoria




 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live
 webcast and join the prime developer group breaking into this new coding
 territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Best regards,

Kern

  (
  /\
  V_V


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] mysql bacula tables

2006-04-11 Thread victoria
Yes, thanks. I got installed it before, but it didn't give features,
which i need most of all. So we decided make own web tool, but it's
another story. :)
Thanks anyway.

v.

On Tue, 2006-04-11 at 09:37 +0200, Kern Sibbald wrote:
 On Tuesday 11 April 2006 07:53, victoria wrote:
  Hello,
 
  for a moment i'm writing simple script, which makes for me summary
  report about last backup process. I want select records directly from
  database. So i just got a few questions.
  I want to know where in a database i can find following records:
  - Rate
  - Files count (what is the difference between SD and FD files count?)
  - Bytes
 
  Other needed records i found.
 
  Or maybe someone can point me to the documentation, where i can find
  description for each table?
 
  Thank You in advice.
 
 I suspect that in the long run you will save yourself a lot of time if you 
 would look at installing bacula-web.  Though it may not give you all the 
 information you want because not everything is in the DB, it does give nice 
 looking management level reports in a Web browser.
 
 Many users such as myself running on Fedora Core 4 have zero problems 
 installing it. Other users on some releases have had difficulties getting all 
 the components installed, but IMO, it just requires a careful reading of the 
 bacula-web manual (very small ...).
 
 
  Victoria
 
 
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting language
  that extends applications into web and mobile media. Attend the live
  webcast and join the prime developer group breaking into this new coding
  territory!
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
  ___
  Bacula-users mailing list
  Bacula-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/bacula-users
 



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-devel] Re: [Bacula-users] Surprise bug + Scratch pool algorithm

2006-04-11 Thread Kern Sibbald
Hello,

This Scratch pool algorithm problem has turned out to be quite interesting. As 
it turns out, the guys that asked for the change in the algorithm were 
correct and the guys that are complaining about the change in the algorithm 
are correct, and best of all I think I have a solution that will satisfy 
everyone.

Without going into a huge number of details, I'll simply say that the original 
algorithm was broken because it never looked for a Scratch volume in the 
autochanger.  By the time it looked for a scratch volume, it was willing to 
accept any volume (a sort of last resort panic to find anything ...).

So, now everyone *should* be satisfied. The recycling code will be exercised 
first as it should, and only if there is not an available volume in the 
autochanger will Bacula look to see if there is a Scratch volume in the 
autochanger.  This allows Bacula to add new Volumes when really needed 
without immediately consuming all the Scratch volumes in the changer.

-- 
Best regards,

Kern

  (
  /\
  V_V


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Adding Capacity to Backup Server

2006-04-11 Thread Danie

Hello again ,

Andreas Wilm wrote:

Dimitri Puzin wrote:

  

Danie schrieb:
 



Hi All ,
   

  

Hello,

[...]
 



FC3 , running in a RAID 5 setup ( 4 x 300GB) , no LVM

My question , if I want to add another disk to the array , will I need
to reconfigure my whole logical disk? I've tried to google it etc , but
I've come to know this list as the best resource for my backup woes :)
   

  

IMO this has nothing to do with Bacula software itself but with
underlying disk subsystem. Whether you can add a disk or not depends on
the capability of your RAID controller. If you have software RAID
solution running there, then there is currently no way to enlarge the
array. It needs to be rebuilt from scratch completely. However, Linux
Kernel v2.6.17-rc1 together with latest mdadm tools has support for
growing software RAID-5 volumes. This schould be considered beta
quality! If you attempt doing it, make sure you have a backup ;). Please
share your results as I am also interested in this function.

Regards,
-Dimitri aka Tristan-777

 



Hi Danie,

if you´re using a software RAID 5, there´s a tool for resizing a raid 5
called raidreconf, located at http://unthought.net/raidreconf. But I
must say I didn´t ever tried it , so make a backup ;-) before resizing
the RAID5.
  
It seems I'll have to rethink my strategy , as RAID 5 only configures 
itself with regards to the smallest HDD in the RAID set , so me wanting 
to add a 500GB disk to a 4x300GB RAID set is going to be pointless :( . 
Sorry I forgot to mention I am running hardware RAID controller (Intel) 
, so I will probably have to add the disk to the Array through the Intel 
RAID console , not sure how the resizing will affect the Linux logical 
drive ? Currently I have my FC3 setup as follows :


FilesystemSize  Used Avail Use% Mounted on
/dev/sda2  51G   47G  1.1G  98% /
none 0 0 0   -  /proc
none 0 0 0   -  /sys
none 0 0 0   -  /dev/pts
usbfs0 0 0   -  /proc/bus/usb
/dev/sda5 769G  721G   10G  99% /arch
/dev/sda1 2.0G   46M  1.9G   3% /boot
none  506M 0  506M   0% /dev/shm
none 0 0 0   -  /proc/sys/fs/binfmt_misc

I've been considering just setting up a secondary server (with the sd) , 
looking at the SS4000-E from Intel. Thanks for the input , will 
investigate further and share my findings.





Greetings

Andreas


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

  




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Device flags

2006-04-11 Thread Kern Sibbald
It looks like it is trying to read off the end of the tape and getting an I/O 
error. Possibly setting TWOEOF = yes may solve the problem. 

On Tuesday 11 April 2006 10:55, Gabriele Bulfon wrote:
 Hello, I upgraded and read your latests manual.
 So now, I'm playing with the device flags to check for some configuration
 that may work. Whil doing btape/test , I could see this output (I never saw
 it because it was scrolling very fast) : This is an *essential* feature ...
 btape: btape.c:795 Wrote 1000 blocks of 64412 bytes.
 btape: btape.c:469 Wrote 1 EOF to DAT72 (/dev/rmt/1)
 btape: btape.c:811 Wrote 1000 blocks of 64412 bytes.
 btape: btape.c:469 Wrote 1 EOF to DAT72 (/dev/rmt/1)
 btape: btape.c:820 Rewind OK.
 1000 blocks re-read correctly.
 Got EOF on tape.
 11-Apr 10:44 btape: btape Error: block.c:945 Read error at file:blk 1:0 on
 device DAT72 (/dev/rmt/1). ERR=I/O error. and then it scrolls all the way
 down with the Got EOF on tape.
 Have any idea?
 Gabriele Bulfon - Sonicle S.r.l.
 Tel +39 028246016 Int. 30 - Fax +39 028243880
 Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY
 http://www.sonicle.com
 ---
--- Da: Kern Sibbald [EMAIL PROTECTED]
 A: Gabriele Bulfon [EMAIL PROTECTED]
 Cc: bacula-users bacula-users@lists.sourceforge.net
 Data: 10 aprile 2006 18.56.25 CEST
 Oggetto: Re: [Bacula-users] restoring

 On Monday 10 April 2006 18:33, Gabriele Bulfon wrote:
  ...I'm worrying about it because the list of Got EOF on tape. never
  ends, until I kill the btape/test; should I wait longer?

 Sorry, my error. I did not read what you wrote carefully enough. If you are
 getting that during a restore, there is no problem and my previous comments
 apply.
 Since you are getting that during the btape test command as you are, then
 yes, it indicates that your Device specification in the bacula-sd.conf file
 does not match your OS and tape drive.  You must correct this condition
 before Bacula will work correctly. The btape tests must run to completion
 correctly there are some got EOF messages but only 5-10.
 Perhaps if you send your bacula-sd.conf file to the list, someone can help
 you debug the problems.  It would also be a good idea to send a copy of the
 output of btape test (of course, truncating any big number of got EOF
 messages).
 By the way, Bacula 1.36.2 is quite old and no longer officially
 supported ...

  And I'm worrying because
  in the pdf document, you state that if you get this output, it's probably
  because of the variable / fixed-size block setting, and that I should fix
  it. I'm worrying because I cannot run a single ./bls -c
  ../etc/bacula-sd.conf -j -v -V THURSDAY2 QUANTUM on any tape (old or
  recent), because it will fail to show me but the first job. And finally
  I'm worrying because I cannot run a single ./bextract . on jobs
  that ar not the first one. It seems like command line tools can work only
  on a short amount of data that stays at the beginning of the tape. ...I'm
  really worried...please help
  Gabriele Bulfon - Sonicle S.r.l.
  Tel +39 028246016 Int. 30 - Fax +39 028243880
  Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY
  http://www.sonicle.com
  -
 -- --- Da: Kern Sibbald [EMAIL PROTECTED]
  A: Gabriele Bulfon [EMAIL PROTECTED]
  Cc: bacula-users bacula-users@lists.sourceforge.net
  Data: 10 aprile 2006 18.24.02 CEST
  Oggetto: Re: [Bacula-users] restoring
  I don't know why you are worrying about the got EOF messages. They are
  quite normal. They are not error messages. Bacula is *very* careful to
  put the word error in error messages or warning in possible error
  messages. If neither of those words are in the message, it can be
  considered an informational message and not normally anything to worry
  about.
 
  On Monday 10 April 2006 18:14, Gabriele Bulfon wrote:
   I tried the btape tests on clean systems:
   Sun v20z, AMD64, Solaris 10, self compiled bacula 1.36.2, Quantum
   Ultrium LTO2. SunFire280R, Sparcv9, Solaris 10, self compiled bacula
   1.36.2, Quantum Ultrium LTO2. I always get the long list of got
   EOFbut I'm sure that the system defaults to variable block size. I
   even tried substituting the Quantum device with a certified Sun-Dat72 :
   same results. I believe that until I can't get rid of these got EOF
   during tests, I will have my problem (able to restore via bconsole, not
   able to restore through command line). Do you think there may be
   something wrong in the way I compiled binaries on Solaris? Is there any
   issue about the 64 bit platform? The binaries are all 32bit ones: may
   be this a problem? Is there any specific issue pertaining to the
   Solaris 10 platform? Thanks for any help.
   Gabriele Bulfon - Sonicle S.r.l.
   Tel +39 028246016 Int. 30 - Fax +39 028243880
   Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY
   

Re: [Bacula-devel] Re: [Bacula-users] Surprise bug + Scratch pool algorithm

2006-04-11 Thread Alan Brown

On Mon, 10 Apr 2006, John Kodis wrote:


On a somewhat related note, I'm not clear on how the tape selection
algorithm is altered when an autochanger is available.  For example,
if there are two equally eligible volumes available, only one of which
is in the autochanger, would this volume be preferred?


Yes.


I'm also unclear on whether Bacula currently tracks which volumes are
in an autochanger.  Right now, I have two volumes that are both
recorded in the database as InChanger = 1 and Slot = 4, but it's
not obvious which tape is actually in the changer.


Update slots does this.

1.36 didn't update records to show a tape wasn't in the changer, but 1.38 
is supposed to have sorted this out.


The problem you have probably encountered is that if inchanger=1, 
bacula can decide to use a particular tape and then get upset when it's 
not actually there.


For 1.36 I ended up using SQL to set all media inchanger=0 before 
rerunning update slots - hopefully when I update to new hardware(*) and 
1.38 in a few days this will no longer be necessary.


(*)A dedicated bacula server with direct fibre attachment to the library, 
instead of the current shared/SAN arrangement. I've been holding off 
software updates on the old hardware because this has been coming



AB



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-devel] Re: [Bacula-users] Surprise bug + Scratch pool algorithm

2006-04-11 Thread Alan Brown

On Mon, 10 Apr 2006, Kern Sibbald wrote:


I'd like to add a third. I don't use scratch pools at all, currently,
but I can't see why I'd want a new volume being added to the pool when
I've got one in there that's supposed to be used. Wouldn't that mean
that it would ALWAYS choose a scratch volume if there is one available
and all of your tapes are full (even if one should be recycled)? In my
setup, this would be the case anyway.


If I remember the argument correctly, it was: Why overwrite volumes if there
are scratch volumes available? That is what scratch volumes are for.


If existing pool volumes are purged/recyclable, then they are available 
for the purposes of backups.


To my mind:

In a large/multiple pool situation, scratch volumes should only be there 
only there for emergency use when no volumes are available in the pool.


The instances of this happening are when a backup set grows in size 
unexpectedly rapidly, or starts changing a lot, resulting in large 
incremental files being recorded.


Scratch volumes should exist as a temporary buffer, and should be returned 
to scratch when the data on them expires. Longer term pool growth should 
be catered to by permanently allocating volumes to the pool.


This is important in a setup like ours, as different pools have vastly 
different retention periods (ranging from 3 months to 5 years) and I have 
to budget tape usage as part of ongoing operational expenses. If a scratch 
pool tape is ever used, it means something unexpected has happened(*) or 
my calculations are out.


(*) Last time, it turned out that 1 user was using a designated archival
filesystem for temporary storage of deep sky observation processing,
resulting in more than 5Tb of data being put into long-term storage
instead of being ignored for backup purposes


AB


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Solaris Device problem SOLVED

2006-04-11 Thread Gabriele Bulfon


Maybe this is a silly discovery, but I did not find any writing about it anywhere, so I'm sendingyou the solution. Maybe would be nice to have a mention on the pdf documentation.Running Bacula on Solaris : you HAVE to use the "b" device on tapes!Read the Solaris 10 mtio man page extract: Read Operation The read(2) function reads the next record on the tape. The record size is passed back as the number of bytes read, pro- vided it is not greater than the number requested. When a tape mark or end of data is read, a zero byte count is returned; all successive reads after the zero read will return an error and errno will be set to EIO. To move to the next file, an MTFSF ioctl can be issued before or after the read causing the error. This error handling behavior is dif- ferent from the older BSD behavior, where another read will fetch the first record of the next tape file. If the BSD behavior is required, device names containing the letter b (for BSD behavior) in the final component should be used. If persistent error handling was enabled with either the BSD or SVR4 tape device behavior, all operations after this read error will return EIO errors until the MTIOCLRERR ioctl is issued. An MTFSF ioctl can then he issued.Now, using /dev/rmt/0b will run the tests perfectly.If you use /dev/rmt/0 :- Test will not work- Bacula will correctly write- bconsole will correctly read, because it knows exactly the file number to reach, and ask the device to skip there before reading- command line utilities won't work, beacuse they will fail discovery of content after reaching the end of file=1Previous tapes that I have written using /dev/rmt/0 can be read through /dev/rmt/0b, but may mislead you.Trying an "bls -j -v -V ..." on the old tape will show the first start of job, and then come out with a lot of:11-Apr 13:03 bls: Got EOF at file 1 on device /dev/rmt/0b, Volume "THURSDAY2"11-Apr 13:03 bls: Got EOF at file 2 on device /dev/rmt/0b, Volume "THURSDAY2"You just have to wait. The rest of data has been written into later files.Then you can create your bootstrap file and suggest bextract where to position.Hope this helps,Gabriele.


 



 

Gabriele Bulfon - Sonicle S.r.l.
Tel +39 028246016 Int. 30 - Fax +39 028243880
Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY
http://www.sonicle.com

 





Re: [Bacula-users] Re: GFS rotating howto

2006-04-11 Thread Georg Lutz
On 2006-04-10, Mark Nienberg wrote:
 
 How is your method different from the Daily, Weekly, Monthly Tape Usage 
 Example in the Bacula Documentation?
 

1. The scheduling is different. In Bacula you cannot schedule on the
last workday of a month or week because Bacula doesn't know of workdays
and holidays. The internal scheduling mechanism does also not know of
exceptions. At least at my site there are some days where no operator is
here to change tapes and where no backup should take place (because the
data is not altered much anyway on these days).

2. The volume recycling is different. I cannot use a recyling based on
fixed dates(VolumeRetention), because backup does not take place on
fixed dates(exceptions, holidays). My recycling mechanism is: Only
overwrite the tape with the oldest data, nothing else. If there are
holidays for one week, you end up with 7 tapes which can be overwritten
in any particular order when you use the example in the bacula
documentation.

3. The tape change is different. As I said in the howto, for security
reasons we change tapes daily. Monthly and weekly tapes are stored
offsite. So if the site burns down we can restore at least the state
before the last weekend. Also I want to have the backup done in a
definite timeframe during the night. Its not acceptable for me when the
operator needs to change tapes in the morning and the backup is done
during the day. Of course you can change this behaviour easily when you
set Maximum Volume Jobs = 2 (for files and catalog).


However, that does not mean that my backup scheme is somehow better than
others. What backup method one uses depends from the specific needs. I
think most admins prefer a fire and forget solution with minimal human
intervention. This often means that the tape resides in the
streamer/changer until the backup software notifies the operators to
insert some other tape.


-- 
Georg


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Solaris Device problem SOLVED

2006-04-11 Thread Ryan Novosielski
It is not technically in writing that I've seen so far as the
documentation goes, but I ripped off 0cbn (or whatever order those
letters are in :)) from the sample config file. There are several
examples provided for the different operating systems, and Solaris is
one of them.

Gabriele Bulfon wrote:

 Maybe this is a silly discovery, but I did not find any writing about
 it anywhere, so I'm sending
 you the solution. Maybe would be nice to have a mention on the pdf
 documentation.

 Running Bacula on Solaris : you HAVE to use the b device on tapes!
 Read the Solaris 10 mtio man page extract:

   Read Operation
  The read(2) function reads the next record on the tape.  The
  record size is passed back as the number of bytes read, pro-
  vided it is not greater than the number requested.   When  a
  tape  mark  or  end  of  data  is read, a zero byte count is
  returned; all successive reads  after  the  zero  read  will
  return an error and errno will be set to EIO. To move to the
  next file, an MTFSF ioctl can be issued before or after  the
  read causing the error. This error handling behavior is dif-
  ferent from the older BSD behavior, where another read  will
  fetch  the  first  record  of the next tape file. If the BSD
  behavior is required, device names containing the  letter  b
  (for BSD behavior) in the final component should be used. If
  persistent error handling was enabled with either the BSD or
  SVR4  tape  device  behavior, all operations after this read
  error will return EIO errors until the MTIOCLRERR  ioctl  is
  issued.  An MTFSF ioctl can then he issued.

 Now, using /dev/rmt/0b will run the tests perfectly.

 If you use /dev/rmt/0 :
 - Test will not work
 - Bacula will correctly write
 - bconsole will correctly read, because it knows exactly the file
 number to reach, and ask the device to skip there before reading
 - command line utilities won't work, beacuse they will fail discovery
 of content after reaching the end of file=1

 Previous tapes that I have written using /dev/rmt/0 can be read
 through /dev/rmt/0b, but may mislead you.
 Trying an bls -j -v -V ... on the old tape will show the first start
 of job, and then come out with a lot of:
 11-Apr 13:03 bls: Got EOF at file 1  on device /dev/rmt/0b, Volume
 THURSDAY2
 11-Apr 13:03 bls: Got EOF at file 2  on device /dev/rmt/0b, Volume
 THURSDAY2
 
 

 You just have to wait. The rest of data has been written into later files.
 Then you can create your bootstrap file and suggest bextract where to
 position.

 Hope this helps,
 Gabriele.

 http://www.sonicle.com
 Gabriele Bulfon - Sonicle S.r.l.
 Tel +39 028246016 Int. 30 - Fax +39 028243880
 Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY
 http://www.sonicle.com



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Re: GFS rotating howto

2006-04-11 Thread Alan Brown

On Tue, 11 Apr 2006, Georg Lutz wrote:


1. The scheduling is different. In Bacula you cannot schedule on the
last workday of a month or week because Bacula doesn't know of workdays
and holidays. The internal scheduling mechanism does also not know of
exceptions. At least at my site there are some days where no operator is
here to change tapes and where no backup should take place (because the
data is not altered much anyway on these days).



Because of long weekends and other events, it's safest to try and schedule 
for tape changes on Tues/Weds/Thurs, rather than trying to do them on 
Monday or Friday.


This alleviates the issues of first/last workday in month a little 
without Bacula having to be aware of local vacations.


AB


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Solaris Device problem SOLVED

2006-04-11 Thread Gabriele Bulfon


You are right, but "ripping off" a configuration, is a different thing than understanding.It's a fact that sending many emails about this problem, and sending config files specifying thewrong device, never happened to find someone mentioning this.I believe that the manual should state this when talking about Solaris.Thanx a lot for the great software, anyway.Gabriele.


 



 

Gabriele Bulfon - Sonicle S.r.l.
Tel +39 028246016 Int. 30 - Fax +39 028243880
Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY
http://www.sonicle.com

 

--Da: Ryan Novosielski [EMAIL PROTECTED]A: Gabriele Bulfon [EMAIL PROTECTED] Cc: bacula-users bacula-users@lists.sourceforge.net Kern Sibbald [EMAIL PROTECTED] Data: 11 aprile 2006 14.44.21 CESTOggetto: Re: [Bacula-users] Solaris Device problem SOLVEDIt is not technically in writing that I've seen so far as the
documentation goes, but I ripped off 0cbn (or whatever order those
letters are in :)) from the sample config file. There are several
examples provided for the different operating systems, and Solaris is
one of them.

Gabriele Bulfon wrote:

 Maybe this is a silly discovery, but I did not find any writing about
 it anywhere, so I'm sending
 you the solution. Maybe would be nice to have a mention on the pdf
 documentation.

 Running Bacula on Solaris : you HAVE to use the "b" device on tapes!
 Read the Solaris 10 mtio man page extract:

   Read Operation
  The read(2) function reads the next record on the tape.  The
  record size is passed back as the number of bytes read, pro-
  vided it is not greater than the number requested.   When  a
  tape  mark  or  end  of  data  is read, a zero byte count is
  returned; all successive reads  after  the  zero  read  will
  return an error and errno will be set to EIO. To move to the
  next file, an MTFSF ioctl can be issued before or after  the
  read causing the error. This error handling behavior is dif-
  ferent from the older BSD behavior, where another read  will
  fetch  the  first  record  of the next tape file. If the BSD
  behavior is required, device names containing the  letter  b
  (for BSD behavior) in the final component should be used. If
  persistent error handling was enabled with either the BSD or
  SVR4  tape  device  behavior, all operations after this read
  error will return EIO errors until the MTIOCLRERR  ioctl  is
  issued.  An MTFSF ioctl can then he issued.

 Now, using /dev/rmt/0b will run the tests perfectly.

 If you use /dev/rmt/0 :
 - Test will not work
 - Bacula will correctly write
 - bconsole will correctly read, because it knows exactly the file
 number to reach, and ask the device to skip there before reading
 - command line utilities won't work, beacuse they will fail discovery
 of content after reaching the end of file=1

 Previous tapes that I have written using /dev/rmt/0 can be read
 through /dev/rmt/0b, but may mislead you.
 Trying an "bls -j -v -V ..." on the old tape will show the first start
 of job, and then come out with a lot of:
 11-Apr 13:03 bls: Got EOF at file 1  on device /dev/rmt/0b, Volume
 "THURSDAY2"
 11-Apr 13:03 bls: Got EOF at file 2  on device /dev/rmt/0b, Volume
 "THURSDAY2"
 
 

 You just have to wait. The rest of data has been written into later files.
 Then you can create your bootstrap file and suggest bextract where to
 position.

 Hope this helps,
 Gabriele.

 http://www.sonicle.com
 Gabriele Bulfon - Sonicle S.r.l.
 Tel +39 028246016 Int. 30 - Fax +39 028243880
 Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY
 http://www.sonicle.com






[Bacula-users] Autochanger device returning tape contents

2006-04-11 Thread Jason Martin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

resending, mailman seems to have ate the last one

I'm having a problem whereby the mtx command is opening the
changer device and getting back the contents of the tape. I
repeatedly reproduce this if I do the following:

1. Perform some operation, such as a backup
2. Schedule a job to verify the last catalog backup
3. Schedule a job to perform some other verification job that
uses a different tape
4. Complete the catalog backup verification
5. Bacula calls mtx-changer, which calls mtx, to switch to the
needed tape.
6. mtx-changer fails on the 'loaded' command with 
mtx: Request Sense: 70
00 05 00 00 00 00 0A 00 00 00 00 21 01 00 C0 00 00 00 00
READ ELEMENT STATUS Command Failed
7. mtx-changer fails on the load command as there is already a
tape loaded.
8. Bacula yells for help.


When I wrap mtx with strace, I see the following:

1793  open(/dev/sg4, O_RDWR)  = 3
1793  write(3, 
0\0\0\0\240\34M\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\2702 
   \0M\34|\0\0, 48) = 48
1793  read(3, 
\240\34M\0\240\34M\0\0\0\0\0\0\0\0\0\2\0\2\0p\0\5\0\0\0\0\n\0\0\0\0!\1\0\300\23
 
Wx0\361\253r\375\3\340\332\262\313T\366j\212\200\323E\252;\333i\t\372\5#a\277\371\272\f{\372\202\340(0U\0\35\366u\\30l\326k\314\3zj\231\vzeX\250\fz\265Y\27\240~\315\204\3W\205\277\22\373\225|\4M\245\223}/[\232\32\n\350\235\26\213\353\4\177\255A\333\370^\275
 
zGn\35!F\32\22!g\3\2{\37\346WS\277\24\23\ts\265\201:\305\273\5\0200\343\177\313\262px\3515D\330x\351s\277\32!%ip\205\201V\224\3227(\352\3\2155\300\242\223
 
\307\342\270n\302C\261A\315\205I\337\374sQ\272\343s\325\230\215\262%p4\372\273G\324Z+\242\307\250_\261]\224\307\207S\346O\363\27\25\354\\271\375\272\337\304\242A\7\312\276\30\305\16\335r$\r\235_\315\226\345\350\300\354\305gl\34\16`\261\302\356P\377kT90\376m#8\f\224:\2612\311p\253\10\202\375\305\366\\u\270\2109\360\233\23\264\21\345\367\322xX\37\350\344\350\2572\370\32\244\272\37)Fu\217,\5f[\357\244}\345\350m\3J\254\357\301\236\4\277Zu}R}\26B\177A\257gb\307\177\\274\266\304\276\267\202\7\243\207\277\26\333*g\220\23\335\253K\31\363\2\257\303\273\3347S\341\300\272\350/iA\33\354
 
m\330\\v\320l./H\23A\324\351\260\4\3439,?W\24\310\27\0360\324\23\22\376j$!\346\266\t\271\f\246\10\17X\370\26\300\316\217\357{\333\263\27\36\213)3\275\210?-\5\273awx\200\21\375\316\347\0\\200\335\177N\\\3\250\31\276\316\25\317\7Z\17\202\r\'[EMAIL
 
PROTECTED]:_,\331\34\31S\210\274*7\3\3436W\274?\10\0\361\244\204`\331-\327\303\217\n\263\370\322\26\202$}\362D\272\361f5\305oW8\320m\224\246T\251\263{A\317(\200O\321\'\252\361\223\350\342b\217(\200\207\240\222L/T\252\ts*\266\233\240\212\320\361Y\270\215\330\203\30\350\225\270\345`G\264%\227v\201x|Nx\251n\277M\370\360\200\301\36l\251nW\223\311i\247w-\203\323b\302\316\25\233+\2577\217A\345\371S\30\225\310\1\263\323b\354\323\274
 \177\330\234\315\356\201\351j\342\226\225i\'|\320\n\202\221\343a3\346..., 
5053600) = 5053600
1793  write(3, 
0\0\0\0\240\34M\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\270\
\0M\34|\0\0, 48) = 48
1793  read(3, 
\240\34M\0\240\34M\0\0\0\0\0\0\0\0\0\2\0\2\0p\0\5\0\0\0\0\n\0\0\0\0!\1\0\300 B 
A A A B/ IAA I BENL/u BDBndZ BENL/u A A 
C\',\'yktl64+/Gw+w3W+Nux/IZC\'),(35218579,6473522,58,745134,65118,0,\'T URYBY 
IGk B A A A aL6 IAA Dg BENL/u BDBncy BENL/u A A 
C\',\'qFpjFzhMJm+wGk/3SF/5mB\'),(35218580,6473523,58,745134,65112,0,\'T URYBZ 
IGk B A A A y5Q IAA Gg BENL/u BDBncx BENL/u A A 
C\',\'c1+Gy4+CMn+eEH+mmR/0OA\'),(35218581,6473524,58,745134,65110,0,\'T URYBb 
IGk B A A A X IAA I BENL/u BDBncy BENL/u A A 
C\',\'48/muQ5rai+2E5gC37dgEA\'),(35218582,6473525,58,745134,65108,0,\'T URYBc 
IGk B A A A Ee IAA I BENL/u BDBndZ BENL/u A A 
C\',\'U8+sih/oez/mw+lagCZlDA\'),(35218575,6473518,58,745133,65109,0,\'T URcBb 
IGk B A A A 2 IAA I BENL/u BDBncy BENL/u A A 
C\',\'iW+Yq9sB+89Xq7/FR7/GED\'),(35218574,6473517,58,745132,2,0,\'T HKIF6 EHt D 
A A A BAA IAA I BENMOf BEKu3h BENMOf A A 
C\',\'0\'),(35218573,6473516,58,745132,65115,0,\'T URUCL IGk B A A A lI IAA I 
BENL/u BDBndP BENL/u A A 
C\',\'t9+gZ+RVRC/WN3/mMRhSwD\'),(35218572,6473515,58,745132,65107,0,\'T URUCK 
IGk B A A A 2 IAA I BENL/u B..., 5053600) = 5053600
1793  write(2, mtx: Request Sense: 70, 22) = 22
1793  write(2,  00, 3)= 3
1793  write(2,  05, 3)= 3
1793  write(2,  00, 3)= 3
1793  write(2,  00, 3)= 3
1793  write(2,  00, 3)= 3
1793  write(2,  00, 3)= 3
1793  write(2,  0A, 3)= 3
1793  write(2,  00, 3)= 3
1793  write(2,  00, 3)= 3
1793  write(2,  00, 3)= 3
1793  write(2,  00, 3)= 3
1793  write(2,  21, 3)= 3
1793  write(2,  01, 3)= 3
1793  write(2,  00, 3)= 3
1793  write(2,  C0, 3)= 3
1793  write(2,  00, 3)= 3
1793  write(2,  00, 3)= 3
1793  write(2,  00, 3)= 3
1793  write(2,  00, 3)  

Re: [Bacula-devel] Re: [Bacula-users] Surprise bug + Scratch pool algorithm

2006-04-11 Thread Kern Sibbald
On Tuesday 11 April 2006 13:06, Alan Brown wrote:
 On Mon, 10 Apr 2006, Kern Sibbald wrote:
  I'd like to add a third. I don't use scratch pools at all, currently,
  but I can't see why I'd want a new volume being added to the pool when
  I've got one in there that's supposed to be used. Wouldn't that mean
  that it would ALWAYS choose a scratch volume if there is one available
  and all of your tapes are full (even if one should be recycled)? In my
  setup, this would be the case anyway.
 
  If I remember the argument correctly, it was: Why overwrite volumes if
  there are scratch volumes available? That is what scratch volumes are
  for.

 If existing pool volumes are purged/recyclable, then they are available
 for the purposes of backups.

 To my mind:

 In a large/multiple pool situation, scratch volumes should only be there
 only there for emergency use when no volumes are available in the pool.

Yes, I agree with you. 

In reality what the users were complaining about was that if no volume was 
available, Bacula would request to mount a volume that was not in the 
autochanger, so they added Scratch volumes to the autochanger and Bacula did 
not use those Scratch volumes. They rightfully complained about that, and 
suggested that move the search for Scratch volume up to before the recycling 
code.  Their complaints were warranted, but the solution in hindsight was 
probably not the best.  Hopefully with what I now have for 1.38.8, we will be 
back on track.


 The instances of this happening are when a backup set grows in size
 unexpectedly rapidly, or starts changing a lot, resulting in large
 incremental files being recorded.

 Scratch volumes should exist as a temporary buffer, and should be returned
 to scratch when the data on them expires. 

I had planed on doing this, but put the new database columns in the wrong 
table for 1.38.0.  I was hoping to implement it in 1.38.x, but do to the need 
to change the database, it will need to wait for 1.39 or possibly later.

 Longer term pool growth should 
 be catered to by permanently allocating volumes to the pool.

 This is important in a setup like ours, as different pools have vastly
 different retention periods (ranging from 3 months to 5 years) and I have
 to budget tape usage as part of ongoing operational expenses. If a scratch
 pool tape is ever used, it means something unexpected has happened(*) or
 my calculations are out.

 (*) Last time, it turned out that 1 user was using a designated archival
  filesystem for temporary storage of deep sky observation processing,
  resulting in more than 5Tb of data being put into long-term storage
  instead of being ignored for backup purposes

Surprise !



 AB

-- 
Best regards,

Kern

  (
  /\
  V_V


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Re: Solaris Device problem SOLVED

2006-04-11 Thread Kern Sibbald
On Tuesday 11 April 2006 13:14, Gabriele Bulfon wrote:
 Maybe this is a silly discovery, but I did not find any writing about it
 anywhere, so I'm sending you the solution. Maybe would be nice to have a
 mention on the pdf documentation. Running Bacula on Solaris : you HAVE to
 use the b device on tapes! Read the Solaris 10 mtio man page extract:
   Read Operation
  The read(2) function reads the next record on the tape.  The
  record size is passed back as the number of bytes read, pro-
  vided it is not greater than the number requested.   When  a
  tape  mark  or  end  of  data  is read, a zero byte count is
  returned; all successive reads  after  the  zero  read  will
  return an error and errno will be set to EIO. To move to the
  next file, an MTFSF ioctl can be issued before or after  the
  read causing the error. This error handling behavior is dif-
  ferent from the older BSD behavior, where another read  will
  fetch  the  first  record  of the next tape file. If the BSD
  behavior is required, device names containing the  letter  b
  (for BSD behavior) in the final component should be used. If
  persistent error handling was enabled with either the BSD or
  SVR4  tape  device  behavior, all operations after this read
  error will return EIO errors until the MTIOCLRERR  ioctl  is
  issued.  An MTFSF ioctl can then he issued.

Yes, this *is* in the manual (in the Tape Testing chapter), but perhaps I 
could stress the /dev/rmt/0b for Solaris systems a bit more.

Anyway, I am happy you found the solution ...

 Now, using /dev/rmt/0b will run the tests perfectly.
 If you use /dev/rmt/0 :
 - Test will not work
 - Bacula will correctly write
 - bconsole will correctly read, because it knows exactly the file number to
 reach, and ask the device to skip there before reading - command line
 utilities won't work, beacuse they will fail discovery of content after
 reaching the end of file=1 Previous tapes that I have written using
 /dev/rmt/0 can be read through /dev/rmt/0b, but may mislead you. Trying an
 bls -j -v -V ... on the old tape will show the first start of job, and
 then come out with a lot of: 11-Apr 13:03 bls: Got EOF at file 1  on device
 /dev/rmt/0b, Volume THURSDAY2 11-Apr 13:03 bls: Got EOF at file 2  on
 device /dev/rmt/0b, Volume THURSDAY2 
 
 You just have to wait. The rest of data has been written into later files.
 Then you can create your bootstrap file and suggest bextract where to
 position. Hope this helps,

Yes, I will put this information in the manual.

 Gabriele.
 Gabriele Bulfon - Sonicle S.r.l.
 Tel +39 028246016 Int. 30 - Fax +39 028243880
 Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY
 http://www.sonicle.com

-- 
Best regards,

Kern

  (
  /\
  V_V


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula database

2006-04-11 Thread graham . dicker
Hi

I need to write a little C++ utility to access some of the data in Bacula's 
database (I'm using mysql) but the ODBC driver I'm using is giving me hex codes 
instead of characters for columns that contain text e.g. Pool names. I believe 
it is a Unicode issue but I can't find any information on why this might be 
happening or how to correct it. Any info would be much appreciated.

TIA

Graham Dicker



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Re: GFS rotating howto

2006-04-11 Thread Mark Nienberg

Georg Lutz wrote:

On 2006-04-10, Mark Nienberg wrote:
How is your method different from the Daily, Weekly, Monthly Tape Usage 
Example in the Bacula Documentation?




1. The scheduling is different. In Bacula you cannot schedule on the
last workday of a month or week because Bacula doesn't know of workdays
and holidays. The internal scheduling mechanism does also not know of
exceptions. At least at my site there are some days where no operator is
here to change tapes and where no backup should take place (because the
data is not altered much anyway on these days).

2. The volume recycling is different. I cannot use a recyling based on
fixed dates(VolumeRetention), because backup does not take place on
fixed dates(exceptions, holidays). My recycling mechanism is: Only
overwrite the tape with the oldest data, nothing else. If there are
holidays for one week, you end up with 7 tapes which can be overwritten
in any particular order when you use the example in the bacula
documentation.

3. The tape change is different. As I said in the howto, for security
reasons we change tapes daily. Monthly and weekly tapes are stored
offsite. So if the site burns down we can restore at least the state
before the last weekend. Also I want to have the backup done in a
definite timeframe during the night. Its not acceptable for me when the
operator needs to change tapes in the morning and the backup is done
during the day. Of course you can change this behaviour easily when you
set Maximum Volume Jobs = 2 (for files and catalog).


However, that does not mean that my backup scheme is somehow better than
others. What backup method one uses depends from the specific needs. I
think most admins prefer a fire and forget solution with minimal human
intervention. This often means that the tape resides in the
streamer/changer until the backup software notifies the operators to
insert some other tape.


Thanks for the explanation. Your example has shed some light on some of 
the scheduling and retention issues I am currently dealing with.

Mark



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] High memory usage when backing up

2006-04-11 Thread Aaron Zschau
I'm noticing extremely heavy memory loads when running a large bacula  
job.  The system running the fd and director processes spikes to  
using all but about 18mb of the 5gb of memory installed.   If I sort  
by memory usage in Top, no processes are using anywhere near the  
missing memory, however the usage only spikes when I run a large  
backup job ~100 GB) from this machine.  If I shut down bacula  
completely, the memory loads don't go back down


the results from free show that its not being taken up by the buffers  
(only about 178mb used by buffers) ,


total   used   free shared 
buffers cached
Mem:   50739565056120  17836  0   7528 
4877864

-/+ buffers/cache: 1707284903228
Swap:  20981521602097992

Things aren't getting bad enough to start swapping, however this is  
setting off alarms in Nagios as the % of free memory is well below  
the warning point, and I've had an unexplained crash or two on this  
server.   Some memory does seem to free up as its needed (for example  
if I open firefox and load up several tabs) but when a job is  
running, things always settle back down to around 18mb free.


I am running CentOS 4.1 and the latest version of bacula-fd.



any help would be appreciated,


-- -- -- -- -- -- -- --
Aaron Zschau - [EMAIL PROTECTED]
Network and Systems Engineer
Z-Tech Associates - 781.863.8884 x120





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] difference between autostarting and manually starting bacula daemon?

2006-04-11 Thread Joe Park
Hello,My machine is finally available (was doing stress testing) and tried modifing group parameters of bacula daemon start up scripts. I used operator group for both dir and sd daemon and confirmed it in ps. However, I still see same problem. After system boot up, tried to label a tape and got same error -- exited with code 127. I stopped the process and started the daemons manually, and this time, label command failed here too -- exited with code 1. Checking the device permission, I found that /dev/ch0 only had root user access (600). I added following to /etc/devfs.conf file --
own ch0 root:operatorperm ch0 0660Restarted the machine, confirmed /dev/ch0 has 660 with root:operator, confirmed bacula daemon parameters in ps. Then tried to label a tape in console and still same problem -- exited with code 127. Stopped the daemons, started them manually, and still same problem (exited with code 1).
As a test, I tried following -- removed all setting in /etc/devfs.conf file and used -u root -g wheel parameters for sd and dir daemon. I restarted the machine and tried label again. And it threw same error -- exited with code 127.
output from ps --root 723 0.0 0.7 6084 3396 ?? Ss 11:11AM 0:00.05 /usr/local/sbin/bacula-dir -u root -g wheel -v -c /usr/local/etc/bacula-dir.confroot 730 0.0 0.4 3864 2192 ?? Ss 11:11AM 0:
00.02 /usr/local/sbin/bacula-fd -u root -g wheel -v -c /usr/local/etc/bacula-fd.confroot 738 0.0 0.5 4804 2580 ?? Ss 11:11AM 0:00.06 /usr/local/sbin/bacula-sd -u root -g wheel -v -c /usr/local/etc/bacula-
sd.conflabel failing --Automatically selected Pool: DefaultConnecting to Storage daemon DellPowervault_122T at 192.168.3.114:9103 ...Sending label command for Volume TestVol009 Slot 8 ...
3301 Issuing autochanger loaded drive 0 command.3991 Bad autochanger loaded drive 0 command: ERR=Child exited with code 127.3301 Issuing autochanger loaded drive 0 command.
3991 Bad autochanger loaded drive 0 command: ERR=Child exited with code 127.3304 Issuing autochanger load slot 8, drive 0 command.3992 Bad autochanger load slot 8, drive 0: ERR=Child exited with code 127.
Label command failed for Volume TestVol009.Do not forget to mount the drive!!!I stopped the daemon and started them manually and label worked without any error. It just doesn't make sense... Any idea on this?
Thanks for the help!JoeOn 4/6/06, Dan Langille [EMAIL PROTECTED] wrote:
On 6 Apr 2006 at 18:22, Joe Park wrote: Ah I sse that.Thank you, I'll try that.If that works, or for that matter, does not, try similar for thedirector Joe On 4/6/06, Dan Langille 
[EMAIL PROTECTED] wrote:   On 6 Apr 2006 at 18:10, Joe Park wrote:Hmm.. I don't have z-bacula.sh script -- only z-bacula-dir.sh
,   z-bacula-fd.sh, z-bacula-sd.sh scripts under /usr/local/etc/rc.d. I   installed bacula 1.38.6 using latest ports snapshot.Maybe I should  just   download the source from bacula page and go from there?
   stick with the port.   In /etc/rc.conf, add this:   bacula_sd_flags= -u bacula -g operator -v -c /usr/local/etc/bacula-  sd.conf
   and issue this command:   /usr/local/etc/rc.d/z-bacula-sd.sh restart   confirm you see -g operator here:   ps auwx | grep bacula-sd
   Then try the autochanger.--  Dan Langille : Software Developer looking for work  my resume: 
http://www.freebsddiary.org/dan_langille.php   --Dan Langille : Software Developer looking for work
my resume: http://www.freebsddiary.org/dan_langille.php


Re: [Bacula-users] High memory usage when backing up

2006-04-11 Thread Eric Warnke
What you are seeing appears to be normal block device caching under
the linux kernel and nothing to worry about.

Cheers,
Eric

On 4/11/06, Aaron Zschau [EMAIL PROTECTED] wrote:
 I'm noticing extremely heavy memory loads when running a large bacula
 job.  The system running the fd and director processes spikes to
 using all but about 18mb of the 5gb of memory installed.   If I sort
 by memory usage in Top, no processes are using anywhere near the
 missing memory, however the usage only spikes when I run a large
 backup job ~100 GB) from this machine.  If I shut down bacula
 completely, the memory loads don't go back down

 the results from free show that its not being taken up by the buffers
 (only about 178mb used by buffers) ,

  total   used   free shared
 buffers cached
 Mem:   50739565056120  17836  0   7528
 4877864
 -/+ buffers/cache: 1707284903228
 Swap:  20981521602097992

 Things aren't getting bad enough to start swapping, however this is
 setting off alarms in Nagios as the % of free memory is well below
 the warning point, and I've had an unexplained crash or two on this
 server.   Some memory does seem to free up as its needed (for example
 if I open firefox and load up several tabs) but when a job is
 running, things always settle back down to around 18mb free.

 I am running CentOS 4.1 and the latest version of bacula-fd.



 any help would be appreciated,


 -- -- -- -- -- -- -- --
 Aaron Zschau - [EMAIL PROTECTED]
 Network and Systems Engineer
 Z-Tech Associates - 781.863.8884 x120





 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restore more than one client

2006-04-11 Thread Leonardo dos Santos Goldim

mr. erich

i tried again to configure bacula on my server... i installed the newest 
bacula's version and configure only one client (my own machine)...


until now it's work fine, i create and restore backup with no problems...

if i add a new cliente my problems start... looking your email i saw 
that i need one catalog for each cliente, when i read the documentation 
i realize i need one db for each catalog, is true?


tks
Goldim

Erich Prinz wrote:


Mr. Goldim,

Keep it simple.

If you need to separate machines for access control, consider using  
ACL directives in the bacula-dir.conf file and create a catalog for  
each client.


I'll leave it to you to read through the documentation on how to do  
this.


Erich

On Mar 17, 2006, at 8:26 AM, Leonardo dos Santos Goldim wrote:


hy guys,

i have bacula installed and running making backup of two machines  
(Smart08, Smart09), the backup generation is ok.
when i try to restore a backup for Smart09, bacula use the storage  
Smart08, not Smar09. when i restore Smart08, the proccess work fine.


why bacula always use Smart08 storage and not use the storage  
configured for each client?


sorry by the bad english, but y learning yet.

Tks
Goldim


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting  
language
that extends applications into web and mobile media. Attend the  live 
webcast
and join the prime developer group breaking into this new coding  
territory!
http://sel.as-us.falkag.net/sel? 
cmd=lnkkid=110944bid=241720dat=121642

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





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting 
language
that extends applications into web and mobile media. Attend the live 
webcast
and join the prime developer group breaking into this new coding 
territory!

http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] High memory usage when backing up

2006-04-11 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I've noticed when running 2.6, the machine appears to want to use all of
the RAM. However, running more processes will not make it swap until it
would have otherwise begun swapping. Seems to handle the memory usage
pretty well, IMO.

  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - User Support Spec. III
 |$| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630


Eric Warnke wrote:
 What you are seeing appears to be normal block device caching under
 the linux kernel and nothing to worry about.
 
 Cheers,
 Eric
 
 On 4/11/06, Aaron Zschau [EMAIL PROTECTED] wrote:
 I'm noticing extremely heavy memory loads when running a large bacula
 job.  The system running the fd and director processes spikes to
 using all but about 18mb of the 5gb of memory installed.   If I sort
 by memory usage in Top, no processes are using anywhere near the
 missing memory, however the usage only spikes when I run a large
 backup job ~100 GB) from this machine.  If I shut down bacula
 completely, the memory loads don't go back down

 the results from free show that its not being taken up by the buffers
 (only about 178mb used by buffers) ,

  total   used   free shared
 buffers cached
 Mem:   50739565056120  17836  0   7528
 4877864
 -/+ buffers/cache: 1707284903228
 Swap:  20981521602097992

 Things aren't getting bad enough to start swapping, however this is
 setting off alarms in Nagios as the % of free memory is well below
 the warning point, and I've had an unexplained crash or two on this
 server.   Some memory does seem to free up as its needed (for example
 if I open firefox and load up several tabs) but when a job is
 running, things always settle back down to around 18mb free.

 I am running CentOS 4.1 and the latest version of bacula-fd.



 any help would be appreciated,


 -- -- -- -- -- -- -- --
 Aaron Zschau - [EMAIL PROTECTED]
 Network and Systems Engineer
 Z-Tech Associates - 781.863.8884 x120





 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users

 
 
 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (MingW32)

iD8DBQFEO/vmmb+gadEcsb4RAkylAJ9N7oR+lWCNbfCu2WOTBu2ad8MF0wCgjWgf
4XgECRzxCjDQZxLiSf6IWOY=
=QrTZ
-END PGP SIGNATURE-



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restore more than one client

2006-04-11 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm pretty sure that neither one is true. Hopefully I'm not wrong.
crosses fingers

  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - User Support Spec. III
 |$| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630


Leonardo dos Santos Goldim wrote:
 mr. erich
 
 i tried again to configure bacula on my server... i installed the newest
 bacula's version and configure only one client (my own machine)...
 
 until now it's work fine, i create and restore backup with no problems...
 
 if i add a new cliente my problems start... looking your email i saw
 that i need one catalog for each cliente, when i read the documentation
 i realize i need one db for each catalog, is true?
 
 tks
 Goldim
 
 Erich Prinz wrote:
 
 Mr. Goldim,

 Keep it simple.

 If you need to separate machines for access control, consider using 
 ACL directives in the bacula-dir.conf file and create a catalog for 
 each client.

 I'll leave it to you to read through the documentation on how to do 
 this.

 Erich

 On Mar 17, 2006, at 8:26 AM, Leonardo dos Santos Goldim wrote:

 hy guys,

 i have bacula installed and running making backup of two machines 
 (Smart08, Smart09), the backup generation is ok.
 when i try to restore a backup for Smart09, bacula use the storage 
 Smart08, not Smar09. when i restore Smart08, the proccess work fine.

 why bacula always use Smart08 storage and not use the storage 
 configured for each client?

 sorry by the bad english, but y learning yet.

 Tks
 Goldim


 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting 
 language
 that extends applications into web and mobile media. Attend the  live
 webcast
 and join the prime developer group breaking into this new coding 
 territory!
 http://sel.as-us.falkag.net/sel?
 cmd=lnkkid=110944bid=241720dat=121642
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users




 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
 that extends applications into web and mobile media. Attend the live
 webcast
 and join the prime developer group breaking into this new coding
 territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
 
 
 
 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live
 webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (MingW32)

iD8DBQFEO/w2mb+gadEcsb4RAt8wAJ95fR9w5KRF1hcmkpEGcjs43zxRAQCg0nEi
jT19ZmzKXK2YX2qUOTZbysM=
=SYRN
-END PGP SIGNATURE-



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] column file.markedid does not exist error

2006-04-11 Thread Joe Park
Can you tell me any consequences from this bug? I'm testing bacula before using them in our production environment and would like to know if this is a show stopper.Thanks,Joe
On 4/11/06, Kern Sibbald [EMAIL PROTECTED] wrote:
On Monday 10 April 2006 21:33, Joe Park wrote: bacula ver: 1.38.6 OS: FreeBSD 6.0 DB: postgresql 8.1.3 Changer/Tapedrive: Dell PowerVault 122T Hello, I have this error messeges repeated in system log file --
 Apr9 03:40:47 localhost postgres[18833]: [1-1] ERROR:column file.markedid does not exist Apr9 06:38:20 localhost postgres[20267]: [1-1] ERROR:column file.markedid does not exist
 Apr9 10:04:23 localhost postgres[21200]: [1-1] ERROR:column file.markedid does not exist The error coincides with bacula verify job end time.I see that bacula db has 
file.mark column, but not file.markedid column.Any help is appreciated.This is a bug (typo in SQL).I have just fixed it.Thanks for reporting it.The fix will be in 1.38.8--Best regards,
Kern(/\V_V


Re: [Bacula-users] Restore more than one client

2006-04-11 Thread Leonardo dos Santos Goldim

   so, what i need to do to my bacula works with more than one client?

   tks
   Goldim

Ryan Novosielski wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm pretty sure that neither one is true. Hopefully I'm not wrong.
crosses fingers

 _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - User Support Spec. III
|$| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630


Leonardo dos Santos Goldim wrote:
 


mr. erich

i tried again to configure bacula on my server... i installed the newest
bacula's version and configure only one client (my own machine)...

until now it's work fine, i create and restore backup with no problems...

if i add a new cliente my problems start... looking your email i saw
that i need one catalog for each cliente, when i read the documentation
i realize i need one db for each catalog, is true?

tks
Goldim

Erich Prinz wrote:

   


Mr. Goldim,

Keep it simple.

If you need to separate machines for access control, consider using 
ACL directives in the bacula-dir.conf file and create a catalog for 
each client.


I'll leave it to you to read through the documentation on how to do 
this.


Erich

On Mar 17, 2006, at 8:26 AM, Leonardo dos Santos Goldim wrote:

 


hy guys,

i have bacula installed and running making backup of two machines 
(Smart08, Smart09), the backup generation is ok.
when i try to restore a backup for Smart09, bacula use the storage 
Smart08, not Smar09. when i restore Smart08, the proccess work fine.


why bacula always use Smart08 storage and not use the storage 
configured for each client?


sorry by the bad english, but y learning yet.

Tks
Goldim


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting 
language

that extends applications into web and mobile media. Attend the  live
webcast
and join the prime developer group breaking into this new coding 
territory!

http://sel.as-us.falkag.net/sel?
cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

   



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
 



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
   


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (MingW32)

iD8DBQFEO/w2mb+gadEcsb4RAt8wAJ95fR9w5KRF1hcmkpEGcjs43zxRAQCg0nEi
jT19ZmzKXK2YX2qUOTZbysM=
=SYRN
-END PGP SIGNATURE-



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
 




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restore more than one client

2006-04-11 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

For one, you need to explain what your problem is in the first place.
You have provided no error messages and no information on your
configuration.

  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - User Support Spec. III
 |$| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630


Leonardo dos Santos Goldim wrote:
so, what i need to do to my bacula works with more than one client?
 
tks
Goldim
 
 Ryan Novosielski wrote:
 
 I'm pretty sure that neither one is true. Hopefully I'm not wrong.
 crosses fingers
 
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - User Support Spec. III
 |$| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
 
 
 Leonardo dos Santos Goldim wrote:
  
 
 mr. erich

 i tried again to configure bacula on my server... i installed the newest
 bacula's version and configure only one client (my own machine)...

 until now it's work fine, i create and restore backup with no
 problems...

 if i add a new cliente my problems start... looking your email i saw
 that i need one catalog for each cliente, when i read the documentation
 i realize i need one db for each catalog, is true?

 tks
 Goldim

 Erich Prinz wrote:

   
 Mr. Goldim,

 Keep it simple.

 If you need to separate machines for access control, consider using
 ACL directives in the bacula-dir.conf file and create a catalog for
 each client.

 I'll leave it to you to read through the documentation on how to do
 this.

 Erich

 On Mar 17, 2006, at 8:26 AM, Leonardo dos Santos Goldim wrote:

 
 hy guys,

 i have bacula installed and running making backup of two machines
 (Smart08, Smart09), the backup generation is ok.
 when i try to restore a backup for Smart09, bacula use the storage
 Smart08, not Smar09. when i restore Smart08, the proccess work fine.

 why bacula always use Smart08 storage and not use the storage
 configured for each client?

 sorry by the bad english, but y learning yet.

 Tks
 Goldim


 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
 that extends applications into web and mobile media. Attend the  live
 webcast
 and join the prime developer group breaking into this new coding
 territory!
 http://sel.as-us.falkag.net/sel?
 cmd=lnkkid=110944bid=241720dat=121642
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users

   

 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
 that extends applications into web and mobile media. Attend the live
 webcast
 and join the prime developer group breaking into this new coding
 territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642

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

 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
 that extends applications into web and mobile media. Attend the live
 webcast
 and join the prime developer group breaking into this new coding
 territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
   



- ---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (MingW32)

iD8DBQFEPAPYmb+gadEcsb4RAgBzAJ0VwEUVwTv+kfGmToi80Ca12sNKWACfSuSw
/5ZLEj7/YbwcVeq3RETHWRw=
=R4oH
-END PGP SIGNATURE-



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list

Re: [Bacula-users] When is a tape Full?

2006-04-11 Thread Erik P. Olsen

Martin Simmons wrote:

On Mon, 10 Apr 2006 23:12:48 +0200, Erik P. Olsen [EMAIL PROTECTED] said:

Martin Simmons wrote:

On Sun, 09 Apr 2006 12:16:51 +0200, Erik P. Olsen [EMAIL PROTECTED] said:
I am infrequently getting tape full conditions at times when I did not expect 
it. My tapes are DDS-4 tapes and they are considered Full by bacula at various 
  capacities, for exampel:


21,112,841,569
  6,445,884,582
17,477,850,063
15,855,178,172

After the last volume ran full and mounting of the next empty volume it 
appended only 3,710,244,549 to it, an amount which I had thought could easily be 
squeezed into the full volume.


I don't understand what triggers the Full condition especially the 6GB volume 
is wierd since it shouldn't be full before approx. 20GB of data has been written 
to it.


I am trying to optimize the use of the tapes but this process is difficult to 
carry out when bacula determines the full condition at such different times. Are 
there anything I can do to ensure that the full condition becomes close to 20GB 
or do I have to live with this strange phenomenon?

Are you using hardware compression?

No, s/w compression. Do you recommend that I use h/w?


H/w compression on DDS-4 is a bit feeble, so it may be better to stick to s/w
compression if you have spare CPU cycles on the fd.

That's the reason I asked, because the h/w compressed size can sometimes be
larger than the uncompressed size, especially if you have both kinds of
compression switched on!


This is very interesting. I have to make my previous statement more precise! I 
am NOT using h/w compression at the moment but looking in the calendar I can see 
that I actually did use it at the time I had these errors. I dropped h/w 
compression because I couldn't see any effect of it. So I am back to the s/w 
solution and since then I have not had the error. However, the time is too short 
to make a general conclusion. Another problem I've had - also in the h/w 
compression period - was system freeze, only cure was power off/power on. It 
happened twice and I haven't seen it since.


I'll definitely remain at s/w compression and after a couple of weeks I should 
be able to conclude on this issue.


--
Regards,
Erik P. Olsen.



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] column file.markedid does not exist error

2006-04-11 Thread Kern Sibbald
On Tuesday 11 April 2006 21:00, Joe Park wrote:
 Can you tell me any consequences from this bug?  I'm testing bacula before
 using them in our production environment and would like to know if this is
 a show stopper.

In doing a Verify Catalog Job, the bug caused the names of missing files not 
to be printed in the output report.


 Thanks,

 Joe

 On 4/11/06, Kern Sibbald [EMAIL PROTECTED] wrote:
  On Monday 10 April 2006 21:33, Joe Park wrote:
   bacula ver: 1.38.6
   OS: FreeBSD 6.0
   DB: postgresql 8.1.3
   Changer/Tapedrive: Dell PowerVault 122T
  
  
   Hello,
  
   I have this error messeges repeated in system log file --
  
  
   Apr  9 03:40:47 localhost postgres[18833]: [1-1] ERROR:  column
   file.markedid does not exist
   Apr  9 06:38:20 localhost postgres[20267]: [1-1] ERROR:  column
   file.markedid does not exist
   Apr  9 10:04:23 localhost postgres[21200]: [1-1] ERROR:  column
   file.markedid does not exist
  
  
   The error coincides with bacula verify job end time.  I see that bacula
 
  db
 
   has file.mark column, but not file.markedid column.  Any help is
   appreciated.
 
  This is a bug (typo in SQL).  I have just fixed it.  Thanks for reporting
  it.
 
  The fix will be in 1.38.8
 
  --
  Best regards,
 
  Kern
 
(
/\
V_V

-- 
Best regards,

Kern

  (
  /\
  V_V


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] High memory usage when backing up

2006-04-11 Thread Alan Brown

On Tue, 11 Apr 2006, Eric Warnke wrote:


What you are seeing appears to be normal block device caching under
the linux kernel and nothing to worry about.



To explain:

buffers = i/o (disk) write buffers
cache = i/o (disk) read cache

These are dynamic. Linux works on the principle that if the memory isn't 
being used by software then it can be used for housekeeping.


As software demands increase, buffers and cache will decrease.


I'm noticing extremely heavy memory loads when running a large bacula
job.  The system running the fd and director processes spikes to
using all but about 18mb of the 5gb of memory installed.   If I sort
by memory usage in Top, no processes are using anywhere near the
missing memory, however the usage only spikes when I run a large
backup job ~100 GB) from this machine.


That's what I would expect.


 If I shut down bacula
completely, the memory loads don't go back down


It won't. See above.

free memory in Linux is the amount of ram not being used for i/o 
buffering or the programs themselves - if you are seeing large amounts of 
free memory after a few days of operation then you probably have more ram 
in the machine than it actually needs for the tasks it is performing.


AB



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Backup only to Hard Drive

2006-04-11 Thread Max Clark
Hi all,

I am interested in configuring a backup platform that will only backup
to the server's internal hard drive (in this case a 2TB filesystem).
Are there any pointers/configuration guides out there for this?

Thanks,
Max

--
 Max Clark
 http://www.clarksys.com


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] building without gconsole

2006-04-11 Thread RYAN M. vAN GINNEKEN
Hello I am tring to build bacula from src on fedora core 3 and do not want to 
build all the X windows stuff. My fedora box does not have X windows installed 
and i do not need/want the gconsole.  When i build with the command below it 
tries to build a bunch of stuff that requires alsa, esound, and others I do not 
want these. What do i need to do to stop bacula from building all these 
unwanted packages.

rpmbuild --rebuild --define 'build_fc3 1' --define 'build_mysql4 1' 
bacula-1.38.6-1.src.rpm


-- 
Computer King/CaNMail

http://www.computerking.ca http://www.canmail.org

Sales, Service, and Hosting
Email, Data, and Web Packages
Ask about web design specials

Affiliates
http://www.computerking.ca/pages/links/affiliates/affiliates.htm

Maybe Computer Science should be in the College of Theology. -- R. S. Barton 



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] building without gconsole

2006-04-11 Thread Eric Warnke
--define nobuild_gconsole 1Cheers,EricOn 4/11/06, RYAN M. vAN GINNEKEN [EMAIL PROTECTED]
 wrote:Hello I am tring to build bacula from src on fedora core 3 and do not want to build all the X windows stuff. My fedora box does not have X windows installed and i do not need/want the gconsole.When i build with the command below it tries to build a bunch of stuff that requires alsa, esound, and others I do not want these. What do i need to do to stop bacula from building all these unwanted packages.
rpmbuild --rebuild --define 'build_fc3 1' --define 'build_mysql4 1' bacula-1.38.6-1.src.rpm--Computer King/CaNMailhttp://www.computerking.ca 
http://www.canmail.orgSales, Service, and HostingEmail, Data, and Web PackagesAsk about web design specialsAffiliates
http://www.computerking.ca/pages/links/affiliates/affiliates.htmMaybe Computer Science should be in the College of Theology. -- R. S. Barton---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642___
Bacula-users mailing listBacula-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/bacula-users



Re: [Bacula-users] Backup only to Hard Drive

2006-04-11 Thread Greg Vickers
Hi,

hikari wrote:
 Max Clark wrote:
 
I am interested in configuring a backup platform that will only backup
to the server's internal hard drive (in this case a 2TB filesystem).
Are there any pointers/configuration guides out there for this?
 
   Just setup a file storage device in the Storage Daemon (bacula-sd.conf)
 
   Device {
 Name = FileStorage
 Media Type = File
 Archive Device = /path/to/backup/in
 ...
   }

This is something that I am in the process of setting up too. When you
define this Device, will Bacula (with the correct configuration) store
volumes in this location, i.e.:

#ls /mnt/backup
BackupVolume0001 BackupVolume0002 etc etc...

We are looking at using two external 100Gb USB HDDs as poor mans tapes
and swapping these HDDs each week (one goes off site.)

Thanks,
Greg


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Backup Type -- Can one skip differentials?

2006-04-11 Thread Mark Clarke

Hi Troy,


Here are the jobs and the schedule. thanks for the help.


Job {
 Name = Slain
 JobDefs = Job
 Write Bootstrap = /var/lib/bacula/slain.bsr
}


Schedule {
 Name = WeeklyCycle
 Run = Full 1st-5th on Sunday at 8:00pm
 Run = Incremental  on Mon-Sat at 10:00pm
}



Regards

Mark



Troy Daniels wrote:


Hi Mark,

Normally different levels are specified in the Schedule with something
like the

Schedule {
   Name = WeeklyCycle
   Run = Full Pool=slain_full_weekly Fri at 12:00
   Run = Incremental Sat-Thu
}


If this doesn't help, We'll need more information than you've provided
I'm afraid.

Including the Schedule definition and actual Job definition as a
minimum. JobDefs is a definition of Job Defaults, you need to show us
the Job section of your director config file.

Cheers,


Troy.




Mark Clarke wrote:


Hi all,

I am trying to setup a job schedule that does a full weekly backup and
then an incremental backup daily for 7 days. I have a job defined as

JobDefs {
  Name = Job
  Type = Backup
  Level = Incremental
  Client = slain-fd
  FileSet = Full Set
  Schedule = WeeklyCycle
  Storage = Deadlock_Disk2
  Messages = Standard
  Pool = default
  Full Backup Pool = slain_full_weekly
  Differential Backup Pool = slain_incremental_daily
  Priority = 10
}

The job runs the full ok but never runs the incremental job. Instead it
default to the default pool and starts doing differential backups. Why
is this? Am I missing something?
thanks


===
Cyber Designs - Put you business on the net
http://www.CyberDesigns.co.za

Jumping Bean - Your Java and Linux Experts
http://www.JumpingBean.co.za

Tel: 011-781 80 14
Fax: 011-781 80 15
===
Disclaimer

Any views or opinions presented in this email are solely those of the 
author and do not necessarily represent those of the company. 
Employees of Cyber Designs are expressly required not to make 
defamatory statements and not to infringe or authorize any 
infringement of copyright or any other legal right by email 
communications. Any such communication is contrary to company policy 
and outside the scope of the employment of the individual concerned. 
The company will not accept any liability in respect of such 
communication, and the employee responsible will be personally liable 
for any damages or other liability arising.



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting 
language
that extends applications into web and mobile media. Attend the live 
webcast
and join the prime developer group breaking into this new coding 
territory!

http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users





===
Cyber Designs - Put you business on the net
http://www.CyberDesigns.co.za

Jumping Bean - Your Java and Linux Experts
http://www.JumpingBean.co.za

Tel: 011-781 80 14
Fax: 011-781 80 15
===
Disclaimer

Any views or opinions presented in this email are solely those of the author 
and do not necessarily represent those of the company. Employees of Cyber 
Designs are expressly required not to make defamatory statements and not to 
infringe or authorize any infringement of copyright or any other legal right by 
email communications. Any such communication is contrary to company policy and 
outside the scope of the employment of the individual concerned. The company 
will not accept any liability in respect of such communication, and the 
employee responsible will be personally liable for any damages or other 
liability arising.


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Backup only to Hard Drive

2006-04-11 Thread Mark Clarke
dont forget to read 
http://www.bacula.org/dev-manual/Automated_Disk_Backup.html


It helped me alot. Especially how to make sure there are volumes that 
get recycled.



Greg Vickers wrote:


Hi,

hikari wrote:
 


Max Clark wrote:

   


I am interested in configuring a backup platform that will only backup
to the server's internal hard drive (in this case a 2TB filesystem).
Are there any pointers/configuration guides out there for this?
 


Just setup a file storage device in the Storage Daemon (bacula-sd.conf)

Device {
  Name = FileStorage
  Media Type = File
  Archive Device = /path/to/backup/in
  ...
}
   



This is something that I am in the process of setting up too. When you
define this Device, will Bacula (with the correct configuration) store
volumes in this location, i.e.:

#ls /mnt/backup
BackupVolume0001 BackupVolume0002 etc etc...

We are looking at using two external 100Gb USB HDDs as poor mans tapes
and swapping these HDDs each week (one goes off site.)

Thanks,
Greg


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

 



===
Cyber Designs - Put you business on the net
http://www.CyberDesigns.co.za

Jumping Bean - Your Java and Linux Experts
http://www.JumpingBean.co.za

Tel: 011-781 80 14
Fax: 011-781 80 15
===
Disclaimer

Any views or opinions presented in this email are solely those of the author 
and do not necessarily represent those of the company. Employees of Cyber 
Designs are expressly required not to make defamatory statements and not to 
infringe or authorize any infringement of copyright or any other legal right by 
email communications. Any such communication is contrary to company policy and 
outside the scope of the employment of the individual concerned. The company 
will not accept any liability in respect of such communication, and the 
employee responsible will be personally liable for any damages or other 
liability arising.


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users