[Bacula-users] Possible missing SD Device resource configuration options

2007-01-26 Thread Josh Endries
Hi all,

I just upgraded to 2.0 and have been going through my configuration 
files (converting to per-client Devices). I noticed a couple definitions 
in my old 1.38 Device {} sections that are not mentioned in the manual. 
The first is Automatic Mount, is this still valid (was it ever? am I 
crazy?)? The other is mentioned in Basic Volume Management but not in 
the SD Device page: Label Media. Is this still valid? I get no errors 
currently from including them, so I figure I'll copy them over just to 
be safe, but maybe the manual needs to be updated.

Josh

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Problems getting TLS working between FD and Director

2007-01-23 Thread Josh Endries
Hello,

Trying to get TLS going. I have it working between Dir/console 
(including remote), and Dir/SD, but can't get it working between Dir/FD. 
I followed , which 
is pretty good. Most of my confusion was where to put what, not what to 
put in the files. When I test it on the director (locally consoled) I get:

*status client
The defined Client resources are:
  1: client1
Select Client (File daemon) resource (1-15): 1
Connecting to Client client1 at x.x.x.x:9102
Failed to connect to Client client1.

And in the log file on the director I see:

23-Jan 15:24 director: *Console*.2007-01-23_15.22.52 Fatal error: 
Authorization problem: Remote server did not advertise required TLS support.

I can manually telnet to it, so I know it's connecting. I ran the 
client's FD (Windows) in debug mode and didn't see any sort of error 
message in the trace file. Before I go pasting my config files...the 
most probable reason this doesn't work is that the client is 2.0.1 and 
the server is 1.38.11 (AFAIK, TLS doesn't exist in the 1.38 Win32 
clients). Maybe the TLS advertisements are different between those versions?

Josh

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem/confusion regarding running concurrent jobs.

2007-01-21 Thread Josh Endries
Hi Arno,

Thanks for the response.

Arno Lehmann wrote:
> Do you think a separate section regarding concurrent jobs would be 
> necessary, that extends the existing contents in "Tips and Suggestions"?

I don't think so, I understood how things worked where I was looking, 
but wasn't looking in the right place. After reading your response I 
found the explanation in the "Basic Volume Management" section. Maybe a 
link between the two sections would be useful.

>> jobs... I want "Client A" to run "Job A" and "Client B" to run "Job B" 
>> at the same time, do I need to set concurrency in my clients and jobs in 
>> order to do this?
> 
> It's not necessary in your case then.

Okay, that's what I thought. Thanks for confirming.

>> The error I get is something like, "trying to write to volume daily-0002 
>> but storage is currently writing to daily=0001".
> 
> That indicates that Bacula would run jobs concurrently if you hadn't set 
> up your jobs to require different volumes.

Ah-ha! I think I understand now, and ironically while looking for the 
"Tips and Suggestions" section to respond to your question above, I 
found the "Basic Volume Management" section in which it pretty plainly 
says I will "need multiple Device resources in your bacula-sd.conf file, 
and thus multiple Storage resources in your bacula-dir.conf."

> More detailed information about your pools and job settings would be 
> helpful to explain that.

I write one job per volume, and currently all volumes are in one place, 
e.g. "/var/bacula/monthly-0003". After reading some more, I think I 
should be able to make four more identical (except for Name) Device and 
Storage resources that all point to the same directory and it will be 
able to write up to five jobs at once.

I was planning on splitting my volumes up, however, so each client had 
their own directory and volumes, e.g. "/var/bacula/foo.domain.com/0001" 
and "/var/bacula/bar.domain.com/0001", which I think means I would need 
additional Device and Storage defnintions each with their own Media 
Types, like "Media Type = File-foo.domain.com". I'll have to think about 
if I still want to do that and how to organize it...maybe just different 
pools.

Is there a way to prevent Bacula from killing the job after just a few 
seconds of waiting for the volume? Last night I had a large backup 
running and eight incremental jobs failed because they couldn't mount a 
volume...I can see this happening in the future if there is a large 
backup or two, even if I have a number of Devices, so maybe that's not 
the best course of action. Is there some sort of timeout option? Would 
data spooling take care of this?

Thanks again,
Josh

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Problem/confusion regarding running concurrent jobs.

2007-01-20 Thread Josh Endries
Hello,

I have about 20 clients backing up to disk (all 1.38.11) and I'd like to 
run at least a few of them simultaneously but can't get it working. The 
manual mentions Maximum Concurrent Jobs all over the place and nowhere 
does it explain well how to get this to work. The best place I found was 
in the "Configuring the Director" page within the Job resource section 
(search for "distinct" on that page).

I think I understand what I need to do, but I don't understand why. I 
currently have Maximum Concurrent Jobs set to 5 in my bacula-dir.conf 
(director and storage resources) and in bacula-sd.conf (storage 
resource). This seems, to me, to be all I should need to do in order to 
get this to work. According to the manual, the storage resource in 
bacula-sd.conf defaults to 10 so I shouldn't even need to set that.

According to the Job section mentioned above, I also need to set it in 
my director's client and job resources (which for me are in separate, 
included files). I don't understand why this is necessary. I don't want 
"Job A" to run multiple times, nor do I want "Client A" to run multiple 
jobs... I want "Client A" to run "Job A" and "Client B" to run "Job B" 
at the same time, do I need to set concurrency in my clients and jobs in 
order to do this? If so, that doesn't make any sense to me; why is that 
the case?

