Re: [Bacula-users] Schedule not being followed

2010-01-18 Thread Glynd

This still persists after I changed the schedule as per Anrno's instructions.

Bacula still thinks it is week 2 (or 4) and insists that it wants disk A. 

When does the new week start according to Bacula, is it the same day as the
1st of the month or Sunday? Is there anyway to check what it "thinks"?

At the moment I can't get a consistent back up schedule running which is a
bit worrying?

For completeness I have pasted the dir conf here. Maybe there is something
else I have wrong.

TIA
cheers
Glyn

#
# Default Bacula Director Configuration file
#
#  The only thing that MUST be changed is to add one or more
#   file or directory names in the Include directive of the
#   FileSet resource.
#
#  For Bacula release 2.2.8 (26 January 2008) -- debian lenny/sid
#
#  You might also want to change the default email address
#   from root to your address.  See the "mail" and "operator"
#   directives in the Messages resource.
#

Director {# define myself
  Name = mistral-dir
  DIRport = 9101# where we listen for UA connections
  QueryFile = "/var/lib/bacula/bin/query.sql"
  WorkingDirectory = "/var/lib/bacula/bin/working"
  PidDirectory = "/var/lib/bacula/bin/working"
  Maximum Concurrent Jobs = 1
  Password = "Cv70F6pf1t6pBopT4vQOnigDrR0v3L" # Console password
  Messages = Daemon
  DirAddress = mistral.cirrus.co.za
}

JobDefs {
  Name = "GlynJob"
  Type = Backup
 # Level = incremental
  Client = glyn-laptop-fd 
  FileSet = "Glyn Set"
  Messages = Standard
  Priority = 10
  Reschedule on error = yes
  Reschedule interval = 1 hour
  Reschedule times = 5
}

JobDefs {
  Name = "ColynJob"
  Type = Backup
#  Level = Incremental
  Client = Colyn-Acer-W7-fd 
  FileSet = "Colyn Set"
  Messages = Standard
  Priority = 10
  Reschedule on error = yes
  Reschedule interval = 1 hour
  Reschedule times = 5
}

JobDefs {
  Name = "CumulusJob"
  Type = Backup
 # Level = Incremental
  Client = mistral-fd 
  FileSet = "Cumulus Set"
  Messages = Standard
  Priority = 10
}

JobDefs {
  Name = "SugarJob"
  Type = Backup
 # Level = Incremental
  Client = mistral-fd 
  FileSet = "Sugar Set"
  Messages = Standard
  Priority = 10
}

JobDefs {
  Name = "TyphoonJob"
  Type = Backup
 # Level = Incremental
  Client = typhoon-fd 
  FileSet = "Typhoon Set"
  Messages = Standard
  Priority = 10
}
#
# Define the main nightly save backup job
#   By default, this job will back up to disk in 
Job {
  Name = "SugarA"
  JobDefs = "SugarJob"
  Schedule = "WeeklyCycle"
  Pool = Default
  Full Backup Pool = Full-Pool-A
  Incremental Backup Pool = Incr-Pool-A
  Write Bootstrap = "/var/lib/bacula/bin/Sugar.bsr"
}

Job {
  Name = "CumulusA"
  JobDefs = "CumulusJob"
  Schedule = "WeeklyCycle"
  Pool = Default
  Full Backup Pool = Full-Pool-A
  Incremental Backup Pool = Incr-Pool-A
  Write Bootstrap = "/var/lib/bacula/bin/Cumulus.bsr"
}

Job {
  Name = "GlynA"
  JobDefs = "GlynJob"
  Schedule = "DayTime"
  Pool = Default
  Full Backup Pool = Full-Pool-A
  Incremental Backup Pool = Incr-Pool-A
  Write Bootstrap = "/var/lib/bacula/bin/Glyn.bsr"
}

Job {
  Name = "ColynA"
  JobDefs = "ColynJob"
  Schedule = "DayTime"
  Pool = Default
  Full Backup Pool = Full-Pool-A
  Incremental Backup Pool = Incr-Pool-A
  Write Bootstrap = "/var/lib/bacula/bin/Colyn.bsr"
}

Job {
  Name = "TyphoonA"
  JobDefs = "TyphoonJob"
  Schedule = "WeeklyCycle"
  Pool = Default
  Full Backup Pool = Full-Pool-A
  Incremental Backup Pool = Incr-Pool-A
  Write Bootstrap = "/var/lib/bacula/bin/Typhoon.bsr"
}

Job {
  Name = "SugarB"
  JobDefs = "SugarJob"
  Schedule = "WeeklyCycle"
  Pool = Default
  Full Backup Pool = Full-Pool-B
  Incremental Backup Pool = Incr-Pool-B
  Write Bootstrap = "/var/lib/bacula/bin/Sugar.bsr"
}

Job {
  Name = "CumulusB"
  JobDefs = "CumulusJob"
  Schedule = "WeeklyCycle"
  Pool = Default
  Full Backup Pool = Full-Pool-B
  Incremental Backup Pool = Incr-Pool-B
  Write Bootstrap = "/var/lib/bacula/bin/Cumulus.bsr"
}

Job {
  Name = "GlynB"
  JobDefs = "GlynJob"
  Schedule = "DayTime"
  Pool = Default
  Full Backup Pool = Full-Pool-B
  Incremental Backup Pool = Incr-Pool-B
  Write Bootstrap = "/var/lib/bacula/bin/Glyn.bsr"
}

Job {
  Name = "ColynB"
  JobDefs = "ColynJob"
  Schedule = "DayTime"
  Pool = Default
  Full Backup Pool = Full-Pool-B
  Incremental Backup Pool = Incr-Pool-B
  Write Bootstrap = "/var/lib/bacula/bin/Colyn.bsr"
}

Job {
  Name = "TyphoonB"
  JobDefs = "TyphoonJob"
  Schedule = "WeeklyCycle"
  Pool = Default
  Full Backup Pool = Full-Pool-B
  Incremental Backup Pool = Incr-Pool-B
  Write Bootstrap = "/var/lib/bacula/bin/Typhoon.bsr"
}

