[Bacula-users] Strange error parsing config

2007-11-14 Thread Shon Stephens
All,
 I'm running Bacula 2.0.3 on Solaris 10. I have had Bacula running
recently in testing, and am now trying to move to production. However,
when starting the Director, I get this error:

14-Nov 03:43 bacula-dir: ERROR TERMINATION at parse_conf.c:482
Config error: Could not find config Resource Sun_1300_Full referenced
on line 47 :Schedule = "Sun_1300_Full"


: line 47, col 29 of file /opt/csw/etc/bacula/bacula-dir_jobs.conf
   Schedule = "Sun_1300_Full"


However, this resource is correctly defined in my config files:

"bacula-dir_schedules.conf"
Schedule {
   Name = "Sun_1300_Full"
   Run = Level=Full Sun at 13:00
}

"bacula-dir_jobs.conf"
Job {
   Name = "Customer_Oracle_Weekly_Tape"
   Type = Backup
   Client = db1.ora
   FileSet = "Customer_Oracle"
   Schedule = "Sun_1300_Full"
   Storage = Exabyte_224
   Pool = Shopbop_Tapes
   Messages = Standard
   Write Bootstrap = "/opt/csw/var/bacula/bootstrap/%n.bsr"
   Spool Data = yes
}

Any ideas. This only now stopped working for me.

-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] Strange error parsing config

2007-11-14 Thread Arno Lehmann
Hi,

14.11.2007 10:03,, Shon Stephens wrote::
> All,
>  I'm running Bacula 2.0.3 on Solaris 10. I have had Bacula running
> recently in testing, and am now trying to move to production. However,
> when starting the Director, I get this error:
> 
> 14-Nov 03:43 bacula-dir: ERROR TERMINATION at parse_conf.c:482
> Config error: Could not find config Resource Sun_1300_Full referenced
> on line 47 :Schedule = "Sun_1300_Full"
> 
> 
> : line 47, col 29 of file /opt/csw/etc/bacula/bacula-dir_jobs.conf
>Schedule = "Sun_1300_Full"
> 
> 
> However, this resource is correctly defined in my config files:

The file with the schedules is included in the main DIR config using 
the @syntax?

Check the path and the permissions.


> Any ideas. This only now stopped working for me.

If that looks ok, try running the DIR under strace / truss. You should 
be able to spot where and why it fails opening the included file.

Arno

> -Shon
> 
-- 
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] Correct behaviour of MaximumPartSize?

2007-11-14 Thread Arno Lehmann
Hello,

14.11.2007 02:07,, Richard Walker wrote::
>> Do you see calls to dvd-handler in the SD's debug output?
> 
> That's the thing - for the job that isn't working, there are calls to
> get the free space, but not to do any writing.

Bad, but that's something to work on, I think.

> I attach a file with some fresh results.  It's broken up into sections
> divided with lines of equals signs.
> (I changed the hostname and job name but otherwise left the logs as they are.)
> The sections are:
> 
> 1. bconsole output of successful 65 MB backup.
> 2. Output of ls showing successful write to DVD.
> 
> At this point I edited the fileset to increase the backup to 9 GB and
> restarted the director.
> 
> 3. bconsole output of failed backup, showing where I typed the
> cancel command.
> 4. Output of ls showing contents of spool directory just before
> I issued the cancel command.  Notice multiple parts in the spool
> directory!  After cancelling the job, the last part increased in size
> a little bit, but all parts are still there in the spool directory.

Ok... that seems to indicate that Bacula itself does not handle 
writing the parts to DVD. The removal of the parts files is done by 
the SD, not dvd-handler.

> 5. Debugging output of storage daemon showing both runs. Sorry,
> I don't know exactly where the first run ends and the second begins,
> but you can tell roughly by the references to jobid=22 versus
> jobid=23.
> 
> Note that the storage daemon debugging output clearly shows that
> the first job calls dvd-handler to write the (only) part to DVD; the
> second job never calls dvd-handler to do any writing.  (As I noted
> in the previous e-mail, I've also seen behaviour where cancelling
> the job causes the _last_ part to be written, leaving the other parts
> behind in the spool directory.  But even that didn't happen this time.)

So probably it's only the spacial case of a last part of less than the 
part size being written to DVD. The normal case seems to be missing then.

I'll go through the output you sent...

> 14-Nov 10:04 host1-dir JobId 22: No prior Full backup Job record found.
> 14-Nov 10:04 host1-dir JobId 22: No prior or suitable Full backup found in 
> catalog. Doing FULL backup.
> 14-Nov 10:04 host1-dir JobId 22: Start Backup JobId 22, 
> Job=xyz_projects.2007-11-14_10.04.05
> 14-Nov 10:04 host1-dir JobId 22: Created new Volume "BaculaDVD0002" in 
> catalog.
> 14-Nov 10:04 host1-dir JobId 22: Using Device "DVDWriter"
> 14-Nov 10:04 host1-sd JobId 22: Labeled new Volume "BaculaDVD0002" on device 
> "DVD Writer" (/dev/dvd).
> 14-Nov 10:04 host1-sd JobId 22: Wrote label to prelabeled Volume 
> "BaculaDVD0002" on device "DVD Writer" (/dev/dvd)
> 14-Nov 10:04 host1-sd JobId 22: Job write elapsed time = 00:00:05, Transfer 
> rate = 13.01 M bytes/second
> *
> 14-Nov 10:05 host1-sd JobId 22: Part 1 (65122629 bytes) written to DVD.
> 14-Nov 10:05 host1-sd JobId 22: Remaining free space 4,624,384,000 on "DVD 
> Writer" (/dev/dvd)

This looks perfect.

> 14-Nov 10:05 host1-dir JobId 22: Bacula host1-dir 2.2.5 (09Oct07): 
> 14-Nov-2007 10:05:04
>   Build OS:   i686-redhat-linux-gnu redhat (Heidelberg)
>   JobId:  22
...
>   Non-fatal FD errors:0
>   SD Errors:  0
>   FD termination status:  OK
>   SD termination status:  OK
>   Termination:Backup OK
...
> ==
> 
> ls -l /media/cdrecorder/
> total 63597
> -rw-r-  1 root disk 65122419 Nov 14 10:04 BaculaDVD0002
> 
> ==
> 
> Job queued. JobId=23
> You have messages.
> *
> 14-Nov 11:24 host1-dir JobId 23: No prior Full backup Job record found.
> 14-Nov 11:24 host1-dir JobId 23: No prior or suitable Full backup found in 
> catalog. Doing FULL backup.
> 14-Nov 11:24 host1-dir JobId 23: Start Backup JobId 23, 
> Job=xyz_projects.2007-11-14_11.24.03
> 14-Nov 11:24 host1-dir JobId 23: Using Device "DVDWriter"
> 14-Nov 11:24 host1-sd JobId 23: Volume "BaculaDVD0002" previously written, 
> moving to end of data.
> 14-Nov 11:24 host1-sd JobId 23: Ready to append to end of Volume 
> "BaculaDVD0002" part=2 size=65122419
> *cancel
> Automatically selected Job: JobId=23 Job=xyz_projects.2007-11-14_11.24.03
> Confirm cancel (yes/no): yes
> 2001 Job xyz_projects.2007-11-14_11.24.03 marked to be canceled.
> 3000 Job xyz_projects.2007-11-14_11.24.03 marked to be canceled.
> *
> 14-Nov 11:38 host1-sd JobId 23: Job xyz_projects.2007-11-14_11.24.03 marked 
> to be canceled.

No writing to DVD here.

...
>   Last Volume Bytes:  4,018,574,700 (4.018 GB)

But the volume size was increased... I don't know if this is actually 
taken from the DVD, or is generated by the SD as it adds up the part 
file sizes. I suspect the latter.

>   Non-fatal FD errors:0
>   SD Errors:  0
>   FD termination status:  Canceled
>   SD termination status:  Canceled
>   Termination:

Re: [Bacula-users] Speed with gigabit from Windows 2003 to Linux

2007-11-14 Thread Florian Engelmann (Manntech)
Alan Brown schrieb:
> On Tue, 13 Nov 2007, Florian Engelmann wrote:
>
>> hi,
>> how fast does your windows bacula-fd daemon backup to a linux server?
>> Our backup to disk is (300GB of files) running at 4 MB/s over a gigabit
>> connection (GZIP compressed at default compression level and also tested
>> a crossover connection). Seems to be slow dosn't it? Is there any way to
>> tune it up?
>
> Turn off GZIP
>
>
I turned off GZIP and got this result:

13-Nov 22:05 bacula-dir JobId 2: Bacula bacula-dir 2.2.5 (09Oct07): 
13-Nov-2007 22:05:04
  Build OS:   i686-pc-linux-gnu suse 10.2
  JobId:  2
  Job:zeus_disk.2007-11-13_22.00.07
  Backup Level:   Incremental, since=2007-11-12 22:00:03
  Client: "zeus-fd" 2.2.5 (09Oct07) 
Linux,Cross-compile,Win32
  FileSet:"zeus_disk" 2007-11-12 22:00:00
  Pool:   "sdb1_inc" (From Run IncPool override)
  Storage:"sdb1" (From Pool resource)
  Scheduled time: 13-Nov-2007 22:00:00
  Start time: 13-Nov-2007 22:00:02
  End time:   13-Nov-2007 22:05:04
  Elapsed time:   5 mins 2 secs
  Priority:   9
  FD Files Written:   2,042
  SD Files Written:   2,042
  FD Bytes Written:   1,249,048,045 (1.249 GB)
  SD Bytes Written:   1,249,392,305 (1.249 GB)
  Rate:   4135.9 KB/s
  Software Compression:   None
  VSS:no
  Encryption: no
  Volume name(s): inc-0001
  Volume Session Id:  2
  Volume Session Time:1194865716
  Last Volume Bytes:  1,250,380,268 (1.250 GB)
  Non-fatal FD errors:1
  SD Errors:  0
  FD termination status:  OK
  SD termination status:  OK
  Termination:Backup OK -- with warnings

Seems we have an Networkproblem. Windows XP clients also have very slow 
SMB download connections to the Windows 2003 Server. Any Ideas?

-- 
Mit freundlichen Grüssen / Best regards

Florian Engelmann
EDV Service / IT Services

Manntech Fassadenbefahrsysteme GmbH
Mannesmannstr. 5
- Industriegebiet Kugelbichl -
82291 Mammendorf
Tel.: +49 (0) 8145 / 999 - 271
Email: [EMAIL PROTECTED]
http://www.manntech.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] Speed with gigabit from Windows 2003 to Linux

2007-11-14 Thread Alan Brown
On Wed, 14 Nov 2007, Florian Engelmann (Manntech) wrote:

>>  Turn off GZIP
>> 
>> 
> I turned off GZIP and got this result:

>  Backup Level:   Incremental, since=2007-11-12 22:00:03
  ^^

Incremental means it must scan the filesystem and only backup changed 
files. This takes time.

>  FD Files Written:   2,042
>  SD Files Written:   2,042
>  FD Bytes Written:   1,249,048,045 (1.249 GB)
>  SD Bytes Written:   1,249,392,305 (1.249 GB)

Lots of small files.

>  Elapsed time:   5 mins 2 secs

How big is the parent filesystem?

>  Rate:   4135.9 KB/s

This is about what I'd expect for an incremental backup.

How fast is a full backup?

> Seems we have an Networkproblem. Windows XP clients also have very slow SMB 
> download connections to the Windows 2003 Server. Any Ideas?

Make sure the ethernet port speed and duplex match the switch settings. if 
possible leave both on automatic as this is usually best.

I don't deal with windows much, but you have to find and fix your network 
speed problems before you can find and fix any other slowdowns.

AB

-
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] Multiple commands in RunScript possible?

