Re: [Bacula-users] Block checksum mismatch

2008-02-13 Thread Jesper Krogh
Hi.

This is really old. I would just let you know that the problems was solve
by moving the second LTO-3-tape drive onto its own SCSI-channel. This
error happened whenever there were written to both devices at the same
time.

Jesper


 Hi


 We've extended our Quantum PX502 with a PX506 so we got 2 drives in one
 LTO-3 (misnamed as LTO-4) changes.


 It recycles the volume but fails to write at it?.. How can that happen?


 05-Apr 10:22 bacula-sd: Recycled volume 000727L3 on device LTO-4-0
 (/dev/nst0), all previous data lost.
 05-Apr 10:22 bacula-sd: Spooling data ...
 mascot-fd:  Disallowed filesystem. Will not descend from / into
 /var/lock
 mascot-fd:  Disallowed filesystem. Will not descend from / into
 /var/run
 mascot-fd:  Disallowed filesystem. Will not descend from / into /dev
 mascot-fd:  Disallowed filesystem. Will not descend from / into /sys
 05-Apr 10:22 bacula-sd: Job write elapsed time = 00:00:13, Transfer rate
 = 95.99 M bytes/second
 05-Apr 10:22 bacula-sd: Committing spooled data to Volume 000727L3.
 Despooling 1,250,286,800 bytes ...
 05-Apr 10:22 bacula-sd: Mascot_Daily.2007-04-05_10.13.01 Error:
 block.c:569 Write error at 0:9272 on device LTO-4-0 (/dev/nst0).
 ERR=Input/output error.
 05-Apr 10:22 bacula-sd: Mascot_Daily.2007-04-05_10.13.01 Error:
 block.c:317 Volume data error at 0:4294967295!
 Block checksum mismatch in block=9270 len=64512: calc=ebac9a9f
 blk=cd6990a4 05-Apr 10:22 bacula-sd: Mascot_Daily.2007-04-05_10.13.01
 Error: Re-read
 last block at EOT failed. ERR=block.c:317 Volume data error at
 0:4294967295!
 Block checksum mismatch in block=9270 len=64512: calc=ebac9a9f
 blk=cd6990a4 05-Apr 10:22 bacula-sd: End of medium on Volume 000727L3
 Bytes=598,155,264 Blocks=9,271 at 05-Apr-2007 10:22.


 --
 Jesper Krogh, [EMAIL PROTECTED]



 -
  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.phpp=sourceforgeCID=DEVDEV
  ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users




-- 
Jesper Krogh


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Restore from command line

2008-02-13 Thread le dahut
Hello,

I'm launching 'restore' from command line with :
echo -e restore all\n5\ncd var\ncd lib\nunmark 
ldap\ndone\n2\nyes\n|bconsole -c /etc/bacula/bconsole.conf

As you can see, I unmark some files, but I've more files to unmark and 
this way looks very ugly to me. Is there a way to specify all those 
arguments in a file and only launch one command in bconsole to run the 
restore job ?




-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Concurrent jobs and priority

2008-02-13 Thread Alan Brown
On Tue, 12 Feb 2008, le dahut wrote:

 Does this mean that the second job (the one with a higher priority number) 
 will be forgotten ? or that it will be run once the first job has finished 
 ?

It will be run after the first job is finished.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restore from command line

2008-02-13 Thread le dahut
but :
'unmark /home/myfolder'
'unmark home/myfolder'
don't work

'cd home'
'unmark myfolder'
works

so 'unmark $(cat file)' doesn't work (I've tested it to be sure and 
confirm).


Rich a écrit :
 unmark $(cat file) ?
 if i understood the question :)
 
 On 2008.02.13. 12:14, le dahut wrote:
 Hello,

 I'm launching 'restore' from command line with :
 echo -e restore all\n5\ncd var\ncd lib\nunmark 
 ldap\ndone\n2\nyes\n|bconsole -c /etc/bacula/bconsole.conf

 As you can see, I unmark some files, but I've more files to unmark and 
 this way looks very ugly to me. Is there a way to specify all those 
 arguments in a file and only launch one command in bconsole to run the 
 restore job ?

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restore from command line

2008-02-13 Thread Rich
unmark $(cat file) ?
if i understood the question :)

On 2008.02.13. 12:14, le dahut wrote:
 Hello,
 
 I'm launching 'restore' from command line with :
 echo -e restore all\n5\ncd var\ncd lib\nunmark 
 ldap\ndone\n2\nyes\n|bconsole -c /etc/bacula/bconsole.conf
 
 As you can see, I unmark some files, but I've more files to unmark and 
 this way looks very ugly to me. Is there a way to specify all those 
 arguments in a file and only launch one command in bconsole to run the 
 restore job ?
-- 
  Rich

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restore from command line

2008-02-13 Thread Rich
On 2008.02.13. 12:53, le dahut wrote:
 but :
 'unmark /home/myfolder'
 'unmark home/myfolder'
 don't work

that's unfortunate, if this is the latest version of bacula, it would be 
a welcome improvement

 'cd home'
 'unmark myfolder'
 works
 
 so 'unmark $(cat file)' doesn't work (I've tested it to be sure and 
 confirm).

you could try cd home\nunmark whatever in the included file - but 
you'll probably have to be careful with quoting/escaping.
creating such a file might be quite a hassle, so in that case a wrapper 
script could take simple list and construct a file for inclusion (using 
basename/dirname) - but that's a workaround for a workaround, so 
bconsole taking full paths would be ven more welcome ;)
...
-- 
  Rich

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Makign sure a job is cancelled...

2008-02-13 Thread Cesare Montresor
Mark Maas ha scritto:
 Hi List,

 I was wondering how I could force cancelling of jobs after x hours 
 of scheduled time if they have not started yet.?
 What I also tried was the Max Wait Time option in my jobs, but it 
 seems it only starts counting from the start of the job, not from 
 start of scheduled time.

 Max Start Delay is also not completely what I was looking for, it 
 comes close, but only applies when other jobs are running. Not when 
 everything is waiting for a tape/volume to be inserted.

 So to summarize, I'd like to schedule a few jobs from 23:00. And have 
 them automaticly cancelled at 08:00 in the morning when they still do 
 not have a correct volume to backup to.

 When the operator simply forgot the tape, then the backup for that 
 night should simply be skipped. The period of time in which the backup 
 was possible has passed.

 Is this possible?

 Thanks,
 Mark
 

 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 

 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
   
You can try in this way:

- Add in Device {} resource:
  Maximum Open Wait = time


Enchanted Version:

- Add in Device {} resource:
  Alert Command = 'bsmtp '
  to send an e-mail to tape operator.

- Add in job {} resource:
  Reschedule On Error = yes
  Reschedule Interval = 2h
  Reschedule Times = 6



 From Manual:

Reschedule On Error = yes/no
If this directive is enabled, and the job terminates in error, the job 
will be rescheduled as determined by the
Reschedule Interval and Reschedule Times directives. If you cancel the 
job, it will not be rescheduled. The
default is no (i.e. the job will not be rescheduled).
This specification can be useful for portables, laptops, or other 
machines that are not always connected to the
network or switched on.

Reschedule Interval = time−specification
If you have specified Reschedule On Error = yes and the job terminates 
in error, it will be rescheduled after the
interval of time specified by time−specification. See the time 
specification formats in the Configure chapter for
details of time specifications. If no interval is specified, the job 
will not be rescheduled on error.

Reschedule Times = count
This directive specifies the maximum number of times to reschedule the 
job. If it is set to zero (the default) the
job will be rescheduled an indefinite number of times.

Maximum Open Wait = time
This directive specifies the maximum amount of time that Bacula will 
wait for a device that is busy. The
default is 5 minutes. If the device cannot be obtained, the current Job 
will be terminated in error. Bacula
will re−attempt to open the drive the next time a Job starts that needs 
the the drive.

Alert Command = name−string
The name−string specifies an external program to be called at the 
completion of each Job after the
device is released. The purpose of this command is to check for Tape 
Alerts, which are present when
something is wrong with your tape drive (at least for most modern tape 
drives). The same substitution
characters that may be specified in the Changer Command may also be used 
in this string. For more
information, please see the Autochangers chapter of this manual.
Note, it is not necessary to have an autochanger to use this command. 
The example below uses the
tapeinfo program that comes with the mtx package, but it can be used on 
any tape drive. However, you
will need to specify a Changer Device directive in your Device resource 
(see above) so that the generic
SCSI device name can be edited into the command (with the %c).
An example of the use of this command to print Tape Alerts in the Job 
report is:
Alert Command = sh −c 'tapeinfo −f %c | grep TapeAlert'


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restore from command line

