[Bacula-users] From TFM: Restoring Files Can Be Slow

2007-06-15 Thread Emery Guevremont
I just finished rereading the "Restoring Files Can Be Slow" section of 
the manual. In it, it mentions doing a restore will be about 3 times 
slower than a backup.

Now I've got a situation where I have to remove sensitive data that was 
backed up on several tapes. The way I'm doing this is to bscan a tape so 
as to sync the content to a new catalog, then restore each Jobs in 
seperate restore jobs. Once every job has been restored, I search for 
the sensitive data, delete and then backup every seperate jobs in one 
single job.

So basically I've got a /backup-restore folder that contains each 
seperate jobs in their own folder (ie. /backup-restore/01, 
/backup-restore/02, ... /backup-restore/98). I need to do this in order 
to prevent files with the same name to overwrite each other. Once I 
deleted the sensitive data, I backup the parent (/backup-restore) folder 
in a single job.

The problem I'm having with this is that it took 5 days to only do the 
restore of each jobs. I had 98 jobs that bscan found and added to the 
catalog, all of which are about 100MB to 30GB in size. Here are the 
actual stats:

|99 | RestoreFiles   | 2007-06-10 13:16:54 | R| F 
|  839 |  9,375,175,662 | T |
|   100 | RestoreFiles   | 2007-06-10 13:21:59 | R| F 
|1,726 | 13,753,356,353 | T |
|   101 | RestoreFiles   | 2007-06-10 13:34:53 | R| F 
|1,294 |  7,507,618,432 | T |
|   102 | RestoreFiles   | 2007-06-10 13:48:45 | R| F 
|   69 |  2,698,552,655 | T |
|   103 | RestoreFiles   | 2007-06-10 14:04:24 | R| F 
|  181 |  1,124,735,587 | T |
|   104 | RestoreFiles   | 2007-06-10 14:19:41 | R| F 
|  185 |  6,962,747,990 | T |
|   105 | RestoreFiles   | 2007-06-10 14:37:07 | R| F 
|   77 |163,609,625 | T |
|   106 | RestoreFiles   | 2007-06-10 14:53:16 | R| F 
|   69 |254,471 | T |
|   107 | RestoreFiles   | 2007-06-10 15:09:25 | R| F 
|   81 |  2,552,629 | T |
|   108 | RestoreFiles   | 2007-06-10 15:25:30 | R| F 
|   27 | 56,330 | T |
|   109 | RestoreFiles   | 2007-06-10 15:41:40 | R| F 
|   27 |386,932,859 | E |
|   110 | RestoreFiles   | 2007-06-10 15:57:58 | R| F 
|   45 |400,472,872 | E |
|   111 | RestoreFiles   | 2007-06-10 16:14:27 | R| F 
|2 |  0 | T |
|   112 | RestoreFiles   | 2007-06-10 16:30:58 | R| F 
|1 |  0 | T |
|   113 | RestoreFiles   | 2007-06-10 16:47:34 | R| F 
|   25 | 47,614 | T |
|   114 | RestoreFiles   | 2007-06-10 17:04:11 | R| F 
|  120 |  1,456,639,525 | T |
|   115 | RestoreFiles   | 2007-06-10 17:21:20 | R| F 
|  115 |924,184,944 | E |
|   116 | RestoreFiles   | 2007-06-10 17:39:05 | R| F 
|   24 |  2,012,746,608 | T |
|   117 | RestoreFiles   | 2007-06-10 17:57:56 | R| F 
|   22 |  5,516,879,617 | E |
|   118 | RestoreFiles   | 2007-06-10 18:19:14 | R| F 
|   39 |156,034 | T |
|   119 | RestoreFiles   | 2007-06-10 18:40:33 | R| F 
|2,088 | 29,390,128,004 | T |
|   120 | RestoreFiles   | 2007-06-10 19:16:14 | R| F 
|1,740 | 28,320,759,453 | T |
|   121 | RestoreFiles   | 2007-06-10 20:02:00 | R| F 
|   90 | 10,878,922,296 | T |
|   122 | RestoreFiles   | 2007-06-10 20:48:38 | R| F 
|  170 |  2,252,300,718 | T |
|   123 | RestoreFiles   | 2007-06-10 21:36:43 | R| F 
|   82 |  1,178,566,819 | T |
|   124 | RestoreFiles   | 2007-06-10 22:24:34 | R| F 
|  634 | 17,735,540,399 | T |
|   125 | RestoreFiles   | 2007-06-10 23:20:25 | R| F 
|1,188 | 13,807,451,886 | T |
|   126 | RestoreFiles   | 2007-06-11 00:22:03 | R| F 
|  791 | 16,694,460,936 | T |
|   127 | RestoreFiles   | 2007-06-11 01:31:54 | R| F 
|   60 |  2,634,776,786 | T |
|   128 | RestoreFiles   | 2007-06-11 02:42:21 | R| F 
|  101 |  1,090,378,050 | T |
|   129 | RestoreFiles   | 2007-06-11 03:52:46 | R| F 
|   57 |  1,124,468,166 | T |
|   130 | RestoreFiles   | 2007-06-11 05:03:28 | R| F 
|  339 |  8,835,238,851 | T |
|   131 | RestoreFiles   | 2007-06-11 06:17:57 | R| F 
|  856 |  4,534,089,836 | T |
|   132 | RestoreFiles   | 2007-06-11 07:34:35 | R| F 
|  462 |  4,147,681,004 | E |
|   133 | RestoreFiles   |

Re: [Bacula-users] bextract an encrypted file.

2007-06-12 Thread Emery Guevremont
Michel Meyers wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Emery Guevremont wrote:
>   
>> Hello,
>>
>> I'm in the middle of trying to bextract a file that's encrypted on a
>> volume. Here's the command I ran:
>> 
> [...]
>   
>> I've got the pem file of the client copied on this machine, but I don't
>> know how I'm supposed to get bextract to use it. Is it even possible to
>> restore encrypted data with bextract? If not, what our my options if I
>> don't have access to the catalog?
>> 
>
> - From the manual (http://www.bacula.org/rel-manual/Data_Encryption.html):
>
> The implementation does not encrypt file metadata such as file path
> names, permissions, and ownership. Extended attributes are also
> currently not encrypted. However, Mac OS X resource forks are encrypted.
>
> - ---
> Maybe you can use bscan to populate a 'dummy catalog' and then recover
> your real catalog backup using that?
>   
I know I can use bscan, but I was hoping I can save a step and just use 
bextract. I thought I had seen on this list that bextract supports 
encrypted files, but I could be wrong.
> Greetings,
>Michel
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.7 (MingW32)
>
> iD8DBQFGYDI02Vs+MkscAyURAjoOAJ9pwrxxBrgtyiDW5rtBdMQP0pyTMwCeJnzb
> 3nsHhcG6UmmN5oA6vmBxxes=
> =wFeA
> -END PGP SIGNATURE-
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>   


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] bextract an encrypted file.

2007-06-12 Thread Emery Guevremont
Hello,

I'm in the middle of trying to bextract a file that's encrypted on a 
volume. Here's the command I ran:

bextract -V 24 -b /var/bacula/backup-dir.restore.4.bsr -v /dev/nst0 /tmp

and here's the error message I got:

bextract: match.c:249 add_fname_to_include prefix=0 gzip=0 fname=/
bextract: butil.c:283 Using device: "/dev/nst0" for reading.
31-May 15:51 bextract: Invalid slot=0 defined, cannot autoload Volume.
31-May 15:51 bextract: 3301 Issuing autochanger "loaded? drive 0" command.
31-May 15:51 bextract: 3302 Autochanger "loaded? drive 0", result is Slot 1.
31-May 15:51 bextract: Ready to read from volume "24" on device 
"Drive-1" (/dev/nst0).
31-May 15:51 bextract: Forward spacing Volume "24" to file:block 97:0.
bextract: -rw-r-   1 root bacula 965 2007-05-31 
15:33:56  /tmp/etc/bacula/bacula-fd.conf
31-May 15:52 bextract: bextract Error: Unknown stream=20 ignored. This 
shouldn't happen!
31-May 15:52 bextract: bextract Error: Unknown stream=20 ignored. This 
shouldn't happen!
1 files restored.

I've got the pem file of the client copied on this machine, but I don't 
know how I'm supposed to get bextract to use it. Is it even possible to 
restore encrypted data with bextract? If not, what our my options if I 
don't have access to the catalog?

Thank you.

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bextract an encrypted file.

2007-06-01 Thread Emery Guevremont

Michel Meyers wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Emery Guevremont wrote:
  

Hello,

I'm in the middle of trying to bextract a file that's encrypted on a
volume. Here's the command I ran:


[...]
  

I've got the pem file of the client copied on this machine, but I don't
know how I'm supposed to get bextract to use it. Is it even possible to
restore encrypted data with bextract? If not, what our my options if I
don't have access to the catalog?



- From the manual (http://www.bacula.org/rel-manual/Data_Encryption.html):

The implementation does not encrypt file metadata such as file path
names, permissions, and ownership. Extended attributes are also
currently not encrypted. However, Mac OS X resource forks are encrypted.

- ---
Maybe you can use bscan to populate a 'dummy catalog' and then recover
your real catalog backup using that?
  

I know I can use bscan, but I was hoping I can save a step and just use
bextract. I thought I had seen on this list that bextract supports
encrypted files, but I could be wrong.

Greetings,
   Michel
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)

iD8DBQFGYDI02Vs+MkscAyURAjoOAJ9pwrxxBrgtyiDW5rtBdMQP0pyTMwCeJnzb
3nsHhcG6UmmN5oA6vmBxxes=
=wFeA
-END PGP SIGNATURE-


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
  



begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
tel;cell:514-513-3416
x-mozilla-html:FALSE
version:2.1
end:vcard

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] bextract an encrypted file.

2007-06-01 Thread Emery Guevremont

Hello,

I'm in the middle of trying to bextract a file that's encrypted on a
volume. Here's the command I ran:

bextract -V 24 -b /var/bacula/backup-dir.restore.4.bsr -v /dev/nst0 /tmp

and here's the error message I got:

bextract: match.c:249 add_fname_to_include prefix=0 gzip=0 fname=/
bextract: butil.c:283 Using device: "/dev/nst0" for reading.
31-May 15:51 bextract: Invalid slot=0 defined, cannot autoload Volume.
31-May 15:51 bextract: 3301 Issuing autochanger "loaded? drive 0" command.
31-May 15:51 bextract: 3302 Autochanger "loaded? drive 0", result is Slot 1.
31-May 15:51 bextract: Ready to read from volume "24" on device
"Drive-1" (/dev/nst0).
31-May 15:51 bextract: Forward spacing Volume "24" to file:block 97:0.
bextract: -rw-r-   1 root bacula 965 2007-05-31
15:33:56  /tmp/etc/bacula/bacula-fd.conf
31-May 15:52 bextract: bextract Error: Unknown stream=20 ignored. This
shouldn't happen!
31-May 15:52 bextract: bextract Error: Unknown stream=20 ignored. This
shouldn't happen!
1 files restored.

I've got the pem file of the client copied on this machine, but I don't
know how I'm supposed to get bextract to use it. Is it even possible to
restore encrypted data with bextract? If not, what our my options if I
don't have access to the catalog?

Thank you.

begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
tel;cell:514-513-3416
x-mozilla-html:FALSE
version:2.1
end:vcard

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] exchange backup