The error I get is something like, "trying to write to volume daily-0002 
but storage is currently writing to daily=0001".

Thanks,
Josh

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Trouble restoring from a disk backup

2006-03-27 Thread Josh Endries
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I still can't figure this out. I can't believe it's such a HUGE PITA
getting disk-based backup and restore to work with Bacula. It should be
easy. WTF. I'm so freaking frustrated right now. Dammit.

Josh Endries wrote:
> Hello,
> 
> I'm having trouble restoring from a File device. The backup says it runs
> OK, and a verify job says the backup is OK, but the restore job gives me
> this:
> 
> Error: block.c:305 Volume data error at 0:2405980938!
> Block checksum mismatch in block=14107 len=64512: calc=9e6da70b blk=208478d0
> 
> Same numbers every time. Does this mean it can't find the file(s), or
> the data is corrupt? I couldn't find any help from Google, IRC or the
> archives... This is on a FreeBSD machine, Bacula 1.38.5. There's nothing
> else on the box and no other jobs, so it's not under any load. I've
> tried all three steps (backup, verify, restore) many times with
> identical results...so I think there must be something I'm missing in
> the device section or some other config option, but I haven't been able
> to find it.
> 
> 
> 
> bacula-sd.conf:
> director {
>   Name = "backup-dir"
>   Password = ""
> }
> storage {
>   Name = "backup.domain.com"
>   WorkingDirectory = "/var/db/bacula"
>   Pid Directory = "/var/run"
>   Maximum Concurrent Jobs = 5
> }
> Device {
>   Name = "hard disk"
>   Media Type = File
>   Archive Device = /home/bacula/backups
>   Random Access = Yes
>   AutomaticMount = yes
>   RemovableMedia = no
>   LabelMedia = yes
>   AlwaysOpen = no
>   SpoolDirectory = /home/bacula/spool
> }
> messages {
> name = standard
> director = backup.domain.com = all
> }
> 
> 
> 
> bacula-dir.conf:
> Director {
> Name = "backup-dir"
> QueryFile = "/usr/local/share/bacula/query.sql"
> WorkingDirectory = "/var/db/bacula"
> PidDirectory = "/var/run"
> Maximum Concurrent Jobs = 5
> Password = ""
> Messages = Standard
> }
> JobDefs {
> Name = "Daily Backup"
> Type = Backup
> Priority = 1
> Messages = Standard
> Schedule = "Daily Backup"
> Storage = "backup.domain.com hard disk"
> Pool = Daily
> Full Backup Pool = Monthly
> Level = Differential
> Maximum Concurrent Jobs = 5
> Spool Data = yes
> }
> JobDefs {
>Name = "Daily Verify"
>Type = Verify
>Priority = 2
>Messages = Standard
>Schedule = "Daily Backup"
>Storage = "backup.domain.com hard disk"
>Pool = Daily
>Full Backup Pool = Monthly
>Level = DiskToCatalog
>Maximum Concurrent Jobs = 10
>Spool Data = yes
> }
> Schedule {
> Name = "Daily Backup"
> Run = daily at 1:00
> }
> Storage {
> Name = "backup.domain.com hard disk"
> MediaType = File
> Device = "hard disk"
> Address = backup.domain.com
> Password = ""
> }
> Catalog {
>   Name = MyCatalog
>   dbname = bacula; user = bacula; password = ""
> }
> Messages {
> Name = Standard
> console = all, !skipped, !saved
> syslog = all, !skipped, !saved
> }
> Pool {
>   Name = Daily
>   Pool Type = Backup
>   Recycle = yes
>   Volume Retention = 1 month
>   Recycle Oldest Volume = yes
> }
> Pool {
>Name = Monthly
>Pool Type = Backup
>Recycle = yes
>Volume Retention = 1 year
>Recycle Oldest Volume = yes
> }
> Client {
> Name = "client.domain.com"
> Address = x.x.x.x
> Catalog = MyCatalog
> Password = ""
> }
> FileSet {
> Name = "client.domain.com"
> Include {
> Options { Signature = SHA1; Compression = GZIP6; Verify
> = ipnugs1; }
> File = d:/data
> }
> }
> Job {
> Client = "client.domain.com"
> Name = "client.domain.com Daily Backup"
> WriteBootstrap = "/var/db/bacula/client.domain.com_Daily_Backup.bsr"
> JobDefs = "Daily Backup"
> FileSet = "client.domain.com"
> }
> Job {
> Client = "client.domain.com"
> Name = "client.domain.com Daily Verify"
> JobDefs = "Daily Verify"
> FileSet = "clie

[Bacula-users] Trouble restoring from a disk backup

2006-03-24 Thread Josh Endries
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

I'm having trouble restoring from a File device. The backup says it runs
OK, and a verify job says the backup is OK, but the restore job gives me
this:

Error: block.c:305 Volume data error at 0:2405980938!
Block checksum mismatch in block=14107 len=64512: calc=9e6da70b blk=208478d0

Same numbers every time. Does this mean it can't find the file(s), or
the data is corrupt? I couldn't find any help from Google, IRC or the
archives... This is on a FreeBSD machine, Bacula 1.38.5. There's nothing
else on the box and no other jobs, so it's not under any load. I've
tried all three steps (backup, verify, restore) many times with
identical results...so I think there must be something I'm missing in
the device section or some other config option, but I haven't been able
to find it.



bacula-sd.conf:
director {
  Name = "backup-dir"
  Password = ""
}
storage {
  Name = "backup.domain.com"
  WorkingDirectory = "/var/db/bacula"
  Pid Directory = "/var/run"
  Maximum Concurrent Jobs = 5
}
Device {
  Name = "hard disk"
  Media Type = File
  Archive Device = /home/bacula/backups
  Random Access = Yes
  AutomaticMount = yes
  RemovableMedia = no
  LabelMedia = yes
  AlwaysOpen = no
  SpoolDirectory = /home/bacula/spool
}
messages {
name = standard
director = backup.domain.com = all
}



bacula-dir.conf:
Director {
Name = "backup-dir"
QueryFile = "/usr/local/share/bacula/query.sql"
WorkingDirectory = "/var/db/bacula"
PidDirectory = "/var/run"
Maximum Concurrent Jobs = 5
Password = ""
Messages = Standard
}
JobDefs {
Name = "Daily Backup"
Type = Backup
Priority = 1
Messages = Standard
Schedule = "Daily Backup"
Storage = "backup.domain.com hard disk"
Pool = Daily
Full Backup Pool = Monthly
Level = Differential
Maximum Concurrent Jobs = 5
Spool Data = yes
}
JobDefs {
   Name = "Daily Verify"
   Type = Verify
   Priority = 2
   Messages = Standard
   Schedule = "Daily Backup"
   Storage = "backup.domain.com hard disk"
   Pool = Daily
   Full Backup Pool = Monthly
   Level = DiskToCatalog
   Maximum Concurrent Jobs = 10
   Spool Data = yes
}
Schedule {
Name = "Daily Backup"
Run = daily at 1:00
}
Storage {
Name = "backup.domain.com hard disk"
MediaType = File
Device = "hard disk"
Address = backup.domain.com
Password = ""
}
Catalog {
  Name = MyCatalog
  dbname = bacula; user = bacula; password = ""
}
Messages {
Name = Standard
console = all, !skipped, !saved
syslog = all, !skipped, !saved
}
Pool {
  Name = Daily
  Pool Type = Backup
  Recycle = yes
  Volume Retention = 1 month
  Recycle Oldest Volume = yes
}
Pool {
   Name = Monthly
   Pool Type = Backup
   Recycle = yes
   Volume Retention = 1 year
   Recycle Oldest Volume = yes
}
Client {
Name = "client.domain.com"
Address = x.x.x.x
Catalog = MyCatalog
Password = ""
}
FileSet {
Name = "client.domain.com"
Include {
Options { Signature = SHA1; Compression = GZIP6; Verify
= ipnugs1; }
File = d:/data
}
}
Job {
Client = "client.domain.com"
Name = "client.domain.com Daily Backup"
WriteBootstrap = "/var/db/bacula/client.domain.com_Daily_Backup.bsr"
JobDefs = "Daily Backup"
FileSet = "client.domain.com"
}
Job {
Client = "client.domain.com"
Name = "client.domain.com Daily Verify"
JobDefs = "Daily Verify"
FileSet = "client.domain.com"
Verify Job = "client.domain.com Daily Backup"
}
Job {
Client = "client.domain.com"
Name = "client.domain.com Daily Backup Restore"
Bootstrap = "/var/db/bacula/client.domain.com_Daily_Backup.bsr"
Type = Restore
Level = Full
FileSet = "client.domain.com"
Priority = 1
Messages = Standard
Storage = "backup.domain.com hard disk"
Pool = Daily
Full Backup Pool = Monthly
}

Thanks,
Josh
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (FreeBSD)

iD8DBQFEJFOuV/+PyAj2L+IRAuMvAKCaY7y7L5/ySXOlXVxhMfjd60tSXwCeJ1sQ
sfLfImxo+9RinIvqPmL0yOM=
=SNWu
-END PGP SIGNATURE-


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


[Bacula-users] 1.38.1 on FreeBSD "device not configured" and "mutex unlock failure"

2005-11-18 Thread Josh Endries
Hello,

I'm having trouble getting things working after upgrading to 1.38 on
my system. btape's normal and autochanger tests were all successful,
it's probably a FreeBSD issue but I don't know what. I have an
Exabyte VXA 1x10 2U autoloader.

19-Nov 00:14 backup-dir: Start Backup JobId 162,
Job=leto_Daily_Backup.2005-11-19_00.14.40
19-Nov 00:21 leto: DIR and FD clocks differ by 398 seconds, FD
automatically adjusting.
19-Nov 00:14 backup: 3301 Issuing autochanger "loaded drive 0" command.
19-Nov 00:14 backup: 3302 Autochanger "loaded drive 0", result is Slot 1.
*
\19-Nov 00:15 backup: 3307 Issuing autochanger "unload slot 1, drive
0" command.
19-Nov 00:15 backup: 3304 Issuing autochanger "load slot 6, drive 0"
command.
*\
19-Nov 00:16 backup: 3305 Autochanger "load slot 6, drive 0", status
is OK.
19-Nov 00:16 backup: 3301 Issuing autochanger "loaded drive 0" command.
19-Nov 00:16 backup: 3302 Autochanger "loaded drive 0", result is Slot 6.
*
19-Nov 00:18 backup: 3301 Issuing autochanger "loaded drive 0" command.
19-Nov 00:18 backup: 3302 Autochanger "loaded drive 0", result is Slot 6.
19-Nov 00:25 leto: leto_Daily_Backup.2005-11-19_00.14.40 Fatal error:
job.c:1594 Comm error with SD. bad response to Append Data.
ERR=Broken pipe
19-Nov 00:18 backup-dir: leto_Daily_Backup.2005-11-19_00.14.40 Error:
Bacula 1.38.1 (14Nov05): 19-Nov-2005 00:18:47
  JobId:  162
  Job:leto_Daily_Backup.2005-11-19_00.14.40
  Backup Level:   Differential, since=2005-09-17 01:00:04
  Client: "leto"
i386-portbld-freebsd5.4,freebsd,5.4-STABLE
  FileSet:"leto" 2005-09-13 20:26:12
  Pool:   "Weekly"
  Storage:"Exabyte VXA AutoPak 1x10"
  Scheduled time: 19-Nov-2005 00:14:36
  Start time: 19-Nov-2005 00:14:42
  End time:   19-Nov-2005 00:18:47
  Priority:   1
  FD Files Written:   0
  SD Files Written:   0
  FD Bytes Written:   0
  SD Bytes Written:   0
  Rate:   0.0 KB/s
  Software Compression:   None
  Volume name(s):
  Volume Session Id:  1
  Volume Session Time:1132376988
  Last Volume Bytes:  241,210,545
  Non-fatal FD errors:0
  SD Errors:  0
  FD termination status:  Error
  SD termination status:  Error
  Termination:*** Backup Error ***

19-Nov 00:18 backup-dir: message.c:454 Mail prog: bsmtp: bsmtp.c:277
Fatal connect error to localhost: ERR=Connection refused
19-Nov 00:18 backup-dir: leto_Daily_Backup.2005-11-19_00.14.40 Error:
message.c:465 Mail program terminated in error.
CMD=/usr/local/sbin/bsmtp -h localhost -f "(Bacula) [EMAIL PROTECTED]"
-s "Bacula: Backup Fatal Error of leto Differential" [EMAIL PROTECTED]
ERR=Child exited with code 1

The SD process actually dies during this process (at 00:25). This is
SD'd output:

backup: cram-md5.c:52 send: auth cram-md5
<[EMAIL PROTECTED]> ssl=0
backup: cram-md5.c:68 Authenticate OK 7jUWknxuD5xCh/seH//vIA
backup: cram-md5.c:114 sending resp to challenge: r+/jcih9CE+XEzwlz9+fzA
backup: dircmd.c:187 Message channel init completed.
backup: cram-md5.c:52 send: auth cram-md5
<[EMAIL PROTECTED]> ssl=0
backup: cram-md5.c:68 Authenticate OK X4+uVxsZG4+sd3+vmzU3ZC
backup: cram-md5.c:114 sending resp to challenge: 5R+GJxtYK6+fLw+Rnm/47D
backup: autochanger.c:217 run_prog:
/usr/local/share/bacula/my-changer /dev/pass0 loaded 6 /dev/nsa0 0
stat=0 result=1

backup: device.c:326 Force close_dev "Exabyte VXA AutoPak 1x10 drive
1" (/dev/nsa0)
backup: dev.c:1702 really close_dev "Exabyte VXA AutoPak 1x10 drive
1" (/dev/nsa0)
backup: dvd.c:93 Enter unmount_dev
mt: /dev/nsa0: Device not configured
Unloading Data Transfer Element into Storage Element 1...done
backup: dev.c:277 open dev: tape=2 dev_name="Exabyte VXA AutoPak 1x10
drive 1" (/dev/nsa0) vol=weekly-1-1 mode=OPEN_READ_WRITE
backup: dev.c:335 open dev: device is tape
backup: autochanger.c:217 run_prog:
/usr/local/share/bacula/my-changer /dev/pass0 loaded 6 /dev/nsa0 0
stat=0 result=6

backup: dev.c:410 open dev: tape 6 opened
backup: dev.c:655 rewind_dev fd=6 "Exabyte VXA AutoPak 1x10 drive 1"
(/dev/nsa0)
backup: label.c:138 Big if statement in read_volume_label
backup: label.c:150 Could not unserialize Volume label:
ERR=label.c:720 Expecting Volume Label, got FI=0 Stream=0 len=64412

backup: dev.c:655 rewind_dev fd=6 "Exabyte VXA AutoPak 1x10 drive 1"
(/dev/nsa0)
backup: autochanger.c:217 run_prog:
/usr/local/share/bacula/my-changer /dev/pass0 loaded 6 /dev/nsa0 0
stat=0 result=6

19-Nov 00:18 backup: ABORTING due to ERROR in bsys.c:382
Mutex unlock failure. ERR=Operation not permitted
Kaboom! bacula-sd, backup got signal 11. Attempting traceback.
Kaboom! exepath=/usr/local/sbin/
Calling: /usr/local/sbin/btraceback /usr/local/sbin/bacula-sd 30645
execv: /usr/local/sbin/btraceback failed: ERR=Permission denied

I've checked the file permissions on the tape device files and Bacula
should have RW access (and btape worked). M

[Bacula-users] More problems with 1.37.38, no tape loading?

2005-09-15 Thread Josh Endries
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ugh, this is so frustrating. Now Bacula won't load any tapes from my
autochanger to write to...and I still can't get btape to run. If I
load a tape manually, then run a job in bconsole, it works. If I
start a job without any tape loaded, it never tries to load a tape;
it just checks for loaded tapes and then dies. Here is what I get
(the three my-changer lines are from a background tail of an outfile
my script sends to):

OK to run? (yes/mod/no): yes
Job started. JobId=34
*
*
15-Sep 20:59 backup-dir: sql_find.c:126 No Job record found: ERR=
CMD=SELECT StartTime FROM Job WHERE JobStatus='T' AND Type='B' AND
Level='F' AND Name='www.client.com Daily Backup' AND ClientId=2 AND
FileSetId=2 ORDER BY StartTime DESC LIMIT 1
15-Sep 20:59 backup-dir: No prior or suitable Full backup found.
Doing FULL backup.
15-Sep 20:59 backup-dir: Start Backup JobId 34,
Job=www.client.com_Daily_Backup.2005-09-15_20.59.57
*
*Thu Sep 15 21:00:03 EDT 2005: /usr/local/share/bacula/my-changer
/dev/pass0 loaded 7 /dev/nsa0 0
Thu Sep 15 21:00:05 EDT 2005: /usr/local/share/bacula/my-changer
/dev/pass0 loaded 7 /dev/nsa0 0
Thu Sep 15 21:00:06 EDT 2005: /usr/local/share/bacula/my-changer
/dev/pass0 loaded 0 /dev/nsa0 0

15-Sep 21:00 backup.server.com: 3301 Issuing autochanger "loaded
drive 0" command.
15-Sep 21:00 backup.server.com: 3302 Autochanger "loaded drive 0",
result: nothing loaded.
15-Sep 21:00 backup.server.com: 3301 Issuing autochanger "loaded
drive 0" command.
15-Sep 21:00 backup.server.com: 3302 Autochanger "loaded drive 0",
result: nothing loaded.
15-Sep 21:00 backup.server.com: 3301 Issuing autochanger "loaded
drive 0" command.
15-Sep 21:00 backup.server.com: 3302 Autochanger "loaded drive 0",
result: nothing loaded.
15-Sep 21:00 backup.server.com:
www.client.com_Daily_Backup.2005-09-15_20.59.57 Fatal error:
device.c:303 Unable to open device "EXABYTE VXA AutoPak 1x10 E33a"
(/dev/nsa0): ERR=dev.c:377 Unable to open device "EXABYTE VXA AutoPak
1x10 E33a" (/dev/nsa0): ERR=Device not configured

15-Sep 20:13 www.client.com:
www.client.com_Daily_Backup.2005-09-15_20.59.57 Fatal error:
job.c:1665 Bad response to Append Data command. Wanted 3000 OK data
, got 3903 Error append data

15-Sep 21:00 backup-dir:
www.client.com_Daily_Backup.2005-09-15_20.59.57 Error: Bacula 1.37.38
(04Sep05): 15-Sep-2005 21:00:07
  JobId:  34
  Job:www.client.com_Daily_Backup.2005-09-15_20.59.57
  Backup Level:   Full (upgraded from Differential)
  Client: "www.client.com"
i386-portbld-freebsd5.0,freebsd,5.0-RELEASE
  FileSet:"www.client.com" 2005-09-14 01:00:01
  Pool:   "Weekly"
  Storage:"EXABYTE VXA AutoPak 1x10 E33a"
  Scheduled time: 15-Sep-2005 20:59:56
  Start time: 15-Sep-2005 20:59:59
  End time:   15-Sep-2005 21:00:07
  Priority:   1
  FD Files Written:   0
  SD Files Written:   0
  FD Bytes Written:   0
  SD Bytes Written:   0
  Rate:   0.0 KB/s
  Software Compression:   None
  Volume name(s):
  Volume Session Id:  1
  Volume Session Time:1126832338
  Last Volume Bytes:  487,961,577
  Non-fatal FD errors:0
  SD Errors:  0
  FD termination status:  Error
  SD termination status:  Error
  Termination:*** Backup Error ***

No idea why it doesn't attempt to load a tape...

Device {
Name = "EXABYTE VXA AutoPak 1x10 E33a"
Archive Device = /dev/nsa0
Media Type = "ECRIX VXA-1 2B7B"
Autochanger = Yes
Changer Device = /dev/pass0
Changer Command = "/usr/local/share/bacula/my-changer %c %o
%S %a %d"
Automatic Mount = yes
Always Open = yes
Removable media = Yes
Random Access = no
Spool Directory = "/usr/bacula"
Maximum Spool Size = 10gb
Label Media = no
Hardware end of file = no
Hardware end of medium = no
Offline on unmount = yes
BSF at EOM = yes
TWO EOF = yes
Backward Space Record = no
Backward Space File = no
Fast Forward Space File = no;
}

Josh
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDKh+YV/+PyAj2L+IRAnuUAJ9nLP+bpxE/WA7Gnd9eYDyj4FL3DACeKhkP
Jpo9zGBo7Q+y5MaTbGcS9mk=
=sZIw
-END PGP SIGNATURE-


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] 1.37.38 problem: Inappropriate ioctl for device