2008-02-13 Thread le dahut
cat file.txt | bconsole -c /etc/bacula/bconsole.conf
seems to work. So I'll generate it using templates and file lists.

But is there a way to write it in a file included in 
/etc/bacula/bacula-dir.conf and then :
echo -e reload\n | bconsole
echo -e restore myrestore\n | bconsole
which seems cleaner for me ?


Rich a écrit :
 On 2008.02.13. 12:53, le dahut wrote:
 but :
 'unmark /home/myfolder'
 'unmark home/myfolder'
 don't work
 
 that's unfortunate, if this is the latest version of bacula, it would be 
 a welcome improvement
 
 'cd home'
 'unmark myfolder'
 works

 so 'unmark $(cat file)' doesn't work (I've tested it to be sure and 
 confirm).
 
 you could try cd home\nunmark whatever in the included file - but 
 you'll probably have to be careful with quoting/escaping.
 creating such a file might be quite a hassle, so in that case a wrapper 
 script could take simple list and construct a file for inclusion (using 
 basename/dirname) - but that's a workaround for a workaround, so 
 bconsole taking full paths would be ven more welcome ;)
 ...

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Transport endpoint is not connected

2008-02-13 Thread le dahut
During a restore, this happened but only on the very first file.

13-fév 14:42 127.0.0.1-dir JobId 10: BeforeJob: Stopping mailing list 
manager: sympa.
13-fév 14:42 127.0.0.1-dir JobId 10: Start Restore Job 
RestoreAll.2008-02-13_14.42.33
13-fév 14:42 127.0.0.1-dir JobId 10: Using Device FileStorage
127.0.0.1-fd JobId 10: drwxr-x---   2 root root  4096 
2008-02-08 09:32:11  /home/f/fanny.bedos/.ftp/
13-fév 14:42 127.0.0.1-fd JobId 10: Error: acl.c:224 acl_from_text error 
on file /home/f/fanny.bedos/.ftp/: ERR=Noeud final de transport n'est 
pas connecté
127.0.0.1-fd JobId 10: drwxrwx---   2 fanny.be root  4096 
2008-02-08 09:32:11  /home/f/fanny.bedos/perso/prive/
127.0.0.1-fd JobId 10: drwxrwx---   3 fanny.be root  4096 
2008-02-08 09:32:11  /home/f/fanny.bedos/perso/
127.0.0.1-fd JobId 10: drwxrwx---   2 root root  4096 
2007-12-17 14:02:33  /home/f/fanny.bedos/profiles/
127.0.0.1-fd JobId 10: drwxrwx---   2 mail mail  4096 
2008-02-08 09:32:11  /home/f/fanny.bedos/MailDir/cur/



User fanny.bedos is in an ldap database. slapd has been restarted. 
I've tested slapd before restore, it was ok.

What's happening ?


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula on vista

2008-02-13 Thread Michael Da Cova
Hi 

What happens if you install the application as a service only, something I
hoping to try later? As I have the same issue
Michael 

|-Original Message-
|From: John Drescher [mailto:[EMAIL PROTECTED]
|Sent: 03 February 2008 05:40
|To: RYAN vAN GINNEKEN; bacula
|Subject: Re: [Bacula-users] bacula on vista
|
|On Feb 3, 2008 12:27 AM, RYAN vAN GINNEKEN [EMAIL PROTECTED] wrote:
| Hello all i am having trouble getting bacula to install on a windows
|vista ultimate box it is windows 6.0 build 6000.  I am using bacula
|installer version 2.2.8 and keep getting the following error on install.
|
| ! The Bacula service: Bacula-fd could not be installed
|
| Then when i try to edit client config from the start menu i get fail to
|open document. Also no icon appears in the taskbar however it does seem as
|if the service is running.
|
| If i run bacula-fd.exe as an administrator then things seem to work ok
|and i get the little tape icon.  Also i can edit the conf file by editing
|it directly but not sure what is going on here.
|
|This is known. In vista a service can not communicate with the GUI. I
|am working on removing the tray icon code from the bacula-fd and
|replacing that with a standalone application similar to the one that
|you have in linux.
|
|John
|
|-
|This SF.net email is sponsored by: Microsoft
|Defy all challenges. Microsoft(R) Visual Studio 2008.
|http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
|___
|Bacula-users mailing list
|Bacula-users@lists.sourceforge.net
|https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|
|---
|--
|This email has been scanned by netpilot if you want to classify this email
|to be SPAM or HAM please click on
|https://netpilot.edison.equiinet.com/secure-admin?mod=spamassassin-
|reclassifymid=1202017184.0218405742 to reclassify it.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] pb: After booting with the cd rescue (partition.hda)

2008-02-13 Thread Adieur Marcel
Hi all, after creating my cd rescue succesfully. I boot with it
(after crash my partitions).
When I execute the script partition.hda I have a problem.

It creates a sector 0 succesfully with cmd dd
and after with the command sfdisk I have an error :

My partition cannot get geometry
0 cylinders, 0 heads, 0 sectors/track


sfdisk error : sector 0 don't have a msdos signature
/dev/hda : unrecognized partition table type
No partitions found

Thx to help me
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula on vista

2008-02-13 Thread John Drescher
On Feb 13, 2008 10:28 AM, Michael Da Cova [EMAIL PROTECTED] wrote:
 Hi

 What happens if you install the application as a service only, something I
 hoping to try later? As I have the same issue
 Michael

It should work but you do not see the tray icon.

John

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] btape fill: that last block on the first tape ok or not?

2008-02-13 Thread K. M. Peterson
So, this is still somewhat interesting (to me, at least).  Thanks to Dan for
the suggestion!

Swapping the two tapes used for btape fixed the problem.  Swapping them back
caused the problem to reappear.

