[Bacula-users] Howto define pool for weekly tape change

2007-11-02 Thread Tom Meiner
Hi!

I have a Libra 8 DDS3 with 8 tapes. I defined the Pool with 6 tapes in
bacula-sd.conf and bconsole shows

list pools Automatically selected Catalog: MyCatalog Using Catalog
"MyCatalog"
++-+-+-+--+-+
| PoolId | Name| NumVols | MaxVols | PoolType | LabelFormat |
++-+-+-+--+-+
| 1  | Default | 7   | 7   | Backup   | *   |
++-+-+-+--+-+


In slot 8 I have my cleaning tape.

I want to switch between 2 tape sets of 7 tapes each.
 and labled them Set01-0001 to Set01-0007 and Set02-0001 to
Set02-0007

Each Friday I want to change the tapes and therefor I have created a
script to delete the last weeks tapes from the catalog, add the tape and
prune them.


automount on
delete volume=Set02-0001
yes
delete volume=Set02-0002
yes
delete volume=Set02-0003
yes
delete volume=Set02-0004
yes
delete volume=Set02-0005
yes
delete volume=Set02-0006
yes
delete volume=Set02-0007
yes
add
2
7
Set01-
1
1
yes
purge jobs volume=Set01-0001
purge jobs volume=Set01-0002
purge jobs volume=Set01-0003
purge jobs volume=Set01-0004
purge jobs volume=Set01-0005
purge jobs volume=Set01-0006
purge jobs volume=Set01-0007
quit



Is there a better solution? i.e with

 update slots scan

But how can I have all the tapes in the pool?

Tom

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Possible Database Corruption

2007-11-02 Thread Frank Sweetser
Bob Duman wrote:
> I can actually see all of the complete jobs through this morning with
> the ‘list jobs’ command.  I think the database is OK, but if anyone can
> help me understand what shows up in the “Terminated Jobs” listings, that
> would be great.

That info comes from the .state files which are handled directly by each
daemon (ie, each fd stores it's own fd.state file, etc).  That data that are
stored in the state files is purely informational only - you can safely blow
it all away or just ignore it without risking any operational problems.

-- 
Frank Sweetser fs at wpi.edu  |  For every problem, there is a solution that
WPI Senior Network Engineer   |  is simple, elegant, and wrong. - HL Mencken
GPG fingerprint = 6174 1257 129E 0D21 D8D4  E8A3 8E39 29E3 E2E8 8CEC

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Large file support not getting enabled

2007-11-02 Thread Vladimir Doisan
just add --enable-largefile to your ./configure


Chris Cameron wrote:
> First off, this is in OpenBSD 4.1.
> 
> I'm compiling Bacula 2.2.5 and I'm not able to get large file support 
> enabled.
> 
> Does anyone know what I need to do? I know OpenBSD supports large files, 
> and Bacula works fine with files under 2 gigs.
> 
> Below is some output:
> 
> 
> Compiling with:
> ./configure --prefix=/home/bacula --with-openssl --with-mysql
> 
> While compiling:
> checking for CFLAGS value to request large file support... no
> checking for LDFLAGS value to request large file support... no
> checking for LIBS value to request large file support... no
> checking for _FILE_OFFSET_BITS... 64
> checking for _LARGEFILE_SOURCE... 1
> checking for _LARGE_FILES... 1
> 
> 
> Configuration on Fri Nov  2 08:49:03 MDT 2007:
> 
>Host:   i386-unknown-openbsd4.1 -- openbsd 4.1
>Bacula version: 2.2.5 (09 October 2007)
>Source code location:   .
>Install binaries:   /home/bacula/sbin
>Install config files:   /home/bacula/etc
>Scripts directory:  /home/bacula/etc
>Archive directory:  /tmp
>Working directory:  /home/bacula/var/bacula/working
>PID directory:  /var/run
>Subsys directory:   /var/run/subsys
>Man directory:  /usr/share/man
>Data directory: /home/bacula/share
>C Compiler: gcc 3.3.5
>C++ Compiler:   /usr/bin/g++ 3.3.5
>Compiler flags:  -g -O2 -Wall -fno-strict-aliasing 
> -fno-exceptions -fno-rtti -pthread
>Linker flags:-O
>Libraries:  -pthread
>Statically Linked Tools:no
>Statically Linked FD:   no
>Statically Linked SD:   no
>Statically Linked DIR:  no
>Statically Linked CONS: no
>Database type:  MySQL
>Database lib:   -L/usr/local/lib/mysql -lmysqlclient_r -lz
>Database name:  bacula
>Database user:  bacula
> 
>Job Output Email:   [EMAIL PROTECTED]
>Traceback Email:[EMAIL PROTECTED]
>SMTP Host Address:  localhost
> 
>Director Port:  9101
>File daemon Port:   9102
>Storage daemon Port:9103
> 
>Director User:
>Director Group:
>Storage Daemon User:
>Storage DaemonGroup:
>File Daemon User:
>File Daemon Group:
> 
>SQL binaries Directory  /usr/local/bin
> 
>Large file support: no
>Bacula conio support:   yes -ltermcap
>readline support:   no
>TCP Wrappers support:   no
>TLS support:yes
>Encryption support: yes
>ZLIB support:   yes
>enable-smartalloc:  yes
>bat support:no
>enable-gnome:   no
>enable-bwx-console: no
>enable-tray-monitor:
>client-only:no
>build-dird: yes
>build-stored:   yes
>ACL support:no
>Python support: no
>Batch insert enabled:   yes
> 
> 
> 
> Any help would be appreciated.
> 
> Chris
> 
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Running Bacula with Virtual Machines! + partially blanking DVD+RW (trouble)

2007-11-02 Thread Hydro Meteor
On 11/1/07, Arno Lehmann <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> 01.11.2007 16:43,, Hydro Meteor wrote::
> > Hello all --
> >
> > I'm not sure how many others have run into this problem, but according
> > to the Bacula User's Guide, there are two ways to "blank" an unformatted
> > (fresh from the spindle) DVD disc (in my case I'm using / testing DVD+RW
> > discs):
> >
> > 1.) Not the entire disc:
> >
> > # dd if=/dev/zero bs=1024 count=512 | growisofs -Z
> /dev/xxx=/dev/fd/0
> >
> >
> >
> > 2.) The entire disc:
> >
> > # growisofs -Z /dev/xxx=/dev/zero
> >
> >
> ...
> > Getting back the aforementioned, what I find a bit strange however is
> > that partially blanking a new DVD+RW out of the box yields error for me,
> > as in (where /dev/cdrom is how Debian, as standard practice, see the
> > mapped SuperDrive on the Xserve):
> ...
> > However, if I formatted an entire DVD+RW disc, I had no problems getting
> > the Storage Daemon to complete a backup job writing to the fully blanked
> > DVD.
>
> Oh god... that is a really difficult question, I think. When I was
> working on the dvd-handler script, I tried lots of things. What you
> see dvd-handler doing is, basically, what I found worked for me.


Sorry to ask a painful question :-)  ... but in your answer, I have many
more times appreciation of what you must have gone through (the pain and the
suffering).

I worked with - if I recall correctly - three different DVD writer
> drives, DVD+R, DVD-R, DVD+RW, and DVD-RW. I juggled dozens of
> different disk around, and managed to make some unusable, some
> unreadable by some, but not all my, DVD drives, and so on.
>
> I also read lots and lots of stuff on DVD formats, the differences
> between + and - media, the different ways of formatting, and so on.
>
> In the end, I didn't understand anything :-) ,


heh! I can understand -- there's lots to collect. Also, you probably started
this project before you would have the benefits of community organized
information sources such as Wikipedia, true?

read through my notes,
> and implemented what worked in most of my test cases. For example, I
> found that to effectively blank a DVD for use in one drive, I needed a
> minimum size of data overwritten, while other drives (or the drivers
> handling them) accepted a disk as empty when only the first few
> sectors were blanked.
>
> > Question: how do DVD disc media vendors (TDK, Verbatim, et al) ship DVD
> > media?
>
> I have no idea :-)
>
> There is a difference between an unsed disk and a blanked or a
> formatted one. I don't recall the details now, but "Restricted
> Overwrite" was one example of how you can handle the same type of
> media in different ways...
>
> > I presume that they do not fill the bits on their DVDs with ASCII
> > NULL characters (which is what happens when utilizing the /dev/zero
> > device), true?
>
> I guess you're right there. The actual disk contents is probably
> simply invalid to all the interpretation layers above physical.
>
> If you want to know more, you might try to use the dvd-handler test
> command - I believe it reports an excerpt of the actual disk status.
> Naturally, dvd+rw-mediainfo, which is used by dvd-handler, has much
> more information to print.


Arno and friends, it was the dvd+rw-mediainfo (running in Debian as the
Guest Operating System under Parallels as a virtual machine) that gave me
the info which then gave me hints and clues. For example, I am using
TDK 4.7GB DVD+RW discs. When I rand the dvd+rw-mediainfo after
inserting a new TDK
DVD+RW out of the spindle, I got the following output:

$ dvd+rw-mediainfo /dev/cdrom
>

INQUIRY:[MATSHITA][DVD-R   UJ-85J  ][FDSA]
> GET [CURRENT] CONFIGURATION:
>  Mounted Media: 1Ah, DVD+RW
>  Media ID:  PHILIPS/041
>  Current Write Speed:   4.0x1385=5540KB/s
>  Write Speed #0:4.0x1385=5540KB/s
>  Write Speed #1:2.4x1385=3324KB/s
>  Speed Descriptor#0:01/2295103 [EMAIL PROTECTED]/s [EMAIL PROTECTED]
> =5540KB/s
>  Speed Descriptor#1:01/2295103 [EMAIL PROTECTED]/s [EMAIL PROTECTED]
> =3324KB/s
> READ DVD STRUCTURE[#0h]:
>  Media Book Type:   00h, DVD-ROM book [revision 0]
>  Legacy lead-out at:2295104*2KB=4700372992
> READ DISC INFORMATION:
>  Disc status:   blank
>  Number of Sessions:1
>  State of Last Session: empty
>  "Next" Track:  1
>  Number of Tracks:  1
> READ FORMAT CAPACITIES:
>  unformatted:   2295104*2048=4700372992
>  26h(0):2295104*2048=4700372992
> READ TRACK INFORMATION[#1]:
>  Track State:   blank
>  Track Start Address:   0*2KB
>  Free Blocks:   2295104*2KB
>  Track Size:2295104*2KB
> READ CAPACITY:  0*2048=0
>

The output correctly identifies my Apple Xserve's OEM DVD burner (their
"SuperDrive") as being from Matshita (I think a division of Panasonic).

It was 

Re: [Bacula-users] Large file support not getting enabled

2007-11-02 Thread Chris Cameron
Yeah, I found that when I was searching, but it doesn't make a difference.

But thanks

Vladimir Doisan wrote:
> just add --enable-largefile to your ./configure

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD+RW: is "reformatting" the same as "blanking"?

2007-11-02 Thread Hydro Meteor
Arno, et all:

Thanks for the pointers to these sites. The depths of the optical media
world is one that most people can usually take for granted but when one
finds oneself in the Bacula DVD business, then these depths are important to
understand (such as these terms).

Cheers,

-H

On 11/1/07, Arno Lehmann <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> 01.11.2007 17:55,, Hydro Meteor wrote::
> > Hello all --
> >
> > I'm trying to get my semantic understanding correct. The Bacula User's
> > Guide regarding DVD use states the following:
> >
> > Reformatting DVD+RW 10-20 times can apparently make the medium
> > unusable. Normally you should not have to format or reformat DVD+RW
> > media. If it is necessary, current versions of growisofs will do so
> > automatically.
> >
> >
> > Is "reformatting" the same as "blanking" (meaning, writing ASCII NULL
> > characters to, say, the entire disc if blanking the entire disc)?
> >
> > Thanks for any clarification on the terminology.
>
> Using some of my older notes, and my old friend google, the best thing
> I can offer are some links:
>
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg11301.html
>
> and
>
> http://fy.chalmers.se/~appro/linux/DVD+RW/
>
> on the latter page, go to the paragraph starting with "Formatting the
> BD and DVD+RW media."
>
> Hope this helps,
>
> Arno
>
> > Cheers.
> >
> >
> > 
> >
> >
> -
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> >
> >
> > 
> >
> > ___
> > Bacula-users mailing list
> > Bacula-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bacula-users
>
> --
> Arno Lehmann
> IT-Service Lehmann
> www.its-lehmann.de
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Possible Database Corruption

2007-11-02 Thread Bob Duman
I can actually see all of the complete jobs through this morning with the 'list 
jobs' command.  I think the database is OK, but if anyone can help me 
understand what shows up in the "Terminated Jobs" listings, that would be great.

Thanks,
Bob Duman
Senior Systems Engineer
Cleantech Group LLC
2250 Genoa Business Park Dr
Suite 130
Brighton, MI 48114-7372
(810) 224-4310 ext 7310
http://www.cleantech.com
mailto:[EMAIL PROTECTED]

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob Duman
Sent: Friday, November 02, 2007 10:26 AM
To: 'bacula-users@lists.sourceforge.net'
Subject: [Bacula-users] Possible Database Corruption

Last night our server room overheated and the system that Bacula run's on 
locked up.  Bacula was in the middle of a backup job waiting for a tape change 
when the system crashed.  Five backup jobs had already completed, it was on the 
6th and there were two more to complete after the tape was changed and the 6th 
job finished.  After restarting the system, MySQL and Bacula both started 
without any errors.

Now when I look at the status for the director and the clients in bconsole, it 
appears that there are missing jobs as follows:


1)  When I run 'status director', the latest date for terminated jobs in 
the list is October 30.  Jobs run every night so there should be terminated 
jobs from October 31, November 1, and the 5 that completed before the crash on 
November 2.