2005-09-14 Thread Josh Endries
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dan Langille wrote:
> Is bacula in the operator group?  On FreeBSD, bacula-sd should be 
> running as bacula:bacula.  You'll need to restart bacula-sd after 
> changing /etc/group.

Yep, everything is just like yours, root:operator and 660 except for
the links. Both root and bacula are in the operator group (they were
before I upgraded from 1.36.3 also). I've tried mode 666 also so I
don't think it's file permissions...

Josh
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (FreeBSD)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDKFIIV/+PyAj2L+IRAvAtAJ48n1HI9oZo8LC7/AvwmcmMkmSGzgCffyB1
kEhLbX26Rn/EArPJ1S8S4gg=
=pvug
-END PGP SIGNATURE-


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] 1.37.38 problem: Inappropriate ioctl for device

2005-09-14 Thread Josh Endries
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

I tried upgrading to 1.37.38 last night. Things were going okay but
it couldn't find the end of medium so I tried running btape again,
now I'm getting this:

backup# btape -d 99 -v /dev/nsa0
Tape block granularity is 1024 bytes.
btape: butil.c:261 Using device: "/dev/nsa0" for writing.
btape: dev.c:242 init_dev: tape=2 dev_name=/dev/nsa0
btape: dev.c:275 open dev: tape=2 dev_name="EXABYTE VXA AutoPak 1x10
E33a" (/dev/nsa0) vol= mode=OPEN_READ_ONLY
btape: dev.c:333 open dev: device is tape
14-Sep 09:18 btape: 3301 Issuing autochanger "loaded drive 0" command.
btape: autochanger.c:162 run_prog:
/usr/local/share/bacula/my-changer /dev/pass0 loaded 0 /dev/nsa0 0
stat=0 result=8