2007-11-14 Thread Vladimirs Vecgailis
Hi all!

Following question - is it possible to run multiple commands with RunScript on 
client side?

I.e.


  RunScript {
RunsWhen = Before
FailJobOnError = Yes
Command = "/etc/init.d/someservice stop; lvcreate -s -n myservicebackup 
/dev/mylv/servicelv; /etc/init.d/someservice start"
RunsOnClient = yes
  }


I tested such Definition, but only the first commans was executed - 
"someservice stop".
All other have been ignored (?).

What i done now is, i defined multiple RunScript-Definitions and arranged them 
in the order i need:


  RunScript {
RunsWhen = Before
FailJobOnError = Yes
Command = "/etc/init.d/someservice stop"
RunsOnClient = yes
  }
  RunScript {
RunsWhen = Before
FailJobOnError = Yes
Command = "lvcreate -s -n myservicebackup /dev/mylv/servicelv"
RunsOnClient = yes
  }
  RunScript {
RunsWhen = Before
FailJobOnError = Yes
Command = "/etc/init.d/someservice start"
RunsOnClient = yes
  }



1. Question - is it possible to define multiple commands?
2. Question - is such "hack" - definition of multiple RunScripts ok?


Thanks in advance!


Mit freundlichen Grüßen

Vladimirs Vecgailis

--

==
Vladimirs Vecgailis
Second Level IT
primacall Vertriebs-GmbH
Postfach 08 04 55
10004 Berlin

Leipziger Str. 124 
10117 Berlin 
GERMANY

Phone   +49 30 206143 875
eMail   [EMAIL PROTECTED]
Web http://www.primacall.de
==

Amtsgericht und Sitz: Berlin, HRB 98348 B
Steuernummer: 37-199-20919
Geschäftsführer: M. Vukusic

Die in dieser E-Mail enthaltenen Informationen sind vertraulich und können
rechtlich bedeutsam sein. Sie sind ausschließlich für den Adressaten
bestimmt und jeglicher Zugriff durch andere Personen ist unzulässig. Falls
Sie nicht der beabsichtigte Empfänger sind, ist jegliche Veröffentlichung,
Verteilung oder sonstige in diesem Zusammenhang stehende Handlung untersagt
und unter Umständen rechtswidrig. Herkömmliche E-Mails sind zudem nicht
gegen Zugriff geschützt und können mit und ohne Einfluss von Dritten
verloren gehen, verändert oder verfälscht werden. Eine Haftung für die
Unversehrtheit von E-Mails oder hieraus entstandene Schäden kann daher nicht
übernommen werden.

The information in this e-mail is confidential and may be legally
privileged. It is intended solely for the addressee and access to the e-mail
by anyone else is prohibited. If you are not the intended recipient, any
disclosure, distribution or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. Common e-mails are not
protected against access by third persons and therefore might be lost,
changed or falsified, with or without any interference by third persons. We
cannot accept any responsibility for the integrity of e-mails or for any
damages resulting out of these circumstances.



-
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] Multiple commands in RunScript possible?

2007-11-14 Thread Michael Short
I would recommend using a bash script to achieve these, the reason
your ';'s aren't working is that ';' is an interpreted command,
something bacula does not understand.

Sincerely,
-Michael

On 11/14/07, Vladimirs Vecgailis <[EMAIL PROTECTED]> wrote:
> Hi all!
>
> Following question - is it possible to run multiple commands with RunScript 
> on client side?
>
> I.e.
>
> 
>  RunScript {
>RunsWhen = Before
>FailJobOnError = Yes
>Command = "/etc/init.d/someservice stop; lvcreate -s -n 
> myservicebackup /dev/mylv/servicelv; /etc/init.d/someservice start"
>RunsOnClient = yes
>  }
> 
>
> I tested such Definition, but only the first commans was executed - 
> "someservice stop".
> All other have been ignored (?).
>
> What i done now is, i defined multiple RunScript-Definitions and arranged 
> them in the order i need:
>
> 
>  RunScript {
>RunsWhen = Before
>FailJobOnError = Yes
>Command = "/etc/init.d/someservice stop"
>RunsOnClient = yes
>  }
>  RunScript {
>RunsWhen = Before
>FailJobOnError = Yes
>Command = "lvcreate -s -n myservicebackup /dev/mylv/servicelv"
>RunsOnClient = yes
>  }
>  RunScript {
>RunsWhen = Before
>FailJobOnError = Yes
>Command = "/etc/init.d/someservice start"
>RunsOnClient = yes
>  }
> 
>
>
> 1. Question - is it possible to define multiple commands?
> 2. Question - is such "hack" - definition of multiple RunScripts ok?
>
>
> Thanks in advance!
>
>
> Mit freundlichen Grüßen
>
> Vladimirs Vecgailis
>
> --
>
> ==
> Vladimirs Vecgailis
> Second Level IT
> primacall Vertriebs-GmbH
> Postfach 08 04 55
> 10004 Berlin
>
> Leipziger Str. 124
> 10117 Berlin
> GERMANY
>
> Phone   +49 30 206143 875
> eMail   [EMAIL PROTECTED]
> Web http://www.primacall.de
> ==
>
> Amtsgericht und Sitz: Berlin, HRB 98348 B
> Steuernummer: 37-199-20919
> Geschäftsführer: M. Vukusic
>
> Die in dieser E-Mail enthaltenen Informationen sind vertraulich und können
> rechtlich bedeutsam sein. Sie sind ausschließlich für den Adressaten
> bestimmt und jeglicher Zugriff durch andere Personen ist unzulässig. Falls
> Sie nicht der beabsichtigte Empfänger sind, ist jegliche Veröffentlichung,
> Verteilung oder sonstige in diesem Zusammenhang stehende Handlung untersagt
> und unter Umständen rechtswidrig. Herkömmliche E-Mails sind zudem nicht
> gegen Zugriff geschützt und können mit und ohne Einfluss von Dritten
> verloren gehen, verändert oder verfälscht werden. Eine Haftung für die
> Unversehrtheit von E-Mails oder hieraus entstandene Schäden kann daher nicht
> übernommen werden.
>
> The information in this e-mail is confidential and may be legally
> privileged. It is intended solely for the addressee and access to the e-mail
> by anyone else is prohibited. If you are not the intended recipient, any
> disclosure, distribution or any action taken or omitted to be taken in
> reliance on it, is prohibited and may be unlawful. Common e-mails are not
> protected against access by third persons and therefore might be lost,
> changed or falsified, with or without any interference by third persons. We
> cannot accept any responsibility for the integrity of e-mails or for any
> damages resulting out of these circumstances.
>
>
>
> -
> 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] Question on Bacula backup strategy

2007-11-14 Thread Win Htin
Hi folks,

As part of our audit requirement, I need to be able to recover data for " *5
years to the exact* *date* " and would like to have advice on best way to
implement it.

# Questions:
1. Backup strategy:
a) Multiple Jobs : Define ONE job per client ( I don't foresee more than
30 clients
max for the next few years)
b) Single Job : Mount ReadOnly of clients' partitions and backup through
ONE job.

   - Will this strategy cause issues with file restores in the future?
   - How about *.bsr files in this scenario?

   c) I am planning to create a directory where all differentials for
relevant data are backed up (onto a file system) on a weekly basis and then
back up that whole directory at the end of the month when I do a Full backup
which will be taken off-site.

2. Tape Pools:
a) Single or multiple pools?
Current tests are being done with TWO pools, differential and full.

3. Retention Period:
a)  What is the best strategy to recover data for 5 yrs to the exact
date? Keep record of
 what was backed up on to the off-site tapes and do "bscan"?
 Current definition for clients:
 Client {
Name = nfsserver-fd
Address = nfsserver
FDPort = 9102
Catalog = MYSQL
Password = "blahblahblah"   # password for FileDaemon
File Retention = 60 days
Job Retention = 6 months
AutoPrune = yes# Prune expired Jobs/Files
}
  Current definition for both pools:
Pool {
Name = AllFulls ** NOTE:  > Same for AllDifferentials
Pool Type = Backup
Recycle = yes   # Bacula can automatically recycle
Volumes
AutoPrune = yes# Prune expired volumes
Storage = IBM_Changer1
Volume Retention = 365 days
}

4. Is backing up the Bacula catalog on a daily basis sufficient to recover
Bacula database in case the MySQL database goes up in smoke?

Thanks in advance for the much anticipated input.

Cheers,

Win
-
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] bcopy problem?