2)  When I run 'status client=' for each client, some of the clients show 
terminated jobs from no later than October 11, while others show October 11 and 
November 2 but nothing in between.  One of the clients shows all of the recent 
jobs.

Do I have a corrupted database due to the crash, or am I missing something here 
as to how to see these jobs?

Thanks,
Bob Duman
Senior Systems Engineer
Cleantech Group LLC
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Large file support not getting enabled

2007-11-02 Thread Chris Cameron
First off, this is in OpenBSD 4.1.

I'm compiling Bacula 2.2.5 and I'm not able to get large file support 
enabled.

Does anyone know what I need to do? I know OpenBSD supports large files, 
and Bacula works fine with files under 2 gigs.

Below is some output:


Compiling with:
./configure --prefix=/home/bacula --with-openssl --with-mysql

While compiling:
checking for CFLAGS value to request large file support... no
checking for LDFLAGS value to request large file support... no
checking for LIBS value to request large file support... no
checking for _FILE_OFFSET_BITS... 64
checking for _LARGEFILE_SOURCE... 1
checking for _LARGE_FILES... 1


Configuration on Fri Nov  2 08:49:03 MDT 2007:

   Host:   i386-unknown-openbsd4.1 -- openbsd 4.1
   Bacula version: 2.2.5 (09 October 2007)
   Source code location:   .
   Install binaries:   /home/bacula/sbin
   Install config files:   /home/bacula/etc
   Scripts directory:  /home/bacula/etc
   Archive directory:  /tmp
   Working directory:  /home/bacula/var/bacula/working
   PID directory:  /var/run
   Subsys directory:   /var/run/subsys
   Man directory:  /usr/share/man
   Data directory: /home/bacula/share
   C Compiler: gcc 3.3.5
   C++ Compiler:   /usr/bin/g++ 3.3.5
   Compiler flags:  -g -O2 -Wall -fno-strict-aliasing 
-fno-exceptions -fno-rtti -pthread
   Linker flags:-O
   Libraries:  -pthread
   Statically Linked Tools:no
   Statically Linked FD:   no
   Statically Linked SD:   no
   Statically Linked DIR:  no
   Statically Linked CONS: no
   Database type:  MySQL
   Database lib:   -L/usr/local/lib/mysql -lmysqlclient_r -lz
   Database name:  bacula
   Database user:  bacula

   Job Output Email:   [EMAIL PROTECTED]
   Traceback Email:[EMAIL PROTECTED]
   SMTP Host Address:  localhost

   Director Port:  9101
   File daemon Port:   9102
   Storage daemon Port:9103

   Director User:
   Director Group:
   Storage Daemon User:
   Storage DaemonGroup:
   File Daemon User:
   File Daemon Group:

   SQL binaries Directory  /usr/local/bin

   Large file support: no
   Bacula conio support:   yes -ltermcap
   readline support:   no
   TCP Wrappers support:   no
   TLS support:yes
   Encryption support: yes
   ZLIB support:   yes
   enable-smartalloc:  yes
   bat support:no
   enable-gnome:   no
   enable-bwx-console: no
   enable-tray-monitor:
   client-only:no
   build-dird: yes
   build-stored:   yes
   ACL support:no
   Python support: no
   Batch insert enabled:   yes



Any help would be appreciated.

Chris

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Possible Database Corruption

2007-11-02 Thread Bob Duman
Last night our server room overheated and the system that Bacula run's on 
locked up.  Bacula was in the middle of a backup job waiting for a tape change 
when the system crashed.  Five backup jobs had already completed, it was on the 
6th and there were two more to complete after the tape was changed and the 6th 
job finished.  After restarting the system, MySQL and Bacula both started 
without any errors.

Now when I look at the status for the director and the clients in bconsole, it 
appears that there are missing jobs as follows:


1)  When I run 'status director', the latest date for terminated jobs in 
the list is October 30.  Jobs run every night so there should be terminated 
jobs from October 31, November 1, and the 5 that completed before the crash on 
November 2.

2)  When I run 'status client=' for each client, some of the clients show 
terminated jobs from no later than October 11, while others show October 11 and 
November 2 but nothing in between.  One of the clients shows all of the recent 
jobs.

Do I have a corrupted database due to the crash, or am I missing something here 
as to how to see these jobs?

Thanks,
Bob Duman
Senior Systems Engineer
Cleantech Group LLC
<>-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Problems building RPM packages

2007-11-02 Thread Shon Stephens
All,
 I am trying to build bacula-2.0.3 rpms for RHEL4. I'm using
2.0.3because that is the version I'm running on my Solaris backup
server
(Blastwave packages are only at 2.0.3)

The only SRPM I was able to find is bacula-2.0.3-10.fc6.src.rpm. When I
attempt to rebuild the srpm for my distribution, I get this error

rpmbuild --rebuild --define "build_rhel4 1"

error: Failed build dependencies:
wxGTK-devel is needed by bacula-2.0.3-10.i386
sqlite-devel is needed by bacula-2.0.3-10.i386
latex2html is needed by bacula-2.0.3-10.i386

These dependencies are not available in RHEL until release 5. I don't want
to build the docs, I don't want to build the server, I just want to build a
bacula-client-2.0.3.rhel4.x86_64.rpm and .i386 rpm. I tried removing the
dependencies from the .spec file. This seems to work ok...except then it
just won't build. Basically its unzips the source in
/usr/src/redhat/BUILD/bacula-2.0.3, then creates a directory
/usr/src/redhat/BUILD/bacula-2.0.3/bacula-2.0.3/ and copies the source into
it for compilation. The build then fails because it can't locate
"./configure", which does exist and is in the right place. Personally I like
bacula, but this is just ridiculous.

 Can anyone help with either a correct procedure to produce these RPMS
for RHEL3/4, or provide me with bacula-client-2.0.3 rpms for these releases?
And yes, I've already read the readme and tried using the build_rpm.sh
script

Thanks,
Shon
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bat, console commands?

2007-11-02 Thread John Drescher
>  Oh dear!
>  I don't have a line that says anything, oops, oh yes i do. It was shrunk
> down to some dots.
>  i would not have thought to look there.
>
>  Thanks v much,
>
The reason why I knew to look there is that is the same functionality
as the wx-console that I have used for years.

John

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] rescue disc: any sucesses from client RPM?

2007-11-02 Thread Alan Brown

Has anyone sucessfully made a rescue disc from just the binary RPMs?


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Old versions of Bacula

2007-11-02 Thread Weber, Philip
Hi,

Does anyone know if it is possible to get hold of old versions of Bacula
source (or Solaris packages?).  I am struggling to get a File Daemon
compiled for Solaris 2.6.  It might be lack of intelligence on my part,
but it occurs to me that I might have more luck with old source.

(And for those who will comment on it, apologies for the HUGE email
trailer which my company will attach to this).

thanks, Phil
-
Egg is a trading name of the Egg group of companies which includes:
Egg Financial Intermediation Ltd (reg no 3828289) and Egg Banking
plc (reg no 2999842). Egg Banking plc and Egg Financial
Intermediation Ltd are authorised and regulated by the Financial
Services Authority (FSA) and are entered in the FSA register under
numbers 205621 and 309551 respectively. These members of the Egg
group are registered in England and Wales. Registered office:
Citigroup Centre, Canada Square, London E14 5LB.

This e-mail is confidential and for use by the addressee only. If
you are not the intended recipient of this e-mail and have received
it in error, please return the message to the sender by replying to
it and then delete it from your mailbox. Internet e-mails are not
necessarily secure. The Egg group of companies do not accept
responsibility for changes made to this message after it was sent.

Whilst all reasonable care has been taken to avoid the transmission
of viruses, it is the responsibility of the recipient to ensure
that the onward transmission, opening or use of this message and
any attachments will not adversely affect its systems or data. No
responsibility is accepted by the Egg group of companies in this
regard and the recipient should carry out such virus and other
checks as it considers appropriate. 

This communication does not create or modify any contract.


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Database location, and share status after 2.24 upgrade

2007-11-02 Thread Alan Brown
On Fri, 2 Nov 2007, Arno Lehmann wrote:

> That's something that has hit some of my customers, too. Everything
> looked ok, but the catalog backup was written to a new location, and
> the catalog backup didn't pick it up.

This is why I _always_ "diff" my config files after an update.


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD+RW "overwrites"

2007-11-02 Thread Hydro Meteor
On 11/1/07, John Drescher <[EMAIL PROTECTED]> wrote:
>
> > For those in Bacula DVD userland who are using DVD+RWs, it strikes me as
> if
> > 1,000 overwrites is really not all that bad. For example, if I have a
> > dedicated DVD+RW disc for incremental backups that I re-use (and blank
> out
> > completely) once every Wednesday (such as in between Full backups run
> once
> > every Sunday), that's about 52 Wednesdays per year (and about 1,000
> > read/write mounts gets me about 19 years). Unless of course one has to
> > conduct numerous restores from the Wednesday DVD+RW disc, how would this
> > "add up quickly"? Do Bacula sys admins who are using DVD+RW media re-use
> the
> > same discs for many days of the week ( e.g., appending incrementals to
> the
> > same disc for, say, an entire week or more)? I might be missing
> something as
> > I'm a bit bleary eyed from too much Bacula DVD testing today.
> >
> I use a lot of DVD+RW and I can say that with DVD players DVD+RW media
> becomes useless in less than 100 passes but this media is still good
> enough for data as long as you read it on the writer that burned it. I
> think the one thing that you are not considering here is that with
> bacula the whole dvd is not written in one pass and so it gets mounted
> a few times during the write operation. I believe this process will
> reduce this 1000 number significantly but I have never tested that.