# Backup the catalog database (after the nightly save)
Job {
  Name = "BackupCatalogA"
  JobDefs = "SugarJob"
  Level = Full
  FileSet="Catalog"
  Schedule = "WeeklyCycleAfterBackup"
  Pool = Full-Pool-A
  RunBeforeJob = "/var/lib/bacula/bin/make_catalog_backup bacula bacula"
  RunAfterJob  = "/var/lib/bacula/bin/delete_catalog_backup"
  Write Bootstrap = "/var/li

Re: [Bacula-users] HP MSL2024 Autochanger "ERR=Device or resource busy."

2010-01-18 Thread Richard Scobie
Richard Scobie wrote:

> Thanks for the followup, but after finding the thread referenced below 
> yesterday, I switch the SCSI HBA and library into another box (different 
> motherboard) and it is humming along fine using the same config files.
> 
> Granted this box is running Fedora 8, not Fedora 11 as the previous box 
> was, but I'll have a better idea if it is the hardware when I connect it 
> to the production server which is also running Fedora 11.
> 
> Thanks all for the assistence - see Kern's comments here:
> 
> http://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg12861.html 

Just a follow up on this for the archives.

Story to this point:

HP MSL2024 autochanger on HP parallel SCSI HBA was failing with drive 
error, "ERR=Device or resource busy.", when installed on Fedora 11 Core2 
Duo based machine.

Switched HBA and library to a Fedora 8 Core i7 box and all went well - 
same Bacula version and configs.

Moved HBA and library to final production box - Fedora 11 Core i7 and 
the same problem re-occured.

Replacing the Fedora kernel 2.6.30.8-64.fc11.x86_64 with a stock 
2.6.32.3 has fixed it.

I did not have time to work out exactly where in the kernel the problem 
lies.

Regards,

Richard

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Question about recycle = no

2010-01-18 Thread Phil Stracchino
On 01/15/10 08:48, John Drescher wrote:
> I think others were looking for the more complicated task of deleting
> file volumes automatically after their retention period had expired.


Having now finished the OS reinstallation on my main workstation, I've
had time to look at this problem.  Here's my working example.

To start with, let's take a look at my Pool setup:

Pool {
  Name = Scratch
  Storage = babylon4-sd
  Pool Type = Backup
}

Pool {
  Name = Full-Disk
  Storage = babylon4-sd
  Pool Type = Backup
  Recycle = no
  Recycle Oldest Volume = no
  Recycle Current Volume = no
  AutoPrune = yes # Prune expired volumes
  Volume Retention = 2 months
  Maximum Volume Jobs = 0
  Volume Use Duration = 23h
  Label Format =
"FULL-$Year${Month:p/2/0/r}${Day:p/2/0/r}-${Hour:p/2/0/r}:${Minute:p/2/0/r}"
  RecyclePool = Scratch
}

Pool {
  Name = Diff-Disk
  Storage = babylon4-sd
  Pool Type = Backup
  Recycle = no
  Recycle Oldest Volume = no
  Recycle Current Volume = no
  AutoPrune = yes
  Volume Retention = 2 months
  Maximum Volume Jobs = 0
  Volume Use Duration = 23h
  Label Format =
"DIFF-$Year${Month:p/2/0/r}${Day:p/2/0/r}-${Hour:p/2/0/r}:${Minute:p/2/0/r}"
  RecyclePool = Scratch
}

Pool {
  Name = Incr-Disk
  Storage = babylon4-sd
  Pool Type = Backup
  Recycle = no
  Recycle Oldest Volume = no
  Recycle Current Volume = no
  AutoPrune = yes
  Volume Retention = 1 month
  Maximum Volume Jobs = 0
  Volume Use Duration = 23h
  Label Format =
"INCR-$Year${Month:p/2/0/r}${Day:p/2/0/r}-${Hour:p/2/0/r}:${Minute:p/2/0/r}"
  RecyclePool = Scratch
}

Pool {
  Name = Full-Tape
  Storage = babylon5-sd
  Pool Type = Backup
  Recycle = yes
  Autoprune = yes
  Volume Retention = 365d
  Recycle Oldest Volume = yes
  Recycle Current Volume = yes
  Label Format = "ARCH-"
  Maximum Volumes = 9
}


As you see, there are three separate Disk pools, divided by level, with
different retention periods, all of which recycle into the Scratch pool.
 Each disk volume is used for a single day's backups, then marked used,
enabling good granularity of disk usage.  There is also a separate tape
pool, volumes in which are recycled back into the same Pool ready for reuse.


Now, with that, on to the autoclean script:


#!/usr/bin/perl
use strict;
use Getopt::Long;
use IPC::Open2;
use IO::Handle;


my $bconsole = '/opt/bacula/bin/bconsole';
my (%opts, @purged, $pid);

GetOptions(\%opts,
   'verbose|v',
   'test');

my ($IN, $OUT) = (IO::Handle->new(), IO::Handle->new());

$pid = open2($OUT, $IN, $bconsole);

if (scalar (@purged = check_volumes()))
{
printf("Bacula reports the following purged volumes:\n\t%s\n",
   join("\n\t", @purged)) if ($opts{verbose});
my $deleted = delete_volumes(@purged);
print "$deleted volumes deleted.\n" if ($opts{verbose});
}
elsif ($opts{verbose})
{
print "No purged volumes found to delete.\n";
}

print $IN "exit\n";
waitpid($pid, 0);

exit (0);


sub check_volumes
{
my $dividers = 0;
my (@purged, @row);

print $IN "list volumes pool=Scratch\n";
for (;;)
{
my $resp = <$OUT>;
last if ($resp =~ /No results to list./);
$dividers++ if ($resp =~ /^[\+\-]+$/);
last if ($dividers == 3);
@row = split(/\s+/, $resp);
push (@purged, $row[3]) if ($row[5] eq 'Purged');
}

return (@purged);
}


sub delete_volumes
{
my $volume_dir = '/spool/bacula/';
my $count = 0;

foreach my $vol (@_)
{
my $l;
my $file = $volume_dir.$vol;

print "Deleting volume $vol from catalog ... " if ($opts{verbose});
print $IN "delete volume=$vol yes\n";
$l = <$OUT>;
$l = <$OUT>;
print "Done.\nDeleting volume $file from disk ... " if
($opts{verbose});
if (-f $file)
{
$count++;
unlink ($file);
}
print "Done.\n" if ($opts{verbose});
}

return ($count);
}



This script leaves volume expiration entirely to Bacula.  It asks Bacula
for a list of volumes that have been expired and moved into the Scratch
pool.  If there are none, it returns immediately; otherwise, it
double-checks to make sure that each of those volumes has been purged,
builds a list of purged volumes, then deletes the purged volumes first
from the Catalog, then from disk.


I haven't yet set this up as an Admin job, but I have tested it
thoroughly and verified that it works, including properly exiting if the
Scratch pool is empty.


-- 
  Phil Stracchino, CDK#2 DoD#299792458 ICBM: 43.5607, -71.355
  ala...@caerllewys.net   ala...@metrocast.net   p...@co.ordinate.org
 Renaissance Man, Unix ronin, Perl hacker, Free Stater
 It's not the years, it's the mileage.

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
atten

Re: [Bacula-users] Can't find the tape changer

2010-01-18 Thread Henry Yen
On Mon, Jan 18, 2010 at 09:17:51AM -0500, Dan Langille wrote:

> > ]# mtx -f /dev/sg6 status
> > mtx: Request Sense: Long Report=yes
> > mtx: Request Sense: Valid Residual=no
> > mtx: Request Sense: Error Code=0 (Unknown?!)
> > mtx: Request Sense: Sense Key=No Sense
> > mtx: Request Sense: FileMark=no
> > mtx: Request Sense: EOM=no
> > mtx: Request Sense: ILI=no
> > mtx: Request Sense: Additional Sense Code = 00
> > mtx: Request Sense: Additional Sense Qualifier = 00
> > mtx: Request Sense: BPV=no
> > mtx: Request Sense: Error in CDB=no
> > mtx: Request Sense: SKSV=no
> > READ ELEMENT STATUS Command Failed