2007-11-14 Thread Martin Simmons
> On Tue, 13 Nov 2007 23:34:06 +0100, Eric =?utf-8?Q?B=C3=B6se-Wolf?= said:
> 
> Hello Martin,
> 
> [EMAIL PROTECTED] (Eric Böse-Wolf) writes:
> 
> > Hello Martin,
> >
> > Martin Simmons <[EMAIL PROTECTED]> writes:
> >
> >>> ./bcopy -c ../config/bacula-sd.conf -w /opt/bacula/working/ DVD-RAM \
> >>> Dell-TD6100-152 -i 'Archive-0001|Archive-0002|Archive-0003|Archive-0004\
> >>> |Archive-0005|Archive-0006|Archive-0007|Archive-0008|Archive-0009' \
> >>> -o 'Archive-Tape-1'
> 
> Now I wanted to test this Archive-Tape-1 Volume and did a bcopy to a 
> filestorage, an bls on that file gave:
> 
> hq:/opt/bacula# bin/bls -c config/bacula-sd.conf -j -VArchive-File-1
> teststorage
> bls: match.c:249-0 add_fname_to_include prefix=0 gzip=0 fname=/
> bls: butil.c:282 Using device: "teststorage" for reading.
> 13-Nov 18:33 bls JobId 0: Ready to read from volume "Archive-File-1" on
> device "teststorage" (/opt/bacula/teststorage).
> Volume Record: File:blk=0:64511 SessId=1 SessTime=1194963345 JobId=0
> DataLen=163
> Begin Job Session Record: File:blk=0:64710 SessId=1 SessTime=1194451494
> JobId=1
>Job=archiving1.2007-11-07_17.08.04 Date=07-Nov-2007 17:08:35 Level=F
>Type=B
> End Job Session Record: File:blk=4:1114443800 SessId=1
> SessTime=1194451494 JobId=1
>Date=07-Nov-2007 19:07:30 Level=F Type=B Files=3,342
>Bytes=18,280,593,556 Errors=0 Status=T
> End Job Session Record: File:blk=4:1114451634 SessId=1
> SessTime=1194459666 JobId=1
>Date=07-Nov-2007 19:07:30 Level=F Type=B Files=3,342
>Bytes=18,280,593,556 Errors=0 Status=T
> End Job Session Record: File:blk=4:1114452054 SessId=1
> SessTime=1194459666 JobId=1
>Date=07-Nov-2007 19:07:30 Level=F Type=B Files=3,342
>Bytes=18,280,593,556 Errors=0 Status=T
> End Job Session Record: File:blk=4:1886789674 SessId=1
> SessTime=1194459666 JobId=2
>Date=07-Nov-2007 19:42:34 Level=F Type=B Files=1,323
>Bytes=771,763,332 Errors=0 Status=T
> End Job Session Record: File:blk=4:1886797980 SessId=1
> SessTime=1194461231 JobId=2
>Date=07-Nov-2007 19:42:34 Level=F Type=B Files=1,323
>Bytes=771,763,332 Errors=0 Status=T
> End Job Session Record: File:blk=4:1886798442 SessId=1
> SessTime=1194461231 JobId=2
>Date=07-Nov-2007 19:42:34 Level=F Type=B Files=1,323
>Bytes=771,763,332 Errors=0 Status=T
> End Job Session Record: File:blk=8:1484177429 SessId=1
> SessTime=1194461231 JobId=3
>Date=08-Nov-2007 01:45:10 Level=F Type=B Files=104,609
>Bytes=16,761,465,453 Errors=0 Status=T
> End Job Session Record: File:blk=8:1484198239 SessId=3
> SessTime=1194544349 JobId=3
>Date=08-Nov-2007 01:45:10 Level=F Type=B Files=104,609
>Bytes=16,761,465,453 Errors=0 Status=T
> End Job Session Record: File:blk=8:1484198709 SessId=3
> SessTime=1194544349 JobId=3
>Date=08-Nov-2007 01:45:10 Level=F Type=B Files=104,609
>Bytes=16,761,465,453 Errors=0 Status=T
> End Job Session Record: File:blk=8:1523404827 SessId=3
> SessTime=1194544349 JobId=10
>Date=08-Nov-2007 20:06:22 Level=F Type=B Files=21 Bytes=39,303,970
>Errors=0 Status=T
> End Job Session Record: File:blk=8:1523404827 SessId=3
> SessTime=1194544349 JobId=10
>Date=08-Nov-2007 20:06:22 Level=F Type=B Files=21 Bytes=39,303,970
>Errors=0 Status=T
> End Job Session Record: File:blk=8:1523404827 SessId=3
> SessTime=1194544349 JobId=10
>Date=08-Nov-2007 20:06:22 Level=F Type=B Files=21 Bytes=39,303,970
>Errors=0 Status=T
> 13-Nov 18:41 bls JobId 0: End of Volume at file 8 on device
> "teststorage" (/opt/bacula/teststorage), Volume "Archive-File-1"
> 13-Nov 18:41 bls JobId 0: End of all volumes.
> 
> So there should be 4 Jobs on the tape, but there seem to be only 
> End Job Session records and only one beginning job record 
> 
> Is bcopy broken?

Yes, it looks like bcopy creates broken file volumes :-(

However, it does read the input volume, so it is a useful test for their
correctness.

Does bls give the same "short block" error when reading the DVD-RAM volume?

Does restore work for the jobs on DVD-RAM volume Archive-0001?

__Martin


> 
> > As this complete line takes rather long to complete, I did setup a 
> > teststorage and did
> >
> > ./bcopy -c ../config/bacula-sd.conf -w /opt/bacula/working/ DVD-RAM \
> > teststorage -i 'Archive-0001' -o 'test1'
> >
> > and got the same error message (of course with different times):
> >
> >>> 09-Nov 20:32 bcopy JobId 0: Error: block.c:1091 Volume data error at
> >>> 1:284417160! Short block of 4983 bytes on device "DVD-RAM"
> >>> (/media/cdrom0) discarded.
> >>> 
> >>> 09-Nov 20:32 bcopy JobId 0: Error: read_record.c:142 block.c:1091 Volume
> >>> data error at 1:284417160! Short block of 4983 bytes on device "DVD-RAM"
> >>> (/media/cdrom0) discarded.
> >
> >> The error means that the block length recorded in the block's header is 
> >> longer
> >> than the data read from the device.
> >>
> >> I would expect that to be impossible unless the volume is corrupted.  Did 
> >> you
> >> get any syslog messages?  I

Re: [Bacula-users] Multiple commands in RunScript possible?

2007-11-14 Thread Rich
resending to list, too

--
On 2007.11.14. 16:13, Vladimirs Vecgailis wrote:
> Hi all!
> 
> Following question - is it possible to run multiple commands with RunScript 
> on client side?
> 
> I.e.
> 
> 
>   RunScript {
> RunsWhen = Before
> FailJobOnError = Yes
> Command = "/etc/init.d/someservice stop; lvcreate -s -n 
> myservicebackup /dev/mylv/servicelv; /etc/init.d/someservice start"

i would suggest using a script (i was doing that in a very similar
scenario).

script would also take care of any errors and could return nicely
desired code for bacula to decide whether backup should proceed or not.

it would also make sure that, if snapshot creation fails, service is
started again (which might not happen in the second configuration).

obviously, don't forget runafter job which removes the snapshot (unless
for some reason it will be kept)

> RunsOnClient = yes
>   }
> 
> 
> I tested such Definition, but only the first commans was executed - 
> "someservice stop".
> All other have been ignored (?).
> 
> What i done now is, i defined multiple RunScript-Definitions and arranged 
> them in the order i need:
> 
> 
>   RunScript {
> RunsWhen = Before
> FailJobOnError = Yes
> Command = "/etc/init.d/someservice stop"
> RunsOnClient = yes
>   }
>   RunScript {
> RunsWhen = Before
> FailJobOnError = Yes
> Command = "lvcreate -s -n myservicebackup /dev/mylv/servicelv"
> RunsOnClient = yes
>   }
>   RunScript {
> RunsWhen = Before
> FailJobOnError = Yes
> Command = "/etc/init.d/someservice start"
> RunsOnClient = yes
>   }
> 
> 
> 
> 1. Question - is it possible to define multiple commands?
> 2. Question - is such "hack" - definition of multiple RunScripts ok?
...
-- 
  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


[Bacula-users] Jobs with "Max Run Time" canceled whereas not already started

2007-11-14 Thread Alexandre SIMON
=== operating system

   iLinux (our own linux company distribution)
   gcc  3.4.6
   glibc2.3.6
   mysql5.0.45
   openssl  0.9.8g
   kernel   2.6.21.3


=== version of Bacula

   bacula 2.2.5, compiled and installed from sources

./configure --prefix=/usr/local/bacula-2.2.5
--sbindir=/usr/local/bacula-2.2.5/sbin
--with-scriptdir=/usr/local/bacula-2.2.5/bin
--mandir=/usr/local/bacula-2.2.5/man
--sysconfdir=/usr/local/bacula-2.2.5/etc
--with-working-dir=/usr/local/bacula-2.2.5/var/working
--with-pid-dir=/usr/local/bacula-2.2.5/var/run
--with-subsys-dir=/usr/local/bacula-2.2.5/var/run/subsys
--with-openssl=/usr/local/openssl --with-mysql=/usr/local/mysql
--disable-conio --enable-readline --with-readline=/usr/include/readline
--with-dir-user=bacula --with-dir-group=bacula --with-sd-user=bacula
--with-sd-group=bacula --with-fd-user=root --with-fd-group=root
--enable-ipv6 --enable-bat --with-qwt=/usr/local/qwt


=== description of the problem

   when i start at the same time 2 jobs :
 - as i use only one "File" storage, the second job waits for the
first to be completed (this is normal)
 - on this second job, i have set a "Max Run Time = 2 minutes"
 - the first job takes more than 2 minutes (no problem for it,
because i have no "Max Run Time" on it)
 - **the problem is** that during the first job is running the
second is canceled for this reason "Fatal error: Max run time exceeded.
Job canceled." whereas it was not running (because waiting for the first
to be completed).


=== explications and workaround

   after some C reading, it seems that in the function
job_check_maxruntime in src/dird/job.c the code does not check if the
job is running or not. So as "jcr->start_time" is set when job is
created, then the test

if ((watchdog_time - jcr->start_time) < jcr->job->MaxRunTime) {
   Dmsg3(200, "Job %p (%s) with MaxRunTime %d not expired\n",
 jcr, jcr->Job, jcr->job->MaxRunTime);
   return false;
}

   fails whereas the job was not running.

   I think about a patch in this function like :