2007-05-24 Thread Emery Guevremont
I have a batch file that bacula executes before which uses the ntbackup 
utility to dump my registry and exchange information (including 
mailbox). Afterwards, bacula backs up the dumps. If you launch the 
ntbackup utlity, you'll there's something special added to allows you to 
dump the exchange info without stopping the exchange service.


Francisco Garcia Perez wrote:

Hello,
I want know if I can do a MS Exchange backup with bacula and what is the 
procedure to make this.


Thank you




-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/




___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
tel;cell:514-513-3416
x-mozilla-html:FALSE
version:2.1
end:vcard

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Problem: New tape is seen as read-only by bacula.

2007-05-24 Thread Emery Guevremont
This isn't a problem for me anymore, just something I wanted to document 
on this mailing for others to see.


Back in november 2006, our company upgraded our Quantum AutoLoader to 
the new Quantum SuperLoader 2 which uses SDLT-600 tapes. Ever since we 
got this new unit, 25% of the newly purchased SDLT-600 tapes refused to 
work with bacula. I tried replacing the AutoLoader 3 times, but the 
problem persisted. Usually I was able to label all my new tapes, but 
when it came time for bacula to actually write something to them, it 
refused, saying the tape was in read-only, or that it didn't contain any 
label (even though I had labelled the tape).


So after a while of just fooling around with the btape utility, I was 
able to fix the "read-only" tapes. In order to get these tapes working, 
I used the btape utility and I ran the rawfill command. It was the only 
command that would work, bfill, test, fill, label, all wouldn't because 
they complained the tape was in read-only (even though it wasn't). With 
the rawfill command, I could see that shortly after starting the 
command, rawfill would  write to the tape, but 5 seconds into the 
process, it seemed to freeze. And then all of the sudden, maybe after a 
couple of minutes, the rawfill would continue. It seemed as if something 
at the beginning of the tape was physically/mechanically blocking the 
writing process and then all of the sudden, the tape continued.


After successfully running the rawfill command for about 5-10 minutes, I 
would cancel it, and at that point I was able to run the test and label 
commands successfully. After running a rawfill, then a test and finally 
the label command, I was able to restart using these "read-only" tapes 
to actually save some backups onto it.
begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
tel;cell:514-513-3416
x-mozilla-html:FALSE
version:2.1
end:vcard

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problems labelling and writing to tape.

2007-04-16 Thread Emery Guevremont



Alan Brown wrote:

On Fri, 13 Apr 2007, Emery Guevremont wrote:

13-Apr 13:54 btape: btape Fatal error: Attempt to write on read-only 
Volume.

Isn't the above clear?
I understand that's what bacula is saying, except the tape isn't set in 
read-only.


You will have the same effect if the userid accessing the tape drive is 
only able to get read-access.


Check ownership and permissions.


I know this isn't causing the problem, because not all the tapes are 
causing this. IMHO I really think the problem is with the tape drive 
itself. Except at this point there's no certain way for me to prove this.


I was just hoping that someone might enlighten me on some other ways to 
debug this, since everyone here has got some experience with all sorts 
of hardware.


Anyway, thanks for the help guys.




-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
tel;cell:514-513-3416
x-mozilla-html:FALSE
version:2.1
end:vcard

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problems labelling and writing to tape.

2007-04-13 Thread Emery Guevremont



Kern Sibbald wrote:

On Friday 13 April 2007 19:58, Emery Guevremont wrote:

Hello everyone,

I've got a problem that's been recurring with some of my tapes. I've got 
a Quantum SuperLoader 3 with several brand new SDLT-600 tapes. Sometimes 
when bacula tries to write to one of these tapes for the first time, it 
fails and the tape's status changes to error. This happens even when 
bacula succesfully labels a tape.


So to investigate this even more, I would load up a problematic tape 
with btape. I ran the commands, readlabel and rectest successfully, but 
I always fail with the command wr and test commands.


What I'm trying to find out is, what's causing this problem? The tapes? 
The tape drive? Bacula? And also what do those errors mean?



Here's the output of some commands:

---
*readlabel
btape: btape.c:419 Volume label read correctly.

Volume Label:
Id: Bacula 1.0 immortal
VerNo : 11
VolName   : CF0063
PrevVolName   :
VolFile   : 0
LabelType : VOL_LABEL
LabelSize : 186
PoolName  : Server
MediaType : SDLT-600
PoolType  : Backup
HostName  : bacula
Date label written: 04-Apr-2007 14:29

---
*rectest
...
btape: btape.c:654 Block 64472 i=64472
btape: btape.c:654 Block 64473 i=64473
btape: btape.c:654 Block 64474 i=64474
btape: btape.c:654 Block 64475 i=64475
btape: btape.c:654 Block 64476 i=64476

---
*status
  Bacula status: file=0 block=0
  Device status: BOT ONLINE IM_REP_EN file=0 block=0
btape: btape.c:1799 Device status: 645. ERR=

---
*cap
Configured device capabilities:
EOF BSR BSF FSR FSF FASTFSF !BSFATEOM EOM REM !RACCESS AUTOMOUNT !LABEL 
!ANONVOLS ALWAYSOPEN MTIOCGET

Device status:
OPENED TAPE LABEL !MALLOC !APPEND !READ !EOT !WEOT !EOF !NEXTVOL !SHORT
Device parameters:
Device name: /dev/nst0
File=0 block=0
Min block=0 Max block=0
Status:
  Bacula status: file=0 block=0
  Device status: BOT ONLINE IM_REP_EN file=0 block=0
btape: btape.c:1799 Device status: 645. ERR=

---
*wr
13-Apr 13:54 btape: btape Fatal error: Attempt to write on read-only Volume.


Isn't the above clear?


:-)

I understand that's what bacula is saying, except the tape isn't set in 
read-only. And wouldn't bacula not be able to write a label on a 
read-only tape?






btape: btape.c:1568 Error writing block to device.

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

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

This is an *essential* feature ...

btape: btape.c:817 Error writing record to block.



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

begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
tel;cell:514-513-3416
x-mozilla-html:FALSE
version:2.1
end:vcard

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


[Bacula-users] Problems labelling and writing to tape.

2007-04-13 Thread Emery Guevremont

Hello everyone,

I've got a problem that's been recurring with some of my tapes. I've got 
a Quantum SuperLoader 3 with several brand new SDLT-600 tapes. Sometimes 
when bacula tries to write to one of these tapes for the first time, it 
fails and the tape's status changes to error. This happens even when 
bacula succesfully labels a tape.


So to investigate this even more, I would load up a problematic tape 
with btape. I ran the commands, readlabel and rectest successfully, but 
I always fail with the command wr and test commands.


What I'm trying to find out is, what's causing this problem? The tapes? 
The tape drive? Bacula? And also what do those errors mean?



Here's the output of some commands:

---
*readlabel
btape: btape.c:419 Volume label read correctly.

Volume Label:
Id: Bacula 1.0 immortal
VerNo : 11
VolName   : CF0063
PrevVolName   :
VolFile   : 0
LabelType : VOL_LABEL
LabelSize : 186
PoolName  : Server
MediaType : SDLT-600
PoolType  : Backup
HostName  : bacula
Date label written: 04-Apr-2007 14:29

---
*rectest
...
btape: btape.c:654 Block 64472 i=64472
btape: btape.c:654 Block 64473 i=64473
btape: btape.c:654 Block 64474 i=64474
btape: btape.c:654 Block 64475 i=64475
btape: btape.c:654 Block 64476 i=64476

---
*status
 Bacula status: file=0 block=0
 Device status: BOT ONLINE IM_REP_EN file=0 block=0
btape: btape.c:1799 Device status: 645. ERR=

---
*cap
Configured device capabilities:
EOF BSR BSF FSR FSF FASTFSF !BSFATEOM EOM REM !RACCESS AUTOMOUNT !LABEL 
!ANONVOLS ALWAYSOPEN MTIOCGET

Device status:
OPENED TAPE LABEL !MALLOC !APPEND !READ !EOT !WEOT !EOF !NEXTVOL !SHORT
Device parameters:
Device name: /dev/nst0
File=0 block=0
Min block=0 Max block=0
Status:
 Bacula status: file=0 block=0
 Device status: BOT ONLINE IM_REP_EN file=0 block=0
btape: btape.c:1799 Device status: 645. ERR=

---
*wr
13-Apr 13:54 btape: btape Fatal error: Attempt to write on read-only Volume.
btape: btape.c:1568 Error writing block to device.

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

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

This is an *essential* feature ...

btape: btape.c:817 Error writing record to block.
begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
tel;cell:514-513-3416
x-mozilla-html:FALSE
version:2.1
end:vcard

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


[Bacula-users] Need help: Forcing bextract to not rewind the tape before scanning.

2007-03-22 Thread Emery Guevremont
I'm trying to restore data from a tape and I'm getting this error 
message at file id 27:


21-Mar 16:51 bextract: ERROR TERMINATION at bextract.c:289
Record header file index 562664 not equal record index 0

Now I know there's a lot more data on this tape. I also used btape to 
fsf to file 28, and I was able to successfully read a single record.


My question is, what does that error message mean and is there a way for 
me to fsf to say file 28 and force bextract to start scanning from file 
28 instead of rewinding each time and start scanning from the beginning 
of the tape?


Thank you.


Here's the full output of the bextract I'm trying to do with the command:

bextract -v -i ./inc.tmp SDLT-320 -V "38" /tmp/

bextract: butil.c:269 Using device: "SDLT-320" for reading.
21-Mar 16:31 bextract: Ready to read from volume "38" on device 
"SDLT-320" (/dev/nst0).

bextract: acquire.c:200 jcr->dcr=0x80ae8a8
21-Mar 16:32 bextract: End of file 1  on device "SDLT-320" (/dev/nst0), 
Volume "38"
21-Mar 16:32 bextract: End of file 2  on device "SDLT-320" (/dev/nst0), 
Volume "38"
21-Mar 16:33 bextract: End of file 3  on device "SDLT-320" (/dev/nst0), 
Volume "38"
21-Mar 16:33 bextract: End of file 4  on device "SDLT-320" (/dev/nst0), 
Volume "38"
21-Mar 16:34 bextract: End of file 5  on device "SDLT-320" (/dev/nst0), 
Volume "38"
21-Mar 16:34 bextract: End of file 6  on device "SDLT-320" (/dev/nst0), 
Volume "38"
21-Mar 16:35 bextract: End of file 7  on device "SDLT-320" (/dev/nst0), 
Volume "38"
21-Mar 16:36 bextract: End of file 8  on device "SDLT-320" (/dev/nst0), 
Volume "38"
21-Mar 16:36 bextract: End of file 9  on device "SDLT-320" (/dev/nst0), 
Volume "38"
21-Mar 16:37 bextract: End of file 10  on device "SDLT-320" (/dev/nst0), 
Volume "38"
21-Mar 16:37 bextract: End of file 11  on device "SDLT-320" (/dev/nst0), 
Volume "38"
21-Mar 16:38 bextract: End of file 12  on device "SDLT-320" (/dev/nst0), 
Volume "38"
21-Mar 16:38 bextract: End of file 13  on device "SDLT-320" (/dev/nst0), 
Volume "38"
21-Mar 16:39 bextract: End of file 14  on device "SDLT-320" (/dev/nst0), 
Volume "38"
21-Mar 16:40 bextract: End of file 15  on device "SDLT-320" (/dev/nst0), 
Volume "38"
21-Mar 16:41 bextract: End of file 16  on device "SDLT-320" (/dev/nst0), 
Volume "38"
21-Mar 16:42 bextract: End of file 17  on device "SDLT-320" (/dev/nst0), 
Volume "38"
21-Mar 16:43 bextract: End of file 18  on device "SDLT-320" (/dev/nst0), 
Volume "38"
21-Mar 16:44 bextract: End of file 19  on device "SDLT-320" (/dev/nst0), 
Volume "38"
21-Mar 16:45 bextract: End of file 20  on device "SDLT-320" (/dev/nst0), 
Volume "38"
21-Mar 16:46 bextract: End of file 21  on device "SDLT-320" (/dev/nst0), 
Volume "38"
21-Mar 16:46 bextract: End of file 22  on device "SDLT-320" (/dev/nst0), 
Volume "38"
21-Mar 16:47 bextract: End of file 23  on device "SDLT-320" (/dev/nst0), 
Volume "38"
21-Mar 16:48 bextract: End of file 24  on device "SDLT-320" (/dev/nst0), 
Volume "38"
21-Mar 16:48 bextract: End of file 25  on device "SDLT-320" (/dev/nst0), 
Volume "38"
21-Mar 16:49 bextract: End of file 26  on device "SDLT-320" (/dev/nst0), 
Volume "38"
21-Mar 16:50 bextract: End of file 27  on device "SDLT-320" (/dev/nst0), 
Volume "38"