In the old days, I'd say that we had a bad tape.  However, there aren't
any errors logged by the drive (this drive apparently logs device errors and
media errors separately; it's brand-new drive and tapes).

I asked about compression in my first message because I was wondering why I
was only getting ~50MB/sec throughput and ~800GB on the tape.  The reason
for my curiosity is wondering whether btape either turns compression off or
is generating such random data as to be utterly incompressible (which I'm
told is actually somewhat harder than it looks).

My goal here is solely to ensure that our configuration is working properly,
and that there aren't any bugs that might bite us later in the process.  I
have an inkling (it's just a hunch) that there's some boundary condition
that we reached that caused this error - that it has to do with the specific
capacity of this particular tape, and that somehow we're hitting an instance
where a buffer write is not successful but this isn't reflected properly to
the storage daemon.  The other tape held slightly more than the first tape.

(If I'm right about this, it's one of those rare instances; especially I
would guess that Bacula generates data that is compressible so that there's
possibly less of a likelihood that this might happen - does anyone know if
this is true?).  Otherwise, I think I'll go on with testing, but this should
be a good test case for whether something is actually wrong with the code.

Anyone who's looked at this in more detail that I have in a position to
offer any suggestions?  Thanks!

On Mon, Feb 11, 2008 at 3:11 PM, K. M. Peterson 
[EMAIL PROTECTED] wrote:


 On Mon, Feb 11, 2008 at 12:49 PM, Dan Langille [EMAIL PROTECTED] wrote:

  K. M. Peterson wrote:
  ...
   Error reading block: ERR=block.c:1008 Read zero bytes at 1180:0 on
   device Drive-1 (/dev/nst0).
 
  Have you tried a different tape as the second tape?
 

 Hi,

 No, I haven't.  I only have two DLT-S4 tapes at the moment, but I'll swap
 them and rerun the 'fill' tonight.

 Also, the compression question was more along the lines of: with a volume
 capacity of 812GB, and a write speed of 45MB/sec I presume that the drive
 isn't compressing the data.  This would either be because the drive isn't
 set properly (although tapeinfo says DataCompEnabled: yes) or because fill
 writes really random data that isn't compressible.  So I was wondering which
 of these explanations is more likely.

 I also played with the blocksize directives.  tapeinfo says that the drive
 can write 16MB blocks; that would presumably be the fastest way to write to
 tape.  However, btape says that's too big a blocksize so I'm wondering
 whether there is an issue with the size that the kernel/device is set to
 use.

 But really I'd be happy if btape - fill doesn't throw an error, and I'd
 still like any suggestions of things to try.

 Thanks!


 
  --
  Dan Langille
 
  BSDCan - The Technical BSD Conference : http://www.bsdcan.org/
  PGCon  - The PostgreSQL Conference: http://www.pgcon.org/
 


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Barcode Labels

2008-02-13 Thread Bob Duman
I have been using Bacula for about 6 months with two independent tape drives.  
I came up with my own volume naming scheme.  We have just purchased a Quantum 
Superloader 3 and it comes with a set of barcode labels that do not match my 
volume naming scheme.  The Quantum labels are 3 alpha and 3 numeric characters 
(i.e. AFG670).  My volume naming scheme is one alpha and 5 numeric (i.e. A0001).

Is there a way to rename volumes in Bacula to match the new barcodes?  If there 
is not, does anyone on the list know if the Quantum Superloader 3 will support 
custom barcode labels with my volume format?

Thanks,
Bob Duman
Senior Systems Engineer
Cleantech Group LLC
2250 Genoa Business Park Dr
Suite 130
Brighton, MI 48114
(810) 224-4310 x7310
http://www.cleantech.com

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Strange bacula behaviour mounting disks

2008-02-13 Thread Roberto Nebot
Ok as nobody knows anything else about the problem I assume it's a bug,
so I am going to post it in the bug tracking system.

Thank you.

El lun, 11-02-2008 a las 11:24 +0100, Roberto Nebot escribió:
 El vie, 08-02-2008 a las 21:30 +, Martin Simmons escribió:
   On Fri, 08 Feb 2008 16:38:09 +0100, Roberto Nebot said:
   
   Hi Folks!
   
   May be I am wrong, but it seems to me that the following Bacula
   behaviour look like a bug. I have configured a USB disk to create
   backups, the disk is storage daemon has the following configuration
   file:
   
Storage { 
   Name = backup1-sd
   SDPort = 9103 # Director's port
   WorkingDirectory = /var/lib/bacula
   Pid Directory = /var/run/bacula
   Maximum Concurrent Jobs = 20
   }
   
   Director {
   Name = backup1-dir
   Password = bacula-storage
   }
   
 * Device {
   Name = FileStorage 
   Media Type = File
   Archive Device = /bacula
   AutomaticMount = yes 
   Always Open = no 
   RemovableMedia = yes
   RandomAccess = yes
   Requires Mount = yes
   Mount Point = /bacula 
   Mount Command = /bin/mount -t ext3 %m
   Unmount Command = /bin/umount %m  
   LabelMedia = yes 
   }
   
   Messages {
   Name = Standard
   director = backup1-dir = all
   }
   
   The problem appears when I mount the disk and start a backup job.
 When
   this job finishes if I umount the disk with the umount bconsole
 command
   the console says that the disk is unmounted but if you do a df -h 
   that's not true.
   
   I am using a Gentoo with the last packages, a 2.6.24 kernel and the
   bacula version is 2.2.8.
   
   If you need further information please told me.
  
  Sounds the like umount is failing.  I think you need to look at the
 output of
  the command, e.g. replace /bin/umount by a script:
  
  #!/bin/sh
  /bin/umount $1 21 | tee /tmp/umount.txt
  
 
 Well, I did what you said and the umount is not failing, the text file
 umount.txt is always empty, but a df -h reveils that the partition is
 not unmounted. This always happen after running a job, it's like is
 forgetting to unmount. I investigated a bit more and I discovered that
 if you mount again and next you umount then it works. So in my opinion
 it sounds like Bacula is forgetting to umount the partition.
 
 It behaves in the same way no matter if the Always Open is set to yes
 or No.
 
  Also, try using lsof (as root) to see if anything is keeping the mount
 point
  open.
  
 I tried lsof as well with this command
 
 lsof | grep /bacula
 
 And there isn't any program working inside this partition.
 
  __Martin
  
 
 
 
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
 
 !DSPAM:47b0226d81651607156607!
 
 


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Barcode Labels

2008-02-13 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

John Drescher wrote:
 Is there a way to rename volumes in Bacula to match the new barcodes?
 Not without loosing all the data that is on them.

That's actually not 100% true. I have done this myself, I believe with
btape. Doesn't btape have the option of changing a tape label? The issue
then remains the catalog, but that can be cleared up with SQL (and a
good backup of the catalog! :)).

 If
 there is not, does anyone on the list know if the Quantum Superloader 3 will
 support custom barcode labels with my volume format?

 It should.
 John
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users


- --
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
 |$| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHsx/Amb+gadEcsb4RAq2IAKDkuWCJ24Gr8R+WfZyPxpwNdpl47gCfWhoU
r08i9XNZKG5OvMSOcjS7dGE=
=bw6W
-END PGP SIGNATURE-
begin:vcard
fn:Ryan Novosielski
n:Novosielski;Ryan
org:UMDNJ;IST/AST
adr;dom:MSB C630;;185 South Orange Avenue;Newark;NJ;07103
email;internet:[EMAIL PROTECTED]
title:Systems Programmer III
tel;work:(973) 972-0922
tel;fax:(973) 972-7412
tel;pager:(866) 20-UMDNJ
x-mozilla-html:FALSE
version:2.1
end:vcard

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Barcode Labels

2008-02-13 Thread John Drescher
 Is there a way to rename volumes in Bacula to match the new barcodes?
Not without loosing all the data that is on them.

 If
 there is not, does anyone on the list know if the Quantum Superloader 3 will
 support custom barcode labels with my volume format?

It should.
John

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] FreeNAS and Bacula

2008-02-13 Thread Dan Langille
FreeNAS seems like a good project.  People might want to devote some of 
their Bacula expertise to it.

There are been several requests for Bacula support in FreeNAS:

http://tinyurl.com/2encbt

Personally, I'd like to see Bacula as part of FreeNAS, at least as a client 
if not as a server.

FYI:

FreeNAS http://www.freenas.org/ is a free NAS (Network-Attached Storage) 
server, supporting: CIFS (samba), FTP, NFS, AFP, RSYNC, iSCSI protocols, 
S.M.A.R.T., local user authentication, Software RAID (0,1,5) with a Full 
WEB configuration interface. FreeNAS takes less than 32MB once installed on 
Compact Flash, hard drive or USB key.

The minimal FreeBSD distribution, Web interface, PHP scripts and 
documentation are based on M0n0wall.

-- 
Dan Langille - http://www.langille.org/
BSDCan - The Technical BSD Conference: http://www.bsdcan.org/
PGCon  - The PostgreSQL Conference:http://www.pgcon.org/

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] bweb Client listing out of date

2008-02-13 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Can someone remind me what I can do to force a refresh of the Client
page in bweb? My clients list old versions of Bacula when in some cases
they have been upgraded. I know this is cached somewhere and that there
is a way to refresh it (but it does not seem to just be drilling down to
the individual clients, must be something else).

Thanks!

=R
- --
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
 |$| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHsylTmb+gadEcsb4RArLqAKDeTnJ2jvaAmnCV7PQpGajXZZQxEQCcChkz
MMcGVYnRalSTHymEqyPCG+A=
=1IYe
-END PGP SIGNATURE-
begin:vcard
fn:Ryan Novosielski
n:Novosielski;Ryan
org:UMDNJ;IST/AST
adr;dom:MSB C630;;185 South Orange Avenue;Newark;NJ;07103
email;internet:[EMAIL PROTECTED]
title:Systems Programmer III
tel;work:(973) 972-0922
tel;fax:(973) 972-7412
tel;pager:(866) 20-UMDNJ
x-mozilla-html:FALSE
version:2.1
end:vcard

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Fwd: restore ?

2008-02-13 Thread John Drescher
-- Forwarded message --
From: John Drescher [EMAIL PROTECTED]
Date: Feb 13, 2008 2:48 PM
Subject: Re: [Bacula-users] restore ?
To: Robin Blanchard [EMAIL PROTECTED]