Does the failure remain after retrying after a minute or two?  I've used
some changers that tended to throw errors like the above for the first
half-a-minute or so following a reset.  Waiting a minute was required
for the changer to settle back to normal.

-- 
Henry Yen   Aegis Information Systems, Inc.
Senior Systems Programmer   Hicksville, New York

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Can't find the tape changer

2010-01-18 Thread Richard Scobie
Dan Langille wrote:
> Dan Langille wrote:
> 
>>I'm helping a client with a Linux system.  I see the tape drive, but 
>>cannot find the tape changer.  Clues please.
>>
>> From dmesg:
> 
> 
> Also:
> 
> Linux version 2.6.9-78.0.8.plus.c4smp (mockbu...@builder10.centos.org) 
> (gcc version 3.4.6 20060404 (Red Hat 3.4.6-10)) #1 SMP Thu Nov 27 
> 19:19:34 EST 2008
> 
> And there is no /dev/changer*

/dev/sg6 should be it from what you have shown.

I have an HP attached here:

Host: scsi10 Channel: 00 Id: 04 Lun: 00
   Vendor: HP   Model: Ultrium 4-SCSI   Rev: B56W
   Type:   Sequential-AccessANSI  SCSI revision: 05
Host: scsi10 Channel: 00 Id: 04 Lun: 01
   Vendor: HP   Model: MSL G3 SeriesRev: 4.70
   Type:   Medium Changer   ANSI  SCSI revision: 05

ioc0: LSI53C1020A A1: Capabilities={Initiator,Target}
   alloc irq_desc for 37 on node -1
   alloc kstat_irqs on node -1
mptspi :03:08.0: irq 37 for MSI/MSI-X
mptbase: ioc0: PCI-MSI enabled
scsi10 : ioc0: LSI53C1020A A1, FwRev=01032700h, Ports=1, MaxQ=255, IRQ=37
ALSA sound/pci/hda/hda_intel.c:698: azx_get_response timeout, switching 
to polling mode: last cmd=0x002f0d00
scsi: waiting for bus probes to complete ...
scsi 10:0:4:0: Sequential-Access HP   Ultrium 4-SCSI   B56W PQ: 0 
ANSI: 5
scsi target10:0:4: Beginning Domain Validation
scsi target10:0:4: Ending Domain Validation
scsi target10:0:4: FAST-160 WIDE SCSI 320.0 MB/s DT IU RTI PCOMP (6.25 
ns, offset 64)
scsi 10:0:4:1: Medium ChangerHP   MSL G3 Series4.70 PQ: 0 
ANSI: 5
scsi 10:0:4:0: Attached scsi generic sg10 type 1
scsi 10:0:4:1: Attached scsi generic sg11 type 8
SCSI Media Changer driver v0.25
ch0: type #1 (mt): 0x0+1 [medium transport]
ch0: type #2 (st): 0x3e9+24 [storage]
ch0: type #3 (ie): 0x0+0 [import/export]
ch0: type #4 (dt): 0x1+1 [data transfer]
st: Version 20081215, fixed bufsize 32768, s/g segs 256
ch0: dt 0x1: ID 4, LUN 0, name: HP   Ultrium 4-SCSI   B56W
ch0: INITIALIZE ELEMENT STATUS, may take some time ...

Drive is /dev/nst0 and changer is /dev/sg11.

Regards,

Richard


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Can't find the tape changer

2010-01-18 Thread Robert Hartzell
On 01/18/10 07:17 PM, Dan Langille wrote:
> Dan Langille wrote:
>> I'm helping a client with a Linux system.  I see the tape drive, but
>> cannot find the tape changer.  Clues please.
>>
>>   From dmesg:
>
> Also:
>
> Linux version 2.6.9-78.0.8.plus.c4smp (mockbu...@builder10.centos.org)
> (gcc version 3.4.6 20060404 (Red Hat 3.4.6-10)) #1 SMP Thu Nov 27
> 19:19:34 EST 2008
>
> And there is no /dev/changer*
>

Dan,
Don't know if this will be of any help but on a friends Fedora 12 system 
I just set bacula up on the changer is target 6 lun 1 and the drive is 
target 6 lun 0

[r...@stor data.spool]# lsscsi -g
[0:0:1:0]cd/dvd  HL-DT-ST DVD-RAM GH22LP20 1.00  /dev/sr0   /dev/sg0
[2:0:0:0]diskATA  WDC WD5000AACS-0 05.0  /dev/sda   /dev/sg1
[3:0:0:0]diskATA  WDC WD5000AADS-0 01.0  /dev/sdb   /dev/sg2
[4:0:6:0]tapeCOMPAQ   TSL-15.10  /dev/st0   /dev/sg3
[4:0:6:1]mediumx COMPAQ   TSL-15.10  /dev/sch0  /dev/sg4

[r...@stor data.spool]# ls -l /dev | grep sg
drwxr-xr-x. 2 root root 140 2010-01-18 14:38 bsg
lrwxrwxrwx. 1 root root   3 2010-01-18 14:39 changer -> sg4
lrwxrwxrwx. 1 root root   3 2010-01-18 14:39 changer-sg4 -> sg4
crw-rw. 1 root root  1,  11 2010-01-18 14:38 kmsg
crw-rw. 1 root cdrom21,   0 2010-01-18 14:38 sg0
crw-rw. 1 root disk 21,   1 2010-01-18 14:38 sg1
crw-rw. 1 root disk 21,   2 2010-01-18 14:38 sg2
crw-rw. 1 root tape 21,   3 2010-01-18 14:38 sg3
crw-rw. 1 root tape 21,   4 2010-01-18 14:38 sg4

[r...@stor data.spool]# mtx -f /dev/sg4 status
   Storage Changer /dev/sg4:1 Drives, 8 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 1 Loaded):VolumeTag = 

   Storage Element 1:Empty
   Storage Element 2:Full
   Storage Element 3:Full
   Storage Element 4:Full
   Storage Element 5:Full
   Storage Element 6:Full
   Storage Element 7:Full
   Storage Element 8:Full

/dev/nst0 is the tape drive which is busy at the moment so I cant show 
status.

-- 
   Robert W Hartzell
bear at rwhartzell.net
   RwHartzell.Net

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Can't find the tape changer

2010-01-18 Thread Dan Langille
Dan Langille wrote:
> I'm helping a client with a Linux system.  I see the tape drive, but 
> cannot find the tape changer.  Clues please.
> 
>  From dmesg:

Also:

Linux version 2.6.9-78.0.8.plus.c4smp (mockbu...@builder10.centos.org) 
(gcc version 3.4.6 20060404 (Red Hat 3.4.6-10)) #1 SMP Thu Nov 27 
19:19:34 EST 2008

And there is no /dev/changer*