14-Sep 09:18 btape: 3302 Autochanger "loaded drive 0", result is Slot 8.
14-Sep 09:18 btape: btape Error: dev.c:396 fcntl error.
ERR=Inappropriate ioctl for device
btape: dev.c:417 open dev: tape -1 opened
14-Sep 09:18 btape: Fatal Error at device.c:273 because:
dev open failed:
14-Sep 09:18 btape: btape Fatal error: butil.c:174 Cannot open
"EXABYTE VXA AutoPak 1x10 E33a" (/dev/nsa0)

This is on FreeBSD 5. Everything else seems to work okay, mtx and
mt, loading unloading offline etc., my changer script works also
(mtx-changer with offline enabled). Permissions on the tape device
are correct (660)...not sure what it could be. :/ One thing that
makes me wonder is that it says opening for writing but later says
read only...but even with 666 perms it did that.

Device {
Name = "EXABYTE VXA AutoPak 1x10 E33a"
Archive Device = /dev/nsa0
Media Type = "ECRIX VXA-1 2B7B"
Autochanger = Yes
Changer Device = /dev/pass0
Changer Command = "/usr/local/share/bacula/my-changer %c %o
%S %a %d"
Automatic Mount = yes
Always Open = yes
Removable media = Yes
Random Access = no
Spool Directory = "/usr/bacula"
Maximum Spool Size = 10gb
Label Media = no
Hardware end of file = no
Offline on unmount = yes
BSF at EOM = yes
TWO EOF = yes
Backward Space Record = no
Backward Space File = no
Fast Forward Space File = no;
}