On Feb 13, 2008 2:42 PM, Robin Blanchard [EMAIL PROTECTED] wrote:
 So I attempted a basic restore this morning. Nothing has happened yet.
 Ideas ?

Although your status storage looks like a bug, have you tried to use
the mount command?

John



-- 
John M. Drescher

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] restore ?

2008-02-13 Thread John Drescher
 How am I supposed to know which autochanger slot to mount, when it would
 seems bacula just randomly selects tapes from the pool (see attached
 screenshot)?


It should have told you in the console what tape it wanted to use.
However I have found in most cases when bacula is stuck like this just
issuing a mount on the tape drive (and not selecting a slot) gets
bacula to continue.

John

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] restore ?

2008-02-13 Thread Robin Blanchard
So I attempted a basic restore this morning. Nothing has happened yet.
Ideas ?


*status dir
lewis.itos.uga.edu-dir Version: 2.2.8 (26 January 2008)
i386-portbld-freebsd6.3 freebsd 6.3-STABLE
Daemon started 13-Feb-08 09:07, 6 Jobs run since started.
 Heap: heap=548,864 smbytes=60,514 max_bytes=20,069,088 bufs=291
max_bufs=361

Scheduled Jobs:
Level  Type Pri  Scheduled  Name
Volume

===
IncrementalBackup10  14-Feb-08 00:05hoover_data
B00026L3
IncrementalBackup10  14-Feb-08 00:05hoover_gis
B00026L3
Full   Backup   100  14-Feb-08 01:05BackupCatalog
Catalog


Running Jobs:
 JobId Level   Name   Status
==
18 Restores.2008-02-13_10.00.16 is waiting on Storage LTO3-1


Terminated Jobs:
 JobId  LevelFiles  Bytes   Status   FinishedName 

 8  Full  0 0   Error13-Feb-08 08:23
BackupCatalog
 9  Full  0 0   Error13-Feb-08 08:27
BackupCatalog
10  Full  0 0   Error13-Feb-08 09:03
BackupCatalog
11  Full  0 0   Error13-Feb-08 09:05
BackupCatalog
12  Full  1142.9 M  OK   13-Feb-08 09:08
BackupCatalog
130 0   Error13-Feb-08 09:47 Restores
140 0   Cancel   13-Feb-08 09:59 Restores
150 0   Cancel   13-Feb-08 09:59 Restores
160 0   Cancel   13-Feb-08 09:59 Restores
170 0   Cancel   13-Feb-08 09:59 Restores


*status storage=LTO3-1
Connecting to Storage daemon LTO3-1 at lewis.itos.uga.edu:9103

lewis.itos.uga.edu-sd Version: 2.2.8 (26 January 2008)
i386-portbld-freebsd6.3 freebsd 6.3-STABLE
Daemon started 11-Feb-08 12:42, 8 Jobs run since started.
 Heap: heap=430,080 smbytes=156,648 max_bytes=251,580 bufs=119
max_bufs=126
Sizes: boffset_t=8 size_t=4 int32_t=4 int64_t=8

Running Jobs:
Writing: Full Restore job Restores JobId=18 Volume=
pool=Default device=LTO3-1 (/dev/nsa0)
spooling=0 despooling=0 despool_wait=0
Files=0 Bytes=0 Bytes/sec=0
FDSocket closed


Jobs waiting to reserve a drive:
   3602 JobId=18 device LTO3-1 (/dev/nsa0) is busy (already
reading/writing).


Terminated Jobs:
 JobId  LevelFiles  Bytes   Status   FinishedName 
===
 1  Full274,7181.161 T  OK   12-Feb-08 02:19 hoover_gis
 2  Full666,606671.9 G  OK   12-Feb-08 07:37 hoover_data
 3  Full274,7531.161 T  OK   12-Feb-08 17:26 hoover_gis
 5  Incr  8,22216.21 G  OK   13-Feb-08 00:20 hoover_data
 6  Incr7102.629 G  OK   13-Feb-08 00:25 hoover_gis
12  Full  1142.9 M  OK   13-Feb-08 09:08
BackupCatalog
130 0   Error13-Feb-08 09:47 Restores
140 0   Cancel   13-Feb-08 09:59 Restores


Device status:
Autochanger Autochanger with devices:
   LTO3-1 (/dev/nsa0)
Device LTO3-1 (/dev/nsa0) open but no Bacula volume is currently
mounted.
Slot 7 is loaded in drive 0.
Total Bytes Read=0 Blocks Read=0 Bytes/block=0
Positioned at File=73 Block=0
Device FileStorage (/export/bacula) is not open.


In Use Volume status:
B00026L3 on device LTO3-1 (/dev/nsa0)
Reader=1 writers=0 reserved=0 released=1



Robin P. Blanchard
Systems Administrator
Information Technology Outreach Services
Carl Vinson Institute of Government
The University of Georgia
fon 706.542.6295 // fax 706.542.6535




-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] http://bugs.bacula.org/ does not need a login for viewing

2008-02-13 Thread Dan Langille
As of recently, http://bugs.bacula.org/ does not need a login for viewing. 
Previously, you needed to login as anonymous/anonymous.  This is now automatic.

As always, if you wish to report a bug or track a bug, you need to login.

-- 
Dan Langille - http://www.langille.org/
BSDCan - The Technical BSD Conference: http://www.bsdcan.org/
PGCon  - The PostgreSQL Conference:http://www.pgcon.org/

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] restore ?

2008-02-13 Thread Robin Blanchard
   How am I supposed to know which autochanger slot to mount, when it
  would
   seems bacula just randomly selects tapes from the pool (see
 attached
   screenshot)?
  
  
  It should have told you in the console what tape it wanted to use.
  However I have found in most cases when bacula is stuck like this
 just
  issuing a mount on the tape drive (and not selecting a slot) gets
  bacula to continue.
 
  John

sorry truncated...

*mount
Automatically selected Catalog: ITOS
Using Catalog ITOS
The defined Storage resources are:
 1: LTO3-1
 2: FileStorage
Select Storage resource (1-2): 1
Enter autochanger slot: 
3905 Device LTO3-1 (/dev/nsa0) open but no Bacula volume is mounted.
If this is not a blank tape, try unmounting and remounting the Volume.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] restore ?

2008-02-13 Thread John Drescher
 *mount
 Automatically selected Catalog: ITOS
 Using Catalog ITOS
 The defined Storage resources are:
  1: LTO3-1
  2: FileStorage
 Select Storage resource (1-2): 1
 Enter autochanger slot:

I have used a 2 drive autochanger with bacula for 18 months now and I
have never been asked that question so I have no idea. Hopefully
someone else knows...

John

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FreeNAS and Bacula

2008-02-13 Thread Robin Blanchard


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:bacula-users-
 [EMAIL PROTECTED] On Behalf Of Dan Langille
 Sent: Wednesday, February 13, 2008 12:22 PM
 To: bacula-users
 Subject: [Bacula-users] FreeNAS and Bacula
 
 FreeNAS seems like a good project.  People might want to devote some
of
 their Bacula expertise to it.
 
 There are been several requests for Bacula support in FreeNAS:
 
 http://tinyurl.com/2encbt
 
 Personally, I'd like to see Bacula as part of FreeNAS, at least as a
 client
 if not as a server.

Most anyone can install and configure FeeNAS in 15 minutes; bacula on
the other hand

But yes I agree, being a proponent of FreeNAS.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] SD is dying on a Tape logistic problem.

2008-02-13 Thread Falk Sauer
Hi all,
Bacula 2.2.8, Adic Scalar 24, 5,5TB Storage

I have seen few minutes ago, following scenario:

3 Backupjobs running on one Drive (Drive-2) in the meantime i've changed a 
tape and done 'update slots' and 'label barcodes' with drive-1, after them 
the tape inside Drive-1 was the only one in state 'Append'. In the moment 
where the tape in Drive-2 going to Full State this Error occours:

13-Feb 19:25 save-sd JobId 2516: End of Volume HB0074 at 311:10733 on 
device Drive-2 (/dev/nst1). Write of 64512 bytes got -1.
13-Feb 19:26 save-sd JobId 2516: Re-read of last block succeeded.
13-Feb 19:26 save-sd JobId 2516: End of medium on Volume HB0074 
Bytes=311,672,503,296 Blocks=4,831,232 at 13-Feb-2008 19:26.
13-Feb 19:26 save-dir JobId 2516: Using Volume HB0081 from 'Scratch' pool.
13-Feb 19:26 save-sd JobId 2516: 3307 Issuing autochanger unload slot 18, 
drive 1 command.
13-Feb 19:27 save-sd JobId 2516: 3304 Issuing autochanger load slot 20, drive 
1 command.
13-Feb 19:32 save-sd JobId 2516: Fatal error: 3992 Bad autochanger load slot 
20, drive 1: ERR=Child died from signal 15: Termination.
Results=Loading media from Storage Element 20 into drive 1...Source Element 
Address 4115 is Empty
mt: /dev/nst1: Kein Medium gefunden
mt: /dev/nst1: Kein Medium gefunden
mt: /dev/nst1: Kein Medium gefunden
mt: /dev/nst1: Kein Medium gefunden
mt: /dev/nst1: Kein Medium gefunden
mt: /dev/nst1: Kein Medium gefunden
mt: /dev/nst1: Kein Medium gefunden
mt: /dev/nst1: Kein Medium gefunden
mt: /dev/nst1: Kein Medium gefunden
mt: /dev/nst1: Kein Medium gefunden
mt: /dev/nst1: Kein Medium gefunden
mt: /dev/nst1: Kein Medium gefunden
mt: /dev/nst1: Kein Medium gefunden
mt: /dev/nst1: Kein Medium gefunden
mt: /dev/nst1: Kein Medium gefunden
mt: /dev/nst1: Kein Medium gefunden
mt: /dev/nst1: Kein Medium gefunden
mt: /dev/nst1: Kein Medium gefunden
mt: /dev/nst1: Kein Medium gefunden
mt: /dev/nst1: Kein Medium gefunden
mt: /dev/nst1: Kein Medium gefunden
mt: /dev/nst1: Kein Medium gefunden
mt: /dev/nst1: Kein Medium gefunden
mt: /dev/nst1: Kein Medium gefunden
mt: /dev/nst1: Kein Medium gefunden
mt: /dev/nst1: Kein Medium gefun
13-Feb 19:32 save-sd JobId 2516: Job write elapsed time = 11:26:57, Transfer 
rate = 5.773 M bytes/second
13-Feb 19:32 save-fd JobId 2515: Fatal error: backup.c:892 Network send error 
to SD. ERR=Die Verbindung wurde vom Kommunikationspartner zurückgesetzt
13-Feb 19:32 save-fd JobId 2516: Fatal error: backup.c:892 Network send error 
to SD. ERR=Die Verbindung wurde vom Kommunikationspartner zurückgesetzt
13-Feb 19:32 save-fd JobId 2517: Fatal error: backup.c:892 Network send error 
to SD. ERR=Datenübergabe unterbrochen (broken pipe)
13-Feb 19:32 save-fd JobId 2516: Error: bsock.c:306 Write error sending 65536 
bytes to Storage daemon:save:9103: ERR=Die Verbindung wurde vom 
Kommunikationspartner zurückgesetzt
13-Feb 19:32 save-fd JobId 2517: Error: bsock.c:306 Write error sending 65536 
bytes to Storage daemon:save:9103: ERR=Datenübergabe unterbrochen (broken 
pipe)

...

and so on for all 3 backup jobs after sd dying. 

The Problem is imho the logic of changing tapes has not unload HB0081 from 
Drive-1 before attempt to load it from Slot 20 or, if using HB0081 is the 2nd 
best idea*, he should attempt to use a other prunded tape from Scratch pool.

I mean this is a Bug, is the Bug known or should i file the bug into the 
Bugtracker? 

*) i'm not shure wich Design rule should handle this case.

Regards
   Falk


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] restore ?

2008-02-13 Thread Robin Blanchard
 -Original Message-
 From: John Drescher [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 13, 2008 2:59 PM
 To: Robin Blanchard; bacula-users@lists.sourceforge.net
 Subject: Re: [Bacula-users] restore ?
 
  How am I supposed to know which autochanger slot to mount, when it
 would
  seems bacula just randomly selects tapes from the pool (see attached
  screenshot)?
 
 
 It should have told you in the console what tape it wanted to use.
 However I have found in most cases when bacula is stuck like this just
 issuing a mount on the tape drive (and not selecting a slot) gets
 bacula to continue.
 
 John

Unfort, no:

*mount
Automatically selected Catalog: ITOS
Using Catalog ITOS
The defined Storage resources are:
 1: LTO3-1
 2: FileStorage
Select Storage resource (1-2): 1
Enter autochanger slot:

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FreeNAS and Bacula

2008-02-13 Thread Dan Langille
Robin Blanchard wrote:
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:bacula-users-
 [EMAIL PROTECTED] On Behalf Of Dan Langille
 Sent: Wednesday, February 13, 2008 12:22 PM
 To: bacula-users
 Subject: [Bacula-users] FreeNAS and Bacula

 FreeNAS seems like a good project.  People might want to devote some
 of
 their Bacula expertise to it.

 There are been several requests for Bacula support in FreeNAS:

 http://tinyurl.com/2encbt

 Personally, I'd like to see Bacula as part of FreeNAS, at least as a
 client
 if not as a server.
 
 Most anyone can install and configure FeeNAS in 15 minutes; bacula on
 the other hand

I can.  :)  For a single machine.  ;)

 But yes I agree, being a proponent of FreeNAS.

I have spare hardware... I really should set it up and then install 
bacula-fd and go from there.  Perhaps install an SD and use it as a backup 
device when I'm away from home and the tape fills up.

-- 
Dan Langille - http://www.langille.org/
BSDCan - The Technical BSD Conference: http://www.bsdcan.org/
PGCon  - The PostgreSQL Conference:http://www.pgcon.org/

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] SD is dying on a Tape logistic problem.

2008-02-13 Thread Arno Lehmann
Hi,

13.02.2008 20:59, Falk Sauer wrote:
 Hi all,
 Bacula 2.2.8, Adic Scalar 24, 5,5TB Storage
 
 I have seen few minutes ago, following scenario:
 
 3 Backupjobs running on one Drive (Drive-2) in the meantime i've changed a 
 tape and done 'update slots' and 'label barcodes' with drive-1, after them 
 the tape inside Drive-1 was the only one in state 'Append'. In the moment 
 where the tape in Drive-2 going to Full State this Error occours:
 
 13-Feb 19:25 save-sd JobId 2516: End of Volume HB0074 at 311:10733 on 
 device Drive-2 (/dev/nst1). Write of 64512 bytes got -1.
 13-Feb 19:26 save-sd JobId 2516: Re-read of last block succeeded.
 13-Feb 19:26 save-sd JobId 2516: End of medium on Volume HB0074 
 Bytes=311,672,503,296 Blocks=4,831,232 at 13-Feb-2008 19:26.
 13-Feb 19:26 save-dir JobId 2516: Using Volume HB0081 from 'Scratch' pool.
 13-Feb 19:26 save-sd JobId 2516: 3307 Issuing autochanger unload slot 18, 
 drive 1 command.
 13-Feb 19:27 save-sd JobId 2516: 3304 Issuing autochanger load slot 20, 
 drive 
 1 command.
 13-Feb 19:32 save-sd JobId 2516: Fatal error: 3992 Bad autochanger load slot 
 20, drive 1: ERR=Child died from signal 15: Termination.
 Results=Loading media from Storage Element 20 into drive 1...Source Element 
 Address 4115 is Empty
 mt: /dev/nst1: Kein Medium gefunden
 mt: /dev/nst1: Kein Medium gefunden
 mt: /dev/nst1: Kein Medium gefunden
 mt: /dev/nst1: Kein Medium gefunden
 mt: /dev/nst1: Kein Medium gefunden
 mt: /dev/nst1: Kein Medium gefunden
 mt: /dev/nst1: Kein Medium gefunden
 mt: /dev/nst1: Kein Medium gefunden
 mt: /dev/nst1: Kein Medium gefunden
 mt: /dev/nst1: Kein Medium gefunden
 mt: /dev/nst1: Kein Medium gefunden
 mt: /dev/nst1: Kein Medium gefunden
 mt: /dev/nst1: Kein Medium gefunden
 mt: /dev/nst1: Kein Medium gefunden
 mt: /dev/nst1: Kein Medium gefunden
 mt: /dev/nst1: Kein Medium gefunden
 mt: /dev/nst1: Kein Medium gefunden
 mt: /dev/nst1: Kein Medium gefunden
 mt: /dev/nst1: Kein Medium gefunden
 mt: /dev/nst1: Kein Medium gefunden
 mt: /dev/nst1: Kein Medium gefunden
 mt: /dev/nst1: Kein Medium gefunden
 mt: /dev/nst1: Kein Medium gefunden
 mt: /dev/nst1: Kein Medium gefunden
 mt: /dev/nst1: Kein Medium gefunden
 mt: /dev/nst1: Kein Medium gefun
 13-Feb 19:32 save-sd JobId 2516: Job write elapsed time = 11:26:57, Transfer 
 rate = 5.773 M bytes/second
 13-Feb 19:32 save-fd JobId 2515: Fatal error: backup.c:892 Network send error 
 to SD. ERR=Die Verbindung wurde vom Kommunikationspartner zurückgesetzt
 13-Feb 19:32 save-fd JobId 2516: Fatal error: backup.c:892 Network send error 
 to SD. ERR=Die Verbindung wurde vom Kommunikationspartner zurückgesetzt
 13-Feb 19:32 save-fd JobId 2517: Fatal error: backup.c:892 Network send error 
 to SD. ERR=Datenübergabe unterbrochen (broken pipe)
 13-Feb 19:32 save-fd JobId 2516: Error: bsock.c:306 Write error sending 65536 
 bytes to Storage daemon:save:9103: ERR=Die Verbindung wurde vom 
 Kommunikationspartner zurückgesetzt
 13-Feb 19:32 save-fd JobId 2517: Error: bsock.c:306 Write error sending 65536 
 bytes to Storage daemon:save:9103: ERR=Datenübergabe unterbrochen (broken 
 pipe)
 
 ...
 
 and so on for all 3 backup jobs after sd dying. 
 
 The Problem is imho the logic of changing tapes has not unload HB0081 from 
 Drive-1 before attempt to load it from Slot 20 or, if using HB0081 is the 2nd 
 best idea*, he should attempt to use a other prunded tape from Scratch pool.