> 
> scsi2 : ioc0: LSI53C1030, FwRev=01032700h, Ports=1, MaxQ=255, IRQ=169
>Vendor: IBM   Model: ULTRIUM-TD3   Rev: 6B20
>Type:   Sequential-Access  ANSI SCSI revision: 03
>Vendor: DELL  Model: PV-124T   Rev: 0043
>Type:   Medium Changer ANSI SCSI revision: 02
> st: Version 20040403, fixed bufsize 32768, s/g segs 256
> Attached scsi tape st0 at scsi2, channel 0, id 6, lun 0
> st0: try direct i/o: yes (alignment 512 B), max page reachable by HBA 
> 4503599627370495
> Attached scsi generic sg0 at scsi0, channel 0, id 8, lun 0,  type 13
> Attached scsi generic sg1 at scsi0, channel 2, id 0, lun 0,  type 0
> Attached scsi generic sg2 at scsi1, channel 0, id 17, lun 0,  type 13
> Attached scsi generic sg3 at scsi1, channel 2, id 0, lun 0,  type 0
> Attached scsi generic sg4 at scsi1, channel 2, id 1, lun 0,  type 0
> Attached scsi generic sg5 at scsi2, channel 0, id 6, lun 0,  type 1
> Attached scsi generic sg6 at scsi2, channel 0, id 6, lun 1,  type 8
> 
> 
> cat /proc/scsi/scsi includes this:
> 
> Host: scsi2 Channel: 00 Id: 06 Lun: 01
>Vendor: DELL Model: PV-124T  Rev: 0043
>Type:   Medium Changer   ANSI SCSI revision: 02
> 
> The above makes me think sg6 is the changer... but no luck:
> 
>  From mtx and mt:
> 
> # mtx -f /dev/sg6 inquiry
> Product Type: Medium Changer
> Vendor ID: 'DELL'
> Product ID: 'PV-124T '
> Revision: '0043'
> Attached Changer: No
> 
> # mt -f /dev/st0 status
> SCSI 2 tape drive:
> File number=0, block number=0, partition=0.
> Tape block size 0 bytes. Density code 0x44 (no translation).
> Soft error count since last status=0
> General status bits on (4101):
>   BOT ONLINE IM_REP_EN
> 
> 
> ]# mtx -f /dev/sg6 status
> mtx: Request Sense: Long Report=yes
> mtx: Request Sense: Valid Residual=no
> mtx: Request Sense: Error Code=0 (Unknown?!)
> mtx: Request Sense: Sense Key=No Sense
> mtx: Request Sense: FileMark=no
> mtx: Request Sense: EOM=no
> mtx: Request Sense: ILI=no
> mtx: Request Sense: Additional Sense Code = 00
> mtx: Request Sense: Additional Sense Qualifier = 00
> mtx: Request Sense: BPV=no
> mtx: Request Sense: Error in CDB=no
> mtx: Request Sense: SKSV=no
> READ ELEMENT STATUS Command Failed


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula 2.4.4 : Need some help about Exclude

2010-01-18 Thread Dan Langille
Arno Lehmann wrote:
> Hello,
> 
> 18.01.2010 15:21, Cyril Lavier wrote:
>> Hi.
>>
>> I read the documentation about the FileSet configuration, but I have 
>> some problems doing a correct Exclude rule
>>
>> I need to exclude from the backup all file/folder which first character 
>> of the filename is "_".
>>
>> Here is the name of the FileSet :
>>
>> FileSet {
>>   Name = "Users"
>>   Include {
>>  Options {
>> Exclude = yes
>> WildDir = "_*"
>> WildFile = "_*"   
>>  }
> Options {
>signature = sha1
>verify = pnugsi
> }
>>  File = /users/
>>   }
>> }
>>
>> This setting is not apparently working.
> 
> Add the Options stuff given above after the existing options, because 
> (from the manual): "Once Bacula determines that the Options resource 
> matches the file under consideration, that file will be saved without 
> looking at any other Options resources that may be present. This means 
> that any wild cards must appear before an Options resource without 
> wild cards.
> 
> If for some reason, Bacula checks all the Options resources to a file 
> under consideration for backup, but there are no matches (generally 
> because of wild cards that don't match), Bacula as a default will then 
> backup the file. This is quite logical if you consider the case of no 
> Options clause is specified, where you want everything to be backed 
> up, and it is important to keep in mind when excluding as mentioned above.
> 
> However, one additional point is that in the case that no match was 
> found, Bacula will use the options found in the last Options resource. 
> As a consequence, if you want a particular set of "default" options, 
> you should put them in an Options resource after any other Options."
> 
> That should explain what you see...
> 
> Cheers,

Also, see bwild, a utility for testing wild cards.

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Can't find the tape changer

2010-01-18 Thread Dan Langille
Timo Neuvonen wrote:
> "Dan Langille"  kirjoitti viestissä 
> news:4b54c50e.60...@langille.org...
>> I'm helping a client with a Linux system.  I see the tape drive, but
>> cannot find the tape changer.  Clues please.
>>
>> From dmesg:
> 
>> Attached scsi generic sg5 at scsi2, channel 0, id 6, lun 0,  type 1
>> Attached scsi generic sg6 at scsi2, channel 0, id 6, lun 1,  type 8
>>
> 
> Just a wild guess, but are the drive and the changer a single physical 
> device with only one interface and scsi address setting? Or can you somehow 
> set the id separately for them? Now both have id=6, might it help if you 
> could change either of them?

Nice catch.

Sorry, I don't know anything about the physical unit.  I'm told it's a 
Dell PowerVault PV-124T and the mtx output supports that claim.

But they are different LUNs, which should be fine AFAIK.

> 
>> cat /proc/scsi/scsi includes this:
>>
>> Host: scsi2 Channel: 00 Id: 06 Lun: 01
>>   Vendor: DELL Model: PV-124T  Rev: 0043
>>   Type:   Medium Changer   ANSI SCSI revision: 02
>>
>> The above makes me think sg6 is the changer... but no luck:
>>
>> From mtx and mt:
>>
>> # mtx -f /dev/sg6 inquiry
>> Product Type: Medium Changer
>> Vendor ID: 'DELL'
>> Product ID: 'PV-124T '
>> Revision: '0043'
>> Attached Changer: No
>>
>> # mt -f /dev/st0 status
>> SCSI 2 tape drive:
>> File number=0, block number=0, partition=0.
>> Tape block size 0 bytes. Density code 0x44 (no translation).
>> Soft error count since last status=0
>> General status bits on (4101):
>>  BOT ONLINE IM_REP_EN
>>
>>
>> ]# mtx -f /dev/sg6 status
>> mtx: Request Sense: Long Report=yes
>> mtx: Request Sense: Valid Residual=no
>> mtx: Request Sense: Error Code=0 (Unknown?!)
>> mtx: Request Sense: Sense Key=No Sense
>> mtx: Request Sense: FileMark=no
>> mtx: Request Sense: EOM=no
>> mtx: Request Sense: ILI=no
>> mtx: Request Sense: Additional Sense Code = 00
>> mtx: Request Sense: Additional Sense Qualifier = 00
>> mtx: Request Sense: BPV=no
>> mtx: Request Sense: Error in CDB=no
>> mtx: Request Sense: SKSV=no
>> READ ELEMENT STATUS Command Failed


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Can't find the tape changer