John, thank you for sharing your experiences. Its a good reminder that 1,000
is probably quite liberal. I wonder if Kern (or whomever maintains the
Bacula User's Guide) would consider revising to incorporate your
experiences?

The good news is that for basic servers where DVD capacities are fine,
DVD+RWs are quite cheap at about $1 USD per disc.

Cheers,

-H


John
>
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Setting up autostart in SLES or SuSE

2007-11-02 Thread Ian Parker

I am sure that this may have been addressed at some point, but is there an easy 
way to set up a bacula-fd to autostart in SLES 10 or SuSE 10? Thanks in 
advance. for any information.


Ian



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] status storage

2007-11-02 Thread GDS.Marshall

Hello,

Linux 2.6.x
bacula 2.2.5 patched from sourceforge

I have checked the documentation, but can not find any reference to this. 
It appears a status storage is showing the wrong pool.  I have never had
this before.

I have just retired some old Media (purge and delete) and added some new
Media to the Pool Monthly, some to Pool Weekly and some to Pool Daily. 
>From a schedule point of view, today is a Daily day, and tomorrow a
Monthly (1st Sat).  I have mounted Media JDZ367 which is in Pool Monthly
for tomorrows backup, and the correct tape for tomorrow.

Would someone point me in the right direction as to why I am seeing Pool
Daily and not the correct pool for the media please?

Device status:
Autochanger "Autochanger" with devices:
   "DLT-V4" (/dev/nst0)
Device "DLT-V4" (/dev/nst0) is mounted with:
Volume:  JDZ367
Pool:Daily
Media type:  DLT-V4
Slot 2 is loaded in drive 0.
Total Bytes Read=129,024 Blocks Read=2 Bytes/block=64,512
Positioned at File=0 Block=0


In Use Volume status:
JDZ367 on device "DLT-V4" (/dev/nst0)
Reader=0 writers=0 reserved=0


Data spooling: 0 active jobs, 0 bytes; 43 total jobs, 11,936,072,411 max
bytes/job.
Attr spooling: 0 active jobs, 0 bytes; 43 total jobs, 23,468,083 max bytes.

*

Regards,

Spencer


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Howto define pool for weekly tape change

2007-11-02 Thread GDS.Marshall
On Fri, 2 November, 2007 11:39 am, Tom Meiner wrote:
> Hi!
>
> I have a Libra 8 DDS3 with 8 tapes. I defined the Pool with 6 tapes in
> bacula-sd.conf and bconsole shows
>
> list pools Automatically selected Catalog: MyCatalog Using Catalog
> "MyCatalog"
> ++-+-+-+--+-+
> | PoolId | Name| NumVols | MaxVols | PoolType | LabelFormat |
> ++-+-+-+--+-+
> | 1  | Default | 7   | 7   | Backup   | *   |
> ++-+-+-+--+-+
>
>
> In slot 8 I have my cleaning tape.
>
> I want to switch between 2 tape sets of 7 tapes each.
>  and labled them Set01-0001 to Set01-0007 and Set02-0001 to
> Set02-0007

Some one with more experience may correct me, but I would

Set MaxVols to 0 for the pool
Set VolRetention to 8 days for the tapes (could be 13 but as long as it is
greater than 7 you should be okay)

every seven days, eject all your tapes, insert your new ones, and do an
"update slots"  This will update bacula with which Volumes are loaded.

>
> Each Friday I want to change the tapes and therefor I have created a
> script to delete the last weeks tapes from the catalog, add the tape and
> prune them.
>
> 
> automount on
> delete volume=Set02-0001
> yes
> delete volume=Set02-0002
> yes
> delete volume=Set02-0003
> yes
> delete volume=Set02-0004
> yes
> delete volume=Set02-0005
> yes
> delete volume=Set02-0006
> yes
> delete volume=Set02-0007
> yes
> add
> 2
> 7
> Set01-
> 1
> 1
> yes
> purge jobs volume=Set01-0001
> purge jobs volume=Set01-0002
> purge jobs volume=Set01-0003
> purge jobs volume=Set01-0004
> purge jobs volume=Set01-0005
> purge jobs volume=Set01-0006
> purge jobs volume=Set01-0007
> quit
>
> 
>
> Is there a better solution? i.e with
>
>  update slots scan
>
> But how can I have all the tapes in the pool?
>
> Tom
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] New tape mount problem when previous tape exceeds max volume duration

2007-11-02 Thread Timo Neuvonen
I have a CentOS 5 system, running Bacula-2.2.4 with MySQL database, and 
Exabyte VXA-320 tape drive 1x10 1U autoloader.

I have a pool called "cycle", with a few tapes, and max volume duration 
setting of 35 days. So, after this time expires, the previous tape will be 
marked "used" although not full yet, and the oldest tape in the pool will be 
recycled.

However, the new tape won't be mounted properly, after the old tape had 
expired. This is what happens:
=
01-Nov 01:05 dogbert-dir: Start Backup JobId 215, 
Job=Backup-Dogbert.2007-11-01_01.05.00
01-Nov 01:05 dogbert-dir: Max configured use duration exceeded. Marking 
Volume "CYCL-004" as Used.
01-Nov 01:05 dogbert-dir: Recycled volume "CYCL-001"
01-Nov 01:05 dogbert-dir: Using Device "VXA320"
01-Nov 01:05 dogbert-sd: 3301 Issuing autochanger "loaded? drive 0" command.
01-Nov 01:05 dogbert-sd: 3302 Autochanger "loaded? drive 0", result is Slot 
4.
01-Nov 01:05 dogbert-sd: 3307 Issuing autochanger "unload slot 4, drive 0" 
command.
01-Nov 01:05 dogbert-sd: 3304 Issuing autochanger "load slot 1, drive 0" 
command.
01-Nov 01:06 dogbert-sd: 3305 Autochanger "load slot 1, drive 0", status is 
OK.
01-Nov 01:06 dogbert-sd: 3301 Issuing autochanger "loaded? drive 0" command.
01-Nov 01:06 dogbert-sd: 3302 Autochanger "loaded? drive 0", result is Slot 
1.
01-Nov 01:06 dogbert-sd: Backup-Dogbert.2007-11-01_01.05.00 Error: 
block.c:990 Read error on fd=6 at file:blk 0:0 on device "VXA320" 
(/dev/nst0). ERR=Input/output error.
01-Nov 01:06 dogbert-sd: 3301 Issuing autochanger "loaded? drive 0" command.
01-Nov 01:06 dogbert-sd: 3302 Autochanger "loaded? drive 0", result is Slot 
1.
01-Nov 01:06 dogbert-sd: 3301 Issuing autochanger "loaded? drive 0" command.
01-Nov 01:06 dogbert-sd: 3302 Autochanger "loaded? drive 0", result is Slot 
1.
01-Nov 01:06 dogbert-sd: Backup-Dogbert.2007-11-01_01.05.00 Error: 
block.c:990 Read error on fd=6 at file:blk 0:0 on device "VXA320" 
(/dev/nst0). ERR=Input/output error.
01-Nov 01:06 dogbert-sd: 3301 Issuing autochanger "loaded? drive 0" command.
01-Nov 01:06 dogbert-sd: 3302 Autochanger "loaded? drive 0", result is Slot 
1.
01-Nov 01:06 dogbert-sd: 3301 Issuing autochanger "loaded? drive 0" command.
01-Nov 01:06 dogbert-sd: 3302 Autochanger "loaded? drive 0", result is Slot 
1.
01-Nov 01:06 dogbert-sd: Backup-Dogbert.2007-11-01_01.05.00 Error: 
block.c:990 Read error on fd=6 at file:blk 0:0 on device "VXA320" 
(/dev/nst0). ERR=Input/output error.
01-Nov 01:06 dogbert-sd: 3301 Issuing autochanger "loaded? drive 0" command.
01-Nov 01:06 dogbert-sd: 3302 Autochanger "loaded? drive 0", result is Slot 
1.
01-Nov 01:06 dogbert-sd: 3301 Issuing autochanger "loaded? drive 0" command.
01-Nov 01:06 dogbert-sd: 3302 Autochanger "loaded? drive 0", result is Slot 
1.
01-Nov 01:06 dogbert-sd: Backup-Dogbert.2007-11-01_01.05.00 Error: 
block.c:990 Read error on fd=6 at file:blk 0:0 on device "VXA320" 
(/dev/nst0). ERR=Input/output error.
01-Nov 01:06 dogbert-sd: 3301 Issuing autochanger "loaded? drive 0" command.
01-Nov 01:06 dogbert-sd: 3302 Autochanger "loaded? drive 0", result is Slot 
1.
01-Nov 01:06 dogbert-sd: 3301 Issuing autochanger "loaded? drive 0" command.
01-Nov 01:06 dogbert-sd: 3302 Autochanger "loaded? drive 0", result is Slot 
1.
01-Nov 01:06 dogbert-sd: Backup-Dogbert.2007-11-01_01.05.00 Error: 
block.c:990 Read error on fd=6 at file:blk 0:0 on device "VXA320" 
(/dev/nst0). ERR=Input/output error.
01-Nov 01:06 dogbert-sd: Please mount Volume "CYCL-001" or label a new one 
for:
Job:  Backup-Dogbert.2007-11-01_01.05.00
Storage:  "VXA320" (/dev/nst0)
Pool: Cycle
Media type:   VXA3
01-Nov 02:06 dogbert-sd: Please mount Volume "CYCL-001" or label a new one 
for:
Job:  Backup-Dogbert.2007-11-01_01.05.00
Storage:  "VXA320" (/dev/nst0)
Pool: Cycle
Media type:   VXA3
01-Nov 04:05 dogbert-dir: Backup-Dogbert.2007-11-01_01.05.00 Fatal error: 
Max wait time exceeded. Job canceled.
=

Trying to start the job another time manually results in a similar 
situation.
Mount- command from the bconsole (before the job is cancelled) repetitively 
results in:
=
01-Nov 15:58 dogbert-sd: 3301 Issuing autochanger "loaded? drive 0" command.
01-Nov 15:58 dogbert-sd: 3302 Autochanger "loaded? drive 0", result is Slot 
1.
01-Nov 15:58 dogbert-sd: 3301 Issuing autochanger "loaded? drive 0" command.
01-Nov 15:58 dogbert-sd: 3302 Autochanger "loaded? drive 0", result is Slot 
1.
01-Nov 15:58 dogbert-sd: Backup-Dogbert.2007-11-01_15.53.16 Error: 
block.c:990 Read error on fd=6 at file:blk 0:0 on device "VXA320" 
(/dev/nst0). ERR=Input/output error.
01-Nov 15:58 dogbert-sd: Please mount Volume "CYCL-001" or label a new one 
for:
Job:  Backup-Dogbert.2007-11-01_15.53.16
Storage:  "VXA320" (/dev/nst0)
Pool: Cycle
Media type:   VXA3
=

Finally, typing commands
- release
- mount
makes the tape usable to bacula.

This has happened now at least 3 tim

Re: [Bacula-users] website 404's