--- src/dird/job.c.orig 2007-11-14 14:45:08.0 +0100
+++ src/dird/job.c  2007-11-14 14:46:31.0 +0100
@@ -556,7 +556,7 @@
   */
  static bool job_check_maxruntime(JCR *control_jcr, JCR *jcr)
  {
-   if (jcr->job->MaxRunTime == 0 || job_canceled(jcr)) {
+   if (jcr->job->MaxRunTime == 0 || job_canceled(jcr) || jcr->JobStatus
!= JS_Running) {
return false;
 }
 if ((watchdog_time - jcr->start_time) < jcr->job->MaxRunTime) {



   I have see a bug that matches this problem
(http://bugs.bacula.org/view.php?id=621) but it seems to be "resolved"
for a reason that i don't understand whereas the problem still presents.



   Do you think it's a bug ?
   Would you like me to open this bug and submit the patch in Mantis ?

   Best regards,
   Alex.


-- 
Alexandre SIMON
Cellule (R)éseau StanNet/Lothaire

C.I.R.I.L.| Perm. réseau : +33 (0)3.83.68.24.24
Château du Montet | Tél.  direct : +33 (0)3.83.68.24.32
Rue du Doyen Roubault | Fax  : +33 (0)3.83.68.24.01
F - 54500 VANDOEUVRE  | Email: [EMAIL PROTECTED]




-
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] Looking for client removal documentation

2007-11-14 Thread Chris Lee
Another user asked me this morning about safely and completely removing all
traces of a given client from their director and storage.

Fortunately, since he uses disk-based volumes this didn't involve erasing a
bunch of tapes.

I'm sure that the method I advised is not the cleanest or most efficient,
but I basically told him the following.

Disable the client's job(s) from the console.  Comment-out, or remove the
job declaration(s) for that client in the director config.  

purge jobs client=foobar-fd
purge files client=foobar-fd

Since the user was not mixing clients in this pool we move on to removing
those volumes.

purge
volume
(repetitively select volumes to purge)

delete
volume
(repetitively select volumes to delete)

delete
pool


Now we should be safe to rm the volume files on disk and free up loads of
space.

The volume purging and deleting could be wrapped in a script to ease that
part, but that means writing out said script and making sure it works
correctly before you execute it.

If any of the above is wrong then *please* correct me.  Otherwise, does
anyone have a better way to do this?  In either case, is there any chance we
could get this documented in the manual and/or wiki?

Thanks,
Chris Lee


-
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] bcopy problem?

2007-11-14 Thread Eric Böse-Wolf
Hello Martin,

Martin Simmons <[EMAIL PROTECTED]> writes:

>> >>> ./bcopy -c ../config/bacula-sd.conf -w /opt/bacula/working/ DVD-RAM \
>> >>> Dell-TD6100-152 -i 'Archive-0001|Archive-0002|Archive-0003|Archive-0004\
>> >>> |Archive-0005|Archive-0006|Archive-0007|Archive-0008|Archive-0009' \
>> >>> -o 'Archive-Tape-1'

>> Is bcopy broken?

> Yes, it looks like bcopy creates broken file volumes :-(

> However, it does read the input volume, so it is a useful test for their
> correctness.

We still need something to copy volumes around (from tape to file, from
file to tape, without touching the catalog ...)

> Does bls give the same "short block" error when reading the DVD-RAM volume?

Yes.

> Does restore work for the jobs on DVD-RAM volume Archive-0001?

This is what I got trying to do a restore from Archive-0001: (Newlines
inserted)

14-Nov 16:42 hq-sd JobId 31: Error: block.c:1091 Volume data error at
1:284417160! Short block of 4983 bytes on device "DVD-RAM"
(/media/cdrom0) discarded.

14-Nov 16:42 hq-sd JobId 31: Error: read_record.c:142 block.c:1091
Volume data error at 1:284417160! Short block of 4983 bytes on device
"DVD-RAM" (/media/cdrom0) discarded.

14-Nov 16:42 hq-sd JobId 31: End of file 1 on device "DVD-RAM"
(/media/cdrom0), Volume "Archive-0001"

14-Nov 16:42 hq-sd JobId 31: End of Volume at file 1 on device "DVD-RAM"
(/media/cdrom0), Volume "Archive-0001"

14-Nov 16:42 hq-sd JobId 31: Warning: acquire.c:206 Read open device
"DVD-RAM" (/media/cdrom0) Volume "Archive-0002" failed: ERR=dev.c:491
Could not open: /media/cdrom0/Archive-0002, ERR=No such file or
directory

14-Nov 16:42 hq-sd JobId 31: Please mount Volume "Archive-0002" or label
a new one for:
Job:  Restore.2007-11-14_16.30.04
Storage:  "DVD-RAM" (/media/cdrom0)
Pool: Default
Media type:   /media/cdrom0
*mount DVD-RAM
3001 OK mount. Device="DVD-RAM" (/media/cdrom0)

14-Nov 16:47 hq-sd JobId 31: Ready to read from volume "Archive-0002" on
device "DVD-RAM" (/media/cdrom0).

14-Nov 16:47 hq-sd JobId 31: Forward spacing Volume "Archive-0002" to
file:block 0:199.

Archive-0001 was created by bacula-sd 2.2.5 by doing a backup job in
bconsole writing a file volume to a mounted DVD-RAM with ufs
filesystem. Maybe the out of storage detection is not good for this
combination. I would expect bacula to detect that it didn't write the
whole block and repeat the block at the beginning of the next volume,
but why does the restore go on on file 0 block 199 of the next
volume?

As I proposed to do some archiving here, I don't have the data backup'ed
up to those Archive-000? any more in some other storage. How can I
detect which files have been damaged?

I suppose that most of the backup is useful, as the restore goes on ...

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


Re: [Bacula-users] bcopy problem?

2007-11-14 Thread Eric Böse-Wolf
Hello Martin,

[EMAIL PROTECTED] (Eric Böse-Wolf) writes:

>> Does restore work for the jobs on DVD-RAM volume Archive-0001?
>
> This is what I got trying to do a restore from Archive-0001: (Newlines
> inserted)

> [Copy and Paste deleted]

Additionally I get (after the whole restore):

14-Nov 17:33 hq-sd JobId 31: End of file 1 on device "DVD-RAM"
(/media/cdrom0), Volume "Archive-0004"
14-Nov 17:33 hq-sd JobId 31: End of Volume at file 1 on device "DVD-RAM"
(/media/cdrom0), Volume "Archive-0004"
14-Nov 17:33 hq-sd JobId 31: End of all volumes.
14-Nov 17:33 hq-dir JobId 31: Bacula hq-dir 2.2.5 (09Oct07): 14-Nov-2007
17:33:51
  Build OS:   i686-pc-linux-gnu debian lenny/sid
  JobId:  31
  Job:Restore.2007-11-14_16.30.04
  Restore Client: hq-fd
  Start time: 14-Nov-2007 16:30:39
  End time:   14-Nov-2007 17:33:51
  Files Expected: 3,342
  Files Restored: 3,342
  Bytes Restored: 18,280,046,615
  Rate:   4820.7 KB/s
  FD Errors:  0
  FD termination status:  OK
  SD termination status:  OK
  Termination:Restore OK


So bacula don't think, that the short blocks are a problem.

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


Re: [Bacula-users] Multiple commands in RunScript possible?

2007-11-14 Thread Vladimirs Vecgailis
On Wed, 14 Nov 2007 08:22:36 -0600
"Michael Short" <[EMAIL PROTECTED]> wrote:

> I would recommend using a bash script to achieve these, the reason
> your ';'s aren't working is that ';' is an interpreted command,
> something bacula does not understand.
> 
> Sincerely,
> -Michael
> 

Thanks to all for the answers.

Well, ok, if bacula can't handle it... i'll create a script...


Cheers!



Mit freundlichen Grüßen

Vladimirs Vecgailis

--

==
Vladimirs Vecgailis
Second Level IT
primacall Vertriebs-GmbH
Postfach 08 04 55
10004 Berlin

Leipziger Str. 124 
10117 Berlin 
GERMANY

Phone   +49 30 206143 875
eMail   [EMAIL PROTECTED]
Web http://www.primacall.de
==

Amtsgericht und Sitz: Berlin, HRB 98348 B
Steuernummer: 37-199-20919
Geschäftsführer: M. Vukusic

Die in dieser E-Mail enthaltenen Informationen sind vertraulich und können
rechtlich bedeutsam sein. Sie sind ausschließlich für den Adressaten
bestimmt und jeglicher Zugriff durch andere Personen ist unzulässig. Falls
Sie nicht der beabsichtigte Empfänger sind, ist jegliche Veröffentlichung,
Verteilung oder sonstige in diesem Zusammenhang stehende Handlung untersagt
und unter Umständen rechtswidrig. Herkömmliche E-Mails sind zudem nicht
gegen Zugriff geschützt und können mit und ohne Einfluss von Dritten
verloren gehen, verändert oder verfälscht werden. Eine Haftung für die
Unversehrtheit von E-Mails oder hieraus entstandene Schäden kann daher nicht
übernommen werden.

The information in this e-mail is confidential and may be legally
privileged. It is intended solely for the addressee and access to the e-mail
by anyone else is prohibited. If you are not the intended recipient, any
disclosure, distribution or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. Common e-mails are not
protected against access by third persons and therefore might be lost,
changed or falsified, with or without any interference by third persons. We
cannot accept any responsibility for the integrity of e-mails or for any
damages resulting out of these circumstances.



-
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] FD error 'No Data Available'

2007-11-14 Thread Jason Martin
I am receiving a message like this whenever I attempt to perform
a remote backup. The director / storagr is on my home system (on
Comcast) and the remote system is at a VPS.  The director and
client are both 2.2.5 on Gentoo Linux.  None of the processes
are dieing and the bacula logfile doesn't tell me anything
interesting. I ran both the client and the director as '-f -d
99' but nothing jumped out as a problem.  Any suggestions on
what might be causing this?

Thank you,
-Jason Martin

14-Nov 08:32 butler-dir JobId 16: No prior Full backup Job record found.
14-Nov 08:32 butler-dir JobId 16: No prior or suitable Full backup found in 
catalog. Doing FULL backup.
14-Nov 08:32 butler-dir JobId 16: BeforeJob: run command "/usr/sbin/tmpwatch 
1440 /home/zippy_backup"
14-Nov 08:32 butler-dir JobId 16: BeforeJob: run command "/usr/sbin/tmpwatch 
1440 /mnt/backup"
14-Nov 08:32 butler-dir JobId 16: Start Backup JobId 16, 
Job=Mal.2007-11-14_08.32.03
14-Nov 08:32 butler-dir JobId 16: Created new Volume 
"Mal.2007-11-14_08.32.03-083240-16-33.dat" in catalog.
14-Nov 08:32 butler-dir JobId 16: Using Device "LocalFileStorage"
14-Nov 08:32 butler-sd JobId 16: Labeled new Volume 
"Mal.2007-11-14_08.32.03-083240-16-33.dat" on device "LocalFileStorage" 
(/home/zippy_backup).
14-Nov 08:32 butler-sd JobId 16: Wrote label to prelabeled Volume 
"Mal.2007-11-14_08.32.03-083240-16-33.dat" on device "LocalFileStorage" 
(/home/zippy_backup)
14-Nov 08:32 butler-dir JobId 16: Max Volume jobs exceeded. Marking Volume 
"Mal.2007-11-14_08.32.03-083240-16-33.dat" as Used.
butler-fd JobId 16:  /home is a different filesystem. Will not descend from 
/ into /home
butler-fd JobId 16:  /sys is a different filesystem. Will not descend from 
/ into /sys
butler-fd JobId 16:  /usr is a different filesystem. Will not descend from 
/ into /usr
butler-fd JobId 16:  /var is a different filesystem. Will not descend from 
/ into /var
14-Nov 08:50 butler-dir JobId 16: Fatal error: Network error with FD during 
Backup: ERR=No data available
14-Nov 08:50 butler-sd JobId 16: Job Mal.2007-11-14_08.32.03 marked to be 
canceled.
14-Nov 08:50 butler-sd JobId 16: Job write elapsed time = 00:17:28, Transfer 
rate = 187.1 K bytes/second
14-Nov 08:50 butler-dir JobId 16: Fatal error: No Job status returned from FD.
14-Nov 08:50 butler-dir JobId 16: Error: Bacula butler-dir 2.2.5 (09Oct07): 
14-Nov-2007 08:50:09
  Build OS:   i686-pc-linux-gnu gentoo 
  JobId:  16
  Job:Mal.2007-11-14_08.32.03
  Backup Level:   Full (upgraded from Incremental)
  Client: "mal-fd" 2.2.5 (09Oct07) i686-pc-linux-gnu,gentoo,
  FileSet:"Mal Set" 2007-11-10 23:05:00
  Pool:   "Default" (From Job resource)
  Storage:"LocalFile" (From Job resource)
  Scheduled time: 14-Nov-2007 08:32:37
  Start time: 14-Nov-2007 08:32:41
  End time:   14-Nov-2007 08:50:09
  Elapsed time:   17 mins 28 secs
  Priority:   10
  FD Files Written:   0
  SD Files Written:   12,048
  FD Bytes Written:   0 (0 B)
  SD Bytes Written:   196,184,110 (196.1 MB)
  Rate:   0.0 KB/s
  Software Compression:   None
  VSS:no
  Encryption: no
  Volume name(s): Mal.2007-11-14_08.32.03-083240-16-33.dat
  Volume Session Id:  1
  Volume Session Time:1195057942
  Last Volume Bytes:  196,606,126 (196.6 MB)
  Non-fatal FD errors:0
  SD Errors:  0
  FD termination status:  Error
  SD termination status:  Canceled
  Termination:*** Backup Error ***

-- 
This message is PGP/MIME signed.


pgp71CZ25cCbV.pgp
Description: PGP signature
-
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] bcopy problem?

2007-11-14 Thread Eric Böse-Wolf
Hello Martin,

[EMAIL PROTECTED] (Eric Böse-Wolf) writes:

> Hello Martin,
>
> [EMAIL PROTECTED] (Eric Böse-Wolf) writes:
>
>> Hello Martin,
>>
>> Martin Simmons <[EMAIL PROTECTED]> writes:
>>
 ./bcopy -c ../config/bacula-sd.conf -w /opt/bacula/working/ DVD-RAM \
 Dell-TD6100-152 -i 'Archive-0001|Archive-0002|Archive-0003|Archive-0004\
 |Archive-0005|Archive-0006|Archive-0007|Archive-0008|Archive-0009' \
 -o 'Archive-Tape-1'
>
> Now I wanted to test this Archive-Tape-1 Volume and did a bcopy to a 
> filestorage, an bls on that file gave:

Now I tested Archive-Tape-1 directly. The same shit. 

Begin Job Session Record: File:blk=0:2 SessId=1 SessTime=1194451494
JobId=1
   Job=archiving1.2007-11-07_17.08.04 Date=07-Nov-2007 17:08:35 Level=F
   Type=B
End Job Session Record: File:blk=18:4581 SessId=1 SessTime=1194451494
JobId=1
   Date=07-Nov-2007 19:07:30 Level=F Type=B Files=3,342
   Bytes=18,280,593,556 Errors=0 Status=T
End Job Session Record: File:blk=18:4582 SessId=1 SessTime=1194459666
JobId=1
   Date=07-Nov-2007 19:07:30 Level=F Type=B Files=3,342
   Bytes=18,280,593,556 Errors=0 Status=T
End Job Session Record: File:blk=19:1055 SessId=1 SessTime=1194459666
JobId=2
   Date=07-Nov-2007 19:42:34 Level=F Type=B Files=1,323
   Bytes=771,763,332 Errors=0 Status=T
End Job Session Record: File:blk=19:1056 SessId=1 SessTime=1194461231
JobId=2
   Date=07-Nov-2007 19:42:34 Level=F Type=B Files=1,323
   Bytes=771,763,332 Errors=0 Status=T


End Job Session Records without Begin Job Session Records .

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


Re: [Bacula-users] Btape test command fails

2007-11-14 Thread Brad M
A small update:
 
I installed an old Adaptec 2940 and ran the btape test command and it finished 
no problem.
 
I then ran the test 4 more times and all is good.
 
Currently I am performing a fill and it seems to be going alright, although 
maybe a tad slow. It's only writing at 20MB/s but I can figure that out later.
 
Thanks again for all your help everyone!
 
Brad.


From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Tue, 13 Nov 2007 13:10:33 
-0800Subject: Re: [Bacula-users] Btape test command fails


Hi again, The only errors that I could pull out were in the /var/log/messages: 
Nov 13 12:29:56 quagmire kernel: (sa0:aacp0:0:4:0): READ(06). CDB: 8 0 0 20 0 
0Nov 13 12:29:56 quagmire kernel: (sa0:aacp0:0:4:0): NO SENSE ILI (length 
mismatch): -56320 asc:0,0Nov 13 12:29:56 quagmire kernel: (sa0:aacp0:0:4:0): No 
additional sense informationNov 13 12:30:27 quagmire kernel: (sa0:aacp0:0:4:0): 
READ(06). CDB: 8 0 0 fc 0 0Nov 13 12:30:27 quagmire kernel: (sa0:aacp0:0:4:0): 
NO SENSE info:fc00 asc:0,1Nov 13 12:30:27 quagmire kernel: (sa0:aacp0:0:4:0): 
Filemark detectedNov 13 12:31:22 quagmire kernel: (sa0:aacp0:0:4:0): READ(06). 
CDB: 8 0 0 fc 0 0Nov 13 12:31:22 quagmire kernel: (sa0:aacp0:0:4:0): NO SENSE 
info:fc00 asc:0,1Nov 13 12:31:22 quagmire kernel: (sa0:aacp0:0:4:0): Filemark 
detected These errors were produced from running: ./btape -c bacula-sd.conf 
/dev/sa0rewindtest It seems I get the 'NO SENSE ILI (length mismatch)' and 'No 
additional sense information' messages the first time i perform a rewind on the 
tape from a fresh boot. All other tape rewinds that I perform do not cause 
these errors. I am still in the process of obtaining a different SCSI card to 
test to see if I have the same issues. Thanks, Brad. 

> Date: Tue, 13 Nov 2007 10:28:16 -0500> From: [EMAIL PROTECTED]> To: [EMAIL 
> PROTECTED]> Subject: Re: [Bacula-users] Btape test command fails> > is there 
> anything in dmesg or log files related to scsi when this error occurs?> > On 
> Fri, Nov 09, 2007 at 04:21:58PM -0800, Brad M wrote:> > Thanks for the post 
> Michael.> > > > Unfortunately I am still getting the same results.> > > > I 
> changed my SCSI card settings so that the ID of the tape drive was now:> > 
> Initiate Wide Negotiation = No> > Sync Transfer Rate = 40MB/s> > Packetized = 
> No> > QAS = No> > The tape drive is on the same channel as the hard drives so 
> I could not disable the BIOS for the channel.> > > > I did notice something 
> new... I have been doing all my testing via a SSH connection but saw that 
> every time I ran the btape test command, an error would be displayed on the 
> server's terminal.> > > > I then ran the btape test command at the server and 
> this is what I got:> > btape: btape.c:852 Rewind OK.> > 1000 blocks re-read 
> correctly.(sa0:aacp:0:0:4:0) : READ(06). CDB: 8 0 0 fc 0 0> > 
> (sa0:aacp:0:0:4:0) : NO SENSE info:fc00 asc:0,1(sa0:aacp:0:0:4:0) : Filemark 
> detected> > JobId 0: Error: block.c:995 Read error on fd=3 at file:blk 0:1000 
> on device "HP_Ultrium" (/dev/sa0). ERR=Operation not permitted.btape: 
> btape.c:864 Read block 1001 failed! ERR=Operation not permitted> > > > I was 
> not seeing the read, no sense and filemark messages via my SSH console.> > > 
> > Suggestions?> > > > Thanks!> > > > > > > > > > > Date: Fri, 9 Nov 2007 
> 16:25:31 -0500> From: [EMAIL PROTECTED]> To: [EMAIL PROTECTED]> CC: 
> bacula-users@lists.sourceforge.net> Subject: Re: [Bacula-users] Btape test 
> command fails> > i had somewhat similar problems with btape that i ended up 
> resolving by modifying the > configuration of my scsi controller. see this 
> thread:> > 
> http://sourceforge.net/mailarchive/forum.php?thread_name=20071030014308.GA31765%40sif.lsd.ornl.gov&forum_name=bacula-users>
>  > -- michael> > > > On Fri, Nov 09, 2007 at 01:07:13PM -0800, Brad M wrote:> 
> > Hi there, I am having some problems trying to get my Tape drive working 
> with Bacula. I am very new to the world of Bacula as I was only introduced to 
> it back at the BSDCan 2007 gathering. Basically I am setting up a new file 
> server and need to backup the data on a daily basis but can't get past the 
> point of simply testing my drive. When running the btape test command, it 
> seems that it is able to write to the device but unable to read from it. Here 
> is the error output: # ./btape -c bacula-sd.conf /dev/sa0Tape block 
> granularity is 1024 bytes.btape: butil.c:285 Using device: "/dev/sa0" for 
> writing.btape: btape.c:368 open device "HP_Ultrium" (/dev/sa0): OK*test=== 
> Write, rewind, and re-read test ===I'm going to write 1000 records and an 
> EOFthen 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 "HP_Ultrium" (/dev/sa0)btape: btape.c:843 Wrote 1000 blocks of 64412 
> bytes.btape: btape.c:501 Wrote 1 EOF to "HP_Ultrium" (/dev/sa0)btape: 
> btape.c:5

[Bacula-users] Need help installing bacula-fd on Debian

2007-11-14 Thread Shon Stephens
All,
 I am completely unfamiliar with Debian and its installation
system. I would like to know how others have easily (or not so easily)
installed a Bacula client (FD) on Debian hosts.

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] Need help installing bacula-fd on Debian