2010-01-18 Thread Timo Neuvonen
"Dan Langille"  kirjoitti viestissä 
news:4b54c50e.60...@langille.org...
> I'm helping a client with a Linux system.  I see the tape drive, but
> cannot find the tape changer.  Clues please.
>
> From dmesg:

> Attached scsi generic sg5 at scsi2, channel 0, id 6, lun 0,  type 1
> Attached scsi generic sg6 at scsi2, channel 0, id 6, lun 1,  type 8
>

Just a wild guess, but are the drive and the changer a single physical 
device with only one interface and scsi address setting? Or can you somehow 
set the id separately for them? Now both have id=6, might it help if you 
could change either of them?

>
> cat /proc/scsi/scsi includes this:
>
> Host: scsi2 Channel: 00 Id: 06 Lun: 01
>   Vendor: DELL Model: PV-124T  Rev: 0043
>   Type:   Medium Changer   ANSI SCSI revision: 02
>
> The above makes me think sg6 is the changer... but no luck:
>
> From mtx and mt:
>
> # mtx -f /dev/sg6 inquiry
> Product Type: Medium Changer
> Vendor ID: 'DELL'
> Product ID: 'PV-124T '
> Revision: '0043'
> Attached Changer: No
>
> # mt -f /dev/st0 status
> SCSI 2 tape drive:
> File number=0, block number=0, partition=0.
> Tape block size 0 bytes. Density code 0x44 (no translation).
> Soft error count since last status=0
> General status bits on (4101):
>  BOT ONLINE IM_REP_EN
>
>
> ]# mtx -f /dev/sg6 status
> mtx: Request Sense: Long Report=yes
> mtx: Request Sense: Valid Residual=no
> mtx: Request Sense: Error Code=0 (Unknown?!)
> mtx: Request Sense: Sense Key=No Sense
> mtx: Request Sense: FileMark=no
> mtx: Request Sense: EOM=no
> mtx: Request Sense: ILI=no
> mtx: Request Sense: Additional Sense Code = 00
> mtx: Request Sense: Additional Sense Qualifier = 00
> mtx: Request Sense: BPV=no
> mtx: Request Sense: Error in CDB=no
> mtx: Request Sense: SKSV=no
> READ ELEMENT STATUS Command Failed
>



--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula 2.4.4 : Need some help about Exclude

2010-01-18 Thread Arno Lehmann
Hello,

18.01.2010 15:21, Cyril Lavier wrote:
> Hi.
> 
> I read the documentation about the FileSet configuration, but I have 
> some problems doing a correct Exclude rule
> 
> I need to exclude from the backup all file/folder which first character 
> of the filename is "_".
> 
> Here is the name of the FileSet :
> 
> FileSet {
>   Name = "Users"
>   Include {
>  Options {
> Exclude = yes
> WildDir = "_*"
> WildFile = "_*"   
>  }
Options {
   signature = sha1
   verify = pnugsi
}
>  File = /users/
>   }
> }
> 
> This setting is not apparently working.

Add the Options stuff given above after the existing options, because 
(from the manual): "Once Bacula determines that the Options resource 
matches the file under consideration, that file will be saved without 
looking at any other Options resources that may be present. This means 
that any wild cards must appear before an Options resource without 
wild cards.

If for some reason, Bacula checks all the Options resources to a file 
under consideration for backup, but there are no matches (generally 
because of wild cards that don't match), Bacula as a default will then 
backup the file. This is quite logical if you consider the case of no 
Options clause is specified, where you want everything to be backed 
up, and it is important to keep in mind when excluding as mentioned above.

However, one additional point is that in the case that no match was 
found, Bacula will use the options found in the last Options resource. 
As a consequence, if you want a particular set of "default" options, 
you should put them in an Options resource after any other Options."

That should explain what you see...

Cheers,

Arno

> I use bacula 2.4.4 on a Debian Lenny 64bits server.
> 
> Thanks.
> 

-- 
Arno Lehmann
IT-Service Lehmann
Sandstr. 6, 49080 Osnabrück
www.its-lehmann.de

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Can't find the tape changer

2010-01-18 Thread Dan Langille
I'm helping a client with a Linux system.  I see the tape drive, but 
cannot find the tape changer.  Clues please.

 From dmesg:

scsi2 : ioc0: LSI53C1030, FwRev=01032700h, Ports=1, MaxQ=255, IRQ=169
   Vendor: IBM   Model: ULTRIUM-TD3   Rev: 6B20
   Type:   Sequential-Access  ANSI SCSI revision: 03
   Vendor: DELL  Model: PV-124T   Rev: 0043
   Type:   Medium Changer ANSI SCSI revision: 02
st: Version 20040403, fixed bufsize 32768, s/g segs 256
Attached scsi tape st0 at scsi2, channel 0, id 6, lun 0
st0: try direct i/o: yes (alignment 512 B), max page reachable by HBA 
4503599627370495
Attached scsi generic sg0 at scsi0, channel 0, id 8, lun 0,  type 13
Attached scsi generic sg1 at scsi0, channel 2, id 0, lun 0,  type 0
Attached scsi generic sg2 at scsi1, channel 0, id 17, lun 0,  type 13
Attached scsi generic sg3 at scsi1, channel 2, id 0, lun 0,  type 0
Attached scsi generic sg4 at scsi1, channel 2, id 1, lun 0,  type 0
Attached scsi generic sg5 at scsi2, channel 0, id 6, lun 0,  type 1
Attached scsi generic sg6 at scsi2, channel 0, id 6, lun 1,  type 8


cat /proc/scsi/scsi includes this:

Host: scsi2 Channel: 00 Id: 06 Lun: 01
   Vendor: DELL Model: PV-124T  Rev: 0043
   Type:   Medium Changer   ANSI SCSI revision: 02

The above makes me think sg6 is the changer... but no luck:

 From mtx and mt:

# mtx -f /dev/sg6 inquiry
Product Type: Medium Changer
Vendor ID: 'DELL'
Product ID: 'PV-124T '
Revision: '0043'
Attached Changer: No

# mt -f /dev/st0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x44 (no translation).
Soft error count since last status=0
General status bits on (4101):
  BOT ONLINE IM_REP_EN


]# mtx -f /dev/sg6 status
mtx: Request Sense: Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=0 (Unknown?!)
mtx: Request Sense: Sense Key=No Sense
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 00
mtx: Request Sense: Additional Sense Qualifier = 00
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
READ ELEMENT STATUS Command Failed



--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] How to build with DBI support?

2010-01-18 Thread Moray Henderson (ICT)
I'm trying to build bacula with dbi support for SQLite3.  The
documentation says you can do this: 'Currently the drivers supported by
Bacula are: postgresql, mysql, sqlite, sqlite3; these are the names that
may be added to string "dbi:".'

I'm on CentOS 5 building from bacula-3.0.3.tar.gz; I've built and
installed the sqlite3 dbi driver.  Everything builds fine without dbi,
but as soon as I try to add dbi I get the following errors from
configure and when compiling dbi.c:

mock-chroot> rpm -qa libdbi\* sql\*
libdbi-drivers-0.8.1a-1.2.2
sqlite-devel-3.3.6-2
sqlite-3.3.6-2
libdbi-0.8.1-2.1
libdbi-devel-0.8.1-2.1
libdbi-dbd-sqlite3-0.8.1a-1.2.2 
mock-chroot> ./configure --with-sqlite3 --with-dbi
--with-dbi-driver=sqlite3
...
checking for DBI drivers support... yes
nm: atoll.o: no symbols
nm: asprintf.o: no symbols
nm: timegm.o: no symbols
nm: /usr/lib/libsqlite3.so: no symbols
checking for getconf... getconf
...
mock-chroot> make
...
==>Entering directory /builddir/build/BUILD/bacula-3.0.3/src/cats
make[1]: Entering directory
`/builddir/build/BUILD/bacula-3.0.3/src/cats'
Compiling mysql.c
Compiling bdb.c
Compiling dbi.c
dbi.c: In function 'B_DB* db_init_database(JCR*, const char*, const
char*, const char*, const char*, int, const char*, int)':
dbi.c:124: error: 'struct B_DB' has no member named 'db_driver'
dbi.c:126: error: 'dbi_conn_error' was not declared in this scope
dbi.c:149: error: 'struct B_DB' has no member named 'db_driverdir'
dbi.c:152: error: 'struct B_DB' has no member named 'db_driver'
dbi.c:154: error: 'struct B_DB' has no member named 'db_type'
dbi.c: In function 'int db_open_database(JCR*, B_DB*)':
dbi.c:213: error: 'struct B_DB' has no member named 'db_driverdir'
dbi.c:213: error: 'struct B_DB' has no member named 'instance'
dbi.c:213: error: 'dbi_initialize_r' was not declared in this scope
dbi.c:215: error: 'struct B_DB' has no member named 'db_driverdir'
dbi.c:221: error: 'struct B_DB' has no member named 'db_driver'
dbi.c:221: error: 'struct B_DB' has no member named 'instance'
dbi.c:221: error: 'dbi_conn_new_r' was not declared in this scope
dbi.c:223: error: 'struct B_DB' has no member named 'db_type'
dbi.c:225: error: 'dbi_conn_set_option' was not declared in this scope
dbi.c:268: error: 'dbi_conn_connect' was not declared in this scope
dbi.c:273: error: 'dbi_conn_error' was not declared in this scope
dbi.c:281: error: 'struct B_DB' has no member named 'db_driver'
dbi.c:301: error: 'struct B_DB' has no member named 'db_type'
dbi.c: In function 'void db_close_database(JCR*, B_DB*)':
dbi.c:342: error: 'struct B_DB' has no member named 'instance'
dbi.c:342: error: 'dbi_shutdown_r' was not declared in this scope
dbi.c:344: error: 'struct B_DB' has no member named 'instance'
dbi.c:369: error: 'struct B_DB' has no member named 'db_driverdir'
dbi.c:370: error: 'struct B_DB' has no member named 'db_driverdir'
dbi.c:372: error: 'struct B_DB' has no member named 'db_driver'
dbi.c:373: error: 'struct B_DB' has no member named 'db_driver'
dbi.c: In function 'void db_escape_string(JCR*, B_DB*, char*, char*,
int)':
dbi.c:421: error: 'dbi_conn_escape_string_copy' was not declared in this
scope
dbi.c: At global scope:
dbi.c:475: error: 'DBI_ROW' does not name a type
dbi.c: In function 'int my_dbi_max_length(B_DB*, int)':
dbi.c:545: error: 'my_dbi_getisnull' was not declared in this scope
dbi.c:548: error: 'my_dbi_getvalue' was not declared in this scope
dbi.c: At global scope:
dbi.c:562: error: expected constructor, destructor, or type conversion
before '*' token
make[1]: *** [dbi.lo] Error 1
make[1]: Leaving directory `/builddir/build/BUILD/bacula-3.0.3/src/cats'


  == Error in /builddir/build/BUILD/bacula-3.0.3/src/cats ==
...
==>Entering directory /builddir/build/BUILD/bacula-3.0.3/src/dird
make[1]: Entering directory
`/builddir/build/BUILD/bacula-3.0.3/src/dird'
Compiling dird.c
...
Compiling verify.c
make[1]: *** No rule to make target `../cats/libbacsql.la', needed by
`bacula-dir'.  Stop.
make[1]: Leaving directory `/builddir/build/BUILD/bacula-3.0.3/src/dird'


  == Error in /builddir/build/BUILD/bacula-3.0.3/src/dird ==


Moray.
"To err is human.  To purr, feline"




--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Windows 2008/Vista 64 bit bacula

2010-01-18 Thread Shawn
FTR: On many, many Windows machines I've had to add port 9102 (and 9101
depending) to the Exceptions under Windows Firewall, in order to
circumvent this type of bug with bacula-fd.


-- 

Shawn Qureshi
Artemide, Inc.
IT Specialist


On Sun, 2010-01-03 at 21:04 -0500, Dan Langille wrote:

> Kevin Keane wrote:
> 
> > Oh yes, that was me. Ultimately, it's a bug in bacula; it has some 
> > inconsistent default values: by default, the director tries to connect on 
> > IPv6 when the machine has an  record listed. But the FD does not listen 
> > on IPv6 (in Linux, you can turn it on to make it work, in Windows, IPv6 is 
> > not yet implemented in the FD). With the Windows firewall turned on, this 
> > leads to a timeout. With the Windows firewall turned off, bacula finds out 
> > about the failure of the IPv6 connection quickly, and switches to IPv4.
> 
> Well, in this case, bug is a subjective term.  Everything is working as 
> designed.  It may be called stupid or dumb, but everything is working 
> according to spec.
> 
> 
> --
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev 
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
<>--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula 2.4.4 : Need some help about Exclude

2010-01-18 Thread Cyril Lavier
Hi.

I read the documentation about the FileSet configuration, but I have 
some problems doing a correct Exclude rule

I need to exclude from the backup all file/folder which first character 
of the filename is "_".

Here is the name of the FileSet :

FileSet {
  Name = "Users"
  Include {
 Options {
Exclude = yes
WildDir = "_*"
WildFile = "_*"   
 }
 File = /users/
  }
}

This setting is not apparently working.

I use bacula 2.4.4 on a Debian Lenny 64bits server.

Thanks.

-- 
Cyril LAVIER | Systems Administrator | LTU Technologies
132 Rue de Rivoli - 75001 Paris France
(tel) +33 (0)1 53 43 01 71 | (mail) clav...@ltutech.com
LTU technologies - Making Sense of Visual Content |  www.LTUtech.com 


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Block checksum mismatch error

2010-01-18 Thread Arno Lehmann
Hello,

and sorry for replying so late... I've been busy with lots of other 
things.

20.12.2009 11:44, Oliver Lehmann wrote:
> Arno Lehmann wrote:
> 
>> This happens, as far as I can see, only with external drives (USB in 
>> your and other cases, FireWire here), so I attribute it to imperfect 
>> external disk controller chips or USB / FireWire stacks. Whenever I 
>> saw those sort of errors on internal disks, I either get log messages 
>> or can identify faulty disk drives using smartctl. For external disks, 
>> this usually doesn't work. :-(
> 
> Do you know if this will also happen with eSATA? There are several
> external cases with eSATA+USB-2.0 ports. I could grab those if this will
> help but I'm not sure if the eSATA connection is also wrapped through the
> controller chip of if it is attached directly to the SATA port of the
> harddisk.