Josh
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (FreeBSD)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDKC75V/+PyAj2L+IRAmTmAJ9VuhsoNBgBlvEFRQ7bGfnTgtysAwCeK5p7
/NGhRZnbREOQXxEl+Xmx0XI=
=jxrf
-END PGP SIGNATURE-


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] "Network send error" and "Broken pipe"

2005-09-11 Thread Josh Endries
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

My backups were working good for the past few days but this morning I
got a bunch of errors. I'm using the latest stable on FreeBSD 5.4,
with a 1x10 VXA AutoPak autochanger. The first client backed up OK
but every other client (six) got errors. Most were similar to this:

11-Sep 01:00 backup-dir: Start Backup JobId 709,
Job=client_Daily_Backup.2005-09-11_01.00.02
11-Sep 01:00 server: Spooling data ...
11-Sep 01:02 client: client_Daily_Backup.2005-09-11_01.00.02 Fatal
error: backup.c:477 Network send error 32784 to SD. ERR=Broken pipe
11-Sep 01:00 backup-dir: client_Daily_Backup.2005-09-11_01.00.02
Error: Bacula 1.36.3

One of them had this to say:

11-Sep 01:07 backup-fd: client_Daily_Backup.2005-09-11_01.00.06 Fatal
error: ..\filed\../../filed/backup.c:477 Network send error 2988 to
SD. ERR=An established connection was aborted by the software in your
host machine.