2007-11-02 Thread Kern Sibbald
On Friday 02 November 2007 02:26, Dan Langille wrote:
> On 2 Nov 2007 at 14:00, John Huttley wrote:
> > for the link on autochangers
> >
> >
> >   Not Found
> >
> > The requested URL /dev-manual/Supported_Autochangers.html was not
> > found on this server.
> >
> > --
> > -- Apache/1.3.31 Server at bacula.org Port 80
> >
> >
> >
> >
> > for the link on tape drives
> >
> >
> >   Not Found
> >
> > The requested URL /dev-manual/Supported_Tape_Drives.html was not found
> > on this server.
> >
> > --
> > -- Apache/1.3.31 Server at bacula.org Port 80
>
> It appears all the dev-manual is missing.

Yes, the disk is full not because of Bacula so I am unable to upload anything.  
 
I am working on moving the web site.

>
> Try the release manual instead.

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DVD+RW "overwrites" DVD RAM

2007-11-02 Thread John Huttley
I'm sorry,
but some months back I put a bug report into the linux system about DVD-RAM.
Its appalling. Like a 400Mb linux source tree takes about 30 mins.

Maybe if you can write to it outside of the context of a  filesystem, 
you can get some results.

--john


Eric Böse-Wolf wrote:
> Hello Hydro, hello John,
>
> "John Drescher" <[EMAIL PROTECTED]> writes:
>
>   
>>> Do Bacula sys admins who are using DVD+RW media re-use the same discs
>>> for many days of the week ( e.g., appending incrementals to the same
>>> disc for, say, an entire week or more)? I might be missing something
>>> as I'm a bit bleary eyed from too much Bacula DVD testing today.
>>>
>>>   
>> I use a lot of DVD+RW and I can say that with DVD players DVD+RW media
>> 
>
> I only wanted to remind you of the possibility to use DVD-RAM, they
> should be much more reliable for such use cases.
>
> Yours sincerely,
>
> Eric Böse-Wolf
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>   

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Odd Output From Commands...

2007-11-02 Thread Dep, Khushil (GE Money)
Can someone tell me why thse two commands (list clients and status) are
providing different results?

*list clients
+--+--+---+--+
| ClientId | Name | FileRetention | JobRetention |
+--+--+---+--+
|1 | MigWebSSCbkp1-fd |15,552,000 |   15,552,000 |
|2 | migwebsscswipdb-fd   | 2,592,000 |   15,552,000 |
|3 | DefaultClient|   172,800 |  172,800 |
|4 | n003-000-000-000-fd  | 2,592,000 |   15,552,000 |
|5 | oracle.gemoneybank.it-fd |15,552,000 |   15,552,000 |
|6 | sscchbpdb01-fd   |15,552,000 |   15,552,000 |
|7 | MIGWEBSSCSHRPDB01-fd |15,552,000 |   15,552,000 |
|8 | MIGWEBSSCSHRPDB04-fd |15,552,000 |   15,552,000 |
|9 | MIGWEBSSCSHRPDB02-fd |15,552,000 |   15,552,000 |
|   10 | wsscukdb-fd  |15,552,000 |   15,552,000 |
|   11 | migwebssctadb01-fd   |15,552,000 |   15,552,000 |
|   12 | WSSCHQPDBEBIZTK1-fd  |15,552,000 |   15,552,000 |
|   13 | nevis-wat-NG-fd  |   172,800 |  172,800 |
+--+--+---+--+


*status
Status available for:
 1: Director
 2: Storage
 3: Client
 4: All
Select daemon type for status (1-4): 3
The defined Client resources are:
 1: DefaultClient
 2: MigWebSSCbkp1-fd
 3: oracle.gemoneybank.it-fd
 4: sscchbpdb01-fd
 5: MIGWEBSSCSHRPDB01-fd
 6: MIGWEBSSCSHRPDB04-fd
 7: MIGWEBSSCSHRPDB02-fd
 8: wsscukdb-fd
 9: WSSCHQPDBEBIZTK1-fd
10: migwebssctadb01-fd
11: Thomasapp-13-fd
12: Thomasapp-14-fd
13: PortalApp-fd
14: back.gemoney.ru-fd
15: MIGWEBSSCUKUPWA03-fd
16: MIGWEBSSCUKUPWA04-fd
17: MIGWEBSSCUKUPWA05-fd
18: SSCSPPWA01-fd
19: SSCSPPWA02-fd
20: groschen-wat-NG-fd
21: nepal-wat-NG-fd
22: nevis-wat-NG-fd

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula-fd hangs on ClientRunAfterJob

2007-11-02 Thread Eric Bollengier
On Thursday 01 November 2007 22:22:40 Dane Miller wrote:
> Eric Bollengier wrote:
> > IHMO, i think that the script doesn't close stderr, stdout and stdin
> > properly.
>
> Hey you're right!  stderr is the culprit here.  The following Client Run
> After Job script works around the problem:
>
> #!/bin/sh
> # AfterScript.sh
> /usr/local/etc/rc.d/mysql-server start 2> /dev/null
>
> It might be an issue with mysql's launcher script mysqld_safe. I'll look
> into it a bit more.
>
> But why does this cause bacula-fd to hang?

You have the same behaviour in every programs that run commands...
(I have this in ssh sessions for example)

Bacula is reading stdout/stderr to get output commands, and if they are
not closed properly (at the end of the script for example), bacula will wait
forever.

Bye

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] continuation tapes

2007-11-02 Thread Craig White
I am a bit befuddled.

I have a 'Full' backup which consists of 4 jobs but it extends onto 2
tapes.

the Pool permits 4 jobs
  Maximum Volume Jobs = 4
  Volume Retention = 19d
  Volume Use Duration = 4d

The first 2 1/2 jobs are written to the first tape and the status is
marked 'Full'  - so far so good

The balance of the 3rd and the whole 4th job are written to the second
tape, the 'Full' backup is completed, tape ejected and the the status is
marked 'Append' but I expected it to be marked as 'Used'

Obviously I don't want to have to manually change the volume status to
'Used', what settings am I missing to have this tape used until it's
time in the rotation comes up again (3 weeks)

Craig

*list media pool=ThursdayPool
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
+-+---+---+-+-+--+--+-+--+---+---+-+
| MediaId | VolumeName| VolStatus | Enabled | VolBytes|
VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType |
LastWritten |
+-+---+---+-+-+--+--+-+--+---+---+-+
|  10 | 1_Friday_Week_3   | Append|   1 |  39,130,656,768 |
41 |1,641,600 |   1 |0 | 0 | LTO   | 2007-11-02
10:50:33 |
|  11 | 1_Thursday_Week_3 | Full  |   1 | 130,561,191,936 |
132 |1,641,600 |   1 |0 | 0 | LTO   | 2007-11-02
03:30:19 |
+-+---+---+-+-+--+--+-+--+---+---+-+



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Setting up autostart in SLES or SuSE

2007-11-02 Thread Carlos Cristóbal Sabroe Yde
El Vie 02 Nov 2007, Ian Parker escribió:
> I am sure that this may have been addressed at some point, but is there an
> easy way to set up a bacula-fd to autostart in SLES 10 or SuSE 10? Thanks
> in advance. for any information.
>
>
> Ian

Hi, I enclose my init script (tested on openSUSE 10.0, 10.1, 10.2 & 10.3).

For the clients (FD alone) I ise the same, but without "mysql" on  
the "Required-Start" header line.

To install it: 
- copy it in the scripts/ directory of the bacula installation 
(eg. /bacula/scripts)

# chmod 750 /bacula/scripts/bacula-suse
# cd /etc/init.d
# ln -s /bacula/scripts/bacula-suse bacula
# insserv bacula

To uninstall it:
# insserv -r bacula

Hope it helps.

Cheers!
-- 
Cristóbal Sabroe Yde
[EMAIL PROTECTED]
Tel.++54 358 4676183

Universidad Nacional de Río Cuarto
Soporte Técnico - Centro de Cómputos
Ruta 36 km. 601
X5804BYA - Rí­o Cuarto, Córdoba
Argentina


bacula-suse
Description: application/shellscript
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [hugin-ptx] Re: Hugin version numbering

2007-11-02 Thread Rich
On 2007.11.02. 18:25, Peter Crowley wrote:
> 
> On Nov 1, 5:25 pm, Yuv <[EMAIL PROTECTED]> wrote:
>>  I would suggest using an even minor for
>> production releases and an odd minor for test releases, like the Linux
>> kernel does.
>> Yuv
> 
> If we do evens and odds then would we have two branches, one stable
> and another unstable and switch back and forth between them?  With
> evens and odds you could conceivably have the scenario of 7.6 with new
> features followed by 6.4 as a bug fix to the stable version without
> the new features.

first number is rarely used for that, it's usually second one.
it would mean using 0.8.z as a release branch.
as soon as development get's ready to start releasing 
alphas/betas/whatever, those are not released as "0.9 beta 18", but as 
0.9.z. next stable release thus is 0.10.0

this does not require supporting both branches separately, but gives an 
easy way to do so, if desired.

as for actual numbering, modeling it after a disfunctional installer 
doesn't seem a good idea.

> I'm very comfortable with a single development chain.  If we continue
> with a single chain then the evens and odds mean we release 8.0 and
> immediately begin development on 9.1.  Other than burning through the
> numbers faster I see no real downside.  But I'm also not sure what the
> benefit would be.
> -Peter
-- 
  Rich

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] scsi problems

2007-11-02 Thread Michael Galloway
ok, i'd like to revisit this issue. i changed scsi cards and i still
get scsi crashes from btape test command. new card is adaptec 29320:

03:06.0 SCSI storage controller: Adaptec ASC-29320A U320 (rev 10)

i spent the morning tar onto and off the LTO-4 drive:

[5:0:15:0]   tapeIBM  ULTRIUM-TD4  7950  /dev/st0

with no issues. then i erased the tape and started with btape again:

./btape -c bacula-sd.conf /dev/nst0
Tape block granularity is 1024 bytes.
btape: butil.c:285 Using device: "/dev/nst0" for writing.
btape: btape.c:368 open device "LTO4" (/dev/nst0): OK
*test

=== Write, rewind, and re-read test ===

I'm going to write 1000 records and an EOF
then write 1000 records and an EOF, then rewind,
and re-read the data to verify that it is correct.

This is an *essential* feature ...

btape: btape.c:827 Wrote 1000 blocks of 64412 bytes.
btape: btape.c:501 Wrote 1 EOF to "LTO4" (/dev/nst0)
btape: btape.c:843 Wrote 1000 blocks of 64412 bytes.
btape: btape.c:501 Wrote 1 EOF to "LTO4" (/dev/nst0)
btape: btape.c:852 Rewind OK.
1000 blocks re-read correctly.

hangs there with this in the dmesg log:

dmesg
scsi5:A:15: no active SCB for reconnecting target - issuing BUS DEVICE RESET
SAVED_SCSIID == 0xf7, SAVED_LUN == 0x0, REG0 == 0x ACCUM = 0xc0
SEQ_FLAGS == 0xc0, SCBPTR == 0xc0, BTT == 0x, SINDEX == 0x1c0
SELID == 0xf0, SCB_SCSIID == 0x0, SCB_LUN == 0x0, SCB_CONTROL == 0x0
SCSIBUS[0] == 0x2, SCSISIGI == 0xc6
SXFRCTL0 == 0x88
SEQCTL0 == 0x0
>> Dump Card State Begins <
scsi5: Dumping Card State at program address 0x161 Mode 0x33
Card was paused
INTSTAT[0x0] SELOID[0xf] SELID[0xf0] HS_MAILBOX[0x0] 
INTCTL[0x80] SEQINTSTAT[0x0] SAVED_MODE[0x11] DFFSTAT[0x33] 
SCSISIGI[0xc6] SCSIPHASE[0x20] SCSIBUS[0x2] LASTPHASE[0xc0] 
SCSISEQ0[0x0] SCSISEQ1[0x12] SEQCTL0[0x0] SEQINTCTL[0x0] 
SEQ_FLAGS[0xc0] SEQ_FLAGS2[0x0] QFREEZE_COUNT[0xfe] 
KERNEL_QFREEZE_COUNT[0xfe] MK_MESSAGE_SCB[0xff00] 
MK_MESSAGE_SCSIID[0xff] SSTAT0[0x2] SSTAT1[0x19] 
SSTAT2[0x0] SSTAT3[0x0] PERRDIAG[0x0] SIMODE1[0xac] 
LQISTAT0[0x0] LQISTAT1[0x0] LQISTAT2[0x0] LQOSTAT0[0x0] 
LQOSTAT1[0x0] LQOSTAT2[0x0] 

SCB Count = 4 CMDS_PENDING = 1 LASTSCB 0x CURRSCB 0x3 NEXTSCB 0x0
qinstart = 56099 qinfifonext = 56099
QINFIFO:
WAITING_TID_QUEUES:
Pending list:
  3 FIFO_USE[0x0] SCB_CONTROL[0x64] SCB_SCSIID[0xf7] 
Total 1
Kernel Free SCB list: 2 1 0 
Sequencer Complete DMA-inprog list: 
Sequencer Complete list: 
Sequencer DMA-Up and Complete list: 
Sequencer On QFreeze and Complete list: 


scsi5: FIFO0 Free, LONGJMP == 0x80ff, SCB 0x0
SEQIMODE[0x3f] SEQINTSRC[0x0] DFCNTRL[0x0] DFSTATUS[0x89] 
SG_CACHE_SHADOW[0x2] SG_STATE[0x0] DFFSXFRCTL[0x0] 
SOFFCNT[0x0] MDFFSTAT[0x5] SHADDR = 0x00, SHCNT = 0x0 
HADDR = 0x00, HCNT = 0x0 CCSGCTL[0x10] 

scsi5: FIFO1 Free, LONGJMP == 0x81f2, SCB 0x3
SEQIMODE[0x3f] SEQINTSRC[0x0] DFCNTRL[0x4] DFSTATUS[0x89] 
SG_CACHE_SHADOW[0x2] SG_STATE[0x0] DFFSXFRCTL[0x0] 
SOFFCNT[0x0] MDFFSTAT[0x5] SHADDR = 0x00, SHCNT = 0x0 
HADDR = 0x00, HCNT = 0x0 CCSGCTL[0x10] 
LQIN: 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 
0x0 0x0 
scsi5: LQISTATE = 0x0, LQOSTATE = 0x0, OPTIONMODE = 0x52
scsi5: OS_SPACE_CNT = 0x20 MAXCMDCNT = 0x0
scsi5: SAVED_SCSIID = 0x0 SAVED_LUN = 0x0
SIMODE0[0xc] 
CCSCBCTL[0x4] 
scsi5: REG0 == 0x, SINDEX = 0x1c0, DINDEX = 0x1be
scsi5: SCBPTR == 0xc0, SCB_NEXT == 0xff00, SCB_NEXT2 == 0x0
CDB c0 0 0 0 0 0
STACK: 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
< Dump Card State Ends >>

so, in the end i cannot make a successful btape test run with this LTO-4 drive
with two different scsi cards. i guess my question is, is this a bacula btape 
issue or an LTO or spectralogic scsi issue?

-- michael


On Mon, Oct 29, 2007 at 09:43:09PM -0400, Michael Galloway wrote:
> seem to be having some scsi problems with btape test. this test is with
> a spectra T50/LTO-4 attached via an LSI LSIU320 controller. i ran 100GB
> of data onto the drive with tar with no issue. but when i run this:
> 
> ./btape -c bacula-sd.conf /dev/nst0
> 
> test
> 
> i get:
> 
> *test
> 
> === Write, rewind, and re-read test ===
> 
> I'm going to write 1000 records and an EOF
> then write 1000 records and an EOF, then rewind,
> and re-read the data to verify that it is correct.
> 
> This is an *essential* feature ...
> 
> btape: btape.c:827 Wrote 1000 blocks of 64412 bytes.
> btape: btape.c:501 Wrote 1 EOF to "LTO4" (/dev/nst0)
> btape: btape.c:843 Wrote 1000 blocks of 64412 bytes.
> btape: btape.c:501 Wrote 1 EOF to "LTO4" (/dev/nst0)
> btape: btape.c:852 Rewind OK.
> 1000 blocks re-read correctly.
> 29-Oct 21:27 btape JobId 0: Error: block.c:995 Read error on fd=3 at file:blk 
> 0:1000 on device "LTO4" (/dev/nst0). ERR=No such device or address.
> btape: btape.c:864 Read block 1001 failed! ERR=No such device or address
> 
> and i the kernel ring buffer log:
> 
> st0: Block limits 1 - 16777215 bytes.
> mptbase: ioc0: LogInfo(0x11010f00): F/W: bug! MID not found
> mptbase: 

Re: [Bacula-users] status storage

2007-11-02 Thread John Drescher
On 11/2/07, GDS.Marshall <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> Linux 2.6.x
> bacula 2.2.5 patched from sourceforge
>
> I have checked the documentation, but can not find any reference to this.
> It appears a status storage is showing the wrong pool.  I have never had
> this before.
>
I have seen this several times and for me it caused other problems.
This was is bug and I believe it was fixed in bacula 2.3.X which is
the current svn version. As for a workaround restarting the director
usually fixes this.


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

John

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] continuation tapes

2007-11-02 Thread John Drescher
On 11/2/07, Craig White <[EMAIL PROTECTED]> wrote:
> I am a bit befuddled.
>
> I have a 'Full' backup which consists of 4 jobs but it extends onto 2
> tapes.
>
> the Pool permits 4 jobs
>   Maximum Volume Jobs = 4
>   Volume Retention = 19d
>   Volume Use Duration = 4d
>
I believe "Maximum Volume Jobs" here will allow at most 4 jobs to a
single volume and since there are only 2 jobs written to the last
volume it can hold 2 more.

John

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] New tape mount problem when previous tape exceeds max volume duration

2007-11-02 Thread Arno Lehmann
Hi,

02.11.2007 11:10,, Timo Neuvonen wrote::
> I have a CentOS 5 system, running Bacula-2.2.4 with MySQL database, and 
> Exabyte VXA-320 tape drive 1x10 1U autoloader.

Hint no. 1: Upgrade to 2.2.5 (or newer). I saw similar problems at a 
customer, and I believe (not yet confirmed in an organized way) that 
hese problems vanished after their upgrade.

> I have a pool called "cycle", with a few tapes, and max volume duration 
> setting of 35 days. So, after this time expires, the previous tape will be 
> marked "used" although not full yet, and the oldest tape in the pool will be 
> recycled.
> 
> However, the new tape won't be mounted properly, after the old tape had 
> expired. This is what happens:
> =
> 01-Nov 01:05 dogbert-dir: Start Backup JobId 215, 
> Job=Backup-Dogbert.2007-11-01_01.05.00
> 01-Nov 01:05 dogbert-dir: Max configured use duration exceeded. Marking 
> Volume "CYCL-004" as Used.
> 01-Nov 01:05 dogbert-dir: Recycled volume "CYCL-001"
> 01-Nov 01:05 dogbert-dir: Using Device "VXA320"
> 01-Nov 01:05 dogbert-sd: 3301 Issuing autochanger "loaded? drive 0" command.
> 01-Nov 01:05 dogbert-sd: 3302 Autochanger "loaded? drive 0", result is Slot 
> 4.
> 01-Nov 01:05 dogbert-sd: 3307 Issuing autochanger "unload slot 4, drive 0" 
> command.
> 01-Nov 01:05 dogbert-sd: 3304 Issuing autochanger "load slot 1, drive 0" 
> command.
> 01-Nov 01:06 dogbert-sd: 3305 Autochanger "load slot 1, drive 0", status is 
> OK.
> 01-Nov 01:06 dogbert-sd: 3301 Issuing autochanger "loaded? drive 0" command.
> 01-Nov 01:06 dogbert-sd: 3302 Autochanger "loaded? drive 0", result is Slot 
> 1.
> 01-Nov 01:06 dogbert-sd: Backup-Dogbert.2007-11-01_01.05.00 Error: 
> block.c:990 Read error on fd=6 at file:blk 0:0 on device "VXA320" 
> (/dev/nst0). ERR=Input/output error.
...
> Any ideas what is causing this / how to make things run more smoothly?

Not really... I never needed to investigate further (which in itself 
is interesting :-) but only worked around it. See below.

> This is unfortunately slow to debug, since the problem appears about once in 
> a month...

If you're stuck in such a situation, try the following:
- umount the device from bconsole.
- on the shell (or from the library's control panel) unload the tape 
currently loaded.
- make sure a usable tape for the job in question is available in the 
autochanger.
- in bconsole, mount the device from the slot you expect to be used.
- check if the job is running.

In my case, this worked, and was easier done than trying to analyze 
the problem, especially as the upgrade to 2.2.5 was already scheduled.

Arno

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Howto define pool for weekly tape change

2007-11-02 Thread Arno Lehmann
Hi,

02.11.2007 13:28,, GDS.Marshall wrote::
> On Fri, 2 November, 2007 11:39 am, Tom Meiner wrote:
>> Hi!
>>
>> I have a Libra 8 DDS3 with 8 tapes. I defined the Pool with 6 tapes in
>> bacula-sd.conf and bconsole shows
>>
>> list pools Automatically selected Catalog: MyCatalog Using Catalog
>> "MyCatalog"
>> ++-+-+-+--+-+
>> | PoolId | Name| NumVols | MaxVols | PoolType | LabelFormat |
>> ++-+-+-+--+-+
>> | 1  | Default | 7   | 7   | Backup   | *   |
>> ++-+-+-+--+-+
>>
>>
>> In slot 8 I have my cleaning tape.
>>
>> I want to switch between 2 tape sets of 7 tapes each.
>>  and labled them Set01-0001 to Set01-0007 and Set02-0001 to
>> Set02-0007
> 
> Some one with more experience may correct me, but I would
> 
> Set MaxVols to 0 for the pool
> Set VolRetention to 8 days for the tapes (could be 13 but as long as it is
> greater than 7 you should be okay)
> 
> every seven days, eject all your tapes, insert your new ones, and do an
> "update slots"  This will update bacula with which Volumes are loaded.

Yup, that sounds good.

>> Each Friday I want to change the tapes and therefor I have created a
>> script to delete the last weeks tapes from the catalog, add the tape and
>> prune them.

This is a dangerous thing to do, as you lose the ability to restore 
from the existing volumes. Not what a backup is intended to be used for.

...
>> Is there a better solution? i.e with
>>
>>  update slots scan
>>
>> But how can I have all the tapes in the pool?

Not really a problem, as long as you manage the volumes manually 
anyway. Just make sure there are usable volumes in the autoloader - 
these will be preferred.

You could refine the above strategy by disabling the volumes currently 
not loaded, but as long as these are still in their retention periods 
and marked as "Full" or "Used" they won't be recycled anyway.

Arno

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Possible Database Corruption

2007-11-02 Thread Arno Lehmann
Hi,

02.11.2007 15:25,, Bob Duman wrote::
> Last night our server room overheated and the system that Bacula
> run's on locked up.  Bacula was in the middle of a backup job
> waiting for a tape change when the system crashed.  Five backup
> jobs had already completed, it was on the 6th and there were two
> more to complete after the tape was changed and the 6th job
> finished.  After restarting the system, MySQL and Bacula both
> started without any errors.

Good start at least...

> Now when I look at the status for the director and the clients in
> bconsole, it appears that there are missing jobs as follows:
> 
> 
> 1)  When I run 'status director', the latest date for
> terminated jobs in the list is October 30.  Jobs run every night so
> there should be terminated jobs from October 31, November 1, and
> the 5 that completed before the crash on November 2.
> 
> 2)  When I run 'status client=' for each client, some of the
> clients show terminated jobs from no later than October 11, while
> others show October 11 and November 2 but nothing in between.  One
> of the clients shows all of the recent jobs.