I think the right thing to do would be to unload drive one first... 
anyway, this seems to be a bug worth reporting on bugs.bacula.org.

What would be interesting is the internal state of the SD at the time 
this happens, i.e. is it aware that the tape needed is in drive 1? I 
*guess* the tape is known to be loaded but not reserved.

 I mean this is a Bug, is the Bug known or should i file the bug into the 
 Bugtracker? 

I'm not aware of this bug, but you surely will look if something 
similar is already reported, right? ;-)

 *) i'm not shure wich Design rule should handle this case.

 Regards
Falk

Arno


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

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] possible bug in bacula-fd on windows

2008-02-13 Thread Arno Lehmann
Hello,

12.02.2008 22:48, Bob Hetzel wrote:
 Previously, Arno Lehmann said...
 
 Is this really the end of the trace file?

 It looks a bit... funny because the expected job finishing stuff is 
 not there, and it also doesn't report a serious problem.

 Can you verify that the FD still runs at this time, and see if it's 
 still got the network connections from the DIR and to the SD open?

 If all this is the case, I can only recommend looking at what the SD 
 is doing at this time...

 Hope this helps you forward,

 Arno
 
 The bacula-fd abends at that point, so that's why it isn't fully logging 
 the stuff you'd expect to see for a completed successful backup.

Oh, anend was worth looking up in the dictionary :-)

Ok, the FD crashes, in other words.

This looks like it's worth a bug report. It will probably help if you 
can capture a backtrace at this point, or a dump file. Don't ask me 
how to do this on windows...

Also, try to create the problem with a minimal setup, i.e. a very 
simple job backing up only one file. If that runs, add more 
directories to it. If it crashes in a certain directory, try to see 
which files cause this and so on.

That's what I would do, not having debugiing experience under windows.

Arno

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

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Problem when restoring to a networked drive.

2008-02-13 Thread [EMAIL PROTECTED]
Hi Guys,

 I thought I had this game sorted. But, I found a bonus level.  :)

 We have decided to save restored files onto a storage device attached 
to the Director Machine rather than putting them straight onto the 
original client. My problem is that while I can restore files for the 
Director machine, a restore job for remote clients prints a success 
report but will not actually write the file!



 I have defined the location to write the restored files in the restore 
job, as shown below:

Where=
MACHINE01\\E\\backup\\restored-files\\REMOTE01\\
...



After running the restore job, I check the result with 'Status' and it 
summarises the job as complete:
---

Jodid   Files Bytes  Status  Finished  
  Name

   1814365.7 M  OK   14-Feb-08 12:21 
REMOTE01-Restore





 However, the folder is still empty! :(


 I have tried the debug flags, but I still can not see any errors. What 
is the best debug level to use? Is there any other info yI should look at?


Thanks
Dan





-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem when restoring to a networked drive.

2008-02-13 Thread Dan Langille
[EMAIL PROTECTED] wrote:
 Hi Guys,
 
  I thought I had this game sorted. But, I found a bonus level.  :)
 
  We have decided to save restored files onto a storage device attached 
 to the Director Machine rather than putting them straight onto the 
 original client. My problem is that while I can restore files for the 
 Director machine, a restore job for remote clients prints a success 
 report but will not actually write the file!
 
 
 
  I have defined the location to write the restored files in the restore 
 job, as shown below:
 
 Where=
 MACHINE01\\E\\backup\\restored-files\\REMOTE01\\
 ...
 
 
 
 After running the restore job, I check the result with 'Status' and it 
 summarises the job as complete:
 ---
 
 Jodid   Files Bytes  Status  Finished  
   Name
 
1814365.7 M  OK   14-Feb-08 12:21 
 REMOTE01-Restore
 
 
 
 
 
  However, the folder is still empty! :(

Are you looking on the correct client?

Compare the Job output that was emailed to you.  Or the job output in the 
log file in the Director's working directory.  Perhaps the file is on 
another Client or on the Director

Perhaps it is in a different directory, say /tmp/bacula-restores instead. 
You'll have to look at the job to know.


-- 
Dan Langille - http://www.langille.org/
BSDCan - The Technical BSD Conference: http://www.bsdcan.org/
PGCon  - The PostgreSQL Conference:http://www.pgcon.org/

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem when restoring to a networked drive.

2008-02-13 Thread [EMAIL PROTECTED]




Thanks Dan :)

I have now triple checked my paths, and visually confirmed that the
REMOTE clients FD monitor is lit up green with a 'Running' status.

I have provided the console printout, and the Job log. It all seems to
confirm I am pointing to everything correctly.


One possibility that I am trying to eliminate:

While I can browse to the networked drive, and edit files from the
client machine (REMOTE01). I did not have the option for 'Write'
permissions when I applied the share status to the E drive. Would this
have any effect on the daemons' write ability? How can I test this?



This is a simplified copy of the bconsole printout:

==
*restore

To select the JobIds, you have the following choices:

 5: Select the most recent backup for a client

Select item: (1-12): 5
Defined Clients:

 4: REMOTE01

Select the Client (1-9): 4
Automatically selected FileSet: REMOTE01
+---+---+--+-+-+--+
| JobId | Level | JobFiles | JobBytes | StartTime |
VolumeName |
+---+---+--+-+-+--+
| 8 | F | 5 | 363,679,791 | 2008-02-06 13:27:59 |
REMOTE01-0006|
+---+---+--+-+-+--+
You have selected the following JobIds: 8,25,48,67,85,103,129,147,165

Building directory tree for JobId 8 ...

1 Jobs, 4 files inserted into the tree.



cwd is: /
$ mark *
6 files marked.
$ done
Bootstrap records written to C:\Documents and Settings\All
Users\Application Data\Bacula\Work\/MACHINE01-dir.restore.34.bsr

The job will require the following
 Volume(s) Storage(s) SD Device(s)
===

 REMOTE01-0006 MACHINE01-sd FileStorage


6 files selected to be restored.

The defined Restore Job resources are:

 4: REMOTE01-Restore