21-Mar 16:51 bextract: ERROR TERMINATION at bextract.c:289
Record header file index 562664 not equal record index 0
begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
tel;cell:514-513-3416
x-mozilla-html:FALSE
version:2.1
end:vcard

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


Re: [Bacula-users] reusing tapes in Error-State

2007-03-05 Thread Emery Guevremont

[EMAIL PROTECTED] wrote:

On Sun, Mar 04, 2007 at 10:28:29PM +0100, Arno Lehmann wrote:

On 3/3/2007 12:24 PM, Christoph Litauer wrote:

a few of my autochanger tapes have VolStatus: Error. This is because the
number of files in the catalogue didn't match the number of files on the
tape. I don't know why this happend, is it a known bug of version 1.38.9?

Not a known bug, I think.


I'm also seeing this using Bacula 2.0.1 on RHEL-4 with a jukebox
holding two LTO-3 drives.  It's an intermittent problem that I haven't
been able to reproduce reliably, so I haven't opened a bug report on
it yet.


Usually these errors happen in two situations:


Let me add a third: when a job terminates with a "Fatal" error (those
with a job status code of 'f'), rather than the more common "Error"
error (those with a job status of 'E').

Here's my situation: I'm backing up both servers and laptops using the
same hardware and software, but with different tape pools.  The
servers never encounter this failure condition; it happens to the
laptops about once every week or two.

After watching the situation for a while, it seems that the failure
pattern is that these file mismatch errors always occur after a fatal
client error, which in turn is caused when a job begins, writes some
data to tape, and is then unable to continue because the client
machine has been shut down or taken off the network.

When the tape is not properly "finished" by Bacula, for example because 
of a catalog, SD or DIR crash, or when you restart your Bacula server 
while jobs are running. Also, when the tape fills and the final EOF 
can't be written to tape that might cause this state.


The other possibility is an improper setting of the device parameters. 
These would be detected by btapes 'test' command most of the time.


When you change these settings and continue to use tapes started with 
different settings I *guess* the file count mismatch could happen, too.



Nevertheless: I need to reuse these errored tapes. Are they
automatically reused after alle jobs are purged? Is an errored tape
still used in recovers? How can I list all jobs on an errored tape?
Most important things first: You can use the query command to list all 
jobs on any volume.


These tapes are not automaticall reused (recycled), and as far as I know 
they are also not used for restores.


For restores, they should be useable, I've encountered that problem a 
while ago. The trick is to use the mt and dd command, to copy over the 
info from the bad tape to another and skip the missing files. With the 
help from this mailling list, here's what I did:


***

Got it!

I did what you suggested. I took a blank tape and dd onto it the files I 
was interested in. Here's what I exactly did on the command line, then 
I'll explain:


--
# Device /dev/nst0 -> Original Tape
# Device /dev/nst2 -> Blank Tape

mt -f /dev/nst0 rewind
mt -f /dev/nst2 rewind
dd if=/dev/nst0 bs=64512 of=/dev/nst2 # Copy of file 0
dd if=/dev/nst0 bs=64512 of=/dev/nst2 # Copy of file 1
dd if=/dev/nst0 bs=64512 of=/dev/nst2 # Copy of file 2
mt -f /dev/nst0 rewind
mt -f /dev/nst0 fsf 208
dd if=/dev/nst0 bs=64512 of=/dev/nst2 # Copy of file 208
dd if=/dev/nst0 bs=64512 of=/dev/nst2 # Copy of file 209
dd if=/dev/nst0 bs=64512 of=/dev/nst2 # Copy of file 210
dd if=/dev/nst0 bs=64512 of=/dev/nst2 # Copy of file 211
dd if=/dev/nst0 bs=64512 of=/dev/nst2 # Copy of file 212
dd if=/dev/nst0 bs=64512 of=/dev/nst2 # Copy of file 213
mt -f /dev/nst2 rewind
bls -v -V "GKN079" AutoLoader > /tmp/files

--

I had to copy the first file (at least), but to make sure I copied the 
first 3, which contained the bacula label. Then using the mt command I 
positioned the tape to file 208 and using the dd command I copied files 
208 through 213. I ran the bls command to view the contents, and 
everything was there. I also successfully restored the files I needed 
and their integrity checked out.


BTW how did you know to use the "bs=64512" option with the dd command? 
Where did you get the 64512 size from?


BTW thanks for the help Martin.

**



If the error is only at the end of the tape data (which would be the 
most usual situation) you can simply update their status to used and 
they will be used for restores and recycling. If you're unsure, compare 
the output of bls with what the catalog tells you.


In the job reports for these tapes, you should usually find when this 
error occured. Most of the time, I find that when a tape is freshly 
loaded and positioned to the end of data, Baculas sanity checking finds 
the problem and marks the tape to be erroneous.


In these cases, I think it's safe to set the status to 'Used'.

If you encounter these problems regularly, I'd assume your setup is 
somehow malfunctioning. If, like I do, you run lots of tests of beta 
versions, or have hardware-related problems, you'll find many of these 
errors but they won't mean anything unexpected :-)


Arno



Thanks a lot 

Re: [Bacula-users] Device "AutoLoader" has 0 slots.

2006-12-05 Thread Emery Guevremont

I got around the problem by starting the bacula-sd process as root.

Arno Lehmann wrote:

Hi,

I don't recall if this was discussed on the mailing list any further - 
which I'd suggest - but if this is not a simple permissions problem it 
might be time to take a really close look at what mtx-changer does, and 
why it doesn't recognize the number of slots.


Simply check what it does with mtx, and see what mtx outputs in such a 
situation.


Arno

On 11/20/2006 11:03 PM, Emery Guevremont wrote:



Arno Lehmann wrote:


Hi,

On 11/20/2006 8:13 PM, Emery Guevremont wrote:


I have a problem and I need your help.

Last week I upgraded our quantum superloader to a superloader 3. For 
the first few days everything worked well. But since this weekend, 
bacula can't seem to properly control the autoloader. Here's the 
error I get when I try to update the AutoLoader's slots:


Connecting to Storage daemon AutoLoader at bacula:9103 ...
3306 Issuing autochanger "slots" command.
Device "AutoLoader" has 0 slots.



Ah. Permssions probably.

I suppose that your autoloader has a new device node now which can't 
be accessed by the SD. Assuming the SD is not running as root, ...



No slots in changer to scan.

Yet I can do this command: ./mtx-changer /dev/sg3 slots AutoLoader 0
and get 16 as the number of slots. This is what I get after doing 
this command: ./mtx-changer /dev/sg3 list AutoLoader 0


2:0001
3:0002
4:0003
5:0004
6:0005
7:0006
8:0007
9:0008
10:0009
11:0010
12:0011
13:0012
14:0013
15:0014
16:0015
1:



... but you are logged in as root.

What happens when you log in as the Bacula user and issue 
'mtx-changer /dev/sg3 slots'?



I did it as the user bacula and root, and got the same result for both.

ls -la gives
crw-rw  1 root disk 21, 1 Nov 20 07:02 /dev/sg1

and

id bacula gives
uid=100(bacula) gid=6(disk) groups=6(disk),102(bacula)

Something else is causing my permissions problem.



Arno

So at first, it looks like the mtx-changer properly gets the output 
but not bacula through the bconsole shell.


I also get these errors in my log when the unit is trying to perform 
backups:


19-Nov 21:11 bacula-sd: 3301 Issuing autochanger "loaded drive 0" 
command.
19-Nov 21:11 bacula-sd: 3991 Bad autochanger "loaded drive 0" 
command: ERR=Permission denied.
19-Nov 21:11 bacula-sd: 3301 Issuing autochanger "loaded drive 0" 
command.
19-Nov 21:11 bacula-sd: 3991 Bad autochanger "loaded drive 0" 
command: ERR=Permission denied.
19-Nov 21:11 bacula-sd: 3304 Issuing autochanger "load slot 1, drive 
0" command.
19-Nov 21:11 bacula-sd: Server1-sys.2006-11-19_20.05.24 Fatal error: 
3992 Bad autochanger "load slot 1, drive 0": ERR=Permission denied.


What's going on? How can I fix this?


 



- 


Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to 
share your

opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV 




 



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users





begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
tel;cell:514-513-3416
x-mozilla-html:FALSE
version:2.1
end:vcard

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


[Bacula-users] Need help to restore with bextract.

2006-11-27 Thread Emery Guevremont
I need to restore a directory from a tape using bextract. The hard part 
is that I need to extract the directory's content from a specific date. 
Is it possible? How would you suggest I do this if I don't access to the 
catalog?
begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
tel;cell:514-513-3416
x-mozilla-html:FALSE
version:2.1
end:vcard

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


Re: [Bacula-users] Advantages with spooling.

2006-07-27 Thread Emery Guevremont


Timo Neuvonen wrote:

I was wondering if someone could give a quick run down of the
advantages/disadvantages of spooling the data to disk before writing it
to tape, and the advantages/disadvantages of NOT spooling.


At least, spooling should guarantee that your tape drive is able to run at
full speed continuosly. If for some reason your system isn't able to supply
data to the tape drive at fast enough rate, the drive keeps
stopping-repositioning-writing-stopping again, which then takes extra time
and causes extra wear to the drive and the tape.


How sure are you that it continuously writes to tape. On my setup I put 
a max spooling size of 10 Gigs, and everytime it reaches the 10 gigs, 
the spooling seems to stop. Bacula seems to empty the spool by writing 
it to tape. Once the spool has been emptied, the backup process (the 
transfering over the network the data) continues again until the spool 
reaches once again 10G.


In my case I'm not sure I have the best setup possible for speed.


 Also, if you need to

manually change tapes during the backup, the data can be spooled nonstop,
resulting in more consistent set of files (no time gap due to waiting for
the tape change, that could take for hours sometimes)

On the negative side of spooling, you'll need a disk volume big enough where
to spool, and a slightly more complicated configuration.

--
TiN



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

begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
tel;cell:514-513-3416
x-mozilla-html:FALSE
version:2.1
end:vcard

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


[Bacula-users] Advantages with spooling.