Ignore that information - it's from the state files, and these 
probably are not up to date after a server crash.

> Do I have a corrupted database due to the crash, or am I missing
> something here as to how to see these jobs?

Try a catalog query, in the simplest case for all the jobs from a client.

Using SQL, you could also print a list of each job on all the clients 
that finished successfull.

In general, I find that simply letting Bacula decide what to do is 
sufficient - you might skip one job, but that's about the worst thing 
that could happen.

To be on the safe side, I'd suggest to run a dbcheck on your catalog 
to ensure the catalogues internal structure is ok - the database can't 
detect problems there.

Arno

> Thanks, Bob Duman Senior Systems Engineer Cleantech Group LLC
> 
> 
> 
> 
> 
> -
>  This SF.net email is sponsored by: Splunk Inc. Still grepping
> through log files to find problems?  Stop. Now Search log events
> and configuration files using AJAX and a browser. Download your
> FREE copy of Splunk now >> http://get.splunk.com/
> 
> 
> 
> 
> 
> ___ Bacula-users
> mailing list Bacula-users@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Running Bacula with Virtual Machines! + partially blanking DVD+RW (trouble)

2007-11-02 Thread Arno Lehmann
Hi,

02.11.2007 16:28,, Hydro Meteor wrote::
> On 11/1/07, *Arno Lehmann* <[EMAIL PROTECTED] 
> > wrote:
...
> Sorry to ask a painful question :-)

It actually didn't hurt, it just reminded me that sometimes I try to 
work on things without actually understanding enough of the problem :-)

>  ... but in your answer, I have many 
> more times appreciation of what you must have gone through (the pain and 
> the suffering).

It wasn't that bad, actually. It took some time, but I did learn a 
lot, after all, I got paid for that work :-)

...
> In the end, I didn't understand anything :-) , 
> 
> 
> heh! I can understand -- there's lots to collect. Also, you probably 
> started this project before you would have the benefits of community 
> organized information sources such as Wikipedia, true?

Well, kind of... there was information available, but I think I was 
slowed down a bit by not really understanding the technological 
issues. I might have had better results with more time (rather 
obvious) or if I restricted my attempt to get results to only one type 
of media (like DVD+RW) but, contributing to an open source project, I 
decided that, whatever I came up with, should be as universally usable 
as possible.