It appears that bacula-sd died, though I have no idea why. I've had
successful runs with the same concurrency, this was differential so
there shouldn't be much more data than previously, timing hasn't
changed (re: cron tasks)... Any ideas?

Thanks,
Josh
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDJE2gV/+PyAj2L+IRAvcVAJ4rtvSt1JC1C4JUCStDhG/1ngtsqACfZvHc
nY9blp4gVvm2d0Mp2tPTvbA=
=12QG
-END PGP SIGNATURE-


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Core dump with 1.36.3 on FreeBSD 5.4, "Fatal Error because: Bacula interrupted by signal 10: BUS error"

2005-09-02 Thread Josh Endries
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

I noticed someone else had the same error a couple months ago. My
test server's director died this morning mid-backup with the "BUS
error" in the subject:

"Fatal Error because: Bacula interrupted by signal 10: BUS error"

It's running on a Pentium machine, backing up five clients.
Everything else kept running fine, only the director died. It isn't
64-bit or non-Intel CPU. I'm not sure off the top of my head about
the chipsets. Could this be due to RAM? The machine isn't
particularly beefy, but has been running okay for a few weeks now.

Josh
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (FreeBSD)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDGHYfV/+PyAj2L+IRAqLbAJ9mkHxDrriNOSG0lL2wPMA6bJTCQQCglxC6
yH4neTvrxIq53oTyPD5i4z0=
=EX/a
-END PGP SIGNATURE-


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Concurrency with a single tape drive?