2007-11-14 Thread Eric Böse-Wolf
Hi Shon,

"Shon Stephens" <[EMAIL PROTECTED]> writes:

> installed a Bacula client (FD) on Debian hosts.

In testing is bacula 2.2.0, so for a production system you should
compile bacula 2.2.6 yourself and use something like GNU stow
to avoid "pollution" of the system.

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


Re: [Bacula-users] Need help installing bacula-fd on Debian

2007-11-14 Thread Jason Joines
Shon Stephens wrote:
> All,
>  I am completely unfamiliar with Debian and its installation
> system. I would like to know how others have easily (or not so easily)
> installed a Bacula client (FD) on Debian hosts.
> 
> Thanks,
> Shon



 I manually installed the packman 2.2.5 version of bacula for Ubuntu 
7.04 Feisty on several Ubuntu 7.10 Gutsy boxes.  There were no dependecy 
issues and they have been running just fine.

 A Google search for "+packman +bacula" found this, 
http://mirror.geht-schon.de/packman.links2linux.de/debian/pool/etch/updates/. 
  If you're using Debian 4.0 Etch, I'd try those.  There are versions 
for earlier Debian versions too.

 To install the client only I manually installed bacula-client, 
bacula-common, and bacula-fd with "dpkg -i".  Then edit 
/etc/bacula/bacula-fd.conf for your environment and the client should be 
good to go.