I don't know - if my backup server could use eSATA I would use that 
anyway.

I'm pretty sure, though, that the eSATA interface would connect to the 
disk directly, bypassing any USB interface, as that should be simpler 
and thus cheaper than the other way.

Arno


-- 
Arno Lehmann
IT-Service Lehmann
Sandstr. 6, 49080 Osnabrück
www.its-lehmann.de

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Schedule not being followed

2010-01-18 Thread Arno Lehmann
Hello,

18.01.2010 07:05, Glynd wrote:
> Hi Arno, Many thanks for this, it makes sense.
> 
> One question though. There are 2 laptops that need backing up and they are
> not always connected to the network at the same time. How do people normally
> configure Bacula to back-up laptops like this?

For clients that I expect to not always be available, I use a run 
script that pings them, and fails the job if the ping results in an 
error. (For windows Vista and up, you need to allow ICMP in the 
firewall settings...).

Combined with retries on failure, that gives good results for people 
showing up at work late :-)

Arno

> TIA
> Cheers
> Glyn
> 
> 
> Arno Lehmann wrote:
>> Hello,
>>
>> 15.01.2010 08:25, Glyn wrote:
>>> Using 3.0.2 on Ubuntu 8.04 server with MySQL.
>>>
>>> It is now Friday of the 2nd week of January so the schedule A with Pool 
>>> A should be used, I would have thought. However, this morning at 9:05 I 
>>> get a message asking for a volume of drive B to be labelled. From Monday 
>>> to Thursday the A schedule was used correctly but now suddenly on 
>>> Friday, it wants to switch to the B schedule.
>>> Maybe I have something wrong in the dir.conf? The schedule section is 
>>> below and any help would be appreciated.
>> Given the number of schedules you have, you also have different backup 
>> jobs set up.
>>
>> A backup job can only be based upon previous backups of the same job.
>>
>> To achieve what you want, only use one job, and a schedule like
>>
>> Schedule {
>> Name = "WeeklyCycleAB"
>> Run = Incremental Pool = Incr-Pool-B 1st, 3rd, 5th mon-fri at 19:05
>> Run = Full Pool = Full-Pool-B 1st, 3rd, 5th sat at 02:05
>> Run = Incremental Pool = Incr-Pool-A 2nd, 4th mon-fri at 19:05
>> Run = Full Pool = Full-Pool-A 2nd, 4th Sat at 02:05
>> }
>>
>> That should help :-)
>>
>> Arno
>>
>>> # When to do the backups
>>> Schedule {
>>>Name = "WeeklyCycleB"
>>>Run = Incremental Pool = Incr-Pool-B 1st, 3rd, 5th mon-fri at 19:05
>>>Run = Full Pool = Full-Pool-B 1st, 3rd, 5th sat at 02:05
>>> }
>>>
>>> Schedule {
>>>Name = "DayTimeB"
>>>Run = Incremental Pool = Incr-Pool-B 1st, 3rd, 5th tue-fri at 09:05
>>>Run = Full Pool = Full-Pool-B 1st, 3rd, 5th mon at 09:05
>>> }
>>>
>>> Schedule {
>>>Name = "WeeklyCycleA"
>>>Run = Incremental Pool = Incr-Pool-A 2nd, 4th mon-fri at 19:05
>>>Run = Full Pool = Full-Pool-A 2nd, 4th Sat at 02:05
>>> }
>>>
>>> Schedule {
>>>Name = "DayTimeA"
>>>Run = Incremental Pool = Incr-Pool-A 2nd, 4th tue-fri at 09:05
>>>Run = Full Pool = Full-Pool-A 2nd, 4th mon at 09:05
>>> }
>>>
>>> # This schedule does the catalog. It starts after the WeeklyCycle
>>> Schedule {
>>>Name = "WeeklyCycleAfterBackupB"
>>>Run = Full 1st, 3rd, 5th mon-fri at 19:10
>>> }
>>>
>>> Schedule {
>>>Name = "WeeklyCycleAfterBackupA"
>>>Run = Full 2nd, 4th mon-fri at 19:10
>>> }
>>>
>>>
>>> Schedule {
>>>Name = "DayTimeAfterBackupB"
>>>Run = Full 1st, 3rd, 5th mon-fri at 09:10
>>> }
>>>
>>> Schedule {
>>>Name = "DayTimeAfterBackupA"
>>>Run = Full 2nd, 4th mon-fri at 09:10
>>> }
>>>
>> -- 
>> Arno Lehmann
>> IT-Service Lehmann
>> Sandstr. 6, 49080 Osnabrück
>> www.its-lehmann.de
>>
>> --
>> Throughout its 18-year history, RSA Conference consistently attracts the
>> world's best and brightest in the field, creating opportunities for
>> Conference
>> attendees to learn about information security's most important issues
>> through
>> interactions with peers, luminaries and emerging and established
>> companies.
>> http://p.sf.net/sfu/rsaconf-dev2dev
>> ___
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
>>
> 

-- 
Arno Lehmann
IT-Service Lehmann
Sandstr. 6, 49080 Osnabrück
www.its-lehmann.de

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] bconsole restore bug - option 12.

2010-01-18 Thread Kern Sibbald
Hello Graham,

I have spent some time reviewing this bug.  Thanks for the database and conf 
file, I was able to easily reproduce what you saw.

It seems to me that there are three problems here -- unfortunately all 
possibly quite serious:

1. The Volume is corrupt.
2. When Bacula reads the corrupt data, it smashes its stack
3. The FileIndex records are not sequential.

1. Do you have any idea how the Volume got corrupted?  

It looks like the bad data is associated with the JobSession records (when a 
job starts, Bacula writes a label to the tape indicating the beginning of a 
job).  

Have you used a modified SD in producing this Volume?  

If so, then there is a bug in the code.  If not, I would like to learn more 
about the history of this Volume.

2. Bacula trashes its stack when it encounters the bad Session records.  
Unfortunately, the serial code used to write and extract lables is very old 
and didn't properly protect itself from bad data on the Volume.  I have now 
modified the current source code to fix this problem.  With the fix, Bacula 
reads through the whole Volume, and does not crash.  I have committed this to 
the master branch on Source Forge.

3. The FileIndex records in the Attribute records do not correspond to the 
record sequence numbers.  This is what caused Bacula to fail the bls (the -p 
option allows it to continue).  I haven't looked at this yet, but will start 
looking at the VirtualFull code to see if it was an oversight on my part.  If 
you know more about how the Volume was created and what kind of Jobs are on 
it, please let me know as it may help get to the bottom of the problem.

The problem with FileIndex records out of order is that restore by file will 
not work correctly, even a full restore may not get all the records.  The 
records *can* be extracted but to get them all might require editing the bsr 
file or using bextract without any bsr ...  This is not good.  