2005-08-24 Thread Josh Endries
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Arno Lehmann wrote:
> Josh Endries wrote:
> 
> Is it possible to have multiple clients back up nightly to a bacula
> server with one autochanger?
> 
>> Yes.

Okay, that's good news...now to just get it working. ;)

>> Should be in the manual. You're on the right track, though.
>> Take care wich pools you use, though - that's something that is greatly
>> improved with the current development, but using the 1.36 version it's
>> your duty to make sure that only tapes from one pool are in the
>> autochanger and only this pool is needed.

I did what I found in the manual. Most concurrency settings are fine
by default, there was two changes I think (Director and Job?). I
relabeled all the tapes in the changer (that weren't labeled or had
other labels) and put them all in the same pool but it still isn't
working... Here is my config, maybe something is wrong that I don't
understand or I'm missing. I've tried everything I can think of...

bacula-dir.conf:

Director {
   Name = backup-dir
   DIRport = 9101
   QueryFile = "/usr/local/share/bacula/query.sql"
   WorkingDirectory = "/var/db/bacula"
   PidDirectory = "/var/run"
   Maximum Concurrent Jobs = 4
   Password = ""
   Messages = Standard
}
Job {
   Client = "client1"
   Name = "client1 Daily Backup"
   Spool Data = yes
   Type = Backup
   WriteBootstrap = "/var/db/bacula/backup.bsr"
   Priority = 1
   Messages = Standard
   FileSet = "Full System"
   Schedule = "Daily Backup"
   Storage = "EXABYTE VXA AutoPak 1x10 E33a"
   Pool = Weekly
   Full Backup Pool = Weekly
   Level = Full
   Maximum Concurrent Jobs = 4
   Spool Data = yes
}
Job {
   Client = "client2"
   Name = "client2 Daily Backup"
   Spool Data = yes
   Type = Backup
   WriteBootstrap = "/var/db/bacula/backup.bsr"
   Priority = 1
   Messages = Standard
   FileSet = "Full System"
   Schedule = "Daily Backup"
   Storage = "EXABYTE VXA AutoPak 1x10 E33a"
   Pool = Weekly
   Full Backup Pool = Weekly
   Level = Full
   Maximum Concurrent Jobs = 4
   Spool Data = yes
}
Client {
   Name = "client1"
   Address = client1
   Catalog = MyCatalog
   Password = ""
}
Client {
   Name = "client2"
   Address = client2
   Catalog = MyCatalog
   Password = ""
}
FileSet {
Name = "Full System"
Include {
Options {
Signature = SHA1
Compression = GZIP6
Verify = ipnugs1
}
File = /root
File = /home
File = /etc
File = /usr/local/etc
File = /var
}
Exclude {
File = /var/db/pgsql
File = /var/db/mysql
File = /var/chroot/mysql/var/db/mysql
File = /var/cvs
File = /var/tmp
File = /usr/bacula
}
}
Schedule {
Name = "Daily Backup"
Run = hourly
}
Storage {
   Name = "EXABYTE VXA AutoPak 1x10 E33a"
   Media Type = "ECRIX VXA-1 2B7B"
   Address = backup
   Password = ""
   Device = "EXABYTE VXA AutoPak 1x10 E33a"
   Autochanger = yes
}
Catalog {
  Name = MyCatalog
  dbname = bacula; user = bacula; password = ""
}
Messages {
Name = Standard
mailcommand = "/usr/local/sbin/bsmtp -h localhost -f \"\(Bacula\)
%r\" -s \"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/usr/local/sbin/bsmtp -h localhost -f
\"\(Bacula\) %r\" -s \"Bacula: Intervention needed for %j\" %r"
mail = [EMAIL PROTECTED] = all, !skipped
operator = [EMAIL PROTECTED] = mount
console = all, !skipped, !saved
syslog = all, !skipped, !saved
append = "/var/db/bacula/log" = all, !skipped
}
Pool {
   Name = Weekly
   Pool Type = Backup
   Recycle = yes
   Volume Retention = 21 days
   Recycle Oldest Volume = yes
}