Jason Joines
=


-
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] bcopy problem?

2007-11-14 Thread Martin Simmons
> On Wed, 14 Nov 2007 19:04:26 +0100, Eric =?utf-8?Q?B=C3=B6se-Wolf?= said:
> 
> Hello Martin,
> 
> [EMAIL PROTECTED] (Eric Böse-Wolf) writes:
> 
> > Hello Martin,
> >
> > [EMAIL PROTECTED] (Eric Böse-Wolf) writes:
> >
> >> Hello Martin,
> >>
> >> Martin Simmons <[EMAIL PROTECTED]> writes:
> >>
>  ./bcopy -c ../config/bacula-sd.conf -w /opt/bacula/working/ DVD-RAM \
>  Dell-TD6100-152 -i 'Archive-0001|Archive-0002|Archive-0003|Archive-0004\
>  |Archive-0005|Archive-0006|Archive-0007|Archive-0008|Archive-0009' \
>  -o 'Archive-Tape-1'
> >
> > Now I wanted to test this Archive-Tape-1 Volume and did a bcopy to a 
> > filestorage, an bls on that file gave:
> 
> Now I tested Archive-Tape-1 directly. The same shit. 

Hmm, that's bad.

I think the recommended solution would be to use a migration job in Bacula
instead of bcopy.

__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] Need help installing bacula-fd on Debian

2007-11-14 Thread Zakai Kinan
I don't use the binary version of Bacula.  Simply
download the source code - untar it - first comand =
./configure --client-only - second command = make &&
make install.  That is it.

ZK

--- Shon Stephens <[EMAIL PROTECTED]> wrote:

> All,
>  I am completely unfamiliar with Debian and its
> installation
> system. I would like to know how others have easily
> (or not so easily)
> installed a Bacula client (FD) on Debian hosts.
> 
> 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
> 



  

Be a better sports nut!  Let your teams follow you 
with Yahoo Mobile. Try it now.  
http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ

-
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] bcopy problem?