2006-07-26 Thread Emery Guevremont
I was wondering if someone could give a quick run down of the 
advantages/disadvantages of spooling the data to disk before writing it 
to tape, and the advantages/disadvantages of NOT spooling.


i.e. which is faster, which is more reliable...
begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
tel;cell:514-513-3416
x-mozilla-html:FALSE
version:2.1
end:vcard

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


Re: [Bacula-users] Impossible Huge Backup

2006-07-19 Thread Emery Guevremont
Or worst, maybe you have some "mount bind" which could cause bacula to 
recursively backup to infinity.


Joshua J. Kugler wrote:

On Wednesday 19 July 2006 00:22, Gabriele Bulfon wrote:

Hello,
I have another strange problem.
I have a machine running the client fd, the sd and dir are running on
another server machine. Last week I got bacula errors, because the LTO tape
was run out of space. I checked all the machines, and the sum of the hard
disk spaces to be backed up was not higher than 180Gb. Then I looked at the
bacula reports, and I found one machine showing 160Gb of SD Bytes Written.
I checked again that machine (a Solaris 8 sparc): two disks for a
physical
total of 60Gb.
Then I dumped out with bconsole the list of files backed up (list files
jobid=xxx) on a text file, and I verified there was no replication of
files. Last but not least, the following days I noticed that the reports
was showing a growing size: after 4 days the SD Bytes Written is about
240Gb!!! How can I check what's happening?!


First thing that came to mind: does this client have other systems mounted via 
NFS or SMB under their home directory (or other directories)?  You might be 
backing up directories exported from other servers.


j

begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
tel;cell:514-513-3416
x-mozilla-html:FALSE
version:2.1
end:vcard

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


Re: [Bacula-users] RESOLVED: my tapes are being automatically relabeled with wrong label.

2006-07-11 Thread Emery Guevremont
So I finally found what was causing all the problems. It was the drive 
that had gone bad. Once I replaced the whole unit, including the 
autoloader, Bacula was able to continue to perform backups without 
having the tapes being relabeled.


So thx everyone for your help. It was much appreciated.

Kern Sibbald wrote:

On Thursday 22 June 2006 20:04, Emery Guevremont wrote:

Well I finished running dbcheck in fix mode. It deleted a bunch of
fileids, but the problem is still there. But here's what I've been doing
to test it out.

Using btape, I use the label command to put the same label as what the
barcode reads. After I restart bacula-sd, and I run a job to use one of
the tapes (33). I noticed in the debugging info, that bacula will
label the pre-label of the tape, and it preforms the backup with no
problem.

Now if I restart bacula-dir and bacula-sd and run another backup to use
the other tape (22). Bacula again labels the prelabeled tape and
performs the backup with no problem.

Where the problem occurs is when I start 2 jobs, where each job use a
seperate tape(because the tape are in different pools and the jobs use
different pools of tape). Let's say the first job uses tape 22. The
first job will always complete properly, but as soon as the second job,
which uses tape 33 starts, I get this message:

22-Jun 13:49 backup-sd: 3301 Issuing autochanger "loaded drive 0" command.
22-Jun 13:49 backup-sd: 3302 Autochanger "loaded drive 0", result is Slot
1. 22-Jun 13:49 backup-sd: Backup-sys.2006-06-22_13.45.47 Warning: Director
wanted Volume "33" for device "Drive-1" (/dev/nst2).
 Current Volume "22" not acceptable because:
 1998 Volume "22" status is Append, not in Pool.


Yes, and what happens after that.  That is a normal "Warning" message if 
Bacula finds the wrong tape mounted.




So this means Bacula relabeled the tape 33 to 22 without even
logging about it. 


I see no evidence whatsoever that Bacula relabeled any tape.  If that is your 
conclusion, then all I can say is "good luck in your debugging" because I 
doubt you will get very far if you continue to make such assumptions.


What is much more likely is that either you or Bacula is confused about what 
Volume is in what drive (could be a configuration issue or perhaps a bug).


Whats going on!!! How could I debug this? 


Arno Lehmann wrote:

Hi,

On 6/21/2006 8:19 PM, Emery Guevremont wrote:
...


Ya I updated my config for bacula-sd.conf, but it didn't change
anything.

BTW, I'm running dbcheck in fix mode, and it's fixing a lot of things,
but I still don't see how that's gonna fix my problem.

Here's the new bacula-sd.conf:

Autochanger {
  Name = "AutoLoader"
  Device = Drive-1
  Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg1
}

Device {
  Name = Drive-1
  Drive Index = 0
  Media Type = SDLT-320
  Archive Device = /dev/nst2# Normal archive device
  Autochanger = yes
  Autoselect = yes
  LabelMedia = no;
  AutomaticMount = yes;
  AlwaysOpen = yes;
  Spool Directory = /vservers/tmp
  Maximum Spool Size = 100
#  Mount Anonymous Volumes = no;
}

I don't have any other ideas now but to try and run a very simple test
setup and create lots of debug output. Unfortunately, I never tried
automatic volume labeling with a tape drive, so I have no idea how that
should behave.

I'd suggest to start with two small sets of tapes and, with a clean
catalog and empty tapes start with 'update slots' and 'label barcodes'.

Perhaps this allows someone to see what's going wrong in your setup.

Arno


begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
tel;cell:514-513-3416
x-mozilla-html:FALSE
version:2.1
end:vcard


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem: my tapes are being automatically relabeled with wrong label.

2006-06-22 Thread Emery Guevremont
Well I finished running dbcheck in fix mode. It deleted a bunch of 
fileids, but the problem is still there. But here's what I've been doing 
to test it out.


Using btape, I use the label command to put the same label as what the 
barcode reads. After I restart bacula-sd, and I run a job to use one of 
the tapes (33). I noticed in the debugging info, that bacula will 
label the pre-label of the tape, and it preforms the backup with no problem.


Now if I restart bacula-dir and bacula-sd and run another backup to use 
the other tape (22). Bacula again labels the prelabeled tape and 
performs the backup with no problem.


Where the problem occurs is when I start 2 jobs, where each job use a 
seperate tape(because the tape are in different pools and the jobs use 
different pools of tape). Let's say the first job uses tape 22. The 
first job will always complete properly, but as soon as the second job, 
which uses tape 33 starts, I get this message:


22-Jun 13:49 backup-sd: 3301 Issuing autochanger "loaded drive 0" command.
22-Jun 13:49 backup-sd: 3302 Autochanger "loaded drive 0", result is Slot 1.
22-Jun 13:49 backup-sd: Backup-sys.2006-06-22_13.45.47 Warning: Director 
wanted Volume "33" for device "Drive-1" (/dev/nst2).

Current Volume "22" not acceptable because:
1998 Volume "22" status is Append, not in Pool.


So this means Bacula relabeled the tape 33 to 22 without even 
logging about it. Whats going on!!! How could I debug this?


Arno Lehmann wrote:

Hi,

On 6/21/2006 8:19 PM, Emery Guevremont wrote:
...

Ya I updated my config for bacula-sd.conf, but it didn't change anything.

BTW, I'm running dbcheck in fix mode, and it's fixing a lot of things, 
but I still don't see how that's gonna fix my problem.


Here's the new bacula-sd.conf:

Autochanger {
  Name = "AutoLoader"
  Device = Drive-1
  Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg1
}

Device {
  Name = Drive-1
  Drive Index = 0
  Media Type = SDLT-320
  Archive Device = /dev/nst2# Normal archive device
  Autochanger = yes
  Autoselect = yes
  LabelMedia = no;
  AutomaticMount = yes;
  AlwaysOpen = yes;
  Spool Directory = /vservers/tmp
  Maximum Spool Size = 100
#  Mount Anonymous Volumes = no;
}


I don't have any other ideas now but to try and run a very simple test 
setup and create lots of debug output. Unfortunately, I never tried 
automatic volume labeling with a tape drive, so I have no idea how that 
should behave.


I'd suggest to start with two small sets of tapes and, with a clean 
catalog and empty tapes start with 'update slots' and 'label barcodes'.


Perhaps this allows someone to see what's going wrong in your setup.

Arno


begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
tel;cell:514-513-3416
x-mozilla-html:FALSE
version:2.1
end:vcard

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem: my tapes are being automatically relabeled with wrong label.

2006-06-21 Thread Emery Guevremont



Bill Moran wrote:

In response to Arno Lehmann <[EMAIL PROTECTED]>:


Hi,

On 6/20/2006 7:51 PM, Bill Moran wrote:

In response to Emery Guevremont <[EMAIL PROTECTED]>:


I just upgraded to bacula 1.38.10 and the same problem keeps on 
happening. Please and can someone help me out.

... Here's the config for my bacula-sd.conf file.

Device {
 Name = "AutoLoader"
 Media Type = SDLT-320
 Archive Device = /dev/nst2# Normal archive device
 Changer Device = /dev/sg1 # Generic SCSI device name
 Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
 Autochanger = yes
 LabelMedia = no;
 AutomaticMount = yes;
 AlwaysOpen = yes;
 Spool Directory = /vservers/tmp
 Maximum Spool Size = 100
}
You're running 1.38.something but it seems as though you use your old 
configuration... try implementing the autochanger section in 
bacula-sd.conf, comment out the changer related stuff in the actual 
device sections, and see if that fixes your problem.



I don't see anything wrong with that.

Hmm. Perhaps I did :-)


Yes, you did.  I didn't even notice that.


Ya I updated my config for bacula-sd.conf, but it didn't change anything.

BTW, I'm running dbcheck in fix mode, and it's fixing a lot of things, 
but I still don't see how that's gonna fix my problem.


Here's the new bacula-sd.conf:

Autochanger {
  Name = "AutoLoader"
  Device = Drive-1
  Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg1
}

Device {
  Name = Drive-1
  Drive Index = 0
  Media Type = SDLT-320
  Archive Device = /dev/nst2# Normal archive device
  Autochanger = yes
  Autoselect = yes
  LabelMedia = no;
  AutomaticMount = yes;
  AlwaysOpen = yes;
  Spool Directory = /vservers/tmp
  Maximum Spool Size = 100
#  Mount Anonymous Volumes = no;
}
begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
tel;cell:514-513-3416
x-mozilla-html:FALSE
version:2.1
end:vcard

All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem: my tapes are being automatically relabeled with wrong label.

2006-06-20 Thread Emery Guevremont



Bill Moran wrote:

In response to Emery Guevremont <[EMAIL PROTECTED]>:

I just upgraded to bacula 1.38.10 and the same problem keeps on 
happening. Please and can someone help me out.


Have you run dbcheck?  That's my new solution to everything.


dbcheck found nothing unusual.



Have you tried downgrading to 1.3.whateverusedtowork to see if the
problem goes away?


Well I upgraded, hoping it won't automagically solve the problem but it 
didn't.





Emery Guevremont wrote:

This started about a month ago.

I have a backup unit with an autoloader that carries 8 tapes, in 2 
seperate pools. There's also a barcode reader that reads the labels on 
my tape.


My problem is that, everytime the tape changer changes tapes, bacula, 
for some reason, decides to relabel the newly loaded tape with the label 
of the previously loaded tape. This causes a problem, because everything 
gets corrupted and the labels the barcode reader reads don't match 
anymore with the label written on the tape. And obviously no backups get 
done. Here's the config for my bacula-sd.conf file.


Device {
  Name = "AutoLoader"
  Media Type = SDLT-320
  Archive Device = /dev/nst2# Normal archive device
  Changer Device = /dev/sg1 # Generic SCSI device name
  Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
  Autochanger = yes
  LabelMedia = no;
  AutomaticMount = yes;
  AlwaysOpen = yes;
  Spool Directory = /vservers/tmp
  Maximum Spool Size = 100
}