...
> Arno and friends, it was the dvd+rw-mediainfo (running in Debian as the 
> Guest Operating System under Parallels as a virtual machine) that gave 
> me the info which then gave me hints and clues. For example, I am using 
> TDK 4.7 GB DVD+RW discs. When I rand the dvd+rw-mediainfo after 
> inserting a new TDK DVD+RW out of the spindle, I got the following output:
> 
> $ dvd+rw-mediainfo /dev/cdrom
> 
> 
> INQUIRY:[MATSHITA][DVD-R   UJ-85J  ][FDSA]
> GET [CURRENT] CONFIGURATION:
>  Mounted Media: 1Ah, DVD+RW
>  Media ID:  PHILIPS/041
>  Current Write Speed:   4.0x1385=5540KB/s
>  Write Speed #0:4.0x1385=5540KB/s
>  Write Speed #1:2.4x1385=3324KB/s
>  Speed Descriptor#0:01/2295103 [EMAIL PROTECTED]/s
> [EMAIL PROTECTED]/s
>  Speed Descriptor#1:01/2295103 [EMAIL PROTECTED]/s
> [EMAIL PROTECTED]/s
> READ DVD STRUCTURE[#0h]:
>  Media Book Type:   00h, DVD-ROM book [revision 0]
>  Legacy lead-out at:2295104*2KB=4700372992
> READ DISC INFORMATION:
>  Disc status:   blank
>  Number of Sessions:1
>  State of Last Session: empty
>  "Next" Track:  1
>  Number of Tracks:  1
> READ FORMAT CAPACITIES:
>  unformatted:   2295104*2048=4700372992
>  26h(0):2295104*2048=4700372992
> READ TRACK INFORMATION[#1]:
>  Track State:   blank
>  Track Start Address:   0*2KB
>  Free Blocks:   2295104*2KB
>  Track Size:2295104*2KB
> READ CAPACITY:  0*2048=0
> 
> 
> The output correctly identifies my Apple Xserve's OEM DVD burner (their 
> "SuperDrive") as being from Matshita (I think a division of Panasonic).
> 
> It was in this output that I found a useful hint -- to use a block size 
> of 2048 bytes instead of the typical (and recommended in the Bacula 
> User's Guide) of 1024 bytes, as the value of the bs= option in the dd 
> command, like this:

That is really astonishing... as far as I recall, all DVD and CD 
technologies use 2k block sizes, and I believe this is required by the 
standards they follow. So, 2k blocks for dd should have been used from 
the start :-)

> # dd if=/dev/zero bs=2048 count=512 | growisofs -Z /dev/cdrom=/dev/fd/0
> 
> 
> Whereas 1024 bytes was not working for me (and thus my only resort was 
> to blank or "nullify" with ASCII NULL characters the entire disc), the 
> command above worked just perfect and only took about one minute to 
> de-ice,

The reason nobody before seemed to notice that might be that different 
drives handle this stuff differently - that seems to be part of the 
problems with optical media: the drive manufacturers really don't 
implement a strict standard, they implement something that works most 
of the time but is poorly documented.

> with this output:
> 
> Executing 'builtin_dd if=/dev/fd/0 of=/dev/cdrom obs=32k seek=0'
> 512+0 records in
> 512+0 records out
> 1048576 bytes (1.0 MB) copied:-[ GET EVENT failed with
> SK=5h/ASC=24h/ACQ=00h]: Input/output error
> /dev/cdrom: pre-formatting blank DVD+RW...
> , 0.127611 seconds, 8.2 MB/s
> /dev/cdrom: "Current Write Speed" is 4.1x1352KBps.
> builtin_dd: 512*2KB out @ average 0.8x1352KBps
> /dev/cdrom: flushing cache
> /dev/cdrom: stopping de-icing
> /dev/cdrom: writing lead-out
> 
> 
> I wonder, does the manufacturer of the DVD+RW media (in this case I 
> think the TDK brand name is owned by Philips), determine the block size 
> 

[Bacula-users] make fails on qt-console

2007-11-02 Thread Roger Sinel

Fedora Core 6   Vanilla-kernel 2.6.18.2 

bacula-2.2.5

rpm -qa qt4*
qt4-4.3.2-1.fc6
qt4-devel-4.3.2-1.fc6
qt4-x11-4.3.2-1.fc6


CFLAGS="-g -O2"   ./configure
--sbindir=/usr/local/bacula/bin
--sysconfdir=/usr/local/bacula/bin
--with-pid-dir=/usr/local/bacula/bin/working
--with-subsys-dir=/usr/local/bacula/bin/working
--enable-smartalloc --with-mysql
--with-working-dir=/usr/local/bacula/bin/working
--with-qwt=/usr/local/qwt-5.0.2 
--enable-bat



make output

==>Entering directory /tmp/bacula-2.2.5/src/qt-console

make[1]: Entering directory `/tmp/bacula-2.2.5/src/qt-console'
/usr/lib/qt4/bin/uic main.ui -o ui/ui_main.h
/usr/lib/qt4/bin/uic prefs.ui -o ui/ui_prefs.h
/usr/lib/qt4/bin/uic label/label.ui -o ui/ui_label.h
/usr/lib/qt4/bin/uic relabel/relabel.ui -o ui/ui_relabel.h
/usr/lib/qt4/bin/uic mount/mount.ui -o ui/ui_mount.h
/usr/lib/qt4/bin/uic console/console.ui -o ui/ui_console.h
/usr/lib/qt4/bin/uic restore/restore.ui -o ui/ui_restore.h
/usr/lib/qt4/bin/uic restore/prerestore.ui -o ui/ui_prerestore.h
/usr/lib/qt4/bin/uic restore/brestore.ui -o ui/ui_brestore.h
/usr/lib/qt4/bin/uic restore/restoretree.ui -o ui/ui_restoretree.h
/usr/lib/qt4/bin/uic run/run.ui -o ui/ui_run.h
/usr/lib/qt4/bin/uic run/runcmd.ui -o ui/ui_runcmd.h
/usr/lib/qt4/bin/uic run/estimate.ui -o ui/ui_estimate.h
/usr/lib/qt4/bin/uic run/prune.ui -o ui/ui_prune.h
/usr/lib/qt4/bin/uic select/select.ui -o ui/ui_select.h
/usr/lib/qt4/bin/uic medialist/medialist.ui -o ui/ui_medialist.h
/usr/lib/qt4/bin/uic mediaedit/mediaedit.ui -o ui/ui_mediaedit.h
/usr/lib/qt4/bin/uic joblist/joblist.ui -o ui/ui_joblist.h
/usr/lib/qt4/bin/uic clients/clients.ui -o ui/ui_clients.h
/usr/lib/qt4/bin/uic storage/storage.ui -o ui/ui_storage.h
/usr/lib/qt4/bin/uic fileset/fileset.ui -o ui/ui_fileset.h
/usr/lib/qt4/bin/uic joblog/joblog.ui -o ui/ui_joblog.h
/usr/lib/qt4/bin/uic jobs/jobs.ui -o ui/ui_jobs.h
/usr/lib/qt4/bin/uic help/help.ui -o ui/ui_help.h
/usr/lib/qt4/bin/uic jobgraphs/jobplotcontrols.ui -o
ui/ui_jobplotcontrols.h

g++ -c -pipe -g -D_REENTRANT -Wall -W -DQT_GUI_LIB -DQT_CORE_LIB
-I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore
-I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtGui
-I/usr/include -I.. -I. -Iconsole -Irestore -Iselect
-I/usr/local/qwt-5.0.2/include -Imoc -Iui -o obj/main.o main.cpp
g++ -o bat obj/main.o obj/bat_conf.o obj/mainwin.o obj/qstd.o
obj/pages.o obj/dircomm.o obj/dircomm_auth.o obj/authenticate.o
obj/console.o obj/prerestore.o obj/restore.o obj/brestore.o obj/label.o
obj/relabel.o obj/mount.o obj/run.o obj/runcmd.o obj/estimate.o
obj/prune.o obj/select.o obj/medialist.o obj/mediaedit.o obj/joblist.o
obj/clients.o obj/storage.o obj/fileset.o obj/joblog.o obj/jobs.o
obj/restoretree.o obj/jobplot.o obj/help.o obj/moc_mainwin.o
obj/moc_dircomm.o obj/moc_console.o obj/moc_restore.o obj/moc_label.o
obj/moc_relabel.o obj/moc_mount.o obj/moc_run.o obj/moc_select.o
obj/moc_medialist.o obj/moc_mediaedit.o obj/moc_joblist.o
obj/moc_clients.o obj/moc_storage.o obj/moc_fileset.o obj/moc_joblog.o
obj/moc_jobs.o obj/moc_restoretree.o obj/moc_jobplot.o obj/moc_help.o
obj/qrc_main.o -L../lib -lbac -L/usr/local/qwt-5.0.2/lib -lqwt -lQtGui
-lQtCore -lpthread

obj/jobplot.o: In function `JobPlot::addCurve()':

jobgraphs/jobplot.cpp:416: undefined reference to
`QwtPlotMarker::setLabelAlignment(QFlags)'

obj/jobplot.o:(.rodata._ZTV17DateTimeScaleDraw[vtable for
DateTimeScaleDraw]+0x10): undefined reference to
`QwtAbstractScaleDraw::draw(QPainter*, QPalette const&) const'

collect2: ld returned 1 exit status

make[1]: *** [bat] Error 1

make[1]: Leaving directory `/tmp/bacula-2.2.5/src/qt-console'



== Error in /tmp/bacula-2.2.5/src/qt-console ==



 
-- 
Mvh
Roger Sinel
[EMAIL PROTECTED]
www.nordickiwi.com

+ gpg key -- http://www.nordickiwi.com/rsinel.asc
+ fingerprint -- F0EF 2C17 99CA DC06 132A 967F B642 D0BA 6503 87C7


signature.asc
Description: This is a digitally signed message part
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] scsi problems

2007-11-02 Thread Arno Lehmann
Hi,

02.11.2007 17:55,, Michael Galloway wrote::
> ok, i'd like to revisit this issue. i changed scsi cards and i still
> get scsi crashes from btape test command. new card is adaptec 29320:

Bad.

> 03:06.0 SCSI storage controller: Adaptec ASC-29320A U320 (rev 10)
> 
> i spent the morning tar onto and off the LTO-4 drive:
> 
> [5:0:15:0]   tapeIBM  ULTRIUM-TD4  7950  /dev/st0
> 
> with no issues. then i erased the tape and started with btape again:
> 
> ./btape -c bacula-sd.conf /dev/nst0
> Tape block granularity is 1024 bytes.
> btape: butil.c:285 Using device: "/dev/nst0" for writing.
> btape: btape.c:368 open device "LTO4" (/dev/nst0): OK
> *test
> 
> === Write, rewind, and re-read test ===
> 
> I'm going to write 1000 records and an EOF
> then write 1000 records and an EOF, then rewind,
> and re-read the data to verify that it is correct.
> 
> This is an *essential* feature ...
> 
> btape: btape.c:827 Wrote 1000 blocks of 64412 bytes.
> btape: btape.c:501 Wrote 1 EOF to "LTO4" (/dev/nst0)
> btape: btape.c:843 Wrote 1000 blocks of 64412 bytes.
> btape: btape.c:501 Wrote 1 EOF to "LTO4" (/dev/nst0)
> btape: btape.c:852 Rewind OK.
> 1000 blocks re-read correctly.
> 
> hangs there with this in the dmesg log:
> 
> dmesg
...snipped. I can't understand that stuff easily.
...
> so, in the end i cannot make a successful btape test run with this LTO-4 drive
> with two different scsi cards. i guess my question is, is this a bacula btape 
> issue or an LTO or spectralogic scsi issue?

I'm really not sure... I know that btape works correctly; at least it 
did so everytime I used it.

LTO tapes, too, can be used without problems by Bacula, and btape 
testing them works for me and many others, too.

Finally, I'm quite sure that Bacula is run on Spektralogic hardware 
somewhere out there.

Currently, I can only recommend to ensure you've got the latest 
firmware for HBA and tape device, a proven driver and kernel on your 
system, and run a current version of btape.

If the problem persists (which I assume) you should file a bug report 
at bugs.bacula.org and perhaps also contact the developers of the SCSI 
driver you're running.

Apart from that I can only wish good luck...

Arno

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Odd Output From Commands...

2007-11-02 Thread Arno Lehmann
Hi,

02.11.2007 19:11,, Dep, Khushil (GE Money) wrote::
> Can someone tell me why thse two commands (list clients and status) are
> providing different results?

> *list clients
> +--+--+---+--+
> | ClientId | Name | FileRetention | JobRetention |
> +--+--+---+--+
> |1 | MigWebSSCbkp1-fd |15,552,000 |   15,552,000 |
...
> |   12 | WSSCHQPDBEBIZTK1-fd  |15,552,000 |   15,552,000 |
> |   13 | nevis-wat-NG-fd  |   172,800 |  172,800 |
> +--+--+---+--+
> 
> 
> *status
> Status available for:
>  1: Director
>  2: Storage
>  3: Client
>  4: All
> Select daemon type for status (1-4): 3
> The defined Client resources are:
>  1: DefaultClient
...
> 21: nepal-wat-NG-fd
> 22: nevis-wat-NG-fd

The staus command offers all the clients currently defined in your 
configuration.

The list command lists all the clients found in the catalog.

Clients are only added to the catalog when they are actually 
contacted, so, if you have just added new clients but neither a job or 
a status command has been run on them, they won't be added to the catalog.

If you remove a client from the configuration, its information will 
remain in the catalog.

Does this explain your findings?

Arno

> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] continuation tapes

2007-11-02 Thread Craig White
On Fri, 2007-11-02 at 15:08 -0400, John Drescher wrote:
> On 11/2/07, Craig White <[EMAIL PROTECTED]> wrote:
> > I am a bit befuddled.
> >
> > I have a 'Full' backup which consists of 4 jobs but it extends onto 2
> > tapes.
> >
> > the Pool permits 4 jobs
> >   Maximum Volume Jobs = 4
> >   Volume Retention = 19d
> >   Volume Use Duration = 4d
> >
> I believe "Maximum Volume Jobs" here will allow at most 4 jobs to a
> single volume and since there are only 2 jobs written to the last
> volume it can hold 2 more.

I get that. I can't change the number to 2 because then it would stop
after the second job and force me into a new tape leaving half the first
tape filled and not enough room on second tape to complete the next 2
jobs (the second being a standard BackupCatalog job).

I find it hard to believe that I am the only one who is spanning tapes
on a single Pool and wanting to have the last tape marked 'Used' instead
of 'Append'

Craig


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] continuation tapes

2007-11-02 Thread John Drescher
> I get that. I can't change the number to 2 because then it would stop
> after the second job and force me into a new tape leaving half the first
> tape filled and not enough room on second tape to complete the next 2
> jobs (the second being a standard BackupCatalog job).
>
> I find it hard to believe that I am the only one who is spanning tapes
> on a single Pool and wanting to have the last tape marked 'Used' instead
> of 'Append'
>
I believe after 4 days it will be marked as used because of your
"Volume Use Duration". I am not 100% sure because I do not do this
kind of thing with my volumes.

John

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] continuation tapes

2007-11-02 Thread Arno Lehmann
Hi,

02.11.2007 21:26,, Craig White wrote::
> On Fri, 2007-11-02 at 15:08 -0400, John Drescher wrote:
>> On 11/2/07, Craig White <[EMAIL PROTECTED]> wrote:
>>> I am a bit befuddled.
>>>
>>> I have a 'Full' backup which consists of 4 jobs but it extends onto 2
>>> tapes.
>>>
>>> the Pool permits 4 jobs
>>>   Maximum Volume Jobs = 4
>>>   Volume Retention = 19d
>>>   Volume Use Duration = 4d
>>>
>> I believe "Maximum Volume Jobs" here will allow at most 4 jobs to a
>> single volume and since there are only 2 jobs written to the last
>> volume it can hold 2 more.
> 
> I get that. I can't change the number to 2 because then it would stop
> after the second job and force me into a new tape leaving half the first
> tape filled and not enough room on second tape to complete the next 2
> jobs (the second being a standard BackupCatalog job).
> 
> I find it hard to believe that I am the only one who is spanning tapes
> on a single Pool and wanting to have the last tape marked 'Used' instead
> of 'Append'

True... but as it is, many users try to avoid problems they might run 
into when jobs are added, or don't run for whatever reason, so they 
don't limit the volume use by the number of jobs, but rather by the 
time it can be used after an initial write ;-)

So my suggestion is to use "Volume Use Duration" instead of the job 
limit. Depending on your needs, limiting by size might also be useful 
- "Maximum Volume Bytes" is the corresponding option.

Does that help?

Arno

> Craig
> 
> 
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] continuation tapes

2007-11-02 Thread Craig White
On Fri, 2007-11-02 at 21:38 +0100, Arno Lehmann wrote:
> Hi,
> 
> 02.11.2007 21:26,, Craig White wrote::
> > On Fri, 2007-11-02 at 15:08 -0400, John Drescher wrote:
> >> On 11/2/07, Craig White <[EMAIL PROTECTED]> wrote:
> >>> I am a bit befuddled.
> >>>
> >>> I have a 'Full' backup which consists of 4 jobs but it extends onto 2
> >>> tapes.
> >>>
> >>> the Pool permits 4 jobs
> >>>   Maximum Volume Jobs = 4
> >>>   Volume Retention = 19d
> >>>   Volume Use Duration = 4d
> >>>
> >> I believe "Maximum Volume Jobs" here will allow at most 4 jobs to a
> >> single volume and since there are only 2 jobs written to the last
> >> volume it can hold 2 more.
> > 
> > I get that. I can't change the number to 2 because then it would stop
> > after the second job and force me into a new tape leaving half the first
> > tape filled and not enough room on second tape to complete the next 2
> > jobs (the second being a standard BackupCatalog job).
> > 
> > I find it hard to believe that I am the only one who is spanning tapes
> > on a single Pool and wanting to have the last tape marked 'Used' instead
> > of 'Append'
> 
> True... but as it is, many users try to avoid problems they might run 
> into when jobs are added, or don't run for whatever reason, so they 
> don't limit the volume use by the number of jobs, but rather by the 
> time it can be used after an initial write ;-)
> 
> So my suggestion is to use "Volume Use Duration" instead of the job 
> limit. Depending on your needs, limiting by size might also be useful 
> - "Maximum Volume Bytes" is the corresponding option.
> 
> Does that help?

in that I have set (as noted above) Volume Use Duration to 4d, if it
marks the set as 'Used' on Tuesday (Friday, Saturday, Sunday, Monday)
constituting the 4 days and then Bacula respects the 'Volume Retention',
I am good to go.

As you might expect, I am concerned that the next usage of ThursdayPool,
that it asks for this Volume because it is still marked 'Append' and I
would want it to ultimately ask for the one of the ThursdayPool volumes
whose 'Volume Retention' has expired.

Craig


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Large file support not getting enabled

2007-11-02 Thread Martin Simmons
> On Fri, 02 Nov 2007 09:02:10 -0600, Chris Cameron said:
> 
> First off, this is in OpenBSD 4.1.
> 
> I'm compiling Bacula 2.2.5 and I'm not able to get large file support 
> enabled.
> 
> Does anyone know what I need to do? I know OpenBSD supports large files, 
> and Bacula works fine with files under 2 gigs.
> 
> Below is some output:
> 
> 
> Compiling with:
> ./configure --prefix=/home/bacula --with-openssl --with-mysql
> 
> While compiling:
> checking for CFLAGS value to request large file support... no
> checking for LDFLAGS value to request large file support... no
> checking for LIBS value to request large file support... no
> checking for _FILE_OFFSET_BITS... 64
> checking for _LARGEFILE_SOURCE... 1
> checking for _LARGE_FILES... 1

The configure script just forces largefile_support="yes" for bsdi and freebsd,
so the detection code might be incompatible with the BSDs.  Do all versions of
OpenBSD support it?  If so, then forcing it for OpenBSD might be the best
solution.

__Martin

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Running Bacula with Virtual Machines! + partially blanking DVD+RW (trouble)

2007-11-02 Thread Hydro Meteor
On 11/2/07, Arno Lehmann <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> 02.11.2007 16:28,, Hydro Meteor wrote::
> > On 11/1/07, *Arno Lehmann* <[EMAIL PROTECTED]
> > > wrote:
> ...
> > Sorry to ask a painful question :-)
>
> It actually didn't hurt, it just reminded me that sometimes I try to
> work on things without actually understanding enough of the problem :-)


Ok, now I don't feel as badly about asking a painful question!

>  ... but in your answer, I have many
> > more times appreciation of what you must have gone through (the pain and
> > the suffering).
>
> It wasn't that bad, actually. It took some time, but I did learn a
> lot, after all, I got paid for that work :-)


Great for you! Its always great if you can get paid for learning (instead of
paying tuition to the school or educator).

...
> > In the end, I didn't understand anything :-) ,
> >
> >
> > heh! I can understand -- there's lots to collect. Also, you probably
> > started this project before you would have the benefits of community
> > organized information sources such as Wikipedia, true?
>
> Well, kind of... there was information available, but I think I was
> slowed down a bit by not really understanding the technological
> issues. I might have had better results with more time (rather
> obvious) or if I restricted my attempt to get results to only one type
> of media (like DVD+RW) but, contributing to an open source project, I
> decided that, whatever I came up with, should be as universally usable
> as possible.


Thank you, that is quite noble to do (because not everyone is going to use
DVD+RW that's for sure).

...
> > Arno and friends, it was the dvd+rw-mediainfo (running in Debian as the
> > Guest Operating System under Parallels as a virtual machine) that gave
> > me the info which then gave me hints and clues. For example, I am using
> > TDK 4.7 GB DVD+RW discs. When I rand the dvd+rw-mediainfo after
> > inserting a new TDK DVD+RW out of the spindle, I got the following
> output:
> >
> > $ dvd+rw-mediainfo /dev/cdrom
> >
> >
> > INQUIRY:[MATSHITA][DVD-R   UJ-85J  ][FDSA]
> > GET [CURRENT] CONFIGURATION:
> >  Mounted Media: 1Ah, DVD+RW
> >  Media ID:  PHILIPS/041
> >  Current Write Speed:   4.0x1385=5540KB/s
> >  Write Speed #0:4.0x1385=5540KB/s
> >  Write Speed #1:2.4x1385=3324KB/s
> >  Speed Descriptor#0:01/2295103 [EMAIL PROTECTED]/s
> > [EMAIL PROTECTED]/s
> >  Speed Descriptor#1:01/2295103 [EMAIL PROTECTED]/s
> > [EMAIL PROTECTED]/s
> > READ DVD STRUCTURE[#0h]:
> >  Media Book Type:   00h, DVD-ROM book [revision 0]
> >  Legacy lead-out at:2295104*2KB=4700372992
> > READ DISC INFORMATION:
> >  Disc status:   blank
> >  Number of Sessions:1
> >  State of Last Session: empty
> >  "Next" Track:  1
> >  Number of Tracks:  1
> > READ FORMAT CAPACITIES:
> >  unformatted:   2295104*2048=4700372992
> >  26h(0):2295104*2048=4700372992
> > READ TRACK INFORMATION[#1]:
> >  Track State:   blank
> >  Track Start Address:   0*2KB
> >  Free Blocks:   2295104*2KB
> >  Track Size:2295104*2KB
> > READ CAPACITY:  0*2048=0
> >
> >
> > The output correctly identifies my Apple Xserve's OEM DVD burner (their
> > "SuperDrive") as being from Matshita (I think a division of Panasonic).
> >
> > It was in this output that I found a useful hint -- to use a block size
> > of 2048 bytes instead of the typical (and recommended in the Bacula
> > User's Guide) of 1024 bytes, as the value of the bs= option in the dd
> > command, like this:
>
> That is really astonishing... as far as I recall, all DVD and CD
> technologies use 2k block sizes, and I believe this is required by the
> standards they follow. So, 2k blocks for dd should have been used from
> the start :-)


For a moment I thought my eyes went buggy and I had made a mistake in my
assertion, but since you also found that "astonishing" I thought I'd double
check. Yep, here it is:

http://www.bacula.org/rel-manual/DVD_Volumes.html#SECTION00274

# Bacula only accepts to write to blank DVDs. To quickly blank a DVD+/-RW,
> run this command:
>
>   dd if=/dev/zero bs=1024 count=512 | growisofs -Z /dev/xxx=/dev/fd/0
>
> Then, try to mount the device, if it cannot be mounted, it will be
> considered as blank by Bacula, if it can be mounted, try a full blank (see
> below).
>

Based on this email thread, the line of interest should be corrected to
state:

dd if=/dev/zero bs=2048 count=512 | growisofs -Z /dev/xxx=/dev/fd/0

I think this is an important correction to make especially for people who
are not familiar with writing to optical media with low level command line
tools. What is the proper p

Re: [Bacula-users] continuation tapes

2007-11-02 Thread Arno Lehmann
Hi,

02.11.2007 21:48,, Craig White wrote::
> On Fri, 2007-11-02 at 21:38 +0100, Arno Lehmann wrote:
>> Hi,
>>
>> 02.11.2007 21:26,, Craig White wrote::
>>> On Fri, 2007-11-02 at 15:08 -0400, John Drescher wrote:
 On 11/2/07, Craig White <[EMAIL PROTECTED]> wrote:
> I am a bit befuddled.
>
> I have a 'Full' backup which consists of 4 jobs but it extends onto 2
> tapes.
>
> the Pool permits 4 jobs
>   Maximum Volume Jobs = 4
>   Volume Retention = 19d
>   Volume Use Duration = 4d
>
 I believe "Maximum Volume Jobs" here will allow at most 4 jobs to a
 single volume and since there are only 2 jobs written to the last
 volume it can hold 2 more.
>>> 
>>> I get that. I can't change the number to 2 because then it would stop
>>> after the second job and force me into a new tape leaving half the first
>>> tape filled and not enough room on second tape to complete the next 2
>>> jobs (the second being a standard BackupCatalog job).
>>>
>>> I find it hard to believe that I am the only one who is spanning tapes
>>> on a single Pool and wanting to have the last tape marked 'Used' instead
>>> of 'Append'
>> True... but as it is, many users try to avoid problems they might run 
>> into when jobs are added, or don't run for whatever reason, so they 
>> don't limit the volume use by the number of jobs, but rather by the 
>> time it can be used after an initial write ;-)
>>
>> So my suggestion is to use "Volume Use Duration" instead of the job 
>> limit. Depending on your needs, limiting by size might also be useful 
>> - "Maximum Volume Bytes" is the corresponding option.
>>
>> Does that help?
> 
> in that I have set (as noted above) Volume Use Duration to 4d, if it
> marks the set as 'Used' on Tuesday (Friday, Saturday, Sunday, Monday)
> constituting the 4 days and then Bacula respects the 'Volume Retention',
> I am good to go.

In my experience, Bacula does handle retention periods correctly.

> As you might expect, I am concerned that the next usage of ThursdayPool,
> that it asks for this Volume because it is still marked 'Append' and I
> would want it to ultimately ask for the one of the ThursdayPool volumes
> whose 'Volume Retention' has expired.

Let's say your volume is marked as used on Thursday, and it's been 
last written to on Thursday, too, and you've got a retention time of 
six days, that volume could be recycled next weeks Thursday.

If you swapped the volumes and updated the catalog accordingly, Bacula 
will prefer volumes in the autochanger, i.e. when it needs a Thursday 
volume, it will prune, recycle, and use that volume automatically.

I think this is what you need.

Arno


> 
> Craig
> 
> 
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problems building RPM packages

2007-11-02 Thread Ryan Novosielski
Blastwave has newer pacakges in testing. If you can't find them (I believe 
it may be as simple as changing the URL to include testing instead of the 
other repository). They have 2.2.3 available if I am not mistaken. I've 
been meaning to upgrade (and now feel guilty since he asked me to try them 
out).

.. Original Message ...
On Fri, 02 Nov 2007 09:59:50 -0400 "Shon Stephens" 
<[EMAIL PROTECTED]> wrote:
>All,
> I am trying to build bacula-2.0.3 rpms for RHEL4. I'm using 2.0.3 
because that is the version I'm running on my Solaris backup server 
(Blastwave packages are only at 2.0.3)
>
>The only SRPM I was able to find is bacula-2.0.3-10.fc6.src.rpm. When I 
attempt to rebuild the srpm for my distribution, I get this error
>
>rpmbuild --rebuild --define "build_rhel4 1"
>
>error: Failed build dependencies:
>wxGTK-devel is needed by bacula-2.0.3-10.i386
>sqlite-devel is needed by bacula-2.0.3-10.i386
>latex2html is needed by bacula-2.0.3-10.i386
>
>These dependencies are not available in RHEL until release 5. I don't want 
to build the docs, I don't want to build the server, I just want to build a 
bacula-client-2.0.3.rhel4.x86_64.rpm and .i386 rpm. I tried removing the 
dependencies from the .spec file. This seems to work ok...except then it 
just won't build. Basically its unzips the source in 
/usr/src/redhat/BUILD/bacula- 2.0.3, then creates a directory 
/usr/src/redhat/BUILD/bacula-2.0.3/bacula-2.0.3/ and copies the source into 
it for compilation. The build then fails because it can't locate 
"./configure", which does exist and is in the right place. Personally I 
like bacula, but this is just ridiculous.
>
> Can anyone help with either a correct procedure to produce these RPMS 
for RHEL3/4, or provide me with bacula-client-2.0.3 rpms for these 
releases? And yes, I've already read the readme and tried using the 
build_rpm.sh script
>
>Thanks,
>Shon
>-
>This SF.net email is sponsored by: Splunk Inc.
>Still grepping through log files to find problems?  Stop.
>Now Search log events and configuration files using AJAX and a browser.
>Download your FREE copy of Splunk now >> 
http://get.splunk.com/___
>Bacula-users mailing list
>Bacula-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/bacula-users


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Old versions of Bacula

2007-11-02 Thread Brian A Seklecki (Mobile)
On Fri, 2007-11-02 at 16:00 +, Weber, Philip wrote:
> Hi,
> 
> Does anyone know if it is possible to get hold of old versions of Bacula
> source (or Solaris packages?).  I am struggling to get a File Daemon
> compiled for Solaris 2.6.  It might be lack of intelligence on my part,
> but it occurs to me that I might have more luck with old source.

Have you tried using Pkgsrc[.org]?

Bootstrap it for your system and submit any build failures here and
[EMAIL PROTECTED]

~BAS

> 
> (And for those who will comment on it, apologies for the HUGE email
> trailer which my company will attach to this).



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] bat error dialogs in operation

2007-11-02 Thread John Huttley
Hi,
I started off my library with 12 tapes and "label barcodes".

Then I add another 5 tapes and ran "label barcodes" again.

It correctly noted that the first 12 were already labeled, but then 
popped up 12 dialogs, all on top of each other.
It was impossible to click on "ok" until the labelling had stopped. 
During this time bat was unresponsive.

I suggest you simply don't pop up dialogs for this case.

Regards,

john

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users