2007-11-14 Thread Martin Simmons
> On Wed, 14 Nov 2007 16:54:57 +0100, Eric =?utf-8?Q?B=C3=B6se-Wolf?= said:
> 
> Hello Martin,
> 
> Martin Simmons <[EMAIL PROTECTED]> writes:
> 
> >> >>> ./bcopy -c ../config/bacula-sd.conf -w /opt/bacula/working/ DVD-RAM \
> >> >>> Dell-TD6100-152 -i 
> >> >>> 'Archive-0001|Archive-0002|Archive-0003|Archive-0004\
> >> >>> |Archive-0005|Archive-0006|Archive-0007|Archive-0008|Archive-0009' \
> >> >>> -o 'Archive-Tape-1'
> 
> >> Is bcopy broken?
> 
> > Yes, it looks like bcopy creates broken file volumes :-(
> 
> > However, it does read the input volume, so it is a useful test for their
> > correctness.
> 
> We still need something to copy volumes around (from tape to file, from
> file to tape, without touching the catalog ...)
> 
> > Does bls give the same "short block" error when reading the DVD-RAM volume?
> 
> Yes.

Good, that is as expected because it uses the same code.


> > Does restore work for the jobs on DVD-RAM volume Archive-0001?
> 
> This is what I got trying to do a restore from Archive-0001: (Newlines
> inserted)
> 
> 14-Nov 16:42 hq-sd JobId 31: Error: block.c:1091 Volume data error at
> 1:284417160! Short block of 4983 bytes on device "DVD-RAM"
> (/media/cdrom0) discarded.
> 
> 14-Nov 16:42 hq-sd JobId 31: Error: read_record.c:142 block.c:1091
> Volume data error at 1:284417160! Short block of 4983 bytes on device
> "DVD-RAM" (/media/cdrom0) discarded.
> 
> 14-Nov 16:42 hq-sd JobId 31: End of file 1 on device "DVD-RAM"
> (/media/cdrom0), Volume "Archive-0001"
> 
> 14-Nov 16:42 hq-sd JobId 31: End of Volume at file 1 on device "DVD-RAM"
> (/media/cdrom0), Volume "Archive-0001"
> 
> 14-Nov 16:42 hq-sd JobId 31: Warning: acquire.c:206 Read open device
> "DVD-RAM" (/media/cdrom0) Volume "Archive-0002" failed: ERR=dev.c:491
> Could not open: /media/cdrom0/Archive-0002, ERR=No such file or
> directory
> 
> 14-Nov 16:42 hq-sd JobId 31: Please mount Volume "Archive-0002" or label
> a new one for:
> Job:  Restore.2007-11-14_16.30.04
> Storage:  "DVD-RAM" (/media/cdrom0)
> Pool: Default
> Media type:   /media/cdrom0
> *mount DVD-RAM
> 3001 OK mount. Device="DVD-RAM" (/media/cdrom0)
> 
> 14-Nov 16:47 hq-sd JobId 31: Ready to read from volume "Archive-0002" on
> device "DVD-RAM" (/media/cdrom0).
> 
> 14-Nov 16:47 hq-sd JobId 31: Forward spacing Volume "Archive-0002" to
> file:block 0:199.
> 
> Archive-0001 was created by bacula-sd 2.2.5 by doing a backup job in
> bconsole writing a file volume to a mounted DVD-RAM with ufs
> filesystem. Maybe the out of storage detection is not good for this
> combination.

Yes, it looks like there is no code to remove a half-written block from the
end when it gets an error.


>  I would expect bacula to detect that it didn't write the
> whole block and repeat the block at the beginning of the next volume,
> but why does the restore go on on file 0 block 199 of the next
> volume?

The file and block numbers reported for disk volumes are the upper and lower
32 bits of the byte position, i.e. 1:284417160 is byte 4579384456 in
Archive-0001 and 0:199 is byte 199 in Archive-0002.  The volume header is
probably 199 bytes.


> As I proposed to do some archiving here, I don't have the data backup'ed
> up to those Archive-000? any more in some other storage. How can I
> detect which files have been damaged?

Maybe using bls to list the files?  The last file listed for Archive-0001 or
the first file listed for Archive-0002.

You could also find the information from the catalog but it is complicated.


> 
> I suppose that most of the backup is useful, as the restore goes on ...


> On Wed, 14 Nov 2007 17:45:30 +0100, Eric =?utf-8?Q?B=C3=B6se-Wolf?= said:
> 
> Hello Martin,
> 
> [EMAIL PROTECTED] (Eric Böse-Wolf) writes:
> 
> >> Does restore work for the jobs on DVD-RAM volume Archive-0001?
> >
> > This is what I got trying to do a restore from Archive-0001: (Newlines
> > inserted)
> 
> > [Copy and Paste deleted]
> 
> Additionally I get (after the whole restore):
> 
> 14-Nov 17:33 hq-sd JobId 31: End of file 1 on device "DVD-RAM"
> (/media/cdrom0), Volume "Archive-0004"
> 14-Nov 17:33 hq-sd JobId 31: End of Volume at file 1 on device "DVD-RAM"
> (/media/cdrom0), Volume "Archive-0004"
> 14-Nov 17:33 hq-sd JobId 31: End of all volumes.
> 14-Nov 17:33 hq-dir JobId 31: Bacula hq-dir 2.2.5 (09Oct07): 14-Nov-2007
> 17:33:51
>   Build OS:   i686-pc-linux-gnu debian lenny/sid
>   JobId:  31
>   Job:Restore.2007-11-14_16.30.04
>   Restore Client: hq-fd
>   Start time: 14-Nov-2007 16:30:39
>   End time:   14-Nov-2007 17:33:51
>   Files Expected: 3,342
>   Files Restored: 3,342
>   Bytes Restored: 18,280,046,615
>   Rate:   4820.7 KB/s
>   FD Errors:  0
>   FD termination status:  OK
>   SD termination status:  OK
>   Termination:Restore OK
> 
> 
> So bacula don't think, that the short blocks 

Re: [Bacula-users] Btape test command fails

2007-11-14 Thread Brad M
The difficult SCSI card was an Adaptec 2130SLP.
 
I was using a RAID Array on the card with the tape drive attached.The btape 
fill command is now performing the read back process using the Adaptec 2940 so 
I'm quite happy that things are working correctly.
 
Now the fun begins...



> Date: Wed, 14 Nov 2007 14:32:09 -0500> From: [EMAIL PROTECTED]> To: [EMAIL 
> PROTECTED]> Subject: Re: [Bacula-users] Btape test command fails> > amazing 
> how difficult scsi can be, as mature as it is. i find it very frustrating.> 
> what was the difficult scsi adapter again?> > -- michael> > On Wed, Nov 14, 
> 2007 at 09:46:34AM -0800, Brad M wrote:> > A small update:> > > > I installed 
> an old Adaptec 2940 and ran the btape test command and it finished no 
> problem.> > > > I then ran the test 4 more times and all is good.> > > > 
> Currently I am performing a fill and it seems to be going alright, although 
> maybe a tad slow. It's only writing at 20MB/s but I can figure that out 
> later.> > > > Thanks again for all your help everyone!> > > > Brad.> > > > > 
> > From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Tue, 13 Nov 2007 13:10:33 
> -0800Subject: Re: [Bacula-users] Btape test command fails> > > > > > Hi 
> again, The only errors that I could pull out were in the /var/log/messages: 
> Nov 13 12:29:56 quagmire kernel: (sa0:aacp0:0:4:0): READ(06). CDB: 8 0 0 20 0 
> 0Nov 13 12:29:56 quagmire kernel: (sa0:aacp0:0:4:0): NO SENSE ILI (length 
> mismatch): -56320 asc:0,0Nov 13 12:29:56 quagmire kernel: (sa0:aacp0:0:4:0): 
> No additional sense informationNov 13 12:30:27 quagmire kernel: 
> (sa0:aacp0:0:4:0): READ(06). CDB: 8 0 0 fc 0 0Nov 13 12:30:27 quagmire 
> kernel: (sa0:aacp0:0:4:0): NO SENSE info:fc00 asc:0,1Nov 13 12:30:27 quagmire 
> kernel: (sa0:aacp0:0:4:0): Filemark detectedNov 13 12:31:22 quagmire kernel: 
> (sa0:aacp0:0:4:0): READ(06). CDB: 8 0 0 fc 0 0Nov 13 12:31:22 quagmire 
> kernel: (sa0:aacp0:0:4:0): NO SENSE info:fc00 asc:0,1Nov 13 12:31:22 quagmire 
> kernel: (sa0:aacp0:0:4:0): Filemark detected These errors were produced from 
> running: ./btape -c bacula-sd.conf /dev/sa0rewindtest It seems I get the 'NO 
> SENSE ILI (length mismatch)' and 'No additional sense information' messages 
> the first time i perform a rewind on the tape from a fresh boot. All other 
> tape rewinds that I perform do not cause these errors. I am still in the 
> process of obtaining a different SCSI card to test to see if I have the same 
> issues. Thanks, Brad. > > > > > Date: Tue, 13 Nov 2007 10:28:16 -0500> From: 
> [EMAIL PROTECTED]> To: [EMAIL PROTECTED]> Subject: Re: [Bacula-users] Btape 
> test command fails> > is there anything in dmesg or log files related to scsi 
> when this error occurs?> > On Fri, Nov 09, 2007 at 04:21:58PM -0800, Brad M 
> wrote:> > Thanks for the post Michael.> > > > Unfortunately I am still 
> getting the same results.> > > > I changed my SCSI card settings so that the 
> ID of the tape drive was now:> > Initiate Wide Negotiation = No> > Sync 
> Transfer Rate = 40MB/s> > Packetized = No> > QAS = No> > The tape drive is on 
> the same channel as the hard drives so I could not disable the BIOS for the 
> channel.> > > > I did notice something new... I have been doing all my 
> testing via a SSH connection but saw that every time I ran the btape test 
> command, an error would be displayed on the server's terminal.> > > > I then 
> ran the btape test command at the server and this is what I got:> > btape: 
> btape.c:852 Rewind OK.> > 1000 blocks re-read correctly.(sa0:aacp:0:0:4:0) : 
> READ(06). CDB: 8 0 0 fc 0 0> > (sa0:aacp:0:0:4:0) : NO SENSE info:fc00 
> asc:0,1(sa0:aacp:0:0:4:0) : Filemark detected> > JobId 0: Error: block.c:995 
> Read error on fd=3 at file:blk 0:1000 on device "HP_Ultrium" (/dev/sa0). 
> ERR=Operation not permitted.btape: btape.c:864 Read block 1001 failed! 
> ERR=Operation not permitted> > > > I was not seeing the read, no sense and 
> filemark messages via my SSH console.> > > > Suggestions?> > > > Thanks!> > > 
> > > > > > > > > Date: Fri, 9 Nov 2007 16:25:31 -0500> From: [EMAIL 
> PROTECTED]> To: [EMAIL PROTECTED]> CC: bacula-users@lists.sourceforge.net> 
> Subject: Re: [Bacula-users] Btape test command fails> > i had somewhat 
> similar problems with btape that i ended up resolving by modifying the > 
> configuration of my scsi controller. see this thread:> > 
> http://sourceforge.net/mailarchive/forum.php?thread_name=20071030014308.GA31765%40sif.lsd.ornl.gov&forum_name=bacula-users>
>  > -- michael> > > > On Fri, Nov 09, 2007 at 01:07:13PM -0800, Brad M wrote:> 
> > Hi there, I am having some problems trying to get my Tape drive working 
> with Bacula. I am very new to the world of Bacula as I was only introduced to 
> it back at the BSDCan 2007 gathering. Basically I am setting up a new file 
> server and need to backup the data on a daily basis but can't get past the 
> point of simply testing my drive. When running the btape test command, it 
> seems that it is abl

Re: [Bacula-users] Btape test command fails

2007-11-14 Thread Michael Lewinger
Hi,

It just seems to me that SCSI tapes & bacula don't perform well on
low-budget SCSI cards... ? I'm also having problems finsihing btape
successfully  with a DDS2 tape on a tekram dc315U controller, and I'm
waiting for a friend sending me an adaptec 2940 controller to see if
it happens as well. I'll update the list.

Michael

On Nov 14, 2007 10:59 PM, Brad M <[EMAIL PROTECTED]> wrote:
>
> The difficult SCSI card was an Adaptec 2130SLP.
>
>  I was using a RAID Array on the card with the tape drive attached.
>
> The btape fill command is now performing the read back process using the
> Adaptec 2940 so I'm quite happy that things are working correctly.
>
>  Now the fun begins...
>
>  
>
>  > Date: Wed, 14 Nov 2007 14:32:09 -0500
>
> > From: [EMAIL PROTECTED]
> > To: [EMAIL PROTECTED]
> > Subject: Re: [Bacula-users] Btape test command fails
> >
> > amazing how difficult scsi can be, as mature as it is. i find it very
> frustrating.
> > what was the difficult scsi adapter again?
> >
> > -- michael
>
> >
> > On Wed, Nov 14, 2007 at 09:46:34AM -0800, Brad M wrote:
> > > A small update:
> > >
> > > I installed an old Adaptec 2940 and ran the btape test command and it
> finished no problem.
> > >
> > > I then ran the test 4 more times and all is good.
> > >
> > > Currently I am performing a fill and it seems to be going alright,
> although maybe a tad slow. It's only writing at 20MB/s but I can figure that
> out later.
> > >
> > > Thanks again for all your help everyone!
> > >
> > > Brad.
> > >
> > >
> > > From: [EMAIL PROTECTED]: [EMAIL PROTECTED]:
> Tue, 13 Nov 2007 13:10:33 -0800Subject: Re: [Bacula-users] Btape test
> command fails
> > >
> > >
> > > Hi again, The only errors that I could pull out were in the
> /var/log/messages: Nov 13 12:29:56 quagmire kernel: (sa0:aacp0:0:4:0):
> READ(06). CDB: 8 0 0 20 0 0Nov 13 12:29:56 quagmire kernel:
> (sa0:aacp0:0:4:0): NO SENSE ILI (length mismatch): -56320 asc:0,0Nov 13
> 12:29:56 quagmire kernel: (sa0:aacp0:0:4:0): No additional sense
> informationNov 13 12:30:27 quagmire kernel: (sa0:aacp0:0:4:0): READ(06).
> CDB: 8 0 0 fc 0 0Nov 13 12:30:27 quagmire kernel: (sa0:aacp0:0:4:0): NO
> SENSE info:fc00 asc:0,1Nov 13 12:30:27 quagmire kernel: (sa0:aacp0:0:4:0):
> Filemark detectedNov 13 12:31:22 quagmire kernel: (sa0:aacp0:0:4:0):
> READ(06). CDB: 8 0 0 fc 0 0Nov 13 12:31:22 quagmire kernel:
> (sa0:aacp0:0:4:0): NO SENSE info:fc00 asc:0,1Nov 13 12:31:22 quagmire
> kernel: (sa0:aacp0:0:4:0): Filemark detected These errors were produced from
> running: ./btape -c bacula-sd.conf /dev/sa0rewindtest It seems I get the 'NO
> SENSE ILI (length mismatch)' and 'No additional sense information' messages
> the first time i perform a rewind on the tape from a fresh boot. All other
> tape rewinds that I perform do not cause these errors. I am still in the
> process of obtaining a different SCSI card to test to see if I have the same
> issues. Thanks, Brad.
>
> > >
> > > > Date: Tue, 13 Nov 2007 10:28:16 -0500> From: [EMAIL PROTECTED]> To:
> [EMAIL PROTECTED]> Subject: Re: [Bacula-users] Btape test command fails> >
> is there anything in dmesg or log files related to scsi when this error
> occurs?> > On Fri, Nov 09, 2007 at 04:21:58PM -0800, Brad M wrote:> > Thanks
> for the post Michael.> > > > Unfortunately I am still getting the same
> results.> > > > I changed my SCSI card settings so that the ID of the tape
> drive was now:> > Initiate Wide Negotiation = No> > Sync Transfer Rate =
> 40MB/s> > Packetized = No> > QAS = No> > The tape drive is on the same
> channel as the hard drives so I could not disable the BIOS for the channel.>
> > > > I did notice something new... I have been doing all my testing via a
> SSH connection but saw that every time I ran the btape test command, an
> error would be displayed on the server's terminal.> > > > I then ran the
> btape test command at the server and this is what I got:> > btape:
> btape.c:852 Rewind OK.> > 1000 blocks re-read correctly.(sa0:aacp:0:0:4:0) :
> READ(06). CDB: 8 0 0 fc 0 0> > (sa0:aacp:0:0:4:0) : NO SENSE info:fc00
> asc:0,1(sa0:aacp:0:0:4:0) : Filemark detected> > JobId 0: Error: block.c:995
> Read error on fd=3 at file:blk 0:1000 on device "HP_Ultrium" (/dev/sa0).
> ERR=Operation not permitted.btape: btape.c:864 Read block 1001 failed!
> ERR=Operation not permitted> > > > I was not seeing the read, no sense and
> filemark messages via my SSH console.> > > > Suggestions?> > > > Thanks!> >
> > > > > > > > > > Date: Fri, 9 Nov 2007 16:25:31 -0500> From: [EMAIL 
> > > > > > > > > > PROTECTED]>
> To: [EMAIL PROTECTED]> CC: bacula-users@lists.sourceforge.net> Subject:
> Re: [Bacula-users] Btape test command fails> > i had somewhat similar
> problems with btape that i ended up resolving by modifying the >
> configuration of my scsi controller. see this thread:> >
> http://sourceforge.net/mailarchive/forum.php?thread_name=20071030014308.GA31765%40sif.lsd.ornl.gov&forum_name=bacula-users>
> > -- mich

Re: [Bacula-users] Need help installing bacula-fd on Debian

2007-11-14 Thread David Legg
Hi Shon,

Shon Stephens wrote:
> I am completely unfamiliar with Debian and its installation
> system. I would like to know how others have easily
> installed a Bacula client (FD) on Debian hosts.
>   

I was, like yourself, unfamiliar with the Debian install method; having 
been used to the RedHat Fedora release.  However that has changed 
recently as I've moved over to Ubuntu which as you may be aware is based 
on Debian.  Although others like Eric, Jason and Zakai have already 
answered how to make bacula-fd on Debian I thought I'd mention that 
installing it as a service is slightly different to RedHat and the 
standard directories are slightly  different too.

Anywhoo, here's my recipe for installation...

As root make a directory for the file daemon to be installed into: -

# mkdir /usr/local/bacula

Download bacula into a suitable directory.  I use a local account for 
this called webby: -

# su webby
$ cd ~webby/downloads
$ wget http://downloads.sourceforge.net/bacula/bacula-2.2.5.tar.gz

$ tar xfz bacula-2.2.5.tar.gz
$ cd bacula-2.2.5/
$ CFLAGS="-g -Wall" \
> ./configure \
> --enable-client-only \
> --sbindir=/usr/local/bacula/bin \
> --sysconfdir=/usr/local/bacula/conf \
> --enable-smart-alloc \
> --with-subsys-dir=/var/run

A lot of work goes on here... note that the directories specified will 
be used when we do the next command.

# make install

Now edit the configuration file in 
/usr/local/bacula/conf/bacula-fd.conf  You should only have to change 
the director name and password.

By default Ubuntu doesn't enable a firewall, not sure what the score is 
with pure debian.  As my server was a public facing server with a 
configured firewall I had to ensure ports 9102 and 9103 were open.

Finally I installed it as a service as follows : -

  # cp /usr/local/bacula/conf/bacula-ctl-fd /etc/init.d/bacula
  # chmod 755 bacula

  # update-rc.d bacula defaults 30 70
   Adding system startup for /etc/init.d/bacula ...
 /etc/rc0.d/K70bacula -> ../init.d/bacula
 /etc/rc1.d/K70bacula -> ../init.d/bacula
 /etc/rc6.d/K70bacula -> ../init.d/bacula
 /etc/rc2.d/S30bacula -> ../init.d/bacula
 /etc/rc3.d/S30bacula -> ../init.d/bacula
 /etc/rc4.d/S30bacula -> ../init.d/bacula
 /etc/rc5.d/S30bacula -> ../init.d/bacula
  #

If your director, storage and file daemons are all connected by a LAN 
you should be ready after updating the director's config file.  If, like 
me, your machines are separated by a broadband connection, with a NAT 
router in between, your fun is only just beginning ;-)