I don't see anything wrong with that.


me neither.



I'm running version 1.34.6 and have been using the same tapes and 
autochanger since october of 2004. I haven't changed anything in my 
config files for months, but for some strange reason this started 
happening. Oh and this is the error message I get afterwards:


Not much help here.  If this automagic relabling is happening as you
describe, the log output that you attached is all symptoms occurring
after the problem.  Can you get log data of the actual mis-labeling?
If not, that's going to be your first chore, to catch Bacula in the
act and get logs of it doing this mis-labeling.



I haven't found anything about the relabeling in the log files. So well 
else can I do to debug this situation.
begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
tel;cell:514-513-3416
x-mozilla-html:FALSE
version:2.1
end:vcard

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem: my tapes are being automatically relabeled with wrong label.

2006-06-20 Thread Emery Guevremont
I just upgraded to bacula 1.38.10 and the same problem keeps on 
happening. Please and can someone help me out.


Emery Guevremont wrote:

This started about a month ago.

I have a backup unit with an autoloader that carries 8 tapes, in 2 
seperate pools. There's also a barcode reader that reads the labels on 
my tape.


My problem is that, everytime the tape changer changes tapes, bacula, 
for some reason, decides to relabel the newly loaded tape with the label 
of the previously loaded tape. This causes a problem, because everything 
gets corrupted and the labels the barcode reader reads don't match 
anymore with the label written on the tape. And obviously no backups get 
done. Here's the config for my bacula-sd.conf file.


Device {
  Name = "AutoLoader"
  Media Type = SDLT-320
  Archive Device = /dev/nst2# Normal archive device
  Changer Device = /dev/sg1 # Generic SCSI device name
  Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
  Autochanger = yes
  LabelMedia = no;
  AutomaticMount = yes;
  AlwaysOpen = yes;
  Spool Directory = /vservers/tmp
  Maximum Spool Size = 100
}

I'm running version 1.34.6 and have been using the same tapes and 
autochanger since october of 2004. I haven't changed anything in my 
config files for months, but for some strange reason this started 
happening. Oh and this is the error message I get afterwards:


backup-dir: Start Backup JobId 32414, Job=server1-data.2006-06-19_10.37.15
mailmaitre-fd: Since time adjusted by 6 seconds.
backup-sd: 3301 Issuing autochanger "loaded drive 0" command.
backup-sd: 3302 Autochanger "loaded drive 0", result is Slot 2.
backup-sd: 3303 Issuing autochanger "unload slot 2, drive 0" command.
backup-sd: 3304 Issuing autochanger "load slot 5, drive 0" command.
backup-sd: 3305 Autochanger "load slot 5, drive 0", status is OK.
backup-sd: server1-data.2006-06-19_10.37.15 Warning: Director wanted 
Volume "05".

Current Volume "33" not acceptable because:
1998 Volume "33" status is Append, not in Pool.
backup-sd: 3301 Issuing autochanger "loaded drive 0" command.
backup-sd: 3302 Autochanger "loaded drive 0", result is Slot 5.
backup-sd: server1-data.2006-06-19_10.37.15 Warning: Director wanted 
Volume "05".

Current Volume "33" not acceptable because:
1998 Volume "33" status is Append, not in Pool.
backup-sd: 3301 Issuing autochanger "loaded drive 0" command.
backup-sd: 3302 Autochanger "loaded drive 0", result is Slot 5.
backup-sd: server1-data.2006-06-19_10.37.15 Warning: Director wanted 
Volume "05".

Current Volume "33" not acceptable because:
1998 Volume "33" status is Append, not in Pool.
backup-sd: 3301 Issuing autochanger "loaded drive 0" command.
backup-sd: 3302 Autochanger "loaded drive 0", result is Slot 5.
backup-sd: server1-data.2006-06-19_10.37.15 Warning: Director wanted 
Volume "05".

Current Volume "33" not acceptable because:
1998 Volume "33" status is Append, not in Pool.
backup-sd: 3301 Issuing autochanger "loaded drive 0" command.
backup-sd: 3302 Autochanger "loaded drive 0", result is Slot 5.
mailmaitre-fd: server1-data.2006-06-19_10.37.15 Fatal error: job.c:1515 
Bad response to Append Data command. Wanted 3000 OK data

, got 3903 Error append data

backup-sd: server-data.2006-06-19_10.37.15 Warning: Director wanted 
Volume "05".

Current Volume "33" not acceptable because:
1998 Volume "33" status is Append, not in Pool.
backup-sd: server1-data.2006-06-19_10.37.15 Fatal error: Too many errors 
trying to mount device /dev/nst2.
backup-dir: server1-data.2006-06-19_10.37.15 Error: Bacula 1.34.6 
(28Jul04): 19-Jun-2006 10:39

JobId:  32414
Job:server1-data.2006-06-19_10.37.15
Backup Level:   Incremental, since=2006-05-19 03:13:27
Client: server1-fd
FileSet:"Data" 2006-04-01 04:05:29
Start time: 19-Jun-2006 10:37
End time:   19-Jun-2006 10:39
FD Files Written:   0
SD Files Written:   0
FD Bytes Written:   0
SD Bytes Written:   0
Rate:   0.0 KB/s
Software Compression:   None
Volume name(s):
Volume Session Id:  2
Volume Session Time:1150727403
Last Volume Bytes:  1
Non-fatal FD errors:0
SD Errors:  0
FD termination status:  Error
SD termination status:  Error
Termination:*** Backup Error ***

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
begin:vcard

[Bacula-users] My tapes are being automatically relabeled with wrong label.

2006-06-19 Thread Emery Guevremont

This started about a month ago.

I have a backup unit with an autoloader that carries 8 tapes, in 2 
seperate pools. There's also a barcode reader that reads the labels on 
my tape.


My problem is that, everytime the tape changer changes tapes, bacula, 
for some reason, decides to relabel the newly loaded tape with the label 
of the previously loaded tape. This causes a problem, because everything 
gets corrupted and the labels the barcode reader reads don't match 
anymore with the label written on the tape. And obviously no backups get 
done. Here's the config for my bacula-sd.conf file.


Device {
  Name = "AutoLoader"
  Media Type = SDLT-320
  Archive Device = /dev/nst2# Normal archive device
  Changer Device = /dev/sg1 # Generic SCSI device name
  Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
  Autochanger = yes
  LabelMedia = no;
  AutomaticMount = yes;
  AlwaysOpen = yes;
  Spool Directory = /vservers/tmp
  Maximum Spool Size = 100
}

I'm running version 1.34.6 and have been using the same tapes and 
autochanger since october of 2004. I haven't changed anything in my 
config files for months, but for some strange reason this started 
happening. Oh and this is the error message I get afterwards:


backup-dir: Start Backup JobId 32414, Job=server1-data.2006-06-19_10.37.15
mailmaitre-fd: Since time adjusted by 6 seconds.
backup-sd: 3301 Issuing autochanger "loaded drive 0" command.
backup-sd: 3302 Autochanger "loaded drive 0", result is Slot 2.
backup-sd: 3303 Issuing autochanger "unload slot 2, drive 0" command.
backup-sd: 3304 Issuing autochanger "load slot 5, drive 0" command.
backup-sd: 3305 Autochanger "load slot 5, drive 0", status is OK.
backup-sd: server1-data.2006-06-19_10.37.15 Warning: Director wanted 
Volume "05".

Current Volume "33" not acceptable because:
1998 Volume "33" status is Append, not in Pool.
backup-sd: 3301 Issuing autochanger "loaded drive 0" command.
backup-sd: 3302 Autochanger "loaded drive 0", result is Slot 5.
backup-sd: server1-data.2006-06-19_10.37.15 Warning: Director wanted 
Volume "05".

Current Volume "33" not acceptable because:
1998 Volume "33" status is Append, not in Pool.
backup-sd: 3301 Issuing autochanger "loaded drive 0" command.
backup-sd: 3302 Autochanger "loaded drive 0", result is Slot 5.
backup-sd: server1-data.2006-06-19_10.37.15 Warning: Director wanted 
Volume "05".

Current Volume "33" not acceptable because:
1998 Volume "33" status is Append, not in Pool.
backup-sd: 3301 Issuing autochanger "loaded drive 0" command.
backup-sd: 3302 Autochanger "loaded drive 0", result is Slot 5.
backup-sd: server1-data.2006-06-19_10.37.15 Warning: Director wanted 
Volume "05".

Current Volume "33" not acceptable because:
1998 Volume "33" status is Append, not in Pool.
backup-sd: 3301 Issuing autochanger "loaded drive 0" command.
backup-sd: 3302 Autochanger "loaded drive 0", result is Slot 5.
mailmaitre-fd: server1-data.2006-06-19_10.37.15 Fatal error: job.c:1515 
Bad response to Append Data command. Wanted 3000 OK data

, got 3903 Error append data

backup-sd: server-data.2006-06-19_10.37.15 Warning: Director wanted 
Volume "05".

Current Volume "33" not acceptable because:
1998 Volume "33" status is Append, not in Pool.
backup-sd: server1-data.2006-06-19_10.37.15 Fatal error: Too many errors 
trying to mount device /dev/nst2.
backup-dir: server1-data.2006-06-19_10.37.15 Error: Bacula 1.34.6 
(28Jul04): 19-Jun-2006 10:39

JobId:  32414
Job:server1-data.2006-06-19_10.37.15
Backup Level:   Incremental, since=2006-05-19 03:13:27
Client: server1-fd
FileSet:"Data" 2006-04-01 04:05:29
Start time: 19-Jun-2006 10:37
End time:   19-Jun-2006 10:39
FD Files Written:   0
SD Files Written:   0
FD Bytes Written:   0
SD Bytes Written:   0
Rate:   0.0 KB/s
Software Compression:   None
Volume name(s):
Volume Session Id:  2
Volume Session Time:1150727403
Last Volume Bytes:  1
Non-fatal FD errors:0
SD Errors:  0
FD termination status:  Error
SD termination status:  Error
Termination:*** Backup Error ***
begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
tel;cell:514-513-3416
x-mozilla-html:FALSE
version:2.1
end:vcard

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] HELP - where are my jobs? - FIXED

2006-04-18 Thread Emery Guevremont

Martin Simmons wrote:

On Thu, 13 Apr 2006 17:40:02 -0400, Emery Guevremont <[EMAIL PROTECTED]> said:

Martin Simmons wrote:

On Thu, 13 Apr 2006 14:27:45 -0400, Emery Guevremont <[EMAIL PROTECTED]> said:

Martin Simmons wrote:

On Wed, 12 Apr 2006 10:30:07 -0400, Emery Guevremont <[EMAIL PROTECTED]> said:

Martin Simmons wrote:

On Fri, 07 Apr 2006 10:43:30 -0400, Emery Guevremont <[EMAIL PROTECTED]> said:
I have a weird problem. I'm trying to restore some files from a tape 
backup taken a few months ago.


The problem is that the files aren't on the tape. If I use the query 
command in bconsole to find out which tape has the files, it says the 
files are on tape GKN079. If I check the "last date written" field for 
tape GKN079 it says Dec. 23rd 2005. I can also confirm the files I'm 
trying to restored when backed up on dec. 18 and dec. 20.


Now when I use the bls command to list the different jobs contained on 
the tape, it stops at a job done on dec. 15. This is the last entry from 
my bls command:


JobId : 9417
VerNum: 11
PoolName  : BDDump
PoolType  : Backup
JobName   : VMDBDmaitre-BDDump
ClientName: vmdbdmaitre-fd
Job (unique name) : VMDBDmaitre-BDDump.2005-12-14_20.05.11
FileSet   : BDDump-fs
JobType   : B
JobLevel  : I
JobFiles  : 531
JobBytes  : 5,129,941,915
StartBlock: 0
EndBlock  : 4,463
StartFile : 55
EndFile   : 54
JobErrors : 0
JobStatus : T
Date written  : 15-Dec-2005 08:15
bls: Got EOF at file 61  on device /dev/nst0, Volume "GKN079"
bls: End of Volume at file 61 on device /dev/nst0, Volume "GKN079"
bls: End of all volumes.
End of physical tape.

What I'm wondering is where are the jobs that were done between dec. 15, 
2005 and dec. 23, 2005?


I've also used the bls command to list the files on tape and the last 
file on tape dates back to dec. 15. Here's how bls end after listing my 
files:


End Session Record: VolSessionId=153 VolSessionTime=1134158972 
JobId=9417 DataLen=209

bls: Got EOF at file 61  on device /dev/nst0, Volume "GKN079"
bls: End of Volume at file 61 on device /dev/nst0, Volume "GKN079"
bls: End of all volumes.
Unknown Record: VolSessionId=0 VolSessionTime=0 JobId=0 DataLen=0
4417 files found.

What does unknown record mean?

Whether I look at the logs or on bconsole, no errors ever happened with 
the backups between dec. 15 and dec. 23. Everything indicates my backups 
should be on tape GKN079, but I don't see it on the tape. Is the tape 
dying? BTW I also tried reading the tape on a different drive, and I got 
the same result.

I suggest you post the output of running
select * from jobmedia where mediaid=xx;
from the bconsole sql command, where xx is the mediaid of GKN079.  Also, what
is the jobid of the job you are trying to restore?
__Martin
The jobid of the job in question is 9580. I've attached a file that
contains the output from the sql query. The problem starts from jobid 
9435. Every jobs after 8435 aren't available. One thing I noticed is 
that there's no start or end file number 61, it skips from 60 to 62. 
Could this be causing the problem?

Yes, possibly.  I can think of three reasons why 61 could be missing now:

- There was an error during that job.
- There is a bug in bacula that writes junk.
- It has been pruned.

It is interesting that to see other gaps too, e.g. 39.  From the numbering, it
looks like 39 might be from job 9410.  Did that job run?
Yes this job ran with the termination status OK, but there was nothing 
to backup so it's normal there was nothing on the tape for job 9410.

OK, perhaps it didn't record this in the database, though your dd output does
show a single 64512 byte block at that position on the tape.



Was the tape in the drive continuously for all of these jobs?  If not, maybe
the discontinuities occur at the point where the tape was reinserted?

I'm using an Autoloader, and the tape is always in the drive.
   If so, how do I force bextract to 
skip fileid 61?

Given the "Unknown Record" error, it might not be mpossible.  It could be
interesting to play with mt and dd to see what happens at various points on
the tape.  Each "file" should be readable using dd and the size should be
slightly larger than reported in the job output.  E.g. (parameters may need
adjusting):

mt rewind
mt fsf 38
dd if=/dev/nsa0 bs=64512 | wc -c   # size of file 38
dd if=/dev/nsa0 bs=64512 | wc -c   # size of file 39
dd if=/dev/nsa0 bs=64512 | wc -c   # size of file 40

mt rewind
mt fsf 60
dd if=/dev/nsa0 bs=64512 | wc -c   # size of file 60
dd if=/dev/nsa0 bs=64512 | wc -c   # size of file 61
dd if=/dev/nsa0 bs=64512 | wc -c   # size of file 62

__Martin


Size of file 38 is 894523392
Size of file 39 is 64512
Size

Re: [Bacula-users] HELP - where are my jobs?

2006-04-13 Thread Emery Guevremont



Martin Simmons wrote:

On Thu, 13 Apr 2006 14:27:45 -0400, Emery Guevremont <[EMAIL PROTECTED]> said:

Martin Simmons wrote:

On Wed, 12 Apr 2006 10:30:07 -0400, Emery Guevremont <[EMAIL PROTECTED]> said:

Martin Simmons wrote:

On Fri, 07 Apr 2006 10:43:30 -0400, Emery Guevremont <[EMAIL PROTECTED]> said:
I have a weird problem. I'm trying to restore some files from a tape 
backup taken a few months ago.


The problem is that the files aren't on the tape. If I use the query 
command in bconsole to find out which tape has the files, it says the 
files are on tape GKN079. If I check the "last date written" field for 
tape GKN079 it says Dec. 23rd 2005. I can also confirm the files I'm 
trying to restored when backed up on dec. 18 and dec. 20.


Now when I use the bls command to list the different jobs contained on 
the tape, it stops at a job done on dec. 15. This is the last entry from 
my bls command:


JobId : 9417
VerNum: 11
PoolName  : BDDump
PoolType  : Backup
JobName   : VMDBDmaitre-BDDump
ClientName: vmdbdmaitre-fd
Job (unique name) : VMDBDmaitre-BDDump.2005-12-14_20.05.11
FileSet   : BDDump-fs
JobType   : B
JobLevel  : I
JobFiles  : 531
JobBytes  : 5,129,941,915
StartBlock: 0
EndBlock  : 4,463
StartFile : 55
EndFile   : 54
JobErrors : 0
JobStatus : T
Date written  : 15-Dec-2005 08:15
bls: Got EOF at file 61  on device /dev/nst0, Volume "GKN079"
bls: End of Volume at file 61 on device /dev/nst0, Volume "GKN079"
bls: End of all volumes.
End of physical tape.

What I'm wondering is where are the jobs that were done between dec. 15, 
2005 and dec. 23, 2005?


I've also used the bls command to list the files on tape and the last 
file on tape dates back to dec. 15. Here's how bls end after listing my 
files:


End Session Record: VolSessionId=153 VolSessionTime=1134158972 
JobId=9417 DataLen=209

bls: Got EOF at file 61  on device /dev/nst0, Volume "GKN079"
bls: End of Volume at file 61 on device /dev/nst0, Volume "GKN079"
bls: End of all volumes.
Unknown Record: VolSessionId=0 VolSessionTime=0 JobId=0 DataLen=0
4417 files found.

What does unknown record mean?

Whether I look at the logs or on bconsole, no errors ever happened with 
the backups between dec. 15 and dec. 23. Everything indicates my backups 
should be on tape GKN079, but I don't see it on the tape. Is the tape 
dying? BTW I also tried reading the tape on a different drive, and I got 
the same result.

I suggest you post the output of running

select * from jobmedia where mediaid=xx;

from the bconsole sql command, where xx is the mediaid of GKN079.  Also, what
is the jobid of the job you are trying to restore?

__Martin


The jobid of the job in question is 9580. I've attached a file that
contains the output from the sql query. The problem starts from jobid 
9435. Every jobs after 8435 aren't available. One thing I noticed is 
that there's no start or end file number 61, it skips from 60 to 62. 
Could this be causing the problem?

Yes, possibly.  I can think of three reasons why 61 could be missing now:

- There was an error during that job.
- There is a bug in bacula that writes junk.
- It has been pruned.

It is interesting that to see other gaps too, e.g. 39.  From the numbering, it
looks like 39 might be from job 9410.  Did that job run?
Yes this job ran with the termination status OK, but there was nothing 
to backup so it's normal there was nothing on the tape for job 9410.


OK, perhaps it didn't record this in the database, though your dd output does
show a single 64512 byte block at that position on the tape.



Was the tape in the drive continuously for all of these jobs?  If not, maybe
the discontinuities occur at the point where the tape was reinserted?

I'm using an Autoloader, and the tape is always in the drive.


   If so, how do I force bextract to 
skip fileid 61?

Given the "Unknown Record" error, it might not be mpossible.  It could be
interesting to play with mt and dd to see what happens at various points on
the tape.  Each "file" should be readable using dd and the size should be
slightly larger than reported in the job output.  E.g. (parameters may need
adjusting):

mt rewind
mt fsf 38
dd if=/dev/nsa0 bs=64512 | wc -c   # size of file 38
dd if=/dev/nsa0 bs=64512 | wc -c   # size of file 39
dd if=/dev/nsa0 bs=64512 | wc -c   # size of file 40

mt rewind
mt fsf 60
dd if=/dev/nsa0 bs=64512 | wc -c   # size of file 60
dd if=/dev/nsa0 bs=64512 | wc -c   # size of file 61
dd if=/dev/nsa0 bs=64512 | wc -c   # size of file 62

__Martin


Size of file 38 is 894523392
Size of file 39 is 64512
Size of file 40 is 105348096

Size of file 60 is 423005184
Size of file 61 is 0
Size of file 62 is 350

Re: [Bacula-users] HELP - where are my jobs?

2006-04-13 Thread Emery Guevremont



Martin Simmons wrote:

On Wed, 12 Apr 2006 10:30:07 -0400, Emery Guevremont <[EMAIL PROTECTED]> said:

Martin Simmons wrote:

On Fri, 07 Apr 2006 10:43:30 -0400, Emery Guevremont <[EMAIL PROTECTED]> said:
I have a weird problem. I'm trying to restore some files from a tape 
backup taken a few months ago.


The problem is that the files aren't on the tape. If I use the query 
command in bconsole to find out which tape has the files, it says the 
files are on tape GKN079. If I check the "last date written" field for 
tape GKN079 it says Dec. 23rd 2005. I can also confirm the files I'm 
trying to restored when backed up on dec. 18 and dec. 20.


Now when I use the bls command to list the different jobs contained on 
the tape, it stops at a job done on dec. 15. This is the last entry from 
my bls command:


JobId : 9417
VerNum: 11
PoolName  : BDDump
PoolType  : Backup
JobName   : VMDBDmaitre-BDDump
ClientName: vmdbdmaitre-fd
Job (unique name) : VMDBDmaitre-BDDump.2005-12-14_20.05.11
FileSet   : BDDump-fs
JobType   : B
JobLevel  : I
JobFiles  : 531
JobBytes  : 5,129,941,915
StartBlock: 0
EndBlock  : 4,463
StartFile : 55
EndFile   : 54
JobErrors : 0
JobStatus : T
Date written  : 15-Dec-2005 08:15
bls: Got EOF at file 61  on device /dev/nst0, Volume "GKN079"
bls: End of Volume at file 61 on device /dev/nst0, Volume "GKN079"
bls: End of all volumes.
End of physical tape.

What I'm wondering is where are the jobs that were done between dec. 15, 
2005 and dec. 23, 2005?


I've also used the bls command to list the files on tape and the last 
file on tape dates back to dec. 15. Here's how bls end after listing my 
files:


End Session Record: VolSessionId=153 VolSessionTime=1134158972 
JobId=9417 DataLen=209

bls: Got EOF at file 61  on device /dev/nst0, Volume "GKN079"
bls: End of Volume at file 61 on device /dev/nst0, Volume "GKN079"
bls: End of all volumes.
Unknown Record: VolSessionId=0 VolSessionTime=0 JobId=0 DataLen=0
4417 files found.

What does unknown record mean?

Whether I look at the logs or on bconsole, no errors ever happened with 
the backups between dec. 15 and dec. 23. Everything indicates my backups 
should be on tape GKN079, but I don't see it on the tape. Is the tape 
dying? BTW I also tried reading the tape on a different drive, and I got 
the same result.