bacula-fd.conf:

FileDaemon {
Name = backup-fd
FDport = 9102
WorkingDirectory = /var/db/bacula
Pid Directory = /var/run
Maximum Concurrent Jobs = 20
}
Director {
Name = backup-dir
Password = ""
}
Messages {
Name = Standard
director = backup-dir = all, !skipped
}

bacula-sd.conf:

Director {
  Name = backup-dir
  Password = ""
}
Storage {
Name = "backup"
WorkingDirectory = "/var/db/bacula"
Pid Directory = "/var/run"
Maximum Concurrent Jobs = 30
}
Device {
Name = "EXABYTE VXA AutoPak 1x10 E33a"
Media Type = "

[Bacula-users] Concurrency with a single tape drive?

2005-08-23 Thread Josh Endries
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Is it possible to have multiple clients back up nightly to a bacula
server with one autochanger?

I've been trying to get mine going with three test clients but, even
though spooling works, it does them one at a time. The only thing I
can think of is because of the tape drive, but I thought spooling
would alleviate that. The concurrency on the device is default
(should be one), maybe I need to raise that for it to work, and
spooling would take care of the mixed-job problem? I dunno...

Eventually I would like to run a full backup to tape on Sunday and a
differential to disk Mon-Sat, which is what our current system does,
but if I can't do that (yet?) that's okay.

Thanks,
Josh
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (FreeBSD)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD4DBQFDCzotV/+PyAj2L+IRArfkAJ47ZyGiLTNziVX6RjpCAjEhGBtJeACWNLG0
htmP+KZ07yZg53VrnEfBlQ==
=kAaa
-END PGP SIGNATURE-


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Spooling to disk and concurrency

2005-08-16 Thread Josh Endries
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

LHERBIER Lois wrote:
> And the "SpoolData = yes" in the job directive.
> 
> Do not forget to have the spool directory writable for the bacula-sd
> process or your backup will fail.

Thanks for the response. It's spooling now, but concurrent jobs
aren't yet working. Getting closer, though!

I have "Maximum Concurrent Jobs = 4" set in my director conf in the
Director, JobDefs and Job resources. I have one tape drive
(autochanger), so I left it out of the Device resource to limit that
to 1, but with spooling that shouldn't make Bacula run one job at a
time, correct? According to the manual all I should need to do is set
it in the Director resource in the director config, if I understand
that correctly. I have a different Job for each client, so I don't
think I need to specify it in the Client resources.

Director {
   Name = backup-dir
   DIRport = 9101
   QueryFile = "/usr/local/share/bacula/query.sql"
   WorkingDirectory = "/var/db/bacula"
   PidDirectory = "/var/run"
   Maximum Concurrent Jobs = 4
   Password = "..."
   Messages = Daemon
}
JobDefs {
   Name = "Daily Backup"
   Type = Backup
   WriteBootstrap = "/var/db/bacula/${Client}.bsr"
   Priority = 1
   Messages = Standard
   FileSet = "Full System"
   Schedule = "Daily Backup"
   Storage = "EXABYTE VXA AutoPak 1x10 E33a"
   Pool = Daily
   Full Backup Pool = Weekly
   Level = Differential
   Maximum Concurrent Jobs = 4
   Spool Data = yes
}
Storage {
   Name = "EXABYTE VXA AutoPak 1x10 E33a"
   Media Type = "ECRIX VXA-1 2B7B"
   Address = 10.0.2.1
   SDPort = 9103
   Password = "..."
   Device = "EXABYTE VXA AutoPak 1x10 E33a"
   Autochanger = yes
}
Job {
   Client = "host.domain.tld"
   Name = "host Daily Backup"
   JobDefs = "Daily Backup"
   Spool Data = yes
   Maximum Concurrent Jobs = 4
}
Client {
   Name = "host.domain.tld"
   Address = host.domain.tld
   Catalog = MyCatalog
   Password = "..."
}

Thanks,
Josh
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDAoMbV/+PyAj2L+IRArlkAJ9QNcnnrc420XpOTAGTbZiHLzKCjACfag1F
RMEIQyB7VMwO9a2zWj3oiHM=
=AcYa
-END PGP SIGNATURE-


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Spooling to disk and concurrency

2005-08-15 Thread Josh Endries
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I've been trying to get Bacula to spool to disk and run concurrent
jobs but it just isn't working...backing up works one-by-one but
nothing gets spooled to disk in the meantime. Is there a way to
force it to spool, or is it supposed to always spool, or is there
some other way to test it? Does it only spool if there are
concurrent jobs running? I have "Spool Data = yes" in my Device
config and my JobDefs.

I also can't seem to get multiple jobs to run. I've been using 'run'
from within bconsole, maybe that's why? I have "Maximum Concurrent
Jobs = 4" in my Director and JobDefs config, but it is to a tape
drive so I have that default (1). Spooling is supposed to make this
possible, though, correct?

Thanks,
Josh
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (FreeBSD)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDAPPvV/+PyAj2L+IRAmpzAJ0ck7qs9Lk3wEk+hNgOB9kOaxf8lwCfTUis
rVedDEwvpze8mgLd1q4z/X8=
=xrql
-END PGP SIGNATURE-


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users