There is a bug report open on restore problems related to VirtualFull jobs, so 
possibly this is related.  I will look into that.

Could you give me the exact commands that caused this problem in the 
beginning?  I.e. you refer to restore bug -- option 12.  I would like to see 
what you wanted to do with option 12.  The more info I have the easier it 
will be to find and fix the problem.  Many thanks.

I will report back when I have more info ...

Best regards,

Kern


On Wednesday 18 November 2009 10:09:19 Graham Keeling wrote:
> Somebody on the bacula-users list is having a similar problem whilst trying
> to run a verify job on a VirtualFull.
> Here is his message:
>
> On Fri, Nov 13, 2009 at 09:02:11AM +0100, Fahrer, Julian wrote:
> > I am currently trying to implement verify jobs at a customer's site.
> > At that site I am running fulls and incrementals to disk and virtual
> > fulls to tape. I want to verify that the data on tape is ok. So tried a
> > verify job after the virtual full has finished. But instead of using the
> > virtual full (which is the last backup for that job) the last backup to
> > disk is choosen.
> >
> >
> > Here is an Example:
> > 13-Nov 08:23 backup01_dir JobId 3039: Verifying against JobId=3017
> > Job=server2_KHK.2009-11-12_21.00.00_06 13-Nov 08:23 backup01_dir JobId
> > 3039: Bootstrap records written to
> > /var/bacula/working/backup01_dir.restore.1.bsr 13-Nov 08:23 backup01_dir
> > JobId 3039: Start Verify JobId=3039 Level=VolumeToCatalog
> > Job=server2_KHK_verify.2009-11-13_08.23.43_03 13-Nov 08:23 backup01_dir
> > JobId 3039: Using Device "LTO2"
> > 13-Nov 08:23 backup01_sd JobId 3039: acquire.c:116 Changing read device.
> > Want Media Type="File" have="LTO2" device="LTO2" (/dev/nst0)
> > 13-Nov 08:23 backup01_sd JobId 3039: Media Type change.  New read device
> > "FileStorage_data2" (/data2/b2d_2) chosen. 13-Nov 08:23 backup01_sd JobId
> > 3039: Ready to read from volume "KHK_0030" on device "FileStorage_data2"
> > (/data2/b2d_2).
> >
> > Also there is another Job:
> > | 3,017 | server2_KHK  | 2009-11-12 21:00:01 | B| F |  
> > | 19,243 |  14,399,178,034 | T | 3,033 | server2_KHK  |
> > | 2009-11-12 21:00:01 | B| F |   19,243 |  14,402,307,154 | T
> > | |
> >
> > Jobid 3033 is the Virtual Full. Can the same value in the date column
> > cause this problem?
>
> And, since it has been a couple of months since this thread died, here is a
> reminder:
>
> On Mon, Sep 14, 2009 at 05:19:44PM +0100, Graham Keeling wrote:
> > I think I have found a bug that is very easy to reproduce.
> >
> > I do a full backup (JobId 1).
> > I do a virtualfull backup (JobId 2).
> >
> > I then go to bconsole, and type
> > 'restore'
> > I select option '12: Select full restore to a specified JobId'.
> >
> > I type '2', to get JobId '2', but bacula selects JobId '1' instead:
> > > Select item:  (1-13): 12
> > > Enter JobId to restore: 2
> > > You have selected the following JobId: 1
> >
> > When I do it again from the start, but type in JobId '1', i

Re: [Bacula-users] Schedule verify init

2010-01-18 Thread Jorge Cabello
Solved.

I didn't know I could use 2 Run lines in the same schedule.

Thanks Martin!


On Viernes, 15 de Enero de 2010 21:47:01 Martin Simmons wrote:
> > On Fri, 15 Jan 2010 12:26:27 +0100, Jorge Cabello said:
> >
> > Hello,
> >
> > I'm trying to run a daily verify job to see which files have changed from
> > the previous verify.
> >
> > To do so I want to:
> > 1) Run a daily verify job
> > 2) Run a init catalog job when the verify finishes to refresh the
> > database so the next time de verify is run I will only see the new
> > changes.
> >
> > The  problem is that the daily verify says it doesn't have an InitCatalog
> > job ( because of the different jobs names?)
> >
> > How can I do this (daily init catalog and daily verify) automatically?
> 
> You definitely don't want two jobs.  Normally it is done by changing the
>  level to InitCatalog when the job is run.
> 
> You could try adding a second Run line in the Schedule with
>  Level=InitCatalog and make it run 1 minute after the verify.
> 
> __Martin
> 
> ---
> --- Throughout its 18-year history, RSA Conference consistently attracts
>  the world's best and brightest in the field, creating opportunities for
>  Conference attendees to learn about information security's most important
>  issues through interactions with peers, luminaries and emerging and
>  established companies. http://p.sf.net/sfu/rsaconf-dev2dev
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Connection to Windows machine times out

2010-01-18 Thread Carlo Filippetto
>From the console you can contact the server with the 'estimate'
command or 'status' command?



2010/1/16 Dan Langille :
> nitmd wrote:
>> --- On Fri, 1/15/10, Dan Langille  wrote:
>>
>> From: Dan Langille 
>> Subject: Re: [Bacula-users] Connection to Windows machine times out
>> To: "nitmd" 
>> Cc: "bacula-users" 
>> Date: Friday, January 15, 2010, 4:29 PM
>>
>> nitmd wrote:
>>> Bacula 3.0.2 has been up and running properly on my server for a couple 
>>> months.  We have 2 desktop machines (A and B).  Bacula is installed on a 
>>> linux machine (S), backing up to a hard drive.  Running Windows XP on both 
>>> A and B.
>>> The server (S) and one of the desktops (B) crashed during power problems.  
>>> When brought back up, bacula properly backed up A, but would not do B.  I 
>>> am getting "Connection timed out" errors when trying to backup B.
>>>
>>> I can ping S from B and B from S.
>>> I have changed the address of B in the bacula-dir.conf file to the IP 
>>> address to eliminate any resolution issues.
>>> The passwords in bacula-fd.conf on A and B are identical.
>>> There is no firewall involved, the connections of A and B to S are 
>>> identical.
>>>
>>> How do I figure out why I can't connect to B?
>>
>> Does status client work?
>>
>> Have you confirmed that Bacula client is running on B?
>
> Replying at the bottom makes it easy to follow the conversation.
>
> Also, remember to reply to the list, as well as me.  This protects you
> by deterring me from giving you malicious advice.  It also allows others
> to help/learn.
>
> You said:
>
>> Bacula service appears in the tray on the windows machine, if I click it I 
>> get a status window.  Status client gives me a connection timed out error.
>
> If you telnet to the port, do you get a reply?  Something like this:
>
> $ telnet 10.0.0.1 9102
> Trying 10.0.0.1...
> Connected to bast.example.org.
> Escape character is '^]'.
> test
> Connection closed by foreign host.
>
>
> Where:
>
> 10.0.0.1 is the IP address of the client
> test is what I typed after the system answered
>
> Try this on both the Bacula Server and on the Windows Server.
>
>
> --
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for Conference
> attendees to learn about information security's most important issues through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users