I suggest you post the output of running

select * from jobmedia where mediaid=xx;

from the bconsole sql command, where xx is the mediaid of GKN079.  Also, what
is the jobid of the job you are trying to restore?

__Martin


The jobid of the job in question is 9580. I've attached a file that
contains the output from the sql query. The problem starts from jobid 
9435. Every jobs after 8435 aren't available. One thing I noticed is 
that there's no start or end file number 61, it skips from 60 to 62. 
Could this be causing the problem?


Yes, possibly.  I can think of three reasons why 61 could be missing now:

- There was an error during that job.
- There is a bug in bacula that writes junk.
- It has been pruned.

It is interesting that to see other gaps too, e.g. 39.  From the numbering, it
looks like 39 might be from job 9410.  Did that job run?


Yes this job ran with the termination status OK, but there was nothing 
to backup so it's normal there was nothing on the tape for job 9410.


Was the tape in the drive continuously for all of these jobs?  If not, maybe
the discontinuities occur at the point where the tape was reinserted?


I'm using an Autoloader, and the tape is always in the drive.



   If so, how do I force bextract to 
skip fileid 61?


Given the "Unknown Record" error, it might not be mpossible.  It could be
interesting to play with mt and dd to see what happens at various points on
the tape.  Each "file" should be readable using dd and the size should be
slightly larger than reported in the job output.  E.g. (parameters may need
adjusting):

mt rewind
mt fsf 38
dd if=/dev/nsa0 bs=64512 | wc -c   # size of file 38
dd if=/dev/nsa0 bs=64512 | wc -c   # size of file 39
dd if=/dev/nsa0 bs=64512 | wc -c   # size of file 40

mt rewind
mt fsf 60
dd if=/dev/nsa0 bs=64512 | wc -c   # size of file 60
dd if=/dev/nsa0 bs=64512 | wc -c   # size of file 61
dd if=/dev/nsa0 bs=64512 | wc -c   # size of file 62

__Martin



Size of file 38 is 894523392
Size of file 39 is 64512
Size of file 40 is 105348096

Size of file 60 is 423005184
Size of file 61 is 0
Size of file 62 is 350106624

So what can I do now?

I also checked to see file 208 to 213, since these are the files for the 
job I'm trying to restore. Here are their sizes:


208 -> 922005504
209 -> 36000
210 -> 36000
211 -> 36000
212 -

Re: [Bacula-users] HELP - where are my jobs?

2006-04-12 Thread Emery Guevremont

Martin Simmons wrote:

On Fri, 07 Apr 2006 10:43:30 -0400, Emery Guevremont <[EMAIL PROTECTED]> said:
I have a weird problem. I'm trying to restore some files from a tape 
backup taken a few months ago.


The problem is that the files aren't on the tape. If I use the query 
command in bconsole to find out which tape has the files, it says the 
files are on tape GKN079. If I check the "last date written" field for 
tape GKN079 it says Dec. 23rd 2005. I can also confirm the files I'm 
trying to restored when backed up on dec. 18 and dec. 20.


Now when I use the bls command to list the different jobs contained on 
the tape, it stops at a job done on dec. 15. This is the last entry from 
my bls command:


JobId : 9417
VerNum: 11
PoolName  : BDDump
PoolType  : Backup
JobName   : VMDBDmaitre-BDDump
ClientName: vmdbdmaitre-fd
Job (unique name) : VMDBDmaitre-BDDump.2005-12-14_20.05.11
FileSet   : BDDump-fs
JobType   : B
JobLevel  : I
JobFiles  : 531
JobBytes  : 5,129,941,915
StartBlock: 0
EndBlock  : 4,463
StartFile : 55
EndFile   : 54
JobErrors : 0
JobStatus : T
Date written  : 15-Dec-2005 08:15
bls: Got EOF at file 61  on device /dev/nst0, Volume "GKN079"
bls: End of Volume at file 61 on device /dev/nst0, Volume "GKN079"
bls: End of all volumes.
End of physical tape.

What I'm wondering is where are the jobs that were done between dec. 15, 
2005 and dec. 23, 2005?


I've also used the bls command to list the files on tape and the last 
file on tape dates back to dec. 15. Here's how bls end after listing my 
files:


End Session Record: VolSessionId=153 VolSessionTime=1134158972 
JobId=9417 DataLen=209

bls: Got EOF at file 61  on device /dev/nst0, Volume "GKN079"
bls: End of Volume at file 61 on device /dev/nst0, Volume "GKN079"
bls: End of all volumes.
Unknown Record: VolSessionId=0 VolSessionTime=0 JobId=0 DataLen=0
4417 files found.

What does unknown record mean?

Whether I look at the logs or on bconsole, no errors ever happened with 
the backups between dec. 15 and dec. 23. Everything indicates my backups 
should be on tape GKN079, but I don't see it on the tape. Is the tape 
dying? BTW I also tried reading the tape on a different drive, and I got 
the same result.


I suggest you post the output of running

select * from jobmedia where mediaid=xx;

from the bconsole sql command, where xx is the mediaid of GKN079.  Also, what
is the jobid of the job you are trying to restore?

__Martin



The jobid of the job in question is 9580. I've attached a file that
contains the output from the sql query. The problem starts from jobid 
9435. Every jobs after 8435 aren't available. One thing I noticed is 
that there's no start or end file number 61, it skips from 60 to 62. 
Could this be causing the problem? If so, how do I force bextract to 
skip fileid 61?



Entering SQL query mode.
Terminate each query with a semicolon.
Terminate query mode with a blank line.
Enter SQL query: 
++---+-++---+---+-++--+--+
| JobMediaId | JobId | MediaId | FirstIndex | LastIndex | StartFile | EndFile | 
StartBlock | EndBlock | VolIndex |
++---+-++---+---+-++--+--+
| 37,580 | 9,411 |  84 |  1 |   538 |40 |  40 | 
 0 |1,632 |   22,444 |
| 38,031 | 9,521 |  84 |  1 |   114 |   166 | 166 | 
 0 |   14,704 |   22,876 |
| 38,202 | 9,548 |  84 |  1 |   274 |   184 | 184 | 
 0 |  822 |   23,043 |
| 38,603 | 9,629 |  84 |  1 |   750 |   262 | 262 | 
 0 |   15,004 |   23,431 |
| 38,440 | 9,598 |  84 |  1 |90 |   215 | 215 | 
 0 |8,702 |   23,274 |
| 38,439 | 9,597 |  84 |  1 |84 |   214 | 214 | 
 0 |5,799 |   23,273 |
| 37,458 | 9,382 |  84 |  1 |   169 | 4 |   4 | 
 0 |  552 |   22,326 |
| 38,313 | 9,575 |  84 |  1 |   529 |   202 | 202 | 
 0 |2,176 |   23,150 |
| 38,455 | 9,602 |  84 |  1 |   753 |   230 | 230 | 
 0 |   14,969 |   23,288 |
| 37,454 | 9,378 |  84 |  7 |   298 | 0 |   0 | 
 1 |2,664 |   22,323 |
| 37,455 | 9,379 |  84 |  1 |44 | 1 |   1 | 
 0 |  253 |   22,324 |
| 37,456 | 9,380 |  84 |  1 |43 | 2 |   2 | 
 0 |  392 |   22,325 |
| 37,459 | 9,382 |  84 |169 |   697 | 5 |   5

[Bacula-users] HELP - where are my jobs?

2006-04-07 Thread Emery Guevremont
I have a weird problem. I'm trying to restore some files from a tape 
backup taken a few months ago.


The problem is that the files aren't on the tape. If I use the query 
command in bconsole to find out which tape has the files, it says the 
files are on tape GKN079. If I check the "last date written" field for 
tape GKN079 it says Dec. 23rd 2005. I can also confirm the files I'm 
trying to restored when backed up on dec. 18 and dec. 20.


Now when I use the bls command to list the different jobs contained on 
the tape, it stops at a job done on dec. 15. This is the last entry from 
my bls command:


JobId : 9417
VerNum: 11
PoolName  : BDDump
PoolType  : Backup
JobName   : VMDBDmaitre-BDDump
ClientName: vmdbdmaitre-fd
Job (unique name) : VMDBDmaitre-BDDump.2005-12-14_20.05.11
FileSet   : BDDump-fs
JobType   : B
JobLevel  : I
JobFiles  : 531
JobBytes  : 5,129,941,915
StartBlock: 0
EndBlock  : 4,463
StartFile : 55
EndFile   : 54
JobErrors : 0
JobStatus : T
Date written  : 15-Dec-2005 08:15
bls: Got EOF at file 61  on device /dev/nst0, Volume "GKN079"
bls: End of Volume at file 61 on device /dev/nst0, Volume "GKN079"
bls: End of all volumes.
End of physical tape.

What I'm wondering is where are the jobs that were done between dec. 15, 
2005 and dec. 23, 2005?


I've also used the bls command to list the files on tape and the last 
file on tape dates back to dec. 15. Here's how bls end after listing my 
files:


End Session Record: VolSessionId=153 VolSessionTime=1134158972 
JobId=9417 DataLen=209

bls: Got EOF at file 61  on device /dev/nst0, Volume "GKN079"
bls: End of Volume at file 61 on device /dev/nst0, Volume "GKN079"
bls: End of all volumes.
Unknown Record: VolSessionId=0 VolSessionTime=0 JobId=0 DataLen=0
4417 files found.

What does unknown record mean?

Whether I look at the logs or on bconsole, no errors ever happened with 
the backups between dec. 15 and dec. 23. Everything indicates my backups 
should be on tape GKN079, but I don't see it on the tape. Is the tape 
dying? BTW I also tried reading the tape on a different drive, and I got 
the same result.
begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
tel;cell:514-513-3416
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Bacula-users] Restore from a tape which lost its label.

2005-07-05 Thread Emery Guevremont
How can I do that when I have to specify a Volume? Right now the tape 
has no labels.


Phil Stracchino wrote:

On Tue, Jul 05, 2005 at 10:05:05AM -0400, Emery Guevremont wrote:

I have a tape that was used for some backups, which has lost its label. 
Now I'm trying to get a listing and restore the contents of this tape 
but not sure how to.


Should I use btape to write a new label on the tape and then use bls and 
bextract to get a listing of the files and restore them?




No.  Do not write to the tape.  Use bscan to determine what's on it.



begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
x-mozilla-html:FALSE
version:2.1
end:vcard



[Bacula-users] Restore from a tape which lost its label.

2005-07-05 Thread Emery Guevremont
I have a tape that was used for some backups, which has lost its label. 
Now I'm trying to get a listing and restore the contents of this tape 
but not sure how to.


Should I use btape to write a new label on the tape and then use bls and 
bextract to get a listing of the files and restore them?


Will using btape make the backup tape's content obsolete and unrecoverable?

If none of these are possible, can I use the mt and restore utilities to 
do these things?


BTW I'm using bacula 1.34.6, on linux with an AutoLoader equipped with a 
barcode reader.
begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
x-mozilla-html:FALSE
version:2.1
end:vcard



[Bacula-users] Recreating file list with bls and bscan

2005-06-16 Thread Emery Guevremont

I have a problem and I'm hoping you guys could help me out.

I have to restore a full backup for a computer, and I'm getting a little 
confused as to how to restore my files. When I try to restore through 
the bconsole's restore command and using option 5 (Select the most 
recent backup for a client), I'm not getting all the files that were 
backed up. Here's the output:


Select the Client (1-56): 45
Automatically selected FileSet: Workstation-fs
++---+--+-++---+--++
| JobId  | Level | JobFiles | StartTime   | VolumeName | 
StartFile | VolSessionId | VolSessionTime |

++---+--+-++---+--++
|  8,515 | F |   66,511 | 2005-04-10 12:12:00 | 29 | 
399 |  110 |  1,112,973,247 |
|  8,515 | F |   66,511 | 2005-04-10 12:12:00 | 29 | 
398 |  110 |  1,112,973,247 |
|  8,515 | F |   66,511 | 2005-04-10 12:12:00 | 29 | 
396 |  110 |  1,112,973,247 |
|  8,515 | F |   66,511 | 2005-04-10 12:12:00 | 29 | 
395 |  110 |  1,112,973,247 |
|  8,515 | F |   66,511 | 2005-04-10 12:12:00 | 29 | 
397 |  110 |  1,112,973,247 |
| 10,176 | D |  143 | 2005-05-08 08:29:23 | 31 | 
272 |  584 |  1,114,720,270 |
| 10,318 | I |4 | 2005-05-10 21:33:50 | 31 | 
363 |  702 |  1,114,720,270 |
| 10,375 | I |   10 | 2005-05-11 21:37:41 | 31 | 
407 |  759 |  1,114,720,270 |
| 10,432 | I |0 | 2005-05-12 21:32:27 | 31 | 
450 |  816 |  1,114,720,270 |
| 11,460 | I |4 | 2005-05-30 22:36:17 | 32 | 
176 |1,844 |  1,114,720,270 |
| 11,579 | I |3 | 2005-06-01 21:55:19 | 32 | 
223 |   31 |  1,117,640,674 |
| 11,636 | I |   14 | 2005-06-02 21:48:24 | 32 | 
268 |   88 |  1,117,640,674 |
| 11,694 | I |3 | 2005-06-03 21:51:26 | 32 | 
305 |  146 |  1,117,640,674 |
| 11,922 | I |1,732 | 2005-06-07 22:01:10 | 32 | 
428 |  327 |  1,117,640,674 |
| 11,979 | I |0 | 2005-06-08 21:26:43 | 32 | 
468 |  384 |  1,117,640,674 |
| 12,036 | I |1 | 2005-06-09 21:43:08 | 32 | 
512 |  441 |  1,117,640,674 |

++---+--+-++---+--++
You have selected the following JobIds: 
8515,10176,10318,10375,10432,11460,11579,11636,11694,11922,11979,12036

Building directory tree for JobId 8515 ...
Building directory tree for JobId 10176 ...
Building directory tree for JobId 10318 ...
Building directory tree for JobId 10375 ...
Building directory tree for JobId 10432 ...
Building directory tree for JobId 11460 ...
Building directory tree for JobId 11579 ...
Building directory tree for JobId 11636 ...
Building directory tree for JobId 11694 ...
Building directory tree for JobId 11922 ...
Building directory tree for JobId 11979 ...
Building directory tree for JobId 12036 ...
12 Jobs inserted into the tree.

Now the strange thing is that, when I mark all the files and folder for 
restore, only tapes 31 and 32 are needed. And when the restore 
completes a whole lot of files are still missing. I don't understand why 
jobid 8515 on tape 29 (which is last full backup) isn't included in 
the restore.


I later executed this command in bconsole:

list files jobid=8515

and got this:

No results to list.
+---+-+-+--+---+--+---+---+
| JobId | Name| StartTime   | Type | Level | JobFiles | 
JobBytes  | JobStatus |

+---+-+-+--+---+--+---+---+
| 8,515 | Prog156 | 2005-04-10 12:12:00 | B| F |   66,511 | 
3,939,909,248 | T |

+---+-+-+--+---+--+---+---+

Surprisingly, no files are given, just a summary. Yet if I do the same 
command for jobid 8514 and 8516, I get a list of file. Why aren't there 
any files for jobid 8515.


And how can I use bscan to update the catalog for jobid 8515 without 
having to scan the whole tape? I have a bootstrape file, how can I use 
this to either update the catalog or restore the files quickly?
begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Bacula-users] RunBeforeJob RunAfterJob

2005-05-12 Thread Emery Guevremont
I believe there's a similar option named, ClientRunBeforeJob and 
ClientRunAfterJob. It should be in the user manual.

le dahut wrote:
I want to stop some services before launching the backup, how can I make
RunBeforeJob and RunafterJob run on the client (not on the director) ?


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Bacula-users] is there any hope?

2005-04-20 Thread Emery Guevremont
A couple of things you can do. Retrieve the bootstrape file and use 
bextract to retrieve your files. I believe you can also retrieve your 
files without a bootstrape, but the process of scanning the tape is very 
long.

Raymond Norton wrote:
I set up bacula on a server to back up on to tape for a friend of mine.
That server has crashed and taken all bacula info with it. Is there any
way to retrieve what is on the tape without the original catalog and
database files?
Raymond
---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Bacula-users] Initiating a backup from a windows client

2005-04-13 Thread Emery Guevremont
Over here, we had someone program a web interface to view daily reports 
of what was backed up. It's nothing great but it's a starting point. 
Anyhow, I just started up a project on sourceforge and I'm waiting for 
approval. So in a couple of days we should all be able to view and 
download the code.

Rick Meyer wrote:
I say your shell stuff is worth working on.
I would like to be able to initiate this from a webpage on the Linux server
from a Windows client.
I would also like to be able to browse backed-up files from a webpage on the
Linux host (files are stored on disk - ie not tape) then select a job to
restore back to the windows client.
So if this is worth something to other out there I'll do the webpage
interface, if someone can figure out how to execute the proper console
@commands to restore the files to the windows client, or perhaps there is
another way.  

Rick Meyer

-Original Message-
From: [EMAIL PROTECTED] [mailto:bacula-users-
[EMAIL PROTECTED] On Behalf Of Richard Caley
Sent: Tuesday, April 12, 2005 8:58 AM
To: Emery Guevremont
Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Initiating a backup from a windows client
Here is the script I use to kick of backups of not-always-there
machines. It's a little hacky, but does the job for me.
Some assumptions:
The client foo is the bacula file demon foo-fd
You want to run Differential backups of foo every day it is
actually available to be backed up.
You have a job which is sheduled never to run automatically which
when run by this script will do today's backup. For stupid shell
reasons it is important that the job name not contain spaces. In
the example below, FooJob.
The bacula console config on host bachost is
 /usr/local/etc/bacula-bachost.conf
I have been thinking of extending this to be able to run a full backup
every month or similar, if anyone actually thinks this is interesting
enough to be worth working on I'll give it a go.
I run this every hour from root's crontab on the bacula director's
machine as follows.
 bacula_backup_if_ready bachost foo-fd 1 FooJob
Meaning `talk to the bacula console on bachost and if foo has not been
backed up for at least 1 day, and it is up and available, back it up
by running FooJob.
I have only run this on FreeBSD, so there could be minor issues with
where things are related on other systems.
--- 8< --- 8< --- CUT HERE for bacula_backup_if_ready --- 8< --- 8< ---
#!/bin/sh
if [ $# -lt 3 ]
then
echo "Use: $0 HOST CLIENT DAYS" JOB1 JOB2...
exit 1
fi
# set -x
host=${1-`hostname`}
host=`expr "$host" : '^\([^.]*\).*'`
exec > /var/log/bacula_oportunistic-$host 2>&1
conf=/usr/local/etc/bacula-$host.conf
client="$2"
days="$3"
shift 3
client_host=`expr "$client" : '\(.*\)-fd'`
# Shell function which runs a command via the
# bacula console.
bacula_command()
{
t="$1"
c="$2"
shift 2
{ echo "$c"; for a in "$@" ; do echo "$a"; done; } |
/usr/local/sbin/console -c "$conf"&
bacula_pid=$!
(sleep $t; kill $bacula_pid 2>/dev/null >&2)&
wait $bacula_pid
}
# Check timestamp to see if we are due a backup.
[ -d /var/bacula_timestamps ] || mkdir /var/bacula_timestamps
timestamp=`find /var/bacula_timestamps -name $client -mtime -$days`
echo timestamp=$timestamp
if [ -z "$timestamp" ]
then
if /sbin/ping -c 1 $client_host && bacula_command 10 "status
client=$client"
then
for job in "$@"
do
if bacula_command 10 "run \"$job\"" "mod" "1" "4"
"yes"
then
echo -n > /var/bacula_timestamps/$client
fi
done
fi
fi
--- 8< --- 8< --- bacula_backup_if_ready end --- 8< --- 8< ---
 ^_^
(O O)
\_/@@\
 \\~~/
   ~~
- RJC
---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Bacula-users] bsmtp

2005-04-11 Thread Emery Guevremont
Can you send us your Messages ressource from your bacula-dir file. On 
the line mailcommand, there's an option (-h) you can use to specify the 
hostname of you mail server.

An alternate way of doing this, is by leaving your mailcommand with the 
host localhost and editing your submit.cf or sendmail.cf (depending on 
your distro) file so that it uses your exchange server's address to 
submit mail instead of the default localhost.

Jeffrey N. Miller wrote:
What is a hard and fast way to get this to work.  No success.  I'm 
trying to send to my mailhost which is an Exchange server.  Any ideas.  
I have sendmail running on my Bacula box.
begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
x-mozilla-html:FALSE
version:2.1
end:vcard



[Bacula-users] bconsole for windows.

2005-04-08 Thread Emery Guevremont
Is there a way to compile bconsole for windows? Or even better, is there 
a bconsole binary for windows that can be downloaded?
begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Bacula-users] Initiating a backup from a windows client

2005-04-08 Thread Emery Guevremont
I'm using bacula 1.34.6 and I haven't seen any wx-console app for windows.
Ludovic Strappazon wrote:
Hi Emery,
Did you think about using a restricted bconsole or wx-console on the 
client ?
You can adjust the rights so that any user can only use the run command 
for his own laptop and has nothing else to do than typing "run" and "yes".

http://bacula.org/rel-manual/Console_Resource.html
Best regards,
Ludovic Strappazon.
Emery Guevremont wrote:
I was wondering if anyone had any ideas or experience in setting up a 
script and/or batch file that a windows user could execute in order to 
start a backup of their laptop.

The problem I'm faced with is that I have windows users with laptops, 
which are constantly connecting/disconnecting from the network and 
they need to backup sensitive data to our backup system.

So far I was thinking of using putty to connect to the bacula director 
and execute a bash script which would start a backup by feeding 
commands to the bconsole.

Any of you have advice or experience with doing something like this? 
My goal is to keep this as simple as possible for the user.

No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.5 - Release Date: 07/04/2005
 



begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
x-mozilla-html:FALSE
version:2.1
end:vcard



[Bacula-users] Initiating a backup from a windows client

2005-04-08 Thread Emery Guevremont
I was wondering if anyone had any ideas or experience in setting up a 
script and/or batch file that a windows user could execute in order to 
start a backup of their laptop.

The problem I'm faced with is that I have windows users with laptops, 
which are constantly connecting/disconnecting from the network and they 
need to backup sensitive data to our backup system.

So far I was thinking of using putty to connect to the bacula director 
and execute a bash script which would start a backup by feeding commands 
to the bconsole.

Any of you have advice or experience with doing something like this? My 
goal is to keep this as simple as possible for the user.
begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
x-mozilla-html:FALSE
version:2.1
end:vcard