Select Restore Job (1-9): 4
Using Catalog "REMOTE01"
Run Restore job
JobName: REMOTE01-Restore
Bootstrap: C:\Documents and Settings\All Users\Application
Data\Bacula\Work\/MACHINE01-dir.restore.34.bsr
Where: \\esiteprod01\E\backup\restored-files\REMOTE01
Replace: always
FileSet: REMOTE01
Backup Client: REMOTE01
Restore Client: REMOTE01
Storage: MACHINE01-sd
When: 2008-02-14 13:04:23
Catalog: REMOTE01
Priority: 10
OK to run? (yes/mod/no): yes
Job queued. JobId=184



After running the Job, it is shown as successful in the FD monitor. I
run status for a better report:


*status
Status available for:
 1: Director
 2: Storage
 3: Client
 4: All
Select daemon type for status (1-4): 3
The defined Client resources are:

 4: REMOTE01

Select Client (File daemon) resource (1-9): 4
Connecting to Client daniels at 10.0.0.130:9102

MACHINE01-fd Version: 2.2.7 (24 December 2007) VSS Linux Cross-compile
Win32
Daemon started 04-Feb-08 14:17, 23 Jobs run since started.
Heap: heap=0 smbytes=228,419 max_bytes=295,547 bufs=82 max_bufs=103
Sizeof: boffset_t=8 size_t=4 debug=0 trace=0

Running Jobs:
Director connected at: 14-Feb-08 13:14
No Jobs running.


Terminated Jobs:
JobId Level Files Bytes Status Finished Name
==
 184 5 365.7 M OK 14-Feb-08 13:08
REMOTE01-Restore




This agrees with the FD monitor. I then view the log file and confirm
that everything agrees.


Directors LOG FILE:

14-Feb 13:04 MACHINE01-dir JobId 184: Start Restore Job
REMOTE0101-Restore.2008-02-14_13.04.22
14-Feb 13:04 MACHINE01-dir JobId 184: Using Device "FileStorage"
14-Feb 13:04 MACHINE01-sd JobId 184: Ready to read from volume
"REMOTE01-0006" on device "FileStorage" (E:\backup).
14-Feb 13:04 MACHINE01-sd JobId 184: Forward spacing Volume
"REMOTE01-0006" to file:block 0:209.
14-Feb 13:05 MACHINE01-sd JobId 184: End of Volume at file 0 on device
"FileStorage" (E:\backup), Volume "REMOTE01-0006"
14-Feb 13:05 MACHINE01-sd JobId 184: End of all volumes.
14-Feb 13:05 MACHINE01-dir JobId 184: Bacula MACHINE01-dir 2.2.7
(24Dec07): 14-Feb-2008 13:05:06
 Build OS: Linux Cross-compile Win32
 JobId: 184
 Job: REMOTE01-Restore.2008-02-14_13.04.22
 Restore Client: REMOTE01
 Start time: 14-Feb-2008 13:04:29
 End time: 14-Feb-2008 13:05:06
 Files Expected: 6
 Files Restored: 5
 Bytes Restored: 365,711,407
 Rate: 884.1 KB/s
 FD Errors: 0
 FD termination status: OK
 SD termination status: OK
 Termination: Restore OK -- warning file count mismatch

14-Feb 13:05 MACHINE01-dir JobId 184: Begin pruning Jobs.
14-Feb 13:05 MACHINE01-dir JobId 184: No Jobs found to prune.
14-Feb 13:05 MACHINE01-dir JobId 184: Begin pruning Files.
14-Feb 13:05 MACHINE01-dir JobId 184: No Files found to prune.
14-Feb 13:05 MACHINE01-dir JobId 184: End auto prune.

===


I have also searched all drives on both computers for the test file,
with no success.



 Best Regards,
Daniel Simeoni

Support Coordinator

Re: [Bacula-users] http://bugs.bacula.org/ does not need a login for viewing

2008-02-13 Thread Michael Short
Thanks, this makes it easier to find existing bugs. I had no idea
there was an anonymous account (so I was forced to make one...).

Cheers,
-Michael

On Feb 13, 2008 1:04 PM, Dan Langille [EMAIL PROTECTED] wrote:
 As of recently, http://bugs.bacula.org/ does not need a login for viewing.
 Previously, you needed to login as anonymous/anonymous.  This is now 
 automatic.

 As always, if you wish to report a bug or track a bug, you need to login.

 --
 Dan Langille - http://www.langille.org/
 BSDCan - The Technical BSD Conference: http://www.bsdcan.org/
 PGCon  - The PostgreSQL Conference:http://www.pgcon.org/

 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] bscan and non-local database/port

2008-02-13 Thread [EMAIL PROTECTED]
I am trying to use bscan to retrieve catalog information into my 
catalog.  the catalog database is on another server, and on a 
non-standard port.  I cannot figure out how to get it to talk to the 
remote database on the non-standard mysql port.

Here is one of the commands I am trying.
 ../sbin/bscan -d 5 -h 10.1.2.5:3309 -u ** -P * -n 
bacula_brightserv -v -V VTAPE_brightserv_0009 
/data/bacula_data/VTAPE/brightserv

It always times out talking to the database:
13-Feb 20:33 bscan: ERROR TERMINATION at bscan.c:277
mysql.c:164 Unable to connect to MySQL server.
Database=bacula_brightserv User=**
It is probably not running or your password is incorrect.

I apologize if this is a FAQ question, but I could not find an answer 
anywhere.

I am using: Version: 1.38.11 (28 June 2006)

Any help is very appreciated!

Thanks to the list!

-JPH


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] http://bugs.bacula.org/ does not need a login for viewing

2008-02-13 Thread Dan Langille
Michael Short wrote:
 Thanks, this makes it easier to find existing bugs. I had no idea
 there was an anonymous account (so I was forced to make one...).

FYI, this account was documented on the front page of the website.

This link is Google's cache which will soon expire I'm sure:

http://64.233.169.104/search?q=cache:GnTceWz_n1gJ:bugs.bacula.org/+bugs.bacula.orghl=enct=clnkcd=1gl=us
 



-- 
Dan Langille - http://www.langille.org/
BSDCan - The Technical BSD Conference: http://www.bsdcan.org/
PGCon  - The PostgreSQL Conference:http://www.pgcon.org/

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bscan and non-local database/port

2008-02-13 Thread Dan Langille
[EMAIL PROTECTED] wrote:
 I am trying to use bscan to retrieve catalog information into my 
 catalog.  the catalog database is on another server, and on a 
 non-standard port.  I cannot figure out how to get it to talk to the 
 remote database on the non-standard mysql port.
 
 Here is one of the commands I am trying.
  ../sbin/bscan -d 5 -h 10.1.2.5:3309 -u ** -P * -n 
 bacula_brightserv -v -V VTAPE_brightserv_0009 
 /data/bacula_data/VTAPE/brightserv
 
 It always times out talking to the database:
 13-Feb 20:33 bscan: ERROR TERMINATION at bscan.c:277
 mysql.c:164 Unable to connect to MySQL server.
 Database=bacula_brightserv User=**
 It is probably not running or your password is incorrect.

On the same machine, can you connect to the database using mysql and the 
same parameters you supplied above?

-- 
Dan Langille - http://www.langille.org/
BSDCan - The Technical BSD Conference: http://www.bsdcan.org/
PGCon  - The PostgreSQL Conference:http://www.pgcon.org/

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bscan and non-local database/port

2008-02-13 Thread [EMAIL PROTECTED]

Dan Langille wrote:

[EMAIL PROTECTED] wrote:
I am trying to use bscan to retrieve catalog information into my 
catalog.  the catalog database is on another server, and on a 
non-standard port.  I cannot figure out how to get it to talk to the 
remote database on the non-standard mysql port.


Here is one of the commands I am trying.
 ../sbin/bscan -d 5 -h 10.1.2.5:3309 -u ** -P * -n 
bacula_brightserv -v -V VTAPE_brightserv_0009 
/data/bacula_data/VTAPE/brightserv


It always times out talking to the database:
13-Feb 20:33 bscan: ERROR TERMINATION at bscan.c:277
mysql.c:164 Unable to connect to MySQL server.
Database=bacula_brightserv User=**
It is probably not running or your password is incorrect.


On the same machine, can you connect to the database using mysql and 
the same parameters you supplied above?



From the same server as above, I can connect with the credentials:

mysql -h 10.1.2.5 --port 3309 -u *** -p bacula_brightserv
Enter password:

Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8237791 to server version: 5.0.18-standard-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql show databases;
++
| Database   |
++
| information_schema |
| bacula_brightserv  |
++
2 rows in set (0.00 sec)
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem when restoring to a networked drive.