Hope that helps.

Best Regards,
David Legg


-
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] Btape test command fails

2007-11-14 Thread Arno Lehmann
Hi,

14.11.2007 23:48,, Michael Lewinger wrote::
> Hi,
> 
> It just seems to me that SCSI tapes & bacula don't perform well on
> low-budget SCSI cards... ? I'm also having problems finsihing btape
> successfully  with a DDS2 tape on a tekram dc315U

IIRC, I used one of those quite a while ago. Anyway, I have been using 
old, low-cost SCSI HBAs in my playground setup quite a bit and found 
that most worked. A really old NCR53Csomething produced some trouble, 
I believe.

> controller, and I'm
> waiting for a friend sending me an adaptec 2940 controller to see if
> it happens as well. I'll update the list.

That series is not without their problems, too... there seem to be 
many hardware revisions of the controller chips around... I looked 
into the linux kernel module source code for these a while ago, and it 
was full of work-arounds for certain chipset revisions.

I haven't compared that to other manufacturers modules, though - I was 
a bit afraid of it ;-)

Arno

> Michael
> 
> On Nov 14, 2007 10:59 PM, Brad M <[EMAIL PROTECTED]> wrote:
>> The difficult SCSI card was an Adaptec 2130SLP.
>>
>>  I was using a RAID Array on the card with the tape drive attached.
>>
>> The btape fill command is now performing the read back process using the
>> Adaptec 2940 so I'm quite happy that things are working correctly.
>>
>>  Now the fun begins...
>>
>>  
>>
>>  > Date: Wed, 14 Nov 2007 14:32:09 -0500
>>
>>> From: [EMAIL PROTECTED]
>>> To: [EMAIL PROTECTED]
>>> Subject: Re: [Bacula-users] Btape test command fails
>>>
>>> amazing how difficult scsi can be, as mature as it is. i find it very
>> frustrating.
>>> what was the difficult scsi adapter again?
>>>
>>> -- michael
>>> On Wed, Nov 14, 2007 at 09:46:34AM -0800, Brad M wrote:
 A small update:

 I installed an old Adaptec 2940 and ran the btape test command and it
>> finished no problem.
 I then ran the test 4 more times and all is good.

 Currently I am performing a fill and it seems to be going alright,
>> although maybe a tad slow. It's only writing at 20MB/s but I can figure that
>> out later.
 Thanks again for all your help everyone!

 Brad.


 From: [EMAIL PROTECTED]: [EMAIL PROTECTED]:
>> Tue, 13 Nov 2007 13:10:33 -0800Subject: Re: [Bacula-users] Btape test
>> command fails

 Hi again, The only errors that I could pull out were in the
>> /var/log/messages: Nov 13 12:29:56 quagmire kernel: (sa0:aacp0:0:4:0):
>> READ(06). CDB: 8 0 0 20 0 0Nov 13 12:29:56 quagmire kernel:
>> (sa0:aacp0:0:4:0): NO SENSE ILI (length mismatch): -56320 asc:0,0Nov 13
>> 12:29:56 quagmire kernel: (sa0:aacp0:0:4:0): No additional sense
>> informationNov 13 12:30:27 quagmire kernel: (sa0:aacp0:0:4:0): READ(06).
>> CDB: 8 0 0 fc 0 0Nov 13 12:30:27 quagmire kernel: (sa0:aacp0:0:4:0): NO
>> SENSE info:fc00 asc:0,1Nov 13 12:30:27 quagmire kernel: (sa0:aacp0:0:4:0):
>> Filemark detectedNov 13 12:31:22 quagmire kernel: (sa0:aacp0:0:4:0):
>> READ(06). CDB: 8 0 0 fc 0 0Nov 13 12:31:22 quagmire kernel:
>> (sa0:aacp0:0:4:0): NO SENSE info:fc00 asc:0,1Nov 13 12:31:22 quagmire
>> kernel: (sa0:aacp0:0:4:0): Filemark detected These errors were produced from
>> running: ./btape -c bacula-sd.conf /dev/sa0rewindtest It seems I get the 'NO
>> SENSE ILI (length mismatch)' and 'No additional sense information' messages
>> the first time i perform a rewind on the tape from a fresh boot. All other
>> tape rewinds that I perform do not cause these errors. I am still in the
>> process of obtaining a different SCSI card to test to see if I have the same
>> issues. Thanks, Brad.
>>
> Date: Tue, 13 Nov 2007 10:28:16 -0500> From: [EMAIL PROTECTED]> To:
>> [EMAIL PROTECTED]> Subject: Re: [Bacula-users] Btape test command fails> >
>> is there anything in dmesg or log files related to scsi when this error
>> occurs?> > On Fri, Nov 09, 2007 at 04:21:58PM -0800, Brad M wrote:> > Thanks
>> for the post Michael.> > > > Unfortunately I am still getting the same
>> results.> > > > I changed my SCSI card settings so that the ID of the tape
>> drive was now:> > Initiate Wide Negotiation = No> > Sync Transfer Rate =
>> 40MB/s> > Packetized = No> > QAS = No> > The tape drive is on the same
>> channel as the hard drives so I could not disable the BIOS for the channel.>
> I did notice something new... I have been doing all my testing via a
>> SSH connection but saw that every time I ran the btape test command, an
>> error would be displayed on the server's terminal.> > > > I then ran the
>> btape test command at the server and this is what I got:> > btape:
>> btape.c:852 Rewind OK.> > 1000 blocks re-read correctly.(sa0:aacp:0:0:4:0) :
>> READ(06). CDB: 8 0 0 fc 0 0> > (sa0:aacp:0:0:4:0) : NO SENSE info:fc00
>> asc:0,1(sa0:aacp:0:0:4:0) : Filemark detected> > JobId 0: Error: block.c:995
>> Read error on fd=3 at file:blk 0:1000 on device "HP_Ultrium" (/dev/sa0).
>> ERR=Operation not permitted.btape: btape.c:864 Read block 1001 failed!
>

[Bacula-users] Problem with automounting

2007-11-14 Thread Frank Enderle
hi,

i do use bacula to backup some machines at the site where i work. this
works great, however with one exception i cannot get around till now. i
do a backup to disk using the following storage device definition in the
sd.conf file:

Device {
  Name = "b2d"
  Archive Device = "/export/backup"
  Device Type = File
  Media Type = File
  Random Access = Yes
  Requires Mount = No
  AutomaticMount = Yes
}

clearly this inidicates a automount=yes. though the device is configured
to be automounted and the filesystem is always available, i have every
day messages indicating that i should mount volume xyz from the assigned
pool. all i then do is going straight to the bacula console, type mount
and everything works again till the next media file in the pool is full.

how can i avoid this? i just want that thing to do the mount by itself,
not that i have to go there every single day and type mount.

btw: it's bacula 2.2.6 self conpiled, using a mysql catalog database.

i hope someone can hint me the right direction.

thanks,

frank.

-
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