2008-02-13 Thread [EMAIL PROTECTED]




I apologise, please disregard the last post.



After another search, with a bit more sense than I used the first time.
I have found that the file was in-fact restored to the following local
(Clients') directory:: 

C:\MACHINE01\E\backup\restored-files\REMOTE01\C\Documents and
Settings\REMOTE01\etc...etc



Instead of the remote (Directors') directory as defined in the job
definition:


Job  {
   Name =  "REMOTE01-Restore"
   Type =  Restore
   Client =  REMOTE01
   FileSet =  REMOTE01
   Storage =  MACHINE01-sd
   Pool =  REMOTE01
   Messages=  Standard
   Where = 
"MACHINE01\\E:\\backup\\restored-files\\REMOTE01\\"
}


Can I make Bacula obey the path, rather than assuming \\ =
C:\MACHINE-name\ or must I try the other option...


I have already tried mapping the Remote drive to E: locally but this
prints the error below. Suggesting that I need to find a way to escape
the '/' which is automatically added to the save path. I have not been
able to accomplish this as yet. 


Job REMOTE01-Restore.2008-02-14_16.43.24
14-Feb 16:43 MACHINE01-dir JobId 186: Using Device "FileStorage"
14-Feb 16:43 MACHINE01-sd JobId 186: Ready to read from volume
"REMOTE01-0006" on device "FileStorage" (E:\backup).
14-Feb 16:43 MACHINE01-sd JobId 186: Forward spacing Volume
"REMOTE01-0006" to file:block 0:209.
14-Feb 16:47 REMOTE01-fd JobId 186: Error: E: is not a valid drive
14-Feb 16:47 REMOTE01-fd JobId 186: Error:
../../findlib/create_file.c:223 Could not create
E:\backup\restored-files\REMOTE01\C\Documents and
Settings\REMOTE01\Local Settings\Application
Data\Microsoft\Outlook/Outlook.sharing.xml.obi: ERR=The system cannot
find the path specified.

14-Feb 16:47 REMOTE01-fd JobId 186: Error:
../../findlib/create_file.c:223 Could not create
E:\backup\restored-files\REMOTE01\C\Documents and
Settings\REMOTE01\Local Settings\Application
Data\Microsoft\Outlook/~last~.sharing.xml.obi: ERR=The system cannot
find the path specified.

14-Feb 16:47 REMOTE01-fd JobId 186: Error:
../../findlib/create_file.c:223 Could not create
E:\backup\restored-files\REMOTE01\C\Documents and
Settings\REMOTE01\Local Settings\Application
Data\Microsoft\Outlook/Outlook.pst: ERR=The system cannot find the path
specified.



Thanks again.
Dan


[EMAIL PROTECTED] wrote:

  
Thanks Dan :)
  
I have now triple checked my paths, and visually confirmed that the
REMOTE clients FD monitor is lit up green with a 'Running' status.
  
I have provided the console printout, and the Job log. It all seems to
confirm I am pointing to everything correctly.
  
  
One possibility that I am trying to eliminate:
  
While I can browse to the networked drive, and edit files from the
client machine (REMOTE01). I did not have the option for 'Write'
permissions when I applied the share status to the E drive. Would this
have any effect on the daemons' write ability? How can I test this?
  

  
This is a simplified copy of the bconsole printout:
  
==
*restore
  
To select the JobIds, you have the following choices:
  
 5: Select the most recent backup for a client
  
Select item: (1-12): 5
Defined Clients:
  
 4: REMOTE01
  
Select the Client (1-9): 4
Automatically selected FileSet: REMOTE01
+---+---+--+-+-+--+
| JobId | Level | JobFiles | JobBytes | StartTime |
VolumeName |
+---+---+--+-+-+--+
| 8 | F | 5 | 363,679,791 | 2008-02-06 13:27:59 |
REMOTE01-0006|
+---+---+--+-+-+--+
You have selected the following JobIds: 8,25,48,67,85,103,129,147,165
  
Building directory tree for JobId 8 ...
  
1 Jobs, 4 files inserted into the tree.
  
  
  
cwd is: /
$ mark *
6 files marked.
$ done
Bootstrap records written to C:\Documents and Settings\All
Users\Application Data\Bacula\Work\/MACHINE01-dir.restore.34.bsr
  
The job will require the following
 Volume(s) Storage(s) SD Device(s)
===
  
 REMOTE01-0006 MACHINE01-sd FileStorage
  
  
6 files selected to be restored.
  
The defined Restore Job resources are:
  
 4: REMOTE01-Restore
  
Select Restore Job (1-9): 4
Using Catalog "REMOTE01"
Run Restore job
JobName: REMOTE01-Restore
Bootstrap: C:\Documents and Settings\All Users\Application
Data\Bacula\Work\/MACHINE01-dir.restore.34.bsr
Where: \\esiteprod01\E\backup\restored-files\REMOTE01
Replace: always
FileSet: REMOTE01
Backup Client: REMOTE01
Restore Client: REMOTE01
Storage: MACHINE01-sd
When: 2008-02-14 13:04:23
Catalog: REMOTE01
Priority: 10
OK to run? (yes/mod/no): yes
Job queued. JobId=184
  

  
After running the Job, it is shown as successful in the FD monitor. I
run status for a better report:
  
  
*status
Status available for:
 1: Director
 2: Storage
 3: Client
 4: All
Select daemon type for status (1-4): 3
The defined Client resources are:
  
 4: 

Re: [Bacula-users] SD is dying on a Tape logistic problem.

2008-02-13 Thread Falk Sauer
Hi Arno,

On Mittwoch 13 Februar 2008 22:47:45 wrote:
 13.02.2008 20:59, Falk Sauer wrote:

  13-Feb 19:25 save-sd JobId 2516: End of Volume HB0074 at 311:10733 on
  device Drive-2 (/dev/nst1). Write of 64512 bytes got -1.
  13-Feb 19:26 save-sd JobId 2516: Re-read of last block succeeded.
  13-Feb 19:26 save-sd JobId 2516: End of medium on Volume HB0074
  Bytes=311,672,503,296 Blocks=4,831,232 at 13-Feb-2008 19:26.
  13-Feb 19:26 save-dir JobId 2516: Using Volume HB0081 from 'Scratch'
  pool. 13-Feb 19:26 save-sd JobId 2516: 3307 Issuing autochanger unload
  slot 18, drive 1 command.
  13-Feb 19:27 save-sd JobId 2516: 3304 Issuing autochanger load slot 20,
  drive 1 command.
  13-Feb 19:32 save-sd JobId 2516: Fatal error: 3992 Bad autochanger load
  slot 20, drive 1: ERR=Child died from signal 15: Termination.
  Results=Loading media from Storage Element 20 into drive 1...Source
  Element Address 4115 is Empty
  mt: /dev/nst1: Kein Medium gefunden

  The Problem is imho the logic of changing tapes has not unload HB0081
  from Drive-1 before attempt to load it from Slot 20 or, if using HB0081
  is the 2nd best idea*, he should attempt to use a other pruned tape from
  Scratch pool.

 I think the right thing to do would be to unload drive one first...
 anyway, this seems to be a bug worth reporting on bugs.bacula.org.

ok, i file a bug, if your opinion is right, here we have 2 possible errors
1. the tape change logic
2. the sd termination in this case, on a lib with 2 drives where one goes in 
error state, the other one can work thru the end of his job or thru the end 
of the possibly queued jobs. This is imho not an error state - only a warning 
state, with blocking the hanging drive for all following jobs.
I we imaging a lib with 3 or more drives and big long running jobs, dying of 
the sd is imho not the right solution if only one of them hangs. The imho 
best solution can be a drive switch. 

 What would be interesting is the internal state of the SD at the time
 this happens, i.e. is it aware that the tape needed is in drive 1? I
 *guess* the tape is known to be loaded but not reserved.

the normal state after 'label barcodes', whatever this state is. ;-)

 I'm not aware of this bug, but you surely will look if something
 similar is already reported, right? ;-)

i will take a look into the bug database, i'm unshure but i didn't read such a 
bug on the buglist in the past (from 2.2 on). 

Regards
   Falk


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users