Re: [Bacula-users] minimum volume retention period

2014-09-25 Thread Julien Cigar
On Wed, Sep 24, 2014 at 12:27:30PM -0300, Sergio Belkin wrote:
> Hi Folks,
> 
> I've read this thread, and I'd want to get some clarification about this
> topic.
> 
> if Julien have set the Volume Retention of incremental in 35 days, I don't
> understand why "(around 15 june Incr-0001 should be recycled)".

5th June would be more correct ..
if "Incr-0001" is written on 1 May, then 1 May + 35 days = ~5 June

To clarify a little bit: I'm doing a full backup per month and a daily
incremental backup (with Use Volume Once)

> 2) is it correct that on 1 july Full-0001 it's recycled? if Volume
> Retention of Backuo Job was  set as of 45 days. On 1 June, Full-0001 it's
> changes it's status, it will be recycled on 15 july aprox. Pleae correct me
> if I'm wrong.

sounds correct to me..!

> 
> Thanks in advance!
> 

Don't forget that volume retention takes precedence over any job
retention and that it's it read from the catalog, so don't forget to
bconsole -> update if you change them ..!


> 2009-04-03 4:37 GMT-03:00 Julien Cigar :
> 
> > On Thu, 2009-04-02 at 20:52 -0400, mo...@frakir.org wrote:
> > > On Thu, Apr 02, 2009 at 09:25:55PM +0200, Julien Cigar wrote:
> > >
> > > > > 1 may 0:00 am : Full backup -> volume "Full-0001"
> > > > > 1 may 8:00 pm : Incremental backup -> volume "Incr-0001"
> > > > > 2 may 8:00 pm : Incremental backup -> volume "Incr-0002"
> > > > > 3 may 8:00 pm : Incremental backup -> volume "Incr-0003"
> > > > > ...
> > > > > 31 may 8:00 pm : Incremental backup -> volume "Incr-0031"
> > > > >
> > > > > 1 june 0:00 am : Full backup -> volume "Full-0002"
> > > > > 1 june 8:00 pm : Incremental backup -> volume "Incr-0032"
> > > > > 2 june 8:00 pm : Incremental backup -> volume "Incr-0033"
> > > > > 3 june 8:00 pm : Incremental backup -> volume "Incr-0034"
> > > > > ...
> > > > > (around 15 june Incr-0001 should be recycled)
> > > > >
> > > > > 1 july 0:00 am : Full backup -> volume "Full-0001" (recycled)
> > >
> > > An incremental can be promoted to a full in the middle of a cycle.
> > > This can happen because of a fileset change or a rerun of a failed
> > > level.  If such an event happens on June 15, the volume Full-0001 will
> > > be overwritten.  At this point, you can't do a restore of the FS from
> > > May 31, even though it's only been 15 days.
> > >
> >
> > right.
> >
> > thanks !
> >
> > > - Morty
> > --
> > Julien Cigar
> > Belgian Biodiversity Platform
> > http://www.biodiversity.be
> > Université Libre de Bruxelles (ULB)
> > Campus de la Plaine CP 257
> > Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
> > Boulevard du Triomphe, entrée ULB 2
> > B-1050 Bruxelles
> > Mail: jci...@ulb.ac.be
> > @biobel: http://biobel.biodiversity.be/person/show/471
> > Tel : 02 650 57 52
> >
> >
> >
> > --
> > ___
> > Bacula-users mailing list
> > Bacula-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bacula-users
> >
> 
> 
> 
> -- 
> --
> Sergio Belkin  http://www.sergiobelkin.com
> LPIC-2 Certified - http://www.lpi.org

> --
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk

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


-- 
Julien Cigar
Belgian Biodiversity Platform (http://www.biodiversity.be)
PGP fingerprint: EEF9 F697 4B68 D275 7B11  6A25 B2BB 3710 A204 23C0
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.


pgpSb4mrOVdi9.pgp
Description: PGP signature
--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Does Sony AITI100 work fine with Bacula ?

2007-04-25 Thread Julien Cigar
Hello Michael,

I've the same tape drive here and I have sometimes write errors. I think 
that I made something wrong in the configuration but I can't find it ...
Do you have anything species in the bacula-sd.conf file ? Also, which 
SCSI card do you have

Thanks,
Julien

Michael Proto wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> I don't believe this is the exact same setup, but I have an old backup
> server running Debian Sarge with Bacula and a Sony AIT-2 SCSI tape drive
> that works fine. Here's the dmesg output from that server:
>
> scsi1:A:2:0: Tagged Queuing enabled.  Depth 64
>   Vendor: SONY  Model: SDX-500C  Rev: 01c9
>   Type:   Sequential-Access  ANSI SCSI revision: 02
>
> Works like a champ with bacula.
>
>
> - -Proto
>
> Jean-Francois Zech wrote:
>   
>> Hi everyone,
>>
>> I'm looking for a new tape drive. This drive must be installed on a Debian.
>> I hesitate between 2 drives:
>> -> Sony AITI100A/S (ATAPI tape drive) and
>> -> Sony AITI100/S (same but SCSI)
>>
>> Has anyone have any experience with one of these drives ?
>>
>> Many thanks for your help.
>>
>> JF
>>
>>
>> 
>>
>> -
>> 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
>> 
>
> - --
> Michael Proto| SecureWorks
> Unix Administrator   |
> PGP ID: 5D575BBE | [EMAIL PROTECTED]
> ***
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.7 (FreeBSD)
>
> iD8DBQFGL09kOLq/wl1XW74RAi0/AJ4sKD83ZFydMNU4q3lm6xA1uAh7bwCfWr9p
> h0O66vQ2uWWtBv8jtP62mq8=
> =IfM1
> -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
>   


-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles (ULB)
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
office: [EMAIL PROTECTED]
home: [EMAIL PROTECTED]
biobel reference: http://biobel.biodiversity.be/biobel/person/show/471


-
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] Does Sony AITI100 work fine with Bacula ?

2007-04-25 Thread Julien Cigar
Many thanks !

Michael Proto wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Julian,
>
> The drive is installed in an IBM xServer 340, which has an on-board
> Adaptec AIC7899 Ultra160 controller:
>
> scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.36
> 
> aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
>
> scsi1 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.36
> 
> aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs
>
> scsi2 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.36
> 
> aic7892: Ultra160 Wide Channel A, SCSI Id=15, 32/253 SCBs
>
> The Sony tape drive is actually installed in a 40-cart changer
> (SpectraDrive 1), connected to this server via external SCSI.
>
> Here is my device entry in bacula-sd.conf file from that server:
>
> Device {
>   Name = SpectraDrive2#
>   Media Type = 8mmAIT-2
>   Archive Device = /dev/nst0
>   AutomaticMount = yes;   # when device opened, read it
>   AlwaysOpen = yes;
>   RemovableMedia = yes;
>   RandomAccess = no;
>   Drive Index = 1
>   # as recommended by btape
> # Hardware End of Medium = yes
>   BSF at EOM = no
>   Autochanger = Yes
>   Changer Device  = /dev/changer
>   Changer Command = "/home/bacula/etc/bacula/scripts/mtx-changer %c %o
> %S %a 1"
> }
>
>
> Hope this helps!
>
> - -Proto
>
> Julien Cigar wrote:
>   
>> Hello Michael,
>>
>> I've the same tape drive here and I have sometimes write errors. I think
>> that I made something wrong in the configuration but I can't find it ...
>> Do you have anything species in the bacula-sd.conf file ? Also, which
>> SCSI card do you have
>>
>> Thanks,
>> Julien
>>
>> Michael Proto wrote:
>> I don't believe this is the exact same setup, but I have an old backup
>> server running Debian Sarge with Bacula and a Sony AIT-2 SCSI tape drive
>> that works fine. Here's the dmesg output from that server:
>>
>> scsi1:A:2:0: Tagged Queuing enabled.  Depth 64
>>   Vendor: SONY  Model: SDX-500C  Rev: 01c9
>>   Type:   Sequential-Access  ANSI SCSI revision: 02
>>
>> Works like a champ with bacula.
>>
>>
>> -Proto
>>
>> Jean-Francois Zech wrote:
>>  
>> 
>>>>> Hi everyone,
>>>>>
>>>>> I'm looking for a new tape drive. This drive must be installed on a
>>>>> Debian.
>>>>> I hesitate between 2 drives:
>>>>> -> Sony AITI100A/S (ATAPI tape drive) and
>>>>> -> Sony AITI100/S (same but SCSI)
>>>>>
>>>>> Has anyone have any experience with one of these drives ?
>>>>>
>>>>> Many thanks for your help.
>>>>>
>>>>> JF
>>>>>
>>>>>
>>>>> 
>>>>>
>>>>> -
>>>>>
>>>>> 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
>
> - --
> Michael Proto| SecureWorks
> Unix Administrator   |
> PGP ID: 5D575BBE | [EMAIL PROTECTED]
> ***
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.7 (FreeBS

[Bacula-users] write error

2005-10-13 Thread Julien Cigar

Hello,

sometimes I have "write error" messages during my full backup (on tapes) :

12-Oct 18:44 phoenix-sd: BebifFullBackup.2005-10-12_06.00.00 Error: 
block.c:552 Write error at 15:111 on device /dev/st0. ERR=Input/output 
error.
12-Oct 18:44 phoenix-sd: BebifFullBackup.2005-10-12_06.00.00 Error: 
Error writing final EOF to tape. This tape may not be readable.

dev.c:1213 ioctl MTWEOF error on /dev/st0. ERR=Input/output error.

any idea what could be the reason to this ? I'm quite sure the problem 
is not the tapes ...


Thanks


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] write error

2005-10-13 Thread Julien Cigar

Thanks for replying

The tape is:

phoenix:/var/backups# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 01 Lun: 00
 Vendor: SONY Model: SDX-500C Rev: 010f
 Type:   Sequential-AccessANSI SCSI revision: 02

and the controller is:

phoenix:/var/backups# cat /proc/scsi/aic7xxx/0
Adaptec AIC7xxx driver version: 6.2.36
Adaptec 2940 Ultra SCSI adapter
aic7880: Ultra Wide Channel A, SCSI Id=0, 16/253 SCBs
Allocated SCBs: 5, SG List Length: 102

I runned the btape test and it was successfull

What is strange is that I get this message for about one backup on ten 
and not with the same tape ... (I thought first that it was a defect 
tape ... but no)


thanks,
Julien

Phil Stracchino wrote:


Julien Cigar wrote:
 


Hello,

sometimes I have "write error" messages during my full backup (on tapes) :

12-Oct 18:44 phoenix-sd: BebifFullBackup.2005-10-12_06.00.00 Error:
block.c:552 Write error at 15:111 on device /dev/st0. ERR=Input/output
error.
12-Oct 18:44 phoenix-sd: BebifFullBackup.2005-10-12_06.00.00 Error:
Error writing final EOF to tape. This tape may not be readable.
dev.c:1213 ioctl MTWEOF error on /dev/st0. ERR=Input/output error.

any idea what could be the reason to this ? I'm quite sure the problem
is not the tapes ...
   



You don't mention what type of tape device.  Did you run btape test?


 





---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] write error

2005-10-13 Thread Julien Cigar

Did you use the cap command to list tape capabilities?  Did you run a
fill test to ensure that Bacula can fill up a tape and write on to the
next?  There are several capabilities that are crucial for Bacula.


I runned all the tests which are in the documentation and they completed 
successfully.
What is the 'cap' command you are talking about ... ?


Do all backups fill a tape, or does this occur only when you completely
fill a tape?


it occurs randomly, sometimes after 10go, sometimes at the end, ...




Phil Stracchino wrote:


Julien Cigar wrote:
 


Thanks for replying

The tape is:

phoenix:/var/backups# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: SONY Model: SDX-500C Rev: 010f
Type:   Sequential-AccessANSI SCSI revision: 02

and the controller is:

phoenix:/var/backups# cat /proc/scsi/aic7xxx/0
Adaptec AIC7xxx driver version: 6.2.36
Adaptec 2940 Ultra SCSI adapter
aic7880: Ultra Wide Channel A, SCSI Id=0, 16/253 SCBs
Allocated SCBs: 5, SG List Length: 102

I runned the btape test and it was successfull

What is strange is that I get this message for about one backup on ten
and not with the same tape ... (I thought first that it was a defect
tape ... but no)
   



Did you use the cap command to list tape capabilities?  Did you run a
fill test to ensure that Bacula can fill up a tape and write on to the
next?  There are several capabilities that are crucial for Bacula.

Do all backups fill a tape, or does this occur only when you completely
fill a tape?


 





---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] write error

2005-10-13 Thread Julien Cigar

I runned the btape cap :

phoenix:/etc/bacula# btape /dev/st0
Tape block granularity is 1024 bytes.
btape: butil.c:258 Using device: "/dev/st0" for writing.
btape: btape.c:335 open_dev /dev/st0 OK
*cap
Configured device capabilities:
EOF BSR BSF FSR FSF FASTFSF !BSFATEOM EOM REM !RACCESS !AUTOMOUNT !LABEL 
!ANONVOLS ALWAYSOPEN

Device status:
OPENED TAPE !LABEL MALLOC APPEND !READ !EOT !WEOT !EOF !NEXTVOL !SHORT
Device parameters:
Device name: /dev/st0
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:1707 Device status: 645. ERR=


I think it's going to require more information to isolate it.  Have you
used the drive with other software and verified that it works properly?


it worked fine with Amanda. I didn't tried with other softwares ...


Phil Stracchino wrote:


Julien Cigar wrote:
 


Did you use the cap command to list tape capabilities?  Did you run a
fill test to ensure that Bacula can fill up a tape and write on to the
next?  There are several capabilities that are crucial for Bacula.
 


I runned all the tests which are in the documentation and they completed
successfully.
What is the 'cap' command you are talking about ... ?
   



Run btape, and type 'help'.  It'll show you all the commands, including
this one:

 caplist device capabilities

 


Do all backups fill a tape, or does this occur only when you completely
fill a tape?
 


it occurs randomly, sometimes after 10go, sometimes at the end, ...
   



I think it's going to require more information to isolate it.  Have you
used the drive with other software and verified that it works properly?


 





---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] write error

2005-10-14 Thread Julien Cigar

Hello,

sometimes I have "write error" messages during my full backup (on tapes) :

12-Oct 18:44 phoenix-sd: BebifFullBackup.2005-10-12_06.00.00 Error: 
block.c:552 Write error at 15:111 on device /dev/st0. ERR=Input/output 
error.
12-Oct 18:44 phoenix-sd: BebifFullBackup.2005-10-12_06.00.00 Error: 
Error writing final EOF to tape. This tape may not be readable.

dev.c:1213 ioctl MTWEOF error on /dev/st0. ERR=Input/output error.

any idea what could be the reason to this ? I'm quite sure the problem 
is not the tapes ...


Thanks


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] unicode ?

2006-06-26 Thread Julien Cigar
Hello,

I'm busy to upgrade the backup machine :
kernel: 2.4.27 -> 2.6.15
bacula: 1.36.3 -> 1.38.9
database: sqlite 2 -> postgresql 8.1.4 (with the database in unicode utf-8)
locales: iso8859-15 -> utf-8

Everything works fine, except that I get those messages when running a job :

26-Jun 11:25 phoenix-dir: canis-job.2006-06-26_11.21.41 Fatal error: 
sql_create.c:851 sql_create.c:851 insert INSERT INTO Filename (Name) 
VALUES ('R�gles_encod_exemples.doc') failed:
ERROR: invalid byte sequence for encoding "UTF8": 0xe8676c

26-Jun 11:25 phoenix-dir: canis-job.2006-06-26_11.21.41 Fatal error: 
sql_create.c:853 Create db Filename record INSERT INTO Filename (Name) 
VALUES ('R�gles_encod_exemples.doc') failed. ERR=ERROR: invalid byte 
sequence for encoding "UTF8": 0xe8676c

26-Jun 11:25 phoenix-dir: canis-job.2006-06-26_11.21.41 Fatal error: 
catreq.c:367 Attribute create error. sql_create.c:853 Create db Filename 
record INSERT INTO Filename (Name) VALUES ('R�gles_encod_exemples.doc') 
failed. ERR=ERROR: invalid byte sequence for encoding "UTF8": 0xe8676c

(...)

Does bacula support UTF-8 ?

Thanks,
Julien

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] unicode ?

2006-06-26 Thread Julien Cigar
Thanks for your answers,

My locales are en_US.UTF-8, the PostgreSQL database is in UTF-8 too 
(fresh install) .. everything is in UTF-8
What do you mean by "the filenames have to be UTF-8 to work" ? Setting 
en_US.UTF-8 for the locales isn't enough ?


Magnus Hagander wrote:
>>> (...)
>>>
>>> Does bacula support UTF-8 ?
>>>   
>> Yes, but there are problems with PostgreSQL. I assume that 
>> these problems are due to the fact that users can create or 
>> have created non-UTF-8 filenames, but I am not sure.
>> 
>
> They are. PostgreSQL will validate that input into a UTF-8 database is
> actually UTF-8, and since bacula performs no conversion of character
> sets, the filenames have to be UTF-8 to work.
>
> You can switch the datbase to SQL_ASCII instead of UTF-8 to get rid of
> this verification. This will of course get rid of things like encoding
> specific sorting as well,b ut there is no way to deliver that properly
> for invalidly encoded data anyway.
>
>
>   
>> Note, Bacula consoles display/input characters correctly 
>> (WYSIWYG) *only* if everything is UTF-8 (on *nix machines). 
>> 
>
> Doesn't it display it correctly as long as the encoding that bacula runs
> under is the same as the file? I think that's what I've been seeing, but
> I could be remembering wrong.
>
> Meaning if you run the console on the same machine that files are on,
> the filenames should look the same?
>
> //Magnus
>   


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] unicode ?

2006-06-26 Thread Julien Cigar
okay thanks ! (I thought changing locales + NLS in the kernel was enough)

user100 wrote:
> I´m afraid it´s not enough (but maybe I´m wrong and somebody know a trick?).
> You may try a look to the tool "convmv"... or to this gentoo wiki:
> http://www.gentoo.org/doc/en/utf-8.xml  - I think for "new" files it´s maybe
> enough to change nls to UTF-8 (kernel and in some cases fstab).
>
> Greetings,
> User100
>
>
>   
>> -Ursprüngliche Nachricht-
>> Von: [EMAIL PROTECTED] 
>> [mailto:[EMAIL PROTECTED] Im 
>> Auftrag von Julien Cigar
>> Gesendet: Montag, 26. Juni 2006 13:38
>> An: bacula-users@lists.sourceforge.net
>> Betreff: Re: [Bacula-users] unicode ?
>>
>>
>> Thanks for your answers,
>>
>> My locales are en_US.UTF-8, the PostgreSQL database is in UTF-8 too 
>> (fresh install) .. everything is in UTF-8
>> What do you mean by "the filenames have to be UTF-8 to work" 
>> ? Setting 
>> en_US.UTF-8 for the locales isn't enough ?
>>
>>
>> Magnus Hagander wrote:
>> 
>>>>> (...)
>>>>>
>>>>> Does bacula support UTF-8 ?
>>>>>   
>>>>>   
>>>> Yes, but there are problems with PostgreSQL. I assume that 
>>>> these problems are due to the fact that users can create or 
>>>> have created non-UTF-8 filenames, but I am not sure.
>>>> 
>>>> 
>>> They are. PostgreSQL will validate that input into a UTF-8 
>>>   
>> database is
>> 
>>> actually UTF-8, and since bacula performs no conversion of character
>>> sets, the filenames have to be UTF-8 to work.
>>>
>>> You can switch the datbase to SQL_ASCII instead of UTF-8 to 
>>>   
>> get rid of
>> 
>>> this verification. This will of course get rid of things 
>>>   
>> like encoding
>> 
>>> specific sorting as well,b ut there is no way to deliver 
>>>   
>> that properly
>> 
>>> for invalidly encoded data anyway.
>>>
>>>
>>>   
>>>   
>>>> Note, Bacula consoles display/input characters correctly 
>>>> (WYSIWYG) *only* if everything is UTF-8 (on *nix machines). 
>>>> 
>>>> 
>>> Doesn't it display it correctly as long as the encoding 
>>>   
>> that bacula runs
>> 
>>> under is the same as the file? I think that's what I've 
>>>   
>> been seeing, but
>> 
>>> I could be remembering wrong.
>>>
>>> Meaning if you run the console on the same machine that 
>>>   
>> files are on,
>> 
>>> the filenames should look the same?
>>>
>>> //Magnus
>>>   
>>>   
>> 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
>
>
> 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
>   


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


[Bacula-users] status dir

2006-06-28 Thread Julien Cigar
Hi !

I'm using 1.38.9 (Debian) with PostgreSQL (8.1.4)

Am I the only one to have this kind of message : 28-Jun 12:39 
phoenix-dir: Pruning oldest volume "Canis-Incr-Disk-0001" when I do a 
*status dir ? (nothing is pruned of course)

(Complete output is available on 
http://rafb.net/paste/results/xCvfPR87.html)

Thanks

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] status dir

2006-06-28 Thread Julien Cigar
Yep it's turned on, but I have this messages every time I do a *status 
dir, and nothing is pruned

Sebastian Stark wrote:
>
> If you have automatic pruning turned on this is expected behaviour I 
> would say.
>
>
> Sebastian
>
> On 28.06.2006, at 15:47, Julien Cigar wrote:
>
>> Hi !
>>
>> I'm using 1.38.9 (Debian) with PostgreSQL (8.1.4)
>>
>> Am I the only one to have this kind of message : 28-Jun 12:39
>> phoenix-dir: Pruning oldest volume "Canis-Incr-Disk-0001" when I do a
>> *status dir ? (nothing is pruned of course)
>>
>> (Complete output is available on
>> http://rafb.net/paste/results/xCvfPR87.html)
>>
>> Thanks
>>
>> 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
>


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] status dir

2006-06-29 Thread Julien Cigar
Arno Lehmann wrote:
> Hello,
>
> On 6/28/2006 3:47 PM, Julien Cigar wrote:
>   
>> Hi !
>>
>> I'm using 1.38.9 (Debian) with PostgreSQL (8.1.4)
>>
>> Am I the only one to have this kind of message : 28-Jun 12:39 
>> phoenix-dir: Pruning oldest volume "Canis-Incr-Disk-0001" when I do a 
>> *status dir ? (nothing is pruned of course)
>> 
>
> How o you know nothing is pruned? Have you compared the list of jobs oin 
> that volume before and after the command?
>
>   
Beacause I get this message *all* the time, and I have a tail -f 
/var/log/postgresql/postgresql.log while doing *status dir, and nothing 
is pruned ...
... and I compared the list of jobs too of course
> Other than that, it's normal for Bacula to trigger pruning when a status 
> command is issued.
>   
Yep I know :)
> Arno
>
>   
>> (Complete output is available on 
>> http://rafb.net/paste/results/xCvfPR87.html)
>>
>> Thanks
>>
>> 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
>>
>> 
>
>   


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] status dir

2006-06-30 Thread Julien Cigar
mmh it looks the same for me ... I don't have any more these messages 
today, strange !

steen meyer wrote:
> Hello,
>
> I also always have this, and I find it funny that is always gives this 
> message 
> only about the first volume created, what about all the other volumes - as 
> the rotation have carried one for some rounds, what's then the relevance of 
> always pruning the oldes volume?
>
> Onsdag 28 juni 2006 15:47 skrev Julien Cigar:
>   
>> Hi !
>>
>> I'm using 1.38.9 (Debian) with PostgreSQL (8.1.4)
>>
>> Am I the only one to have this kind of message : 28-Jun 12:39
>> phoenix-dir: Pruning oldest volume "Canis-Incr-Disk-0001" when I do a
>> *status dir ? (nothing is pruned of course)
>>
>> (Complete output is available on
>> http://rafb.net/paste/results/xCvfPR87.html)
>>
>> Thanks
>>
>> 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
>> 
>
>   


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


[Bacula-users] Error writing final EOF to tape. This Volume may not be readable.

2006-07-05 Thread Julien Cigar
Hi !

===
Bacula: 1.38.9-10 (with the Postgresql 8.1.4 backend), director configuration: 
http://mordor.ath.cx/stuff/bacula-dir.conf.html

Kernel: 2.6.15

Tape:   Host: scsi0 Channel: 00 Id: 06 Lun: 00
Vendor: SONY Model: SDX-500C Rev: 0204
Type:   Sequential-AccessANSI SCSI revision: 02

Scsi:   Adaptec AIC7xxx driver version: 7.0
Adaptec 2940 Ultra SCSI adapter
aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs
Allocated SCBs: 4, SG List Length: 128

===

I got a little problem with my backup today :

05-Jul 03:00 phoenix-dir: Start Backup JobId 12, 
Job=bebif-job.2006-07-05_03.00.00
05-Jul 05:36 phoenix-sd: bebif-job.2006-07-05_03.00.00 Error: block.c:538 Write 
error at 50:5589 on device "sony SDX-500C" (/dev/st0). ERR=Input/output error.
05-Jul 05:36 phoenix-sd: bebif-job.2006-07-05_03.00.00 Error: Error writing 
final EOF to tape. This Volume may not be readable.
dev.c:1542 ioctl MTWEOF error on "sony SDX-500C" (/dev/st0). ERR=Input/output 
error.
05-Jul 05:36 phoenix-sd: End of medium on Volume "Full-Tape-0002" 
Bytes=48,606,123,849 Blocks=753,445 at 05-Jul-2006 05:36.
05-Jul 05:37 phoenix-dir: Created new Volume "Full-Tape-0003" in catalog.
05-Jul 05:37 phoenix-sd: Please mount Volume "Full-Tape-0003" on Storage Device 
"sony SDX-500C" (/dev/st0) for Job bebif-job.2006-07-05_03.00.00
05-Jul 06:37 phoenix-sd: Please mount Volume "Full-Tape-0003" on Storage Device 
"sony SDX-500C" (/dev/st0) for Job bebif-job.2006-07-05_03.00.00
05-Jul 07:38 phoenix-sd: bebif-job.2006-07-05_03.00.00 Warning: Director wanted 
Volume "Full-Tape-0003" for device "sony SDX-500C" (/dev/st0).
Current Volume "Full-Tape-0002" not acceptable because:
1998 Volume "Full-Tape-0002" status is Full, but should be Append, Purged 
or Recycle.
05-Jul 08:38 phoenix-sd: Please mount Volume "Full-Tape-0003" on Storage Device 
"sony SDX-500C" (/dev/st0) for Job bebif-job.2006-07-05_03.00.00

*** I changed the volume status of Full-Tape-0002 from "Full" to "Append"

05-Jul 09:20 phoenix-sd: Volume "Full-Tape-0002" previously written, moving to 
end of data.
05-Jul 09:21 phoenix-sd: bebif-job.2006-07-05_03.00.00 Error: I cannot write on 
Volume "Full-Tape-0002" because:
The number of files mismatch! Volume=61 Catalog=50
05-Jul 09:21 phoenix-sd: Marking Volume "Full-Tape-0002" in Error in Catalog.
05-Jul 09:23 phoenix-sd: Please mount Volume "Full-Tape-0003" on Storage Device 
"sony SDX-500C" (/dev/st0) for Job bebif-job.2006-07-05_03.00.00

*** I updated the number of files in the catalog from 50 to 61

05-Jul 09:37 phoenix-sd: Volume "Full-Tape-0002" previously written, moving to 
end of data.
05-Jul 09:39 phoenix-sd: Ready to append to end of Volume "Full-Tape-0002" at 
file=61.
05-Jul 09:39 phoenix-sd: New volume "Full-Tape-0002" mounted on device "sony 
SDX-500C" (/dev/st0) at 05-Jul-2006 09:39.
05-Jul 09:39 phoenix-sd: End of Volume "Full-Tape-0002" at 61:0 on device "sony 
SDX-500C" (/dev/st0). Write of 64512 bytes got -1.
05-Jul 09:39 phoenix-sd: bebif-job.2006-07-05_03.00.00 Error: Error writing 
final EOF to tape. This Volume may not be readable.
dev.c:1542 ioctl MTWEOF error on "sony SDX-500C" (/dev/st0). ERR=Input/output 
error.
05-Jul 09:39 phoenix-sd: bebif-job.2006-07-05_03.00.00 Fatal error: 
append.c:207 Fatal append error on device "sony SDX-500C" (/dev/st0): 
ERR=dev.c:1542 ioctl MTWEOF error on "sony SDX-500C" (/dev/st0). 
ERR=Input/output error.
05-Jul 09:39 bebif-fd: bebif-job.2006-07-05_03.00.00 Fatal error: backup.c:500 
Network send error to SD. ERR=Broken pipe
05-Jul 09:39 bebif-fd: bebif-job.2006-07-05_03.00.00 Error: bnet.c:257 Read 
error from Storage daemon:164.15.x.x:9103: ERR=Connection reset by peer
05-Jul 09:39 bebif-fd: bebif-job.2006-07-05_03.00.00 Error: bnet.c:426 Write 
error sending 65536 bytes to Storage daemon:164.15.x.x:9103: ERR=Broken pipe
05-Jul 09:39 phoenix-dir: bebif-job.2006-07-05_03.00.00 Error: Bacula 1.38.9 
(02May06): 05-Jul-2006 09:39:38
  JobId:  12
  Job:bebif-job.2006-07-05_03.00.00
  Backup Level:   Full
  Client: "bebif-fd" i486-pc-linux-gnu,debian,testing/unstable
  FileSet:"bebif-fs" 2006-07-03 14:29:22
  Pool:   "full-tape-pool"
  Storage:"tape-st"
  Scheduled time: 05-Jul-2006 03:00:00
  Start time: 05-Jul-2006 03:00:03
  End time:   05-Jul-2006 09:39:38
  Elapsed time:   6 hours 39 mins 35 secs
  Priority:   10
  FD Files Written:   47,294
  SD Files Written:   47,294
  FD Bytes Written:   7,346,958,120 (7.346 GB)
  SD Bytes Written:   7,353,723,841 (7.353 GB)
  Rate:   306.4 KB/s
  Software Compression:   None
  Volume name(s): Full-Tape-0002
  Volume Session Id:  12
  Volume Session Time:1151910220
  Last Volume Bytes:  48,606,123,849 (48.60 GB)
  Non-fatal FD errors:2
  SD Errors:

Re: [Bacula-users] Error writing final EOF to tape. This Volume may not be readable.

2006-07-06 Thread Julien Cigar
Arno Lehmann wrote:
> Hello,
>
> On 7/5/2006 10:19 AM, Julien Cigar wrote:
>   
>> Hi !
>>
>> ===
>> Bacula:  1.38.9-10 (with the Postgresql 8.1.4 backend), director 
>> configuration: http://mordor.ath.cx/stuff/bacula-dir.conf.html
>>
>> Kernel:  2.6.15
>>
>> Tape:Host: scsi0 Channel: 00 Id: 06 Lun: 00
>>  Vendor: SONY Model: SDX-500C Rev: 0204
>>  Type:   Sequential-AccessANSI SCSI revision: 02
>>
>> Scsi:Adaptec AIC7xxx driver version: 7.0
>>  Adaptec 2940 Ultra SCSI adapter
>>  aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs
>>  Allocated SCBs: 4, SG List Length: 128
>>
>> ===
>>
>> I got a little problem with my backup today :
>>
>> 05-Jul 03:00 phoenix-dir: Start Backup JobId 12, 
>> Job=bebif-job.2006-07-05_03.00.00
>> 05-Jul 05:36 phoenix-sd: bebif-job.2006-07-05_03.00.00 Error: block.c:538 
>> Write error at 50:5589 on device "sony SDX-500C" (/dev/st0). 
>> ERR=Input/output error.
>> 
>
> Tape life time used up, or drive broken. Usually. After all, this is DDS 
> technology, right?
>
>   

The tapes are new .. and the drive isn't too old I think. Do you think 
it could be a bad SCSI cable ?

>> 05-Jul 05:36 phoenix-sd: bebif-job.2006-07-05_03.00.00 Error: Error writing 
>> final EOF to tape. This Volume may not be readable.
>> 
>
> This really is an error message, not only a warning.
>   

Yep ... strange that the drive worked without problems from 3:00am to 
5:36am ...

>   
>> dev.c:1542 ioctl MTWEOF error on "sony SDX-500C" (/dev/st0). 
>> ERR=Input/output error.
>> 05-Jul 05:36 phoenix-sd: End of medium on Volume "Full-Tape-0002" 
>> Bytes=48,606,123,849 Blocks=753,445 at 05-Jul-2006 05:36.
>> 05-Jul 05:37 phoenix-dir: Created new Volume "Full-Tape-0003" in catalog.
>> 05-Jul 05:37 phoenix-sd: Please mount Volume "Full-Tape-0003" on Storage 
>> Device "sony SDX-500C" (/dev/st0) for Job bebif-job.2006-07-05_03.00.00
>> 05-Jul 06:37 phoenix-sd: Please mount Volume "Full-Tape-0003" on Storage 
>> Device "sony SDX-500C" (/dev/st0) for Job bebif-job.2006-07-05_03.00.00
>> 05-Jul 07:38 phoenix-sd: bebif-job.2006-07-05_03.00.00 Warning: Director 
>> wanted Volume "Full-Tape-0003" for device "sony SDX-500C" (/dev/st0).
>> Current Volume "Full-Tape-0002" not acceptable because:
>> 1998 Volume "Full-Tape-0002" status is Full, but should be Append, 
>> Purged or Recycle.
>> 05-Jul 08:38 phoenix-sd: Please mount Volume "Full-Tape-0003" on Storage 
>> Device "sony SDX-500C" (/dev/st0) for Job bebif-job.2006-07-05_03.00.00
>>
>> *** I changed the volume status of Full-Tape-0002 from "Full" to "Append"
>> 
>
> That's what you made the final mistake.
>   

Occasionally this manipulation worked in the past ..

>   
>> 05-Jul 09:20 phoenix-sd: Volume "Full-Tape-0002" previously written, moving 
>> to end of data.
>> 05-Jul 09:21 phoenix-sd: bebif-job.2006-07-05_03.00.00 Error: I cannot write 
>> on Volume "Full-Tape-0002" because:
>> The number of files mismatch! Volume=61 Catalog=50
>> 
>
> Yeah, sure... probably the volume info in the catalog was not correctly 
> upgraded after the failing WEOF, because this information is worthless 
> in such a situation. (Keep in mind that I did *not* check the code.)
>
>   
>> 05-Jul 09:21 phoenix-sd: Marking Volume "Full-Tape-0002" in Error in Catalog.
>> 05-Jul 09:23 phoenix-sd: Please mount Volume "Full-Tape-0003" on Storage 
>> Device "sony SDX-500C" (/dev/st0) for Job bebif-job.2006-07-05_03.00.00
>>
>> *** I updated the number of files in the catalog from 50 to 61
>>
>> 05-Jul 09:37 phoenix-sd: Volume "Full-Tape-0002" previously written, moving 
>> to end of data.
>> 05-Jul 09:39 phoenix-sd: Ready to append to end of Volume "Full-Tape-0002" 
>> at file=61.
>> 05-Jul 09:39 phoenix-sd: New volume "Full-Tape-0002" mounted on device "sony 
>> SDX-500C" (/dev/st0) at 05-Jul-2006 09:39.
>> 05-Jul 09:39 phoenix-sd: End of Volume "Full-Tape-0002" at 61:0 on device 
>> "sony SDX-500C" (/dev/st0). Write of 64512 bytes got -1.
>> 05-Jul 09:39 phoenix-sd: bebif-job.2006-07-05_03.00.00 Error: Error writing 
>> final EOF to tape. This Volume may not be readable.
>> dev.c:1542 ioctl MTWEOF error on "sony SDX-

[Bacula-users] block.c:263 Volume data error at 0:0! Wanted ID: "BB02", got "". Buffer discarded.

2006-07-10 Thread Julien Cigar
Hello !

Another strange error I have today ... I did a :
*umount tape-st
$> tapeinfo -f /dev/st0
$> mt -f /dev/st0 status

Then when I issue a mount command in the bconsole to remount the drive I 
get the following :

*mount
The defined Storage resources are:
 1: tape-st
 2: disk-st
Select Storage resource (1-2): 1
block.c:263 Volume data error at 0:0! Wanted ID: "BB02", got "". Buffer 
discarded.
3902 Cannot mount Volume on Storage Device "sony SDX-500C" (/dev/st0) 
because:
Requested Volume "" on "sony SDX-500C" (/dev/st0) is not a Bacula 
labeled Volume, because: ERR=block.c:263 Volume data error at 0:0! 
Wanted ID: "BB02", got "". Buffer discarded.
3905 Device "sony SDX-500C" (/dev/st0) open but no Bacula volume is mounted.
If this is not a blank tape, try unmounting and remounting the Volume.
*


Any idea ? The tape was labeled before of course ...

Thanks,
Julien


-
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] block.c:263 Volume data error at 0:0! Wanted ID: "BB02", got "". Buffer discarded.

2006-07-10 Thread Julien Cigar
Found it  
http://bacula.org/dev-manual/Bacula_Consol_Restor_Comman.html#SECTION000218000
Forgot this message ...

Julien Cigar wrote:
> Hello !
>
> Another strange error I have today ... I did a :
> *umount tape-st
> $> tapeinfo -f /dev/st0
> $> mt -f /dev/st0 status
>
> Then when I issue a mount command in the bconsole to remount the drive I 
> get the following :
>
> *mount
> The defined Storage resources are:
>  1: tape-st
>  2: disk-st
> Select Storage resource (1-2): 1
> block.c:263 Volume data error at 0:0! Wanted ID: "BB02", got "". Buffer 
> discarded.
> 3902 Cannot mount Volume on Storage Device "sony SDX-500C" (/dev/st0) 
> because:
> Requested Volume "" on "sony SDX-500C" (/dev/st0) is not a Bacula 
> labeled Volume, because: ERR=block.c:263 Volume data error at 0:0! 
> Wanted ID: "BB02", got "". Buffer discarded.
> 3905 Device "sony SDX-500C" (/dev/st0) open but no Bacula volume is mounted.
> If this is not a blank tape, try unmounting and remounting the Volume.
> *
>
>
> Any idea ? The tape was labeled before of course ...
>
> Thanks,
> Julien
>
>
> -
> 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
>   



-
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


[Bacula-users] Last chance before I throw this @#! tape drive through the window ...

2006-07-13 Thread Julien Cigar
Hello list,

I have always problems with my tape drive and Bacula. A problem 
resolved, another appears.
I'm despaired to make this drive working with Bacula ... this is my last 
mail before I plan to backup on disk only (which is a pity enough ..).

First my complete configuration :

OS: Linux (Debian) with kernel 2.6.15

Bacula: 1.38.9 with PostgreSQL (8.1.4)

Tape drive:
Sony SDX-500C (AIT2)
phoenix:/var/backups# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 06 Lun: 00
  Vendor: SONY Model: SDX-500C Rev: 0204
  Type:   Sequential-AccessANSI SCSI revision: 02

Scsi:
phoenix:/var/backups# cat /proc/scsi/aic7xxx/0
Adaptec AIC7xxx driver version: 7.0
Adaptec 2940 Ultra SCSI adapter
aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs

Tape drive is on ID 06:
Target 6 Negotiation Settings
User: 20.000MB/s transfers (10.000MHz, offset 127, 16bit)
Goal: 20.000MB/s transfers (10.000MHz, offset 8, 16bit)
Curr: 20.000MB/s transfers (10.000MHz, offset 8, 16bit)
Channel A Target 6 Lun 0 Settings
Commands Queued 3098509
Commands Active 0
Command Openings 1
Max Tagged Openings 0
Device Queue Frozen Count 0

This is the problem I currently have :

I followed the bacula documentation about "variable block size" (setblk 
0) and to init the drive correctly under linux (stoptions 7).
Here are the full operations I made:

phoenix:/etc/bacula# mt -f /dev/nst0 setblk 0
phoenix:/etc/bacula# mt -f /dev/nst0 stoptions 7
phoenix:/etc/bacula# mt -f /dev/nst0 rewind
phoenix:/etc/bacula# mt -f /dev/nst0 weof
phoenix:/etc/bacula# mt -f /dev/nst0 rewind
phoenix:/etc/bacula# mt -f /dev/nst0 status
drive type = Generic SCSI-2 tape
drive status = 822083584
sense key error = 0
residue count = 0
file number = 0
block number = 0
Tape block size 0 bytes. Density code 0x31 (unknown).
Soft error count since last status=0
General status bits on (4101):
 BOT ONLINE IM_REP_EN

phoenix:/etc/bacula# tapeinfo -f /dev/nst0
mtx: Request Sense: Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=0 (Unknown?!)
mtx: Request Sense: Sense Key=No Sense
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 00
mtx: Request Sense: Additional Sense Qualifier = 00
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
INQUIRY Command Failed

phoenix:/etc/bacula# /etc/init.d/bacula-sd start
Starting Bacula Storage daemon: bacula-sd.
phoenix:/etc/bacula# /etc/init.d/bacula-director start
Starting Bacula Director: bacula-dir.

(now switching to bacula console)

*label
Automatically selected Storage: tape-st
Enter new Volume name: Full-Tape-0001
Defined Pools:
 1: canis-incr-disk-pool
 2: full-tape-pool
Select the Pool (1-2): 2
Connecting to Storage daemon tape-st at 164.15.xxx.xxx:9103 ...
Sending label command for Volume "Full-Tape-0001" Slot 0 ...
3000 OK label. Volume=Full-Tape-0001 Device="sony SDX-500C" (/dev/nst0)
Catalog record for Volume "Full-Tape-0001", Slot 0  successfully created.
Requesting to mount sony SDX-500C ...
3001 Device "sony SDX-500C" (/dev/nst0) is mounted with Volume 
"Full-Tape-0001"
*run
A job name must be specified.
The defined Job resources are:
 1: canis-job
 2: canis-job-restore
Select Job resource (1-2): 1
Run Backup job
JobName:  canis-job
FileSet:  canis-fs
Level:Full
Client:   canis-fd
Storage:  tape-st
Pool: full-tape-pool
When: 2006-07-13 09:52:51
Priority: 10
OK to run? (yes/mod/no): yes
Job started. JobId=5
*
13-Jul 09:53 phoenix-dir: Start Backup JobId 5, 
Job=canis-job.2006-07-13_09.53.02
13-Jul 09:53 phoenix-sd: Wrote label to prelabeled Volume 
"Full-Tape-0001" on device "sony SDX-500C" (/dev/nst0)
*

(The job completes successfully)

*umount
Automatically selected Storage: tape-st
3002 Device "sony SDX-500C" (/dev/nst0) unmounted.
*quit
phoenix:/etc/bacula# bconsole
Connecting to Director phoenix:9101
1000 OK: phoenix-dir Version: 1.38.9 (02 May 2006)
Enter a period to cancel a command.
*mount
Using default Catalog name=catpgsql DB=bacula2
Automatically selected Storage: tape-st
block.c:263 Volume data error at 0:0! Wanted ID: "BB02", got "". Buffer 
discarded.
3902 Cannot mount Volume on Storage Device "sony SDX-500C" (/dev/nst0) 
because:
Requested Volume "" on "sony SDX-500C" (/dev/nst0) is not a Bacula 
labeled Volume, because: ERR=block.c:263 Volume data error at 0:0! 
Wanted ID: "BB02", got "". Buffer discarded.
3905 Device "sony SDX-500C" (/dev/nst0) open but no Bacula volume is 
mounted.
If this is not a blank tape, try unmounting and remounting the Volume.
*quit
phoenix:/etc/bacula# /etc/init.d/bacula-sd stop
Stopping Bacula Storage daemon: bacula-sd.
phoenix:/etc/bacula# /etc/init.d/bacula-sd start
Starting Bacula Storage daemon: bacula-sd.
phoenix:/etc/bacula# bconsole
Connectin

Re: [Bacula-users] Last chance before I throw this @#! tape drive through the window ...

2006-07-14 Thread Julien Cigar
Seems that I don't have such device ... :

phoenix:/home/jcigar# tapeinfo -f /dev/sg0
cannot open SCSI device '/dev/sg0' - No such file or directory

I've always used /dev/st0 or /dev/nst0, but I also have the following :
nst0a
nst0l
nst0m

st0a
st0l
st0m

I never try them ... but I don't think it's the cause of my problem :(

Regards,
Julien

MaxxAtWork wrote:
> On 7/13/06, Julien Cigar <[EMAIL PROTECTED]> wrote:
>
>   
>> phoenix:/etc/bacula# tapeinfo -f /dev/nst0
>> mtx: Request Sense: Long Report=yes
>> mtx: Request Sense: Valid Residual=no
>> mtx: Request Sense: Error Code=0 (Unknown?!)
>> mtx: Request Sense: Sense Key=No Sense
>> mtx: Request Sense: FileMark=no
>> mtx: Request Sense: EOM=no
>> mtx: Request Sense: ILI=no
>> mtx: Request Sense: Additional Sense Code = 00
>> mtx: Request Sense: Additional Sense Qualifier = 00
>> mtx: Request Sense: BPV=no
>> mtx: Request Sense: Error in CDB=no
>> mtx: Request Sense: SKSV=no
>> INQUIRY Command Failed
>>
>> 
>
> Just that you don't think tapeinfo command doesn't work,
> it requires the generic scsi device for your tape, i.e.
> # tapeinfo -f /dev/sg0
>
> Regards
>   



-
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] Last chance before I throw this @#! tape drivethrough the window ...

2006-07-14 Thread Julien Cigar
Okay,

I've added the "sg" module to the kernel but unfortunately it doesn't 
solve the problem (I've still those block.c:263 Volume data error at 
0:0! Wanted ID: "BB02", got "". Buffer discarded messages)  BUT ... 
I've tried with a 2.4 kernel and it seems to work !! It means that 
Bacula has still some problems with 2.6.x kernels (?) .. or simply that 
the my scsi card driver is buggy under 2.6.x ...

Julien


[EMAIL PROTECTED] wrote:
> Dear Julian,
>
> In order to execute 'tapeinfo' in Linux you need to make sure the 'sg'
> module is loaded.  This is the generic scsi module and can be loaded as
> follows:
>
> modprobe sg
>
> You can check it's loaded with:
> lsmod | grep sg
>
> You can force this to be loaded at boot time by adding it to
> /etc/modules
> (I think - I don't have access to my debian machine at work to check).
>
> Please note that not having this module loaded _may_ cause problems with
> Bacula (at least it will if there is an autochanger involved).
>
> Lastly, keep trying - don't give up.
>
> Best Regards,
>
> Brett Delle Grazie
>
> Senior Developer
> Logicalis Network Solutions Limited 
> Technology House, Laud Street,
> Croydon, Surrey, CRO 1SX
> T: +44 20 8680 8080
> DDI: +44 20 8633 8406
> Mob: +44 777 926 4419
> F: +44 20 8633 8645
> www.uk.logicalis.com
>  
> This email communication does not create or vary any contractual
> relationship between Logicalis and you. Internet communications are not
> secure and accordingly Logicalis does not accept any legal liability for
> the contents of this message. The contents of this email are
> confidential to the intended recipient at the email address to which it
> has been addressed. It may not be disclosed to or used by anyone other
> than this addressee, nor may it be copied in any way. If received in
> error, please contact Logicalis on the above switchboard number quoting
> the name of the sender and the addressee and then delete it from your
> system. Please note that neither Logicalis nor the sender accepts any
> responsibility for viruses and it is your responsibility to scan the
> email and attachments (if any).
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Julien
> Cigar
> Sent: 14 July 2006 08:31
> To: bacula-users@lists.sourceforge.net
> Subject: Re: [Bacula-users] Last chance before I throw this @#! tape
> drivethrough the window ...
>
> Seems that I don't have such device ... :
>
> phoenix:/home/jcigar# tapeinfo -f /dev/sg0 cannot open SCSI device
> '/dev/sg0' - No such file or directory
>
> I've always used /dev/st0 or /dev/nst0, but I also have the following :
> nst0a
> nst0l
> nst0m
>
> st0a
> st0l
> st0m
>
> I never try them ... but I don't think it's the cause of my problem :(
>
> Regards,
> Julien
>
> MaxxAtWork wrote:
>   
>> On 7/13/06, Julien Cigar <[EMAIL PROTECTED]> wrote:
>>
>>   
>> 
>>> phoenix:/etc/bacula# tapeinfo -f /dev/nst0
>>> mtx: Request Sense: Long Report=yes
>>> mtx: Request Sense: Valid Residual=no
>>> mtx: Request Sense: Error Code=0 (Unknown?!)
>>> mtx: Request Sense: Sense Key=No Sense
>>> mtx: Request Sense: FileMark=no
>>> mtx: Request Sense: EOM=no
>>> mtx: Request Sense: ILI=no
>>> mtx: Request Sense: Additional Sense Code = 00
>>> mtx: Request Sense: Additional Sense Qualifier = 00
>>> mtx: Request Sense: BPV=no
>>> mtx: Request Sense: Error in CDB=no
>>> mtx: Request Sense: SKSV=no
>>> INQUIRY Command Failed
>>>
>>> 
>>>   
>> Just that you don't think tapeinfo command doesn't work, it requires 
>> the generic scsi device for your tape, i.e.
>> # tapeinfo -f /dev/sg0
>>
>> Regards
>>   
>> 
>
>   



-
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] Last chance before I throw this @#! tapedrivethrough the window ...

2006-07-14 Thread Julien Cigar
In fact I always do this _before_ launching the bacula storage daemon :
mt -f /dev/nst0 stoptions 7
mt -f /dev/nst0 setblk 0


Georger Araujo wrote:
> Judging from the "BB02" string, I suspect it to be a
> problem with the block size. I've had such problems
> when I first deployed Bacula, so I ALWAYS set the
> block size before I mount a tape, and also after I
> eject it. 
> Here's my set_blocksize.sh script:
>
> 8<--cut-here
> #!/bin/sh
> # Set variable block mode (BlockSize = 0)
> # Fixed block (BlockSize <> 0) is WRONG!
> # If in doubt, run tapeinfo -f /dev/sg0 - BlockSize
> should be 0
> mt -f /dev/nst0 defblksize 0
> # Rewind the tape
> mt -f /dev/nst0 rewind
> ---cut-here-->8
>
> Here's my eject_tape.sh script:
>
> 8<--cut-here
> #! /bin/sh
> cd /etc/bacula
> # Set variable block mode
> # If in doubt, run tapeinfo -f /dev/sg0 - should be 0
> mt -f /dev/nst0 defblksize 0
> # Rewind the tape
> mt -f /dev/nst0 rewind
> # Eject the tape
> mt -f /dev/nst0 eject
> exit 0
> ---cut-here-->8
>
> While I'm at it, here's tape_properties.sh ...
>
> 8<--cut-here
> #! /bin/sh
> tapeinfo -f /dev/sg0
> exit 0
> ---cut-here-->8
>
> ... and clear_label.sh:
>
> 8<--cut-here
> #!/bin/sh
> # Manually relabel a tape.
> #
> # Run bconsole
> # unmount
> # delete media volume
>
> # Set variable block mode
> # If in doubt, run tapeinfo -f /dev/sg0 - should be 0
> mt -f /dev/nst0 defblksize 0
> # Rewind the tape
> mt -f /dev/nst0 rewind
> # Write physical End Of File (EOF) to the tape
> mt -f /dev/nst0 weof
>
> # Run bconsole
> # label
> # mount
> ---cut-here-->8
>
> My Bacula server (director/client/storage): Dell 2800
> running RHELAS 4 with an IBM LTO-2 tape drive.
> Regards,
>
> Georger
>
> --- [EMAIL PROTECTED] escreveu:
>
>   
>> Dear Julien,
>>
>> The only thing I can suggest now is that you review
>> what happens to the
>> tape options via:
>>
>> mt -f /dev/nst0 stoptions 0
>> grep st0 /var/log/messages
>>
>> Between backup and restore (i.e. before backup and
>> before restore but
>> after the mount command) in case they are being
>> reset somehow (by the
>> mount maybe?).
>>
>> The manual indicates that the error you are getting
>> is possibly related
>> to
>> block positioning.  As you have indicated it might
>> also be a kernel
>> issue.
>>
>> Best Regards,
>>
>> Brett
>> 
>
>
>   
>
>
>
>   
>   
> ___ 
> Você quer respostas para suas perguntas? Ou você sabe muito e quer 
> compartilhar seu conhecimento? Experimente o Yahoo! Respostas !
> http://br.answers.yahoo.com/
>
>
> -
> 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
>   



-
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] Last chance before I throw [EMAIL PROTECTED] tapedrivethrough the window ...

2006-07-14 Thread Julien Cigar
Brett,

(Under Linux it's "stoptions" in place of "setstoptions".)

Under kernel 2.6 I have no results in /var/log/syslog or /var/log/messages

Under kernel 2.4 I have this:
Jul 14 11:30:32 localhost kernel: st0: Mode 0 options: buffer writes: 1, 
async writes: 1, read ahead: 1
Jul 14 11:30:32 localhost kernel: st0:can bsr: 0, two FMs: 0, fast 
mteom: 0, auto lock: 0,
Jul 14 11:30:32 localhost kernel: st0:defs for wr: 0, no block 
limits: 0, partitions: 0, s2 log: 0
Jul 14 11:30:32 localhost kernel: st0:sysv: 0 nowait: 0

When I boot (under kernel 2.6) I noticed:
Jul 14 15:36:49 localhost kernel: scsi0 : Adaptec AIC7XXX EISA/VLB/PCI 
SCSI HBA DRIVER, Rev 7.0
Jul 14 15:36:49 localhost kernel: 
Jul 14 15:36:49 localhost kernel: aic7880: Ultra Wide Channel A, 
SCSI Id=7, 16/253 SCBs
Jul 14 15:36:49 localhost kernel:
Jul 14 15:36:49 localhost kernel:   Vendor: SONY  Model: 
SDX-500C  Rev: 0204
Jul 14 15:36:49 localhost kernel:   Type:   
Sequential-Access  ANSI SCSI revision: 02
Jul 14 15:36:49 localhost kernel:  target0:0:6: Beginning Domain Validation
Jul 14 15:36:49 localhost kernel:  target0:0:6: wide asynchronous.
Jul 14 15:36:49 localhost kernel:  target0:0:6: FAST-10 WIDE SCSI 20.0 
MB/s ST (100 ns, offset 8)
Jul 14 15:36:49 localhost kernel:  target0:0:6: Domain Validation 
skipping write tests
Jul 14 15:36:49 localhost kernel:  target0:0:6: Ending Domain Validation
Jul 14 15:36:49 localhost kernel: st: Version 20050830, fixed bufsize 
32768, s/g segs 256
Jul 14 15:36:49 localhost kernel: st 0:0:6:0: Attached scsi tape 
st0<4>st0: try direct i/o: yes (alignment 512 B), max page reachable by 
HBA 1048575

As you can see the drive starts with a fixed block size of 32k. So after 
the boot, I stop all the bacula daemons and I setblk 0 and stoptions 7 
(buffer write + async writes + read ahead). Then I relaunch the bacula 
daemons.
Is it possible that the kernel or the driver (or ...) "resets" the block 
size after a mt -f /dev/nst0 setblk 0 and an ejecting of the tape from 
the tape drive ? (I checked with mt -f /dev/nst0 status but it's still 
on '0' so I presume that the drive is still in variable block mode).

Another question, is it possible that it fails because I don't *umount 
before ejecting the tape ? (I press on the eject button of the tape drive)
In fact the people who have to change the tape when they received a mail 
should not access bconsole (too complicated ...), so all they have to do 
is to press on the button and put the other tape (so without having to 
*umount).

Many thanks,
Julien

[EMAIL PROTECTED] wrote:
> Dear Julian,
>
> This is good, but we were both referring to in between jobs (after daemon has 
> started). The original commands I gave:
> mt -f /dev/nst0 setstoptions 0
> grep st0 /var/log/messages
>
> Will show you if these settings are being changed indvertedly by either (a) 
> bacula or (b) the kernel driver prior
> to the restore command (e.g. by the mount command which 'opens' the tape 
> drive).
>
> Best Regards,
>
> Brett
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Julien Cigar
> Sent: 14 July 2006 15:38
> To: bacula-users@lists.sourceforge.net
> Subject: Re: [Bacula-users] Last chance before I throw [EMAIL PROTECTED] 
> tapedrivethrough the window ...
>
> In fact I always do this _before_ launching the bacula storage daemon :
> mt -f /dev/nst0 stoptions 7
> mt -f /dev/nst0 setblk 0
>
>
> Georger Araujo wrote:
>   
>> Judging from the "BB02" string, I suspect it to be a problem with the 
>> block size. I've had such problems when I first deployed Bacula, so I 
>> ALWAYS set the block size before I mount a tape, and also after I 
>> eject it.
>> Here's my set_blocksize.sh script:
>>
>> 8<--cut-here
>> #!/bin/sh
>> # Set variable block mode (BlockSize = 0) # Fixed block (BlockSize <> 
>> 0) is WRONG!
>> # If in doubt, run tapeinfo -f /dev/sg0 - BlockSize should be 0 mt -f 
>> /dev/nst0 defblksize 0 # Rewind the tape mt -f /dev/nst0 rewind
>> ---cut-here-->8
>>
>> Here's my eject_tape.sh script:
>>
>> 8<--cut-here
>> #! /bin/sh
>> cd /etc/bacula
>> # Set variable block mode
>> # If in doubt, run tapeinfo -f /dev/sg0 - should be 0 mt -f /dev/nst0 
>> defblksize 0 # Rewind the tape mt -f /dev/nst0 rewind # Eject the tape 
>> mt -f /dev/nst0 eject exit 0
>> ---cut-here-->8
>>
>> While I'm at it, here's tape_properties.sh ...
>>
>> 8<--cut-here
>> #! /bin/sh
>> tapeinfo -f /dev/sg0
>> exit 0
>> ---

Re: [Bacula-users] Last chance before I [EMAIL PROTECTED] tapedrivethrough the window ...

2006-07-14 Thread Julien Cigar
ok ! I found why defblksize and sesetoptions didn't work ...
I'm running Debian and I had to install mt-st package (seems that I had 
an obscure GNU version of mt (?)).
Now those options are recognized.

Let's try to make some backup/restore tests ... and see if it works ...

[EMAIL PROTECTED] wrote:
> Dear Julien,
>
> Under 2.6 try (note stsetoptions, not stoptions):
>
> mt -f /dev/nst0 stsetoptions 0 
> dmesg | grep st0
>
> That should give you the information you need.  Clearly from the existing 
> info your drive is coming
> Up incorrectly.  What remains to be seen is whether we can force it 
> permanently to block size of zero.
>
> Note that for 2.6 kernel, depending upon version of mt you should be able to:
> mt -f /dev/nst0 defblksize 0
>
> as well.
>
> Regards,
>
> Brett
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Julien Cigar
> Sent: 14 July 2006 16:08
> To: bacula-users@lists.sourceforge.net
> Subject: Re: [Bacula-users] Last chance before I [EMAIL PROTECTED] 
> tapedrivethrough the window ...
>
> Brett,
>
> (Under Linux it's "stoptions" in place of "setstoptions".)
>
> Under kernel 2.6 I have no results in /var/log/syslog or /var/log/messages
>
> Under kernel 2.4 I have this:
> Jul 14 11:30:32 localhost kernel: st0: Mode 0 options: buffer writes: 1, 
> async writes: 1, read ahead: 1
> Jul 14 11:30:32 localhost kernel: st0:can bsr: 0, two FMs: 0, fast 
> mteom: 0, auto lock: 0,
> Jul 14 11:30:32 localhost kernel: st0:defs for wr: 0, no block 
> limits: 0, partitions: 0, s2 log: 0
> Jul 14 11:30:32 localhost kernel: st0:sysv: 0 nowait: 0
>
> When I boot (under kernel 2.6) I noticed:
> Jul 14 15:36:49 localhost kernel: scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI 
> HBA DRIVER, Rev 7.0
> Jul 14 15:36:49 localhost kernel: 
> Jul 14 15:36:49 localhost kernel: aic7880: Ultra Wide Channel A, 
> SCSI Id=7, 16/253 SCBs
> Jul 14 15:36:49 localhost kernel:
> Jul 14 15:36:49 localhost kernel:   Vendor: SONY  Model: 
> SDX-500C  Rev: 0204
> Jul 14 15:36:49 localhost kernel:   Type:   
> Sequential-Access  ANSI SCSI revision: 02
> Jul 14 15:36:49 localhost kernel:  target0:0:6: Beginning Domain Validation 
> Jul 14 15:36:49 localhost kernel:  target0:0:6: wide asynchronous.
> Jul 14 15:36:49 localhost kernel:  target0:0:6: FAST-10 WIDE SCSI 20.0 MB/s 
> ST (100 ns, offset 8) Jul 14 15:36:49 localhost kernel:  target0:0:6: Domain 
> Validation skipping write tests Jul 14 15:36:49 localhost kernel:  
> target0:0:6: Ending Domain Validation Jul 14 15:36:49 localhost kernel: st: 
> Version 20050830, fixed bufsize 32768, s/g segs 256 Jul 14 15:36:49 localhost 
> kernel: st 0:0:6:0: Attached scsi tape
> st0<4>st0: try direct i/o: yes (alignment 512 B), max page reachable by HBA 
> 1048575
>
> As you can see the drive starts with a fixed block size of 32k. So after the 
> boot, I stop all the bacula daemons and I setblk 0 and stoptions 7 (buffer 
> write + async writes + read ahead). Then I relaunch the bacula daemons.
> Is it possible that the kernel or the driver (or ...) "resets" the block size 
> after a mt -f /dev/nst0 setblk 0 and an ejecting of the tape from the tape 
> drive ? (I checked with mt -f /dev/nst0 status but it's still on '0' so I 
> presume that the drive is still in variable block mode).
>
> Another question, is it possible that it fails because I don't *umount before 
> ejecting the tape ? (I press on the eject button of the tape drive) In fact 
> the people who have to change the tape when they received a mail should not 
> access bconsole (too complicated ...), so all they have to do is to press on 
> the button and put the other tape (so without having to *umount).
>
> Many thanks,
> Julien
>
> [EMAIL PROTECTED] wrote:
>   
>> Dear Julian,
>>
>> This is good, but we were both referring to in between jobs (after daemon 
>> has started). The original commands I gave:
>> mt -f /dev/nst0 setstoptions 0
>> grep st0 /var/log/messages
>>
>> Will show you if these settings are being changed indvertedly by 
>> either (a) bacula or (b) the kernel driver prior to the restore command 
>> (e.g. by the mount command which 'opens' the tape drive).
>>
>> Best Regards,
>>
>> Brett
>> -Original Message-
>> From: [EMAIL PROTECTED] 
>> [mailto:[EMAIL PROTECTED] On Behalf Of 
>> Julien Cigar
>> Sent: 14 July 2006 15:38
>> To: bacula-users@lists.sourceforge.net
>> Subject: Re: [Bacula-users] Last chance before I throw [EMAIL PROTECTED]

Re: [Bacula-users] Internal Bacula Proxy

2006-07-14 Thread Julien Cigar
Hello,

I have a similar installation (public ip are fake):

10.0.0.2 = bacula director + storage daemon
10.0.0.3 = client to backup
...
10.0.0.254 / 164.15.0.1 = NAT gateway
134.184.0.1 = client to backup
...

in the Storage resource on the director (10.0.0.2) I have the public IP 
of the NAT gateway (164.15.0.1) :

Storage {
Name = tape-st
Address = 164.15.0.1
SDPort = 9103
Password = "xxx"
Device = "sony SDX-500C"
MediaType = AIT2
Autochanger = no
MaximumConcurrentJobs = 1
}

On the NAT gateway (10.0.0.254) I have the following rules:

Simple port forwarding :
$IPTABLES -t nat -A PREROUTING -p tcp -i $INTIF -s 10.0.0.$IP1 -d $EXTIP 
--dport 9103 -j DNAT --to 10.0.0.2:9103
$IPTABLES -t nat -A PREROUTING -p tcp -i $INTIF -s 10.0.0.$IP2 -d $EXTIP 
--dport 9103 -j DNAT --to 10.0.0.2:9103
(...)

This is the important rule (SNAT):
$IPTABLES -t nat -A POSTROUTING -p tcp -d 10.0.0.2 --dport 9103 -o 
$INTIF -j SNAT --to $EXTIP

The following should be set too if -P FORWARD is DROP for example :
$IPTABLES -A FORWARD -i $EXTIF -s 134.184.0.1 -o $INTIF -d 10.0.0.2 -p 
tcp --dport 9103 -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT

(...)

the routes are like this :
source internal : 10.0.0.x -> 164.15.0.1 -> 10.0.0.2 (port forwarding + 
SNAT)
source external : 134.184.0.x -> 164.15.0.1 (port forwarding)

Hope it helps

Julien

Wilson, David wrote:
>
> Greetings,
>
> I am looking for a way to control backups for hosts located inside of 
> a firewall. These hosts are on a private non-routable address space 
> and NAT’d through a firewall.
>
> My director and storage daemon are located in my normal server space 
> and have no problems backing up other hosts.
>
> I would like to know if there is a way to setup a host behind the 
> firewall to kick of backups against my clients within this network and 
> have them backup to my storage daemon located on the “public” side of 
> the firewall. Ideally if there was a proxy bacula director with which 
> I could place within this private space and only grant my director 
> access to which then would kick off backups to hosts within the 
> private network it would be perfect.
>
> Has anyone else run into an issue similar to this and how did they 
> solve it. I do not want to open access from my director to each host 
> behind the firewall, and I would like to use the same volumes I would 
> normally use for backups.
>
> Thanks,
>
> **David Wilson***
> ***Network Security Engineer***
> **PAETEC Communications, Inc.**
> **Voice: (585) 340 8209**
> **Mobile: (585) 259 0963***
>
> 
>
>
> -
> 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
>   



-
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] Last chance before I throw [EMAIL PROTECTED] tapedrivethrough the window ...

2006-07-15 Thread Julien Cigar
Hello Kern,

Indeed, I've already read the "tape testing chapter" and the FAQ at 
least three times, made the btape test and the btape fill twice (with 
success ...), tried with block positionning = no, with minimum block 
size = 1024 and maximum block size = 1024, ...

However, it *seems* to work for now ... I'll be fixed monday (the full 
backup jobs runs every sunday at 3:00am).

Julien

Kern Sibbald wrote:
> From a cursory look at what you are doing, it doesn't look like you are using 
> the right commands.
>
> Please take ten minutes to read the tape testing chapter of the manual. All 
> this is explained there, with the correct commands to use.   If you have 
> already done this and executed the correct commands, ignore my email as I 
> have not followed the thread.
>
> On Friday 14 July 2006 17:08, Julien Cigar wrote:
>   
>> Brett,
>>
>> (Under Linux it's "stoptions" in place of "setstoptions".)
>>
>> Under kernel 2.6 I have no results in /var/log/syslog or /var/log/messages
>>
>> Under kernel 2.4 I have this:
>> Jul 14 11:30:32 localhost kernel: st0: Mode 0 options: buffer writes: 1,
>> async writes: 1, read ahead: 1
>> Jul 14 11:30:32 localhost kernel: st0:can bsr: 0, two FMs: 0, fast
>> mteom: 0, auto lock: 0,
>> Jul 14 11:30:32 localhost kernel: st0:defs for wr: 0, no block
>> limits: 0, partitions: 0, s2 log: 0
>> Jul 14 11:30:32 localhost kernel: st0:sysv: 0 nowait: 0
>>
>> When I boot (under kernel 2.6) I noticed:
>> Jul 14 15:36:49 localhost kernel: scsi0 : Adaptec AIC7XXX EISA/VLB/PCI
>> SCSI HBA DRIVER, Rev 7.0
>> Jul 14 15:36:49 localhost kernel: 
>> Jul 14 15:36:49 localhost kernel: aic7880: Ultra Wide Channel A,
>> SCSI Id=7, 16/253 SCBs
>> Jul 14 15:36:49 localhost kernel:
>> Jul 14 15:36:49 localhost kernel:   Vendor: SONY  Model:
>> SDX-500C  Rev: 0204
>> Jul 14 15:36:49 localhost kernel:   Type:
>> Sequential-Access  ANSI SCSI revision: 02
>> Jul 14 15:36:49 localhost kernel:  target0:0:6: Beginning Domain Validation
>> Jul 14 15:36:49 localhost kernel:  target0:0:6: wide asynchronous.
>> Jul 14 15:36:49 localhost kernel:  target0:0:6: FAST-10 WIDE SCSI 20.0
>> MB/s ST (100 ns, offset 8)
>> Jul 14 15:36:49 localhost kernel:  target0:0:6: Domain Validation
>> skipping write tests
>> Jul 14 15:36:49 localhost kernel:  target0:0:6: Ending Domain Validation
>> Jul 14 15:36:49 localhost kernel: st: Version 20050830, fixed bufsize
>> 32768, s/g segs 256
>> Jul 14 15:36:49 localhost kernel: st 0:0:6:0: Attached scsi tape
>> st0<4>st0: try direct i/o: yes (alignment 512 B), max page reachable by
>> HBA 1048575
>>
>> As you can see the drive starts with a fixed block size of 32k. So after
>> the boot, I stop all the bacula daemons and I setblk 0 and stoptions 7
>> (buffer write + async writes + read ahead). Then I relaunch the bacula
>> daemons.
>> Is it possible that the kernel or the driver (or ...) "resets" the block
>> size after a mt -f /dev/nst0 setblk 0 and an ejecting of the tape from
>> the tape drive ? (I checked with mt -f /dev/nst0 status but it's still
>> on '0' so I presume that the drive is still in variable block mode).
>>
>> Another question, is it possible that it fails because I don't *umount
>> before ejecting the tape ? (I press on the eject button of the tape drive)
>> In fact the people who have to change the tape when they received a mail
>> should not access bconsole (too complicated ...), so all they have to do
>> is to press on the button and put the other tape (so without having to
>> *umount).
>>
>> Many thanks,
>> Julien
>>
>> [EMAIL PROTECTED] wrote:
>> 
>>> Dear Julian,
>>>
>>> This is good, but we were both referring to in between jobs (after daemon
>>> has started). The original commands I gave: mt -f /dev/nst0 setstoptions
>>> 0
>>> grep st0 /var/log/messages
>>>
>>> Will show you if these settings are being changed indvertedly by either
>>> (a) bacula or (b) the kernel driver prior to the restore command (e.g. by
>>> the mount command which 'opens' the tape drive).
>>>
>>> Best Regards,
>>>
>>> Brett
>>> -Original Message-
>>> From: [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED] On Behalf Of Julien
>>> Cigar Sent: 14 July 2006 15:38
>>> To: bacula-users@lists.sourceforge.net
>>> Subject: Re: [Bacula-users] Last chance before

Re: [Bacula-users] Web site now translated into French

2006-07-23 Thread Julien Cigar
Great job ! Thanks to the translators !

Kern Sibbald wrote:
> Hello,
>
> This is to let you know that Alexandre Baron has finished the first cut of 
> translating the Bacula web site into French.  It looks really nice.  As I 
> mentioned, this is a first cut, there are probably still a few broken links,  
> we haven't yet added the icons for switching between English and French, the 
> News item needs updating (by me in English) before translation, and finally, 
> there may be a few problems with accents on some screens.  We expect to have 
> all these problems worked out in the near future.
>
> If you are interested, you can access it at:
>
>   www.bacula.org/fr
>
> You may note that I have removed the links to the French manual from the 
> English documentation page, and added them to the corresponding French page, 
> and I have posted Ludovic's latest French translation.
>
> It is all looking nice.  Thanks to Alaxendre for his work on translating the 
> web site, and to Ludovic for his continuing devotion to the manual.
>
> Best regards,
>
> Kern
>
> -
> 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
>   


-
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] Running Down Permission Problems and Running A Secure Setup

2006-08-07 Thread Julien Cigar
Only the bacula file daemon should be run as root ... which is quite 
logical otherwise some files could not be read (permission denied)

Mathew Brown wrote:
> Hi,
>I'm currently trying to set up bacula.  However, considering the
>numerous components (FD, SD, Tape, Dir, console, DB), I'm running
>into lots of permission-related problems.  For example, I was able to
>save perform backups (after struggling with permissions after trying
>to run as the user bacula and then reverting back to root), but when
>I came to perform a recovery, the SD complained of a permission
>problem.  When looking at the SD, I found that it runs as the user
>bacula while the FD and Dir run as root).  Changing the permission of
>/var/bacula to make the bacula user the owner resolved these
>problems.  However, it there a more standard way of allowing the
>various daemons run as non-root users (to create a secure setup)?  If
>so, could someone kindly highlight them?  Thanks for your help.
>   


-
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] newbie with tapes question...

2006-08-09 Thread Julien Cigar
mt -f /dev/nst0 rewind
mt -f /dev/nst0 weof
mt -f /dev/nst0 rewind

bconsole
* label


Jaime Ventura wrote:
> Hi
> I've made some tests with a tape using btape command.
> Now, I don't know how to erase the tape so I cant use it with bacula.
> Can you help me?
> thanks
>   


-
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] Bacula doesn' start!! please urgent

2006-08-21 Thread Julien Cigar
Run the upgrade script. You probably upgrade Bacula without upgrading 
the database.
Also, please note that SQLite isn't recommended in "production"

Fredy Rodriguez -Equant wrote:
>
> Hello,
>
>  
>
> Please, i’ve traed to start the bacula and get the following message:
>
>  
>
> [EMAIL PROTECTED] bin]# ./bacula start
>
> Starting the Bacula Storage daemon
>
> Starting the Bacula File daemon
>
> Starting the Bacula Director daemon
>
> *17-Aug 17:05 bacula-dir:  Fatal error: Version error for database 
> "bacula". Wanted 9, got 8*
>
> *17-Aug 17:05 bacula-dir:  Fatal error: Could not open Catalog 
> "MyCatalog", database "bacula".*
>
> *17-Aug 17:05 bacula-dir:  Fatal error: Version error for database 
> "bacula". Wanted 9, got 8*
>
> *17-Aug 17:05 bacula-dir ERROR TERMINATION*
>
> *Please correct configuration file: /bacula/bacula/bin/bacula-dir.conf*
>
>  
>
> Please I have installed sqlite-2.8.16kes ……I don’t know what to 
> do……..please help!!!
>
>  
>
> Thanks  a  lot!!!
>
>  
>
>  
>
> *FREDY  RODRIGUEZ*
>
>  
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.11.1/421 - Release Date: 16/08/2006
>
> 
>
> -
> 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
>   


-
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


[Bacula-users] The number of files mismatch

2006-10-05 Thread Julien Cigar
Hello,

===
Bacula: 1.38.11
Os: Linux (Debian), kernel 2.6.17
Tape drive: Sony SDX-500C
Scsi card: Adaptec 2940 Ultra SCSI
===

I'm using Bacula for months and it worked fine until today:

05-Oct 03:00 phoenix-sd: Volume "Full-Tape-0018" previously written, 
moving to end of data.
05-Oct 03:01 phoenix-sd: phoenix-job.2006-10-05_03.00.00 Error: I cannot 
write on Volume "Full-Tape-0018" because:
The number of files mismatch! Volume=67 Catalog=34
05-Oct 03:01 phoenix-sd: Marking Volume "Full-Tape-0018" in Error in 
Catalog.

Any idea what could be the cause of this ?

Also, I have 18 volumes in my catalog (Full-Tape-0001 to 
Full-Tape-0018), and today Bacula had to start from Full-Tape-0001 again 
(recycling).
My tapes were written sequentially (from Full-Tape-0001 to 
Full-Tape-0018), but I noticed that Bacula pruned only volumes 
Full-Tape-0001, Full-Tape-0004, Full-Tape-0008, Full-Tape-0010. I don't 
understand why because volume Full-Tape-0003 has been written before 
Full-Tape-0004 and Full-Tape-0003 has not been pruned ... (I have a 
Volume Retention of 30 days).

Thanks for answers,
Julien

-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
office: [EMAIL PROTECTED]
home: [EMAIL PROTECTED]


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.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] The number of files mismatch

2006-10-05 Thread Julien Cigar
Thanks for reply.

I read that in the manual, but unfortunately I haven't interrupt a 
backup, and Bacula didn't crashed ...
What's strange is that the backup starts at 03:00am, and the last full 
backup completed sucessfully

Ger Apeldoorn wrote:
> Hi,
>
> This happens if you interrupt a backup, so the catalog is not updated 
> properly.
>
> Here's how to fix it:
> http://www.bacula.org/dev-manual/Tips_Suggestions.html#SECTION000367000
>
> Greetings,
> Ger
>
> Op donderdag 5 oktober 2006 09:49, schreef Julien Cigar:
>   
>> Hello,
>>
>> ===
>> Bacula: 1.38.11
>> Os: Linux (Debian), kernel 2.6.17
>> Tape drive: Sony SDX-500C
>> Scsi card: Adaptec 2940 Ultra SCSI
>> ===
>>
>> I'm using Bacula for months and it worked fine until today:
>>
>> 05-Oct 03:00 phoenix-sd: Volume "Full-Tape-0018" previously written,
>> moving to end of data.
>> 05-Oct 03:01 phoenix-sd: phoenix-job.2006-10-05_03.00.00 Error: I cannot
>> write on Volume "Full-Tape-0018" because:
>> The number of files mismatch! Volume=67 Catalog=34
>> 05-Oct 03:01 phoenix-sd: Marking Volume "Full-Tape-0018" in Error in
>> Catalog.
>>
>> Any idea what could be the cause of this ?
>>
>> Also, I have 18 volumes in my catalog (Full-Tape-0001 to
>> Full-Tape-0018), and today Bacula had to start from Full-Tape-0001 again
>> (recycling).
>> My tapes were written sequentially (from Full-Tape-0001 to
>> Full-Tape-0018), but I noticed that Bacula pruned only volumes
>> Full-Tape-0001, Full-Tape-0004, Full-Tape-0008, Full-Tape-0010. I don't
>> understand why because volume Full-Tape-0003 has been written before
>> Full-Tape-0004 and Full-Tape-0003 has not been pruned ... (I have a
>> Volume Retention of 30 days).
>>
>> Thanks for answers,
>> Julien
>> 
>
>   


-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
office: [EMAIL PROTECTED]
home: [EMAIL PROTECTED]


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.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] The number of files mismatch

2006-10-05 Thread Julien Cigar
Arno Lehmann wrote:
> Hi,
>
>   

hello :)

> On 10/5/2006 9:49 AM, Julien Cigar wrote:
>   
>> Hello,
>>
>> ===
>> Bacula: 1.38.11
>> Os: Linux (Debian), kernel 2.6.17
>> Tape drive: Sony SDX-500C
>> Scsi card: Adaptec 2940 Ultra SCSI
>> ===
>>
>> I'm using Bacula for months and it worked fine until today:
>>
>> 05-Oct 03:00 phoenix-sd: Volume "Full-Tape-0018" previously written, 
>> moving to end of data.
>> 05-Oct 03:01 phoenix-sd: phoenix-job.2006-10-05_03.00.00 Error: I cannot 
>> write on Volume "Full-Tape-0018" because:
>> The number of files mismatch! Volume=67 Catalog=34
>> 05-Oct 03:01 phoenix-sd: Marking Volume "Full-Tape-0018" in Error in 
>> Catalog.
>>
>> Any idea what could be the cause of this ?
>> 
>
> Probably a failure when that tape was last written which prevented the 
> catalog update to work. Might have been a SD, DIR, or database issue, 
> for example.
>
>   

The last full jobs completed successfully, with no write error or so.
The only problem could be a database issue (I'm using PostgreSQL) ... 
but I'm pretty sure that it's not the case

>> Also, I have 18 volumes in my catalog (Full-Tape-0001 to 
>> Full-Tape-0018), and today Bacula had to start from Full-Tape-0001 again 
>> (recycling).
>> My tapes were written sequentially (from Full-Tape-0001 to 
>> Full-Tape-0018), but I noticed that Bacula pruned only volumes 
>> Full-Tape-0001, Full-Tape-0004, Full-Tape-0008, Full-Tape-0010. I don't 
>> understand why because volume Full-Tape-0003 has been written before 
>> Full-Tape-0004 and Full-Tape-0003 has not been pruned ... (I have a 
>> Volume Retention of 30 days).
>> 
>
> Hard to tell without knowledge of your retention times and pools and so on.
>
>   

This is my pool definition :

Pool { 
Name = full-tape-pool
PoolType = Backup
LabelFormat = "Full-Tape-"
Recycle = yes
RecycleOldestVolume = yes
MaximumVolumes = 18
MaximumVolumeJobs = 0
VolumeUseDuration = 0
VolumeRetention = 30 days
CatalogFiles = yes
AutoPrune = yes
AcceptAnyVolume = no
}

and for the jobs I haven't modified the job retention or file retention.
All I want in fact is that the tape gets recycled after 30 days.

> If you query the tape contents, i.e. list the jobs stord on the tapes 
> not pruned, are they actually unused?
>
>   

In this case Full-Tape-0004 has been purged, but not 0003 and 0002 
(which is incorrect because the last written comes before) :
|  11 | Full-Tape-0002 | Full  | 87,664,052,882 |   92 |
2,592,000 |   1 |0 | 0 | AIT2  | 2006-07-24 05:24:59 |
|  33 | Full-Tape-0003 | Full  | 70,990,768,430 |   75 |
2,592,000 |   1 |0 | 0 | AIT2  | 2006-07-31 03:50:22 |
|  39 | Full-Tape-0004 | Purged| 90,224,088,423 |   92 |
2,592,000 |   1 |0 | 0 | AIT2  | 2006-08-01 06:03:19 |

When I query those tapes (Full-Tape-000[2|3]), no jobs are on them :
(...)
14: List Jobs stored for a given Volume name
15: List Volumes Bacula thinks are in changer
16: List Volumes likely to need replacement from age or errors
Choose a query (1-16): 14
Enter Volume name: Full-Tape-0003
No results to list.
*

> Anyway, I found that Bacula usually handles recycling correctly, even if 
> I don't care which tapes to recycle when.
>
> Arno
>
>
>   

Thanks,
Julien

>> Thanks for answers,
>> Julien
>>
>> 
>
>   


-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
office: [EMAIL PROTECTED]
home: [EMAIL PROTECTED]


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.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] bacula purges wrong volume according to lastwritten

2006-10-15 Thread Julien Cigar
I had exactly the same problem two weeks ago and I still haven't found 
an explanation why Bacula do this ...

Perhaps there is a bug in Bacula recycling process when you only specify 
a Volume Retention (lower than a Job  / File Retention) ? But in the doc 
said : "The *Volume Retention* is applied independently of the *Job 
Retention* and the *File Retention* periods defined in the Client 
resource. This means that all the retentions periods are applied in turn 
and that the shorter period is the one that effectively takes precedence. "

So ...

Maria McKinley wrote:
> Hi there,
>
> I know this subject has come up before, but I couldn't find a satisfying 
> answer (could be because I got frustrated with both the gmane and 
> sourceforge interfaces). I have 16 tapes that I am using for a weekly 
> backup that takes 4 tapes. I can't get it to cycle through the tapes in 
> a sane way. For example:
>
> *list volumes pool=Weekly
> +-++---+--+--+--+-+--+---+---+-+
> | MediaId | VolumeName | VolStatus | VolBytes | VolFiles | 
> VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten 
>  |
> +-++---+--+--+--+-+--+---+---+-+
> | 4   | A006   | Full  | 79362076751  | 79   | 216 
>  | 1   | 4| 1 | VXA-2 | 2006-09-09 05:15:23 |
> | 5   | A007   | Full  | 100904116589 | 100  | 216 
>  | 1   | 5| 1 | VXA-2 | 2006-10-14 12:41:53 |
> | 9   | B001   | Full  | 99954370892  | 99   | 216 
>  | 1   | 6| 1 | VXA-2 | 2006-10-14 08:08:54 |
> | 10  | B002   | Used  | 77612588182  | 79   | 216 
>  | 1   | 7| 1 | VXA-2 | 2006-09-09 19:05:25 |
> | 11  | B005   | Full  | 78808048051  | 78   | 216 
>  | 1   | 4| 0 | VXA-2 | 2006-09-16 18:53:08 |
> | 12  | B006   | Purged| 79411170848  | 79   | 216 
>  | 1   | 5| 0 | VXA-2 | 2006-09-16 11:39:32 |
> | 17  | D002   | Recycle   | 1| 0| 216 
>  | 1   | 6| 0 | VXA-2 | 2006-09-16 05:37:07 |
> | 18  | A001   | Full  | 78939313776  | 79   | 216 
>  | 1   | 7| 0 | VXA-2 | 2006-09-17 17:59:50 |
> | 32  | E005   | Full  | 100050107110 | 100  | 216 
>  | 1   | 4| 0 | VXA-2 | 2006-09-30 18:55:36 |
> | 37  | A002   | Full  | 101892440467 | 101  | 216 
>  | 1   | 5| 0 | VXA-2 | 2006-09-30 23:34:33 |
> | 52  | F007   | Full  | 106290481269 | 106  | 216 
>  | 1   | 6| 0 | VXA-2 | 2006-10-01 04:42:56 |
> | 53  | F008   | Used  | 12416649864  | 13   | 216 
>  | 1   | 7| 0 | VXA-2 | 2006-10-01 05:44:07 |
> +-++---+--+--+--+-+--+---+---+-+
>
> Why did bacula decide to recycle/purge tapes that were last written on 
> Sept 16 instead of a volume that was last written on Sept 9th? I'm sure 
> there is some logical reason for this, but it is not obvious to me, and 
> I therefor don't know what I can do to remedy the situation. I'm 
> wondering if there is some other way to cycle through these tapes so 
> that it is easier to predict which four tapes bacula will want each 
> week. Right now I have to play a game where I disable tapes as bacula 
> picks the wrong ones until bacula picks a tape that I have put in the 
> changer (for what I thought were logical reasons!). Here is my current 
> weekly definition:
>
> Pool {
>Name = Weekly
>Volume Use Duration = 5d # only uses each tape for one week
>Pool Type = Backup
>Cleaning Prefix = "CLN"
>AutoPrune = yes
>VolumeRetention = 25d
>Recycle = yes
> }
>
> How can I do this better? Thanks for any advice, cheers, Maria
>
> -
> 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
>   


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technolog

Re: [Bacula-users] Bacula 5.2.6, possible bug in PostgreSQL handling, causes director to die

2012-03-12 Thread Julien Cigar

On 03/12/2012 11:27, Denny Schierz wrote:

Am 12.03.2012 um 09:33 schrieb Marcin Krol:


I've recently switched my Bacula from 5.0.3 to 5.2.6. I'm using
PostgreSQL for storing Bacula database.

no help, but I had the absolute the same problem, with same versions. I went 
back to the old version, because it takes every time a long time, to dump the 
database back (about two hours) :-/

System is Solaris 10, with latest patches.

cu denny




Strange, I'm running 5.2.6 on FreeBSD 9.0-RELEASE with Postgresql 8.4.11 
with no problems so far ..
Maybe the problem occurs only when spooling is enabled? (I don't use 
spooling)


Julien




--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2


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



--
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.

<>--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] libbaccats.5.2.10.so missing FreeBSD

2012-08-01 Thread Julien Cigar
try to pkg_delete bacula-client and bacula-server before

On 08/01/2012 19:09, Doug Sampson wrote:
> Upon performing a portmaster -w upgrade of Bacula-client and bacula-server 
> from 5.2.6 to 5.2.10 and restarting all of the Bacula processes, I received 
> the following error:
>
> Shared object "libbaccats-5.2.10.so" not found, required by "bacula-dir"
>
> root@pisces:/usr/ports/sysutils/bacula-server# ll /lib
> total 7178
> drwxr-xr-x  2 root  wheel  512 Feb  8 13:13 geom
> -r--r--r--  1 root  wheel41800 Feb  8 13:13 libalias.so.7
> -r--r--r--  1 root  wheel 4280 Feb  8 13:13 libalias_cuseeme.so
> -r--r--r--  1 root  wheel 3584 Feb  8 13:13 libalias_dummy.so
> -r--r--r--  1 root  wheel 9312 Feb  8 13:13 libalias_ftp.so
> -r--r--r--  1 root  wheel 6460 Feb  8 13:13 libalias_irc.so
> -r--r--r--  1 root  wheel 5740 Feb  8 13:13 libalias_nbt.so
> -r--r--r--  1 root  wheel 6020 Feb  8 13:13 libalias_pptp.so
> -r--r--r--  1 root  wheel 4352 Feb  8 13:13 libalias_skinny.so
> -r--r--r--  1 root  wheel 7756 Feb  8 13:13 libalias_smedia.so
> -r--r--r--  1 root  wheel 5812 Feb  8 13:13 libavl.so.2
> -r--r--r--  1 root  wheel 9972 Feb  8 13:13 libbegemot.so.4
> -r--r--r--  1 root  wheel   122804 Feb  8 13:13 libbsdxml.so.4
> -r--r--r--  1 root  wheel  1174824 Feb  8 13:13 libc.so.7
> -r--r--r--  1 root  wheel   109552 Feb  8 13:13 libcam.so.6
> -r--r--r--  1 root  wheel82628 May 30 08:17 libcrypt.so.5
> -r--r--r--  1 root  wheel  1435504 May 30 08:17 libcrypto.so.6
> -r--r--r--  1 root  wheel48256 Feb  8 13:13 libctf.so.2
> -r--r--r--  1 root  wheel18940 Feb  8 13:13 libdevstat.so.7
> -r--r--r--  1 root  wheel   480068 Feb  8 13:13 libdtrace.so.2
> -r--r--r--  1 root  wheel   117468 Feb  8 13:13 libedit.so.7
> -r--r--r--  1 root  wheel45188 Feb  8 13:13 libgcc_s.so.1
> -r--r--r--  1 root  wheel16372 Feb  8 13:13 libgeom.so.5
> -r--r--r--  1 root  wheel23280 Feb  8 13:13 libipsec.so.4
> -r--r--r--  1 root  wheel 6060 Feb  8 13:13 libipx.so.5
> -r--r--r--  1 root  wheel16588 Feb  8 13:13 libjail.so.1
> -r--r--r--  1 root  wheel 9796 Feb  8 13:13 libkiconv.so.4
> -r--r--r--  1 root  wheel34364 Feb  8 13:13 libkvm.so.5
> -r--r--r--  1 root  wheel   127452 Feb  8 13:13 libm.so.5
> -r--r--r--  1 root  wheel98612 Feb  8 13:13 libmd.so.5
> -r--r--r--  1 root  wheel   266952 Feb  8 13:13 libncurses.so.8
> -r--r--r--  1 root  wheel   321260 Feb  8 13:13 libncursesw.so.8
> -r--r--r--  1 root  wheel45092 Feb  8 13:13 libnvpair.so.2
> -r--r--r--  1 root  wheel   192020 Feb  8 13:13 libpcap.so.8
> -r--r--r--  1 root  wheel   202256 Feb  8 13:13 libreadline.so.8
> -r--r--r--  1 root  wheel 5940 Feb  8 13:13 libsbuf.so.6
> -r--r--r--  1 root  wheel 6972 Feb  8 13:13 libssp.so.0
> -r--r--r--  1 root  wheel95636 Feb  8 13:13 libthr.so.3
> -r--r--r--  1 root  wheel61118 Feb  8 13:13 libufs.so.6
> -r--r--r--  1 root  wheel 6440 Feb  8 13:13 libulog.so.0
> -r--r--r--  1 root  wheel 4128 Feb  8 13:13 libumem.so.2
> -r--r--r--  1 root  wheel68012 Feb  8 13:13 libutil.so.9
> -r--r--r--  1 root  wheel31340 Feb  8 13:13 libuutil.so.2
> -r--r--r--  1 root  wheel76904 Feb  8 13:13 libz.so.6
> -r--r--r--  1 root  wheel   268932 Feb  8 13:13 libzfs.so.2
> -r--r--r--  1 root  wheel  1384352 Feb  8 13:13 libzpool.so.2
> root@pisces:/usr/ports/sysutils/bacula-server#
>
> root@pisces:/usr/ports/sysutils/bacula-server# ll /usr/local/lib/libbaccats*
> -rwxr-xr-x  1 root  wheel   1008 Aug  1 09:45 
> /usr/local/lib/libbaccats-postgresql.la
> lrwxr-xr-x  1 root  wheel 26 Aug  1 09:45 
> /usr/local/lib/libbaccats-postgresql.so -> libbaccats-postgresql.so.5
> -rwxr-xr-x  1 root  wheel  36647 Aug  1 09:45 
> /usr/local/lib/libbaccats-postgresql.so.5
> -rwxr-xr-x  1 root  wheel935 Aug  1 09:45 /usr/local/lib/libbaccats.la
> lrwxr-xr-x  1 root  wheel 15 Aug  1 09:45 /usr/local/lib/libbaccats.so -> 
> libbaccats.so.5
> lrwxr-xr-x  1 root  wheel 26 Aug  1 09:45 /usr/local/lib/libbaccats.so.5 
> -> libbaccats-postgresql.so.5
> root@pisces:/usr/ports/sysutils/bacula-server#
>
> root@pisces:/usr/ports/sysutils/bacula-server# ll 
> /usr/local/lib/compat/libbaccats*
> ls: No match.
> root@pisces:/usr/ports/sysutils/bacula-server#
>
> root@pisces:/usr/ports/sysutils/bacula-server# uname -a
> FreeBSD pisces.x.xxx 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue 
> Jun 12 01:47:53 UTC 2012 
> r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
> root@pisces:/usr/ports/sysutils/bacula-server#
>
> Should I do a symlink linking libbaccats-5.2.10.so to libbaccats.so.5?
>
> ~Doug
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest i

Re: [Bacula-users] Scheduling an Admin Job to run dbcheck

2013-03-20 Thread Julien Cigar
On 03/20/2013 16:50, dweimer wrote:
> OK, so I thought, hey why not setup an automated scheduled task to
> delete the orphaned file and path entries, seemed like a good idea at
> first.  I have a fairly short retention period set, and as a result
> generates about 300,000 orphaned file name records and about 75,000
> orphaned path entries a week.  Which of course causes the database to
> continually grow, and become slower over time.
>
> So I configured it to run a dbcheck before job, and follow that with a
> database vacuum after job.
>
> Job {
> Name = DBCheck
> Client = webmail.dweimer.local-fd
> Type = Admin
> FileSet = Webmail
> Schedule = AdminSchedule
> Priority = 2000
> Messages = Standard
> Pool = File
> RunBeforeJob = "/usr/local/sbin/dbcheck -b -f -c
> /usr/local/etc/bacula-dir.conf"
> RunAfterJob = "/usr/local/bin/vacuumdb -d bacula"
> }
>
> Manually started my job to test (not much found here I had just ran it
> form command line prior to this test), starts out looking good, but dies
> because it deletes the admin job entry for itself and then can no longer
> update the database.
>
> 20-Mar 10:03 webmail.dweimer.local-dir JobId 484: shell command: run
> BeforeJob "/usr/local/sbin/dbcheck -b -f -c
> /usr/local/etc/bacula-dir.conf"
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: BeforeJob: Checking
> for Paths without a trailing slash
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: BeforeJob: Found 0
> bad Path records.
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: BeforeJob: Checking
> for Filenames with a trailing slash
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: BeforeJob: Found 0
> bad Filename records.
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: BeforeJob: Checking
> for duplicate Filename entries.
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: BeforeJob: Found 0
> duplicate Filename records.
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: BeforeJob: Checking
> for duplicate Path entries.
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: BeforeJob: Found 0
> duplicate Path records.
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: BeforeJob: Checking
> for orphaned JobMedia entries.
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: BeforeJob: Checking
> for orphaned File entries. This may take some time!
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: BeforeJob: Checking
> for orphaned Path entries. This may take some time!
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: BeforeJob: Checking
> for orphaned Filename entries. This may take some time!
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: BeforeJob: Found 51
> orphaned Filename records.
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: BeforeJob: Deleting
> 51 orphaned Filename records.
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: BeforeJob: Checking
> for orphaned FileSet entries. This takes some time!
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: BeforeJob: Found 0
> orphaned FileSet records.
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: BeforeJob: Checking
> for orphaned Client entries.
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: BeforeJob: Found 1
> orphaned Client records.
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: BeforeJob: Deleting 1
> orphaned Client records.
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: BeforeJob: Checking
> for orphaned Job entries.
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: BeforeJob: Found 0
> orphaned Job records.
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: BeforeJob: Checking
> for Admin Job entries.
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: BeforeJob: Found 2
> Admin Job records.
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: BeforeJob: Deleting 2
> Admin Job records.
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: BeforeJob: Checking
> for Restore Job entries.
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: BeforeJob: Found 0
> Restore Job records.
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: Fatal error:
> sql_update.c:123 Update failed: affected_rows=0 for UPDATE Job SET
> JobStatus='R',Level=' ',StartTime='2013-03-20
> 10:09:10',ClientId=5,JobTDate=1363792150,PoolId=0,FileSetId=0 WHERE
> JobId=484
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: Warning: Error
> updating job record. sql_update.c:202 Update failed: affected_rows=0 for
> UPDATE Job SET JobStatus='f',EndTime='2013-03-20
> 10:09:10',ClientId=5,JobBytes=0,ReadBytes=0,JobFiles=0,JobErrors=1,VolSessionId=0,VolSessionTime=0,PoolId=0,FileSetId=0,JobTDate=1363792150,RealEndTime='2013-03-20
> 10:09:10',PriorJobId=0,HasBase=0,PurgedFiles=0 WHERE JobId=484
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: Warning: Error
> getting Job record for Job report: ERR=sql_get.c:318 No Job found for
> JobId 484
> 20-Mar 10:09 webmail.dweimer.local-dir JobId 484: Error: Bacula 5.2.12
> (12Sep12): 20-Mar-2013 10:09:10
> JobId:  484
> Job:

Re: [Bacula-users] bacula hang waiting for storage

2008-12-02 Thread Julien Cigar
Same problem here with a Sony SDX-700C

On Tue, 2008-12-02 at 15:30 +0100, Nils Blanck-Wehde wrote:
> Hi!
> 
> Just wanted to let you know that I came across the exact same error 
> Error writing final EOF to tape. This Volume may not be readable.
> a couple of times with 2.4.2 using a Quantum DLT VS1 drive connected
> to Adaptec 29160LP. I don't think that the tape is really defective as
> bacula states. I could do working backups on these tapes later. Maybe
> its a problem with positioning (forwarding) the tape to the right
> position?
> If there is still interest in this issue I might search for the
> corresponding job-output.
> 
> Nils
> 
> Pasi Kärkkäinen schrieb: 
> > On Thu, Nov 27, 2008 at 05:53:41PM +0100, Arno Lehmann wrote:
> >   
> > > Hi,
> > > 
> > > 27.11.2008 15:10, Pasi Kärkkäinen wrote:
> > > 
> > > > On Thu, Nov 27, 2008 at 08:14:45AM +0100, Arno Lehmann wrote:
> > > >   
> > > > > Hi,
> > > > > 
> > > > > 26.11.2008 21:22, Bob Hetzel wrote:
> > > > > 
> > > > > > I've got bacula currently in a hung state with the following 
> > > > > > interesting 
> > > > > > info.  When I run a status storage produces the following...
> > > > > >   
> > > > > Is your Bacula still stuck? If so, and you have gdb installed, and a 
> > > > > Bacula with debug symbols, now might be a good time to see what it's 
> > > > > doing...
> > > > > 
> > > ...
> > > 
> > > > I have also seen this lately.. but that was with Bacula 2.5.18.
> > > > 
> > > > I could make that hang happen multiple times, but I'm not totally sure 
> > > > what
> > > > caused that..
> > > >   
> > > Well, if you can recreate the issue it's worth the effort building 
> > > Bacula with debug information so you get usable backtraces.
> > > 
> > > If the problem happens again, you can use gdb to create a backtrace, 
> > > showing the developers more details about what happens and thus 
> > > enabling them to fix the issue.
> > > 
> > > I would recommend that now.
> > > 
> > > 
> > 
> > And now it's stuck again.. 
> > 
> > Last output in bconsole:
> > 
> > 01-Dec 20:01 bacula-sd JobId 4231: Forward spacing Volume "Pool4-Vol-0111" 
> > to file:block 0:218.
> > 01-Dec 20:04 bacula-sd JobId 4231: Error: block.c:568 Write error at 
> > 509:3263 on device "IBM-LTO3-Drive" (/dev/nst0). ERR=Input/output error.
> > 01-Dec 20:04 bacula-sd JobId 4231: Error: Error writing final EOF to tape. 
> > This Volume may not be readable. dev.c:1723 ioctl MTWEOF error on 
> > "IBM-LTO3-Drive" (/dev/nst0). ERR=Input/output error.
> > 01-Dec 20:04 bacula-sd JobId 4231: End of medium on Volume "807NNNL3" 
> > Bytes=482,782,454,784 Blocks=7,483,606 at 01-Dec-2008 20:04.
> > 01-Dec 20:04 bacula-sd JobId 4231: 3307 Issuing autochanger "unload slot 7, 
> > drive 0" command.
> > 
> > bconsole is still usable after this..
> > 
> > "sta director" shows a lot of jobs waiting for execution (since this was a
> > 'copy pool uncopied jobs to tape'-job), but nothing happens really.
> > 
> > 
> > "sta storage" makes bconsole hang.. last output:
> > 
> > Device status:
> > Autochanger "IBM-LTO3-AutoChanger" with devices:
> >"IBM-LTO3-Drive" (/dev/nst0)
> > Device "FSDevice0" (/mnt/backup1/pool00) is not open.
> > Device "FSDevice1" (/mnt/backup1/pool01) is not open.
> > Device "FSDevice2" (/mnt/backup1/pool02) is not open.
> > Device "FSDevice3" (/mnt/backup1/pool03) is not open.
> > Device "FSDevice4" (/mnt/backup1/pool04) is mounted with:
> > Volume:  Pool4-Vol-0111
> > Pool:*unknown*
> > Media type:  File4
> > Total Bytes Read=3,848,656,896 Blocks Read=59,658 Bytes/block=64,512
> > Positioned at File=0 Block=3,848,592,601
> > Device "IBM-LTO3-Drive" (/dev/nst0) is not open.
> > Device is being initialized.
> > Drive 0 is not loaded.
> > 
> > 
> > Used Volume status:
> > 
> > 
> > 
> > What kind of backtrace do you want? From which daemon? bacula-sd? 
> > 
> > -- Pasi
> >   
> 

Re: [Bacula-users] bacula hang waiting for storage

2008-12-02 Thread Julien Cigar
Yes the SCSI card is an Adaptec (I replaced it today with a QSI Logic to
see if I have better results).
The OS is FreeBSD 7.0-p6 (32 bits) with the ahc driver.
What's strange is that I can write many jobs without any problems, but
then it suddenly fails, always with the same error (Error writing final
EOF to tape.)
I posted a message on the freebsd-scsi mailing list some days ago, but I
didn't get any answer :
http://lists.freebsd.org/pipermail/freebsd-scsi/2008-November/003706.html
I'm less and less sure that it's a driver/OS issue, but rather a Bacula
bug (but I could be wrong).

Best regards,
Julien

On Tue, 2008-12-02 at 18:18 +0200, Pasi Kärkkäinen wrote:
> On Tue, Dec 02, 2008 at 06:11:11PM +0200, Pasi Kärkkäinen wrote:
> > On Tue, Dec 02, 2008 at 03:56:33PM +0100, Julien Cigar wrote:
> > > Same problem here with a Sony SDX-700C
> > > 
> > 
> > Thanks for the report. Do you also have Adaptec SCSI HBA?
> > 
> 
> And which OS?
> 
> I'm running CentOS 5.2 x86 32bit. 
> 
> -- Pasi
> 
> > 
> > > On Tue, 2008-12-02 at 15:30 +0100, Nils Blanck-Wehde wrote:
> > > > Hi!
> > > > 
> > > > Just wanted to let you know that I came across the exact same error 
> > > > Error writing final EOF to tape. This Volume may not be readable.
> > > > a couple of times with 2.4.2 using a Quantum DLT VS1 drive connected
> > > > to Adaptec 29160LP. I don't think that the tape is really defective as
> > > > bacula states. I could do working backups on these tapes later. Maybe
> > > > its a problem with positioning (forwarding) the tape to the right
> > > > position?
> > > > If there is still interest in this issue I might search for the
> > > > corresponding job-output.
> > > > 
> > > > Nils
> > > > 
> > > > Pasi Kärkkäinen schrieb: 
> > > > > On Thu, Nov 27, 2008 at 05:53:41PM +0100, Arno Lehmann wrote:
> > > > >   
> > > > > > Hi,
> > > > > > 
> > > > > > 27.11.2008 15:10, Pasi Kärkkäinen wrote:
> > > > > > 
> > > > > > > On Thu, Nov 27, 2008 at 08:14:45AM +0100, Arno Lehmann wrote:
> > > > > > >   
> > > > > > > > Hi,
> > > > > > > > 
> > > > > > > > 26.11.2008 21:22, Bob Hetzel wrote:
> > > > > > > > 
> > > > > > > > > I've got bacula currently in a hung state with the following 
> > > > > > > > > interesting 
> > > > > > > > > info.  When I run a status storage produces the following...
> > > > > > > > >   
> > > > > > > > Is your Bacula still stuck? If so, and you have gdb installed, 
> > > > > > > > and a 
> > > > > > > > Bacula with debug symbols, now might be a good time to see what 
> > > > > > > > it's 
> > > > > > > > doing...
> > > > > > > > 
> > > > > > ...
> > > > > > 
> > > > > > > I have also seen this lately.. but that was with Bacula 2.5.18.
> > > > > > > 
> > > > > > > I could make that hang happen multiple times, but I'm not totally 
> > > > > > > sure what
> > > > > > > caused that..
> > > > > > >   
> > > > > > Well, if you can recreate the issue it's worth the effort building 
> > > > > > Bacula with debug information so you get usable backtraces.
> > > > > > 
> > > > > > If the problem happens again, you can use gdb to create a 
> > > > > > backtrace, 
> > > > > > showing the developers more details about what happens and thus 
> > > > > > enabling them to fix the issue.
> > > > > > 
> > > > > > I would recommend that now.
> > > > > > 
> > > > > > 
> > > > > 
> > > > > And now it's stuck again.. 
> > > > > 
> > > > > Last output in bconsole:
> > > > > 
> > > > > 01-Dec 20:01 bacula-sd JobId 4231: Forward spacing Volume 
> > > > > "Pool4-Vol-0111" to file:block 0:218.
> > > > > 01-Dec 20:04 bacula-sd JobId 4231: Error: block.c:568 Write error at 
> > > > > 509:3263 on devic

Re: [Bacula-users] bacula hang waiting for storage

2008-12-03 Thread Julien Cigar
On Wed, 2008-12-03 at 10:37 +, Alan Brown wrote:
> On Tue, 2 Dec 2008, Julien Cigar wrote:
> 
> > Yes the SCSI card is an Adaptec
> 
> Which model and revision?
> 

I posted the full output on the FreeBSD ML some times ago :
http://lists.freebsd.org/pipermail/freebsd-scsi/2008-November/003706.html

> Several older Adaptec scsi HBAs are _very_ sensitive to scsi bus
> termination and length issues.
> 
> AB
> 
-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles (ULB)
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
Mail: [EMAIL PROTECTED]
@biobel: http://biobel.biodiversity.be/person/show/471
Tel : 02 650 57 52


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula hang waiting for storage

2008-12-04 Thread Julien Cigar
Hello,

as I said some times ago I tested with a QSI card :

[EMAIL PROTECTED]:0:7:0:class=0x01 card=0x53492050 chip=0x10201077
rev=0x05 hdr=0x00
vendor = 'QLogic Corporation'
device = 'QLA1020/104x Fast-Wide-SCSI "Fast!SCSI IQ" Host
Adapter'
class  = mass storage
subclass   = SCSI

and I've still the same problem :

*messages
03-Dec 20:05 gemini-sd JobId 1: End of Volume "Full-Tape-0001" at
145:5656 on device "Sony SDX-700C" (/dev/nsa0). Write of 64512 bytes got
5644.

03-Dec 20:05 gemini-sd JobId 1: Error: Error writing final EOF to tape.
This Volume may not be readable.
dev.c:1681 ioctl MTWEOF error on "Sony SDX-700C" (/dev/nsa0).
ERR=Input/output error.

03-Dec 20:05 gemini-sd JobId 1: End of medium on Volume "Full-Tape-0001"
Bytes=145,355,599,872 Blocks=2,253,155 at 03-Dec-2008 20:05.

03-Dec 20:05 gemini-dir JobId 1: Created new Volume "Full-Tape-0002" in
catalog.

03-Dec 20:07 gemini-sd JobId 1: Please mount Volume "Full-Tape-0002" or
label a new one for:

If I take a look at the kernel output I can see :

(sa0:isp0:0:5:0): WRITE FILEMARKS. CDB: 10 0 0 0 1 0
(sa0:isp0:0:5:0): CAM Status: SCSI Status Error
(sa0:isp0:0:5:0): SCSI Status: Check Condition
(sa0:isp0:0:5:0): MEDIUM ERROR info:1 asc:52,0
(sa0:isp0:0:5:0): Cartridge fault
(sa0:isp0:0:5:0): Retries Exhausted
(sa0:isp0:0:5:0): WRITE FILEMARKS. CDB: 10 0 0 0 2 0
(sa0:isp0:0:5:0): CAM Status: SCSI Status Error
(sa0:isp0:0:5:0): SCSI Status: Check Condition
(sa0:isp0:0:5:0): MEDIUM ERROR info:2 asc:52,0
(sa0:isp0:0:5:0): Cartridge fault
(sa0:isp0:0:5:0): Retries Exhausted
(sa0:isp0:0:5:0): REWIND. CDB: 1 0 0 0 0 0
(sa0:isp0:0:5:0): CAM Status: SCSI Status Error
(sa0:isp0:0:5:0): SCSI Status: Check Condition
(sa0:isp0:0:5:0): MEDIUM ERROR asc:52,0
(sa0:isp0:0:5:0): Cartridge fault
(sa0:isp0:0:5:0): Retrying Command (per Sense Data)
(sa0:isp0:0:5:0): REWIND. CDB: 1 0 0 0 0 0
(sa0:isp0:0:5:0): CAM Status: SCSI Status Error
(sa0:isp0:0:5:0): SCSI Status: Check Condition
(sa0:isp0:0:5:0): MEDIUM ERROR asc:52,0
(sa0:isp0:0:5:0): Cartridge fault
(sa0:isp0:0:5:0): Retrying Command (per Sense Data)
(sa0:isp0:0:5:0): REWIND. CDB: 1 0 0 0 0 0
(sa0:isp0:0:5:0): CAM Status: SCSI Status Error
(sa0:isp0:0:5:0): SCSI Status: Check Condition
(sa0:isp0:0:5:0): MEDIUM ERROR asc:52,0
(sa0:isp0:0:5:0): Cartridge fault
(sa0:isp0:0:5:0): Retries Exhausted
(sa0:isp0:0:5:0): REWIND. CDB: 1 0 0 0 0 0
(sa0:isp0:0:5:0): CAM Status: SCSI Status Error
(sa0:isp0:0:5:0): SCSI Status: Check Condition
(sa0:isp0:0:5:0): MEDIUM ERROR asc:52,0
(sa0:isp0:0:5:0): Cartridge fault
(sa0:isp0:0:5:0): Retrying Command (per Sense Data)
(sa0:isp0:0:5:0): REWIND. CDB: 1 0 0 0 0 0
(sa0:isp0:0:5:0): CAM Status: SCSI Status Error
(sa0:isp0:0:5:0): SCSI Status: Check Condition
(sa0:isp0:0:5:0): MEDIUM ERROR asc:52,0
(sa0:isp0:0:5:0): Cartridge fault
(sa0:isp0:0:5:0): Retrying Command (per Sense Data)
(sa0:isp0:0:5:0): REWIND. CDB: 1 0 0 0 0 0
(sa0:isp0:0:5:0): CAM Status: SCSI Status Error
(sa0:isp0:0:5:0): SCSI Status: Check Condition
(sa0:isp0:0:5:0): MEDIUM ERROR asc:52,0
(sa0:isp0:0:5:0): Cartridge fault
(sa0:isp0:0:5:0): Retries Exhausted
(sa0:isp0:0:5:0): unable to rewind after test read
(sa0:isp0:0:5:0): unable to rewind after test read
(sa0:isp0:0:5:0): unable to rewind after test read
(sa0:isp0:0:5:0): unable to rewind after test read

If you have any idea ... it's welcome :-)

Could it be a bug in Bacula ?

Regards,
Julien

On Wed, 2008-12-03 at 10:37 +, Alan Brown wrote:
> On Tue, 2 Dec 2008, Julien Cigar wrote:
> 
> > Yes the SCSI card is an Adaptec
> 
> Which model and revision?
> 
> Several older Adaptec scsi HBAs are _very_ sensitive to scsi bus
> termination and length issues.
> 
> AB
> 
-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles (ULB)
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
Mail: [EMAIL PROTECTED]
@biobel: http://biobel.biodiversity.be/person/show/471
Tel : 02 650 57 52


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula hang waiting for storage

2008-12-04 Thread Julien Cigar
Hi Ralf, here is my config :

Device {
  Name = "Sony SDX-700C"
  Media Type = "AIT"
  Archive Device = "/dev/nsa0"
  Device Type = tape
  Autochanger = no
  Always Open = yes
  Volume Poll Interval = 1 hour
  Removable Media = yes
  Random Access = no
  Requires Mount = no
  Hardware End of Medium = no
  Backward Space Record  = no
  Backward Space File= no
  Fast Forward Space File = no
  BSF at EOM = yes
  Two EOF = yes
  Close on Poll= yes
  Offline on Unmount = yes
}

To label a new tape I do the following :
# mt -f /dev/nsa0 rewind
# mt -f /dev/nsa0 weof 2
# bconsole
* label
* 

Regarding the hardware problem I'm 100% sure that it doesn't come from
the SCSI card (I tried with 2 differents, an Adaptec and a QSI), it
doesn't come from the tape drive too because I had the same problem in
the past with a Sony SDX 500C, the medias are OK too (sometimes it fails
with a media that didn't fail in a previous rotation cycle), and I
tested with another SCSI cable too. The only thing I haven't changed is
the SCSI terminator ..
What's strange is that all the it happens randomly (it could run 5+ jobs
without any problem).

Best regards,
Julien

On Thu, 2008-12-04 at 10:36 +0100, Ralf Gross wrote:
> Julien Cigar schrieb:
> > ...
> > (sa0:isp0:0:5:0): REWIND. CDB: 1 0 0 0 0 0
> > (sa0:isp0:0:5:0): CAM Status: SCSI Status Error
> > (sa0:isp0:0:5:0): SCSI Status: Check Condition
> > (sa0:isp0:0:5:0): MEDIUM ERROR asc:52,0
> > (sa0:isp0:0:5:0): Cartridge fault
> > (sa0:isp0:0:5:0): Retrying Command (per Sense Data)
> > (sa0:isp0:0:5:0): REWIND. CDB: 1 0 0 0 0 0
> > (sa0:isp0:0:5:0): CAM Status: SCSI Status Error
> > (sa0:isp0:0:5:0): SCSI Status: Check Condition
> > (sa0:isp0:0:5:0): MEDIUM ERROR asc:52,0
> > (sa0:isp0:0:5:0): Cartridge fault
> > (sa0:isp0:0:5:0): Retries Exhausted
> > (sa0:isp0:0:5:0): unable to rewind after test read
> > (sa0:isp0:0:5:0): unable to rewind after test read
> > (sa0:isp0:0:5:0): unable to rewind after test read
> > (sa0:isp0:0:5:0): unable to rewind after test read
> > 
> > If you have any idea ... it's welcome :-)
> > 
> > Could it be a bug in Bacula ?
> 
> I can't imagine that bacula can cause this kernel errors. This looks
> like a hardware problem to me.
> 
> Can you post your bacula config for this device (I can't find it in
> the thread right now) and maybe try what was suggested in this thread:
> 
> http://thread.gmane.org/gmane.comp.sysutils.backup.bacula.general/39365
> 
> Ralf
> 
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles (ULB)
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
Mail: [EMAIL PROTECTED]
@biobel: http://biobel.biodiversity.be/person/show/471
Tel : 02 650 57 52


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula hang waiting for storage

2008-12-04 Thread Julien Cigar
On Thu, 2008-12-04 at 11:33 +0100, Ralf Gross wrote:
> Julien Cigar schrieb:
> 
> Are you sure you need these additional options?
> 
> >   Hardware End of Medium = no
> >   Backward Space Record  = no
> >   Backward Space File= no
> >   Fast Forward Space File = no
> >   BSF at EOM = yes
> >   Two EOF = yes
> 
> 

Yes, apparently it's needed for FreeBSD :

gemini# pwd
/usr/ports/sysutils/bacula-server/files
gemini# cat pkg-message.server.in

NOTE:

An auto-changer manipulation script based on FreeBSDs
chio command is included and installed at

  ${PREFIX}/sbin/chio-bacula

Please have a look at it if you want to use an
autochanger. You have to configure the usage in

  ${PREFIX}/etc/bacula-dir.conf

Take care of correct permissions for changer and
tape device (e.g. /dev/ch0 and /dev/n[r]sa0) i.e.
they must be accessible by user bacula.

Due to lack of some features in the FreeBSD tape driver
implementation you MUST add some OS dependent options to
the bacula-sd.conf file:

  Hardware End of Medium = no;
  Backward Space Record  = no;
  Backward Space File= no;

With 2 filemarks at EOT (see man mt):
  Fast Forward Space File = no;
  BSF at EOM = yes;
  TWO EOF= yes;

With 1 filemarks at EOT (see man mt):
  Fast Forward Space File = yes;
  BSF at EOM = no;
  TWO EOF   = no;

NOTE: YOU CAN SWITCH EOT model ONLY when starting
  from scratch with EMPTY tapes.

It is also important that all the scripts accessed
by RunBeforeJob and RunAfterJob will be executed by
the user bacula.  Check your permissions.

For USB support read the bacula manual. It could be necessary
to configure/compile a new kernel.

Look at ${PREFIX}/share/bacula/update_bacula_tables for
database update procedure. Details can be found in the
ReleaseNotes

  Please read this file:

%%DOCSDIR%%/ReleaseNotes

  as installed by docs port for the upgrade procedure.

IMPORTANT UPGRADE NOTES FOR THIS RELEASE:

- bacula-client and bacula-server do not need to be simultaneously 
upgraded.

Read the ReleaseNotes for further information.




> I remember that there has been some discussion on the list about these
> options. I can't remember if they are necessary with your OS but they
> were frequently  the cause of problems.
> 
> Maybe this (old) thread can help you.
> 
> http://thread.gmane.org/gmane.comp.sysutils.backup.bacula.general/7731/focus=7743
> 

I'll take a look ..

> or this one 
> 
> http://thread.gmane.org/gmane.comp.sysutils.backup.bacula.general/46808/focus=46962
> 
> 
> Did the btape test run successfully?
> 

Yes, I made all the suggested tests (several times) and everything was
always successfull ...

Regards,
Julien

> Ralf
-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles (ULB)
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
Mail: [EMAIL PROTECTED]
@biobel: http://biobel.biodiversity.be/person/show/471
Tel : 02 650 57 52


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula hang waiting for storage

2008-12-04 Thread Julien Cigar
On Thu, 2008-12-04 at 12:50 +, Martin Simmons wrote:
> >>>>> On Thu, 04 Dec 2008 12:04:34 +0100, Julien Cigar said:
> > 
> > On Thu, 2008-12-04 at 11:33 +0100, Ralf Gross wrote:
> > > Julien Cigar schrieb:
> > > 
> > > Are you sure you need these additional options?
> > > 
> > > >   Hardware End of Medium = no
> > > >   Backward Space Record  = no
> > > >   Backward Space File= no
> > > >   Fast Forward Space File = no
> > > >   BSF at EOM = yes
> > > >   Two EOF = yes
> > > 
> > > 
> > 
> > Yes, apparently it's needed for FreeBSD :
> > 
> > gemini# pwd
> > /usr/ports/sysutils/bacula-server/files
> > gemini# cat pkg-message.server.in
> 
> Despite the wording in that file, it is not true for all drives.  These
> options work perfectly for me on FreeBSD 4 with an HP LTO-1:

Ok.. good to know.

To configure the SD I just did a "mt -f /dev/nsa0 geteotmodel", it
replied with 2 filemarks at EOT and then I followed the instructions of
the port maintainer (as I have almost no idea how to adjust most of
those parameters).

Anyway, if the btape tests passes with those values I can be relatively
confident that they are safe for my tape drive (and that the SCSI
cable/terminator is OK) ?

Best regards,
Julien

> 
>   Hardware End of Medium = no
>   BSF at EOM = no
>   Backward Space Record = yes
>   Backward Space File = yes
>   Fast Forward Space File = yes
>   TWO EOF = no
> 
> __Martin

-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles (ULB)
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
Mail: [EMAIL PROTECTED]
@biobel: http://biobel.biodiversity.be/person/show/471
Tel : 02 650 57 52


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula hang waiting for storage

2008-12-04 Thread Julien Cigar
On Thu, 2008-12-04 at 13:50 +, Martin Simmons wrote:
> >>>>> On Thu, 04 Dec 2008 14:20:37 +0100, Julien Cigar said:
> > 
> > On Thu, 2008-12-04 at 12:50 +, Martin Simmons wrote:
> > > >>>>> On Thu, 04 Dec 2008 12:04:34 +0100, Julien Cigar said:
> > > > 
> > > > On Thu, 2008-12-04 at 11:33 +0100, Ralf Gross wrote:
> > > > > Julien Cigar schrieb:
> > > > > 
> > > > > Are you sure you need these additional options?
> > > > > 
> > > > > >   Hardware End of Medium = no
> > > > > >   Backward Space Record  = no
> > > > > >   Backward Space File= no
> > > > > >   Fast Forward Space File = no
> > > > > >   BSF at EOM = yes
> > > > > >   Two EOF = yes
> > > > > 
> > > > > 
> > > > 
> > > > Yes, apparently it's needed for FreeBSD :
> > > > 
> > > > gemini# pwd
> > > > /usr/ports/sysutils/bacula-server/files
> > > > gemini# cat pkg-message.server.in
> > > 
> > > Despite the wording in that file, it is not true for all drives.  These
> > > options work perfectly for me on FreeBSD 4 with an HP LTO-1:
> > 
> > Ok.. good to know.
> > 
> > To configure the SD I just did a "mt -f /dev/nsa0 geteotmodel", it
> > replied with 2 filemarks at EOT and then I followed the instructions of
> > the port maintainer (as I have almost no idea how to adjust most of
> > those parameters).
> 
> Yes, I have to use "mt -f /dev/sa1.ctl seteotmodel 1" to initialize the drive.
> This sometimes needs to be repeated after inserting the first tape after
> booting, though it is persistent after that.
> 

This may be a stupid question but, how do you know if you need to set
EOT to one or two filemarks ? Apparently this one depends of the
hardware, but I haven't seen anything in my tape manual for that ..

> 
> > Anyway, if the btape tests passes with those values I can be relatively
> > confident that they are safe for my tape drive (and that the SCSI
> > cable/terminator is OK) ?
> 
> Safe yes, but SCSI problems can be somewhat random and data-specific, so the
> btape tests might not detect them.
> 
> __Martin
-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles (ULB)
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
Mail: [EMAIL PROTECTED]
@biobel: http://biobel.biodiversity.be/person/show/471
Tel : 02 650 57 52


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula hang waiting for storage

2008-12-04 Thread Julien Cigar
On Thu, 2008-12-04 at 15:44 +, Alan Brown wrote:
> On Wed, 3 Dec 2008, Julien Cigar wrote:
> 
> > > Which model and revision?
> >
> > I posted the full output on the FreeBSD ML some times ago :
> > http://lists.freebsd.org/pipermail/freebsd-scsi/2008-November/003706.html
> 
> Is that Ultra or LVD?
> 
> Ultra 160/320 single-ended scsi have maximum cable lengths in the region
> of 60-90cm.
> 
> LVD is several metres.
> 

I think it's an Ultra, there are only two connectors on it (plus one to
connect to the SCSI card). Actually it's configured as this :
SCSI CARD == TAPE DRIVE == TERMINATOR

Just to be sure that everything is compatible (as I'm not a SCSI
expert), the tape drive has the following interface : 
- Embedded SCSI interface (Ultra160LVD, Single-ended or Low Voltage
differential)

but the SCSI cards I tested are not U160, the last one was one from
QLogic :
- QLA1020/104x Fast-Wide-SCSI "Fast!SCSI IQ" Host Adapter'

and at boot it's detected as :

sa0 at isp0 bus 0 target 5 lun 0
sa0:  Removable Sequential Access SCSI-2 device 
sa0: 40.000MB/s transfers (20.000MHz, offset 8, 16bit)

I hope everything is compatible (U160 vs SCSI 2 ?)

Thanks for your help,
Julien

> AB
> 
-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles (ULB)
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
Mail: [EMAIL PROTECTED]
@biobel: http://biobel.biodiversity.be/person/show/471
Tel : 02 650 57 52


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] The number of files mismatch!

2008-12-09 Thread Julien Cigar
You can switch EOT model only when starting from scratch with empty
tapes, so that's normal ...


On Tue, 2008-12-09 at 08:40 +0100, Stefan Lubitz wrote:
> Hi all,
> 
> sine I have added the Paramters:
>   BSFatEOM = yes;
>   TWOEOF = yes;
>   OfflineonUnmount = yes;
> 
> the system reports the error: The number of files mismatch!
> It is every time only one file. For Example:
> Volume=3 Catalog=4 or
> Volume=350 Catalog=351
> 
> Have I missed something in the manual? Is there an additional parameter 
> which needs to be set?
> I set this Parameters to get rid of some other error messages:
> 
> BSFatEOM and TWOEOF for:
> 06-Dec 01:15 backup03-sd JobId 37: Error: block.c:568 Write error at 30:5629 
> on device "Drive-1" (/dev/nst0). ERR=Input/output error.
> 06-Dec 01:15 backup03-sd JobId 37: Error: Error writing final EOF to tape. 
> This Volume may not be readable.
> dev.c:1681 ioctl MTWEOF error on "Drive-1" (/dev/nst0). ERR=Input/output 
> error.
> 
> and:
> OfflineUnmount for:
> 06-Dec 01:15 backup03-sd JobId 37: 3301 Issuing autochanger "loaded? 
> drive 0" command.
> 
> 06-Dec 01:15 backup03-sd JobId 37: 3302 Autochanger "loaded? drive 0", result 
> is Slot 22.
> 06-Dec 01:15 backup03-sd JobId 37: 3307 Issuing autochanger "unload slot 22, 
> drive 0" command.
> 06-Dec 01:15 backup03-sd JobId 37: 3995 Bad autochanger "unload slot 22, 
> drive 0": ERR=Child exited with code 1
> Results=Unloading Data Transfer Element into Storage Element 22...mtx: 
> Request Sense: Long Report=yes
> mtx: Request Sense: Valid Residual=no
> mtx: Request Sense: Error Code=70 (Current)
> mtx: Request Sense: Sense Key=Illegal Request
> mtx: Request Sense: FileMark=no
> mtx: Request Sense: EOM=no
> mtx: Request Sense: ILI=no
> mtx: Request Sense: Additional Sense Code = 53
> mtx: Request Sense: Additional Sense Qualifier = 03
> mtx: Request Sense: BPV=no
> mtx: Request Sense: Error in CDB=no
> mtx: Request Sense: SKSV=no
> MOVE MEDIUM from Element Address 256 to 4117 Failed
> 
> Best Regards,
> Stefan
> 
> 
-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles (ULB)
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
Mail: [EMAIL PROTECTED]
@biobel: http://biobel.biodiversity.be/person/show/471
Tel : 02 650 57 52


--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FOSDEM

2006-12-31 Thread Julien Cigar
I will be there :) (as each year)

On Sun, 2006-12-31 at 18:49 +0100, Kern Sibbald wrote:
> Hello,
> 
> This is just to let you know that I will be giving a presentation on Bacula 
> at 
> the FOSDEM meeting in Brusells in February (the 24th or 25th).  If any of you 
> can attend, I would be very pleased to meet you.
> 
> I have a very rough talk that I did in November of 2005, and will be updating 
> it over the next few days, and then I will post it to the website or send it 
> to the list (depending on the size).  I would appreciate feedback on it, 
> especially for those of you who have attended a previous FOSDEM meeting. 
> Since I have never been to one, I am at a bit of a loss to know exactly how 
> to target the audience.
> 
> Best regards,
> 
> Kern
> 
> -
> 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
-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
mail: [EMAIL PROTECTED]


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.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] Running Concurrent Jobs

2007-01-04 Thread Julien Cigar
Arno Lehmann wrote:
> Hello,
>
> On 1/4/2007 10:59 AM, Ondrej PLANKA wrote:
>   
>> Hi list,
>>
>> I have Bacula ver. 1.38.11 and I want run concurrent jobs - I want two 
>> different jobs to run simultaneously backing up the same Client to the 
>> same Storage device.
>>
>> I set Maximum Concurrent Jobs = 10 in the Director resource, the Client 
>> resource, and the Storage resource in bacula-dir.conf, but when 
>> scheduler start this job, one of the job not running and it is waiting 
>> to reserve a device.
>> 
>
> Have you also changed the FD configuration and restarted the SD and FD, 
> reloaded the DIR?
>
> Apart from that, I can only imagine there is a volume conflict, i.e. the 
>   jobs require different volumes on the same storage device, which 
> obviously can not work simultaneously.
>
>   

Does this apply to disk storage too (with different volumes / same 
storage) ?

> Arno
>
>   
>> Do you have some TIP, where is mistake?
>>
>> Thanx
>>
>>
>>
>> -
>> 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
>> 
>
>   


-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
office: [EMAIL PROTECTED]
home: [EMAIL PROTECTED]


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


[Bacula-users] MTEOM

2007-02-01 Thread Julien Cigar
Hello list,

We've bought a new tape drive here, a Sony SDX-700C (AIT-3), with new 
tapes. I'm running Bacula 1.38.11 under (Debian) Linux (2.6.18)
I've run the btape test / btape fill with success. The tape is 
initialized correctly (variable block mode + ...) :

phoenix:/home/jcigar# cat /etc/stinit.def
{buffer-writes read-ahead async-writes}

manufacturer=SONY model = "SDX-700C" {
mode1 blocksize=0 compression=1
}

phoenix:/home/jcigar# mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x32 (AIT-3).
Soft error count since last status=0
General status bits on (4101):
 BOT ONLINE IM_REP_EN

Unfortunately I got an error this morning :

01-Feb 03:27 phoenix-sd: Volume "Full-Tape-0001" previously written, 
moving to end of data.
01-Feb 03:27 phoenix-sd: canis-job.2007-02-01_03.00.00 Error: Unable to 
position to end of data on device "sony SDX-700C" (/dev/nst0): 
ERR=dev.c:839 ioctl MTEOM error on "sony SDX-700C" (/dev/nst0). 
ERR=Input/output error.

01-Feb 03:27 phoenix-sd: Marking Volume "Full-Tape-0001" in Error in 
Catalog.

Any idea what it could be ... ?

Thanks

-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
office: [EMAIL PROTECTED]


-
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] MTEOM

2007-02-01 Thread Julien Cigar
Bill Moran wrote:
> In response to Julien Cigar <[EMAIL PROTECTED]>:
>   
>> We've bought a new tape drive here, a Sony SDX-700C (AIT-3), with new 
>> tapes. I'm running Bacula 1.38.11 under (Debian) Linux (2.6.18)
>> I've run the btape test / btape fill with success. The tape is 
>> initialized correctly (variable block mode + ...) :
>>
>> phoenix:/home/jcigar# cat /etc/stinit.def
>> {buffer-writes read-ahead async-writes}
>>
>> manufacturer=SONY model = "SDX-700C" {
>> mode1 blocksize=0 compression=1
>> }
>>
>> phoenix:/home/jcigar# mt -f /dev/nst0 status
>> SCSI 2 tape drive:
>> File number=0, block number=0, partition=0.
>> Tape block size 0 bytes. Density code 0x32 (AIT-3).
>> Soft error count since last status=0
>> General status bits on (4101):
>>  BOT ONLINE IM_REP_EN
>>
>> Unfortunately I got an error this morning :
>>
>> 01-Feb 03:27 phoenix-sd: Volume "Full-Tape-0001" previously written, 
>> moving to end of data.
>> 01-Feb 03:27 phoenix-sd: canis-job.2007-02-01_03.00.00 Error: Unable to 
>> position to end of data on device "sony SDX-700C" (/dev/nst0): 
>> ERR=dev.c:839 ioctl MTEOM error on "sony SDX-700C" (/dev/nst0). 
>> ERR=Input/output error.
>>
>> 01-Feb 03:27 phoenix-sd: Marking Volume "Full-Tape-0001" in Error in 
>> Catalog.
>> 
>
> I'm a little unclear on certain aspects of this ...
>
> Have you made other backups successfully?  Did you try a different tape?
> Sometimes tapes ship from the factory with problems.  Is this the same
> tape that you used for the tests?
>
>   

Yes, it runs fine since one month, and it's the same tape I've used for 
the tests (after the test I made an mt -f /dev/nst0 rewind ; mt -f 
/dev/nst0 weof ; mt -f /dev/nst0 rewind ; $> bconsole ; *label).

I will try with another tape to see ...

> We had a drive go bad on us and the errors that Bacula was spewing out
> were the most cryptic things you could imagine.  It became obvious when
> we visited the datacenter, as the drive had a flashing error code on
> the front.
>
>   


-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
office: [EMAIL PROTECTED]
home: [EMAIL PROTECTED]


-
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] Tape error.

2007-02-01 Thread Julien Cigar
Sorry to ask this again, but .. it could be one of the reason why my
tape drive doesn't work properly: 
is it not safe to press the eject button when the tape is mounted by
Bacula (AlwaysOpen=yes) but no jobs are running ? If it's not safe then
I suggest to add a remark about this in the FAQ ...

On Thu, 2007-02-01 at 21:19 +0100, Kern Sibbald wrote:
> On Thursday 01 February 2007 21:01, Erik P. Olsen wrote:
> > Martin Simmons wrote:
> > >>>>>> On Thu, 01 Feb 2007 14:50:10 +0100, Erik P Olsen said:
> > >>
> > >> Maybe I did something really stupid. I ejected an already bacula-mounted
> > >> tape and inserted a cleaning cartridge. After the cleaning process was
> > >> finished I reinserted the backup tape. I did it without an unmount/mount
> > >> cycle. When the backup run later started the tape was ejected with tape
> > >> error and it was no longer possible to read the tape because bacula
> > >> claimed that it had no volume label and that proved to be true when I
> > >> tried to read the tape.
> > >>
> > >> Why was this proceedue not possible and why was the backup tape
> > >> overwritten?
> > >
> > > It was overwritten because Bacula remembers the tape's position while it
> > > is bacula-mounted.  When you ejected the tape, it was rewound without
> > > Bacula knowing, so the position was different when you reinserted it.
> > >
> > > Normally, when you bacula-mount a tape, Bacula knows that the tape is
> > > positioned at the start, so it winds the taoe forward to the end before
> > > writing the next job.
> >
> > OK, so I was stupid.
> >
> > >> 
> > >> Is it a bug or did I just do something stupid?
> > >
> > > Do you have AlwaysOpen = yes (the default)in the device config?  If so,
> > > then I think the bug is in the OS or tape drive -- it should be
> > > impossible to eject the tape while it is mounted (and open) by Bacula.
> >
> > I have AlwaysOpen = yes but I ejected the tape by pressing the eject button
> > on the tape drive.
> >
> > Thanks for the answer, I've learned a lesson.
> 
> Unfortunately, you aren't the first person to whom this has happened.
> 
> Bacula version 2.0+ will lock the door on your tape drive, while Bacula is 
> using the drive, providing your tape drive/OS permit it.
> 
> -
> 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
-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
mail: [EMAIL PROTECTED]


-
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] Tape error.

2007-02-01 Thread Julien Cigar
On Thu, 2007-02-01 at 22:31 +0100, Kern Sibbald wrote:
> On Thursday 01 February 2007 23:18, Julien Cigar wrote:
> > Sorry to ask this again, but .. it could be one of the reason why my
> > tape drive doesn't work properly:
> 
> I've read a huge number of emails today and answered a good number of them, 
> but I wasn't aware that your tape drive doesn't work or why, so I cannot 
> answer that question.
> 

I didn't send any mail about that today, but I had problems with one
tape drive (sony sdx 500c) in the past (which has been replaced now),
and I think that the reason could be that I've always pressed the eject
button while the tape was mounted by Bacula.

> > is it not safe to press the eject button when the tape is mounted by
> > Bacula (AlwaysOpen=yes) but no jobs are running ? 
> 
> No, it will most likely be fatal to your data and make the Volume unreadable.
> 

then the Linux SCSI kernel driver for the Adaptec 2940 Ultra SCSI is
buggy, because I'm able to eject the tape while it's mounted. I will
test it on FreeBSD.

> > If it's not safe then 
> > I suggest to add a remark about this in the FAQ ...
> 
> I believe that this is already documented in the manual.  
> 

mmh seems that I missed this ...

> If you would like it documented in additional places, then please send in a 
> patch to the manual source  -- or next best the exact words you want included 
> and the *precise* location where it should go in the manual.
> 
> 
> 
> >
> > On Thu, 2007-02-01 at 21:19 +0100, Kern Sibbald wrote:
> > > On Thursday 01 February 2007 21:01, Erik P. Olsen wrote:
> > > > Martin Simmons wrote:
> > > > >>>>>> On Thu, 01 Feb 2007 14:50:10 +0100, Erik P Olsen said:
> > > > >>
> > > > >> Maybe I did something really stupid. I ejected an already
> > > > >> bacula-mounted tape and inserted a cleaning cartridge. After the
> > > > >> cleaning process was finished I reinserted the backup tape. I did it
> > > > >> without an unmount/mount cycle. When the backup run later started
> > > > >> the tape was ejected with tape error and it was no longer possible
> > > > >> to read the tape because bacula claimed that it had no volume label
> > > > >> and that proved to be true when I tried to read the tape.
> > > > >>
> > > > >> Why was this proceedue not possible and why was the backup tape
> > > > >> overwritten?
> > > > >
> > > > > It was overwritten because Bacula remembers the tape's position while
> > > > > it is bacula-mounted.  When you ejected the tape, it was rewound
> > > > > without Bacula knowing, so the position was different when you
> > > > > reinserted it.
> > > > >
> > > > > Normally, when you bacula-mount a tape, Bacula knows that the tape is
> > > > > positioned at the start, so it winds the taoe forward to the end
> > > > > before writing the next job.
> > > >
> > > > OK, so I was stupid.
> > > >
> > > > >> Is it a bug or did I just do something stupid?
> > > > >
> > > > > Do you have AlwaysOpen = yes (the default)in the device config?  If
> > > > > so, then I think the bug is in the OS or tape drive -- it should be
> > > > > impossible to eject the tape while it is mounted (and open) by
> > > > > Bacula.
> > > >
> > > > I have AlwaysOpen = yes but I ejected the tape by pressing the eject
> > > > button on the tape drive.
> > > >
> > > > Thanks for the answer, I've learned a lesson.
> > >
> > > Unfortunately, you aren't the first person to whom this has happened.
> > >
> > > Bacula version 2.0+ will lock the door on your tape drive, while Bacula
> > > is using the drive, providing your tape drive/OS permit it.
> > >
> > > -
> > > 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
-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
mail: [EMAIL PROTECTED]


-
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


[Bacula-users] Retention problem

2005-11-01 Thread Julien Cigar

Hello,

I used Bacula at work with backup on tapes, and it works perfectly.
Now I'd like to install it at home for personal backups (on disk).

I do a weekly full backup each sunday 6am and a daily incremental backup 
each day at 9pm.
It's for personal use so I only want a full backup volume and 7 
incremental volumes (one volume per day).


It runs now for one week but today an incremental backup has been 
promoted to a full backup :


31-Oct 23:59 mordor-dir: No prior Full backup Job record found.
31-Oct 23:59 mordor-dir: No prior or suitable Full backup found. Doing 
FULL backup.
31-Oct 23:59 mordor-dir: Start Backup JobId 19, 
Job=mordor-incremental.2005-11-01_00.00.00

31-Oct 23:59 mordor-dir: Recycled volume "DailyIncremental-0002"
31-Oct 23:59 mordor-sd: Recycled volume "DailyIncremental-0002" on 
device "/var/backups/bacula", all previous data lost.
01-Nov 00:28 mordor-dir: Max Volume jobs exceeded. Marking Volume 
"DailyIncremental-0002" as Used.

01-Nov 00:28 mordor-dir: Bacula 1.36.3 (22Apr05): 01-Nov-2005 00:28:02
 JobId:  19
 Job:mordor-incremental.2005-11-01_00.00.00
 Backup Level:   Full (upgraded from Incremental)
 Client: mordor-fd
 FileSet:"mordor-fs" 2005-10-21 23:59:43
 Pool:   "DailyIncremental"
 Storage:"FileStorage"
 Start time: 31-Oct-2005 23:59:43
 End time:   01-Nov-2005 00:28:02
 FD Files Written:   26,646
 SD Files Written:   26,646
 FD Bytes Written:   3,579,442,232
 SD Bytes Written:   3,583,922,855
 Rate:   2106.8 KB/s
 Software Compression:   3.3 %
 Volume name(s): DailyIncremental-0002
 Volume Session Id:  2
 Volume Session Time:1130667139
 Last Volume Bytes:  3,588,121,868
 Non-fatal FD errors:0
 SD Errors:  0
 FD termination status:  OK
 SD termination status:  OK
 Termination:Backup OK

01-Nov 00:28 mordor-dir: Begin pruning Jobs.
01-Nov 00:28 mordor-dir: No Jobs found to prune.
01-Nov 00:28 mordor-dir: Begin pruning Files.
01-Nov 00:28 mordor-dir: No Files found to prune.
01-Nov 00:28 mordor-dir: End auto prune.


This is what 'list media' gives :

Pool: WeeklyFull

| 1 | WeeklyFull-0001   | Used | 3587930010 | 0 | 518400 | 1 | 0 
| 1 | File | 2005-10-30 06:23:21 |


Pool: DailyIncremental

| 2 | DailyIncremental-0001 | Used | 486280 | 0 | 518400 | 1 | 0 
| 1 | File | 2005-10-31 00:01:12 |
| 3 | DailyIncremental-0002 | Used | 3588121868 | 0 | 518400 | 1 | 0 | 1 
| File | 2005-11-01 00:28:02 |
| 4 | DailyIncremental-0003 | Used | 971928 | 0 | 518400 | 1 | 0 
| 1 | File | 2005-10-25 23:59:53 |
| 5 | DailyIncremental-0004 | Used | 35189869 | 0 | 518400 | 1 | 0 | 
1 | File | 2005-10-27 00:00:37 |
| 6 | DailyIncremental-0005 | Used | 356533 | 0 | 518400 | 1 | 0 
| 1 | File | 2005-10-28 00:00:17 |
| 7 | DailyIncremental-0006 | Used | 228613 | 0 | 518400 | 1 | 0 
| 1 | File | 2005-10-29 00:00:12 |
| 8 | DailyIncremental-0007 | Used | 25817650 | 0 | 518400 | 1 | 0 | 
1 | File | 2005-10-30 00:00:18 |


As you can see the last FULL backup has been made on volume 
WeeklyFull-0001 the 2005-10-30 (this is correct).
The next day the incremental backup has been made on volume 
DailyIncremental-0001 which is correct too.
But today the incremental backup has been promoted to a full backup on 
DailyIncremental-0002 and I don't understand why because a full backup 
has been made two days ago ... ?


Thanks


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Still problems with my Sony tapes

2005-11-07 Thread Julien Cigar

Hello,

I writed a mail some weeks ago for a problem with my Sony drive (write 
errors).

The drive is a Sony SDX-500C on a Adaptec 2940 Ultra SCSI.
Someone told me to upgrade the bios of the drive, which I did. It worked 
fine for a week, but now I'm still having writing error messages :


Nov  7 06:01:46 localhost kernel: st0: Error with sense data: <6>st0: 
Current: sense key: Medium Error

Nov  7 06:01:46 localhost kernel: Additional sense: Write append error
Nov  7 06:01:46 localhost kernel: Info fld=0xfc00
Nov  7 06:01:46 localhost kernel: st0: Error with sense data: <6>st0: 
Current: sense key: Medium Error

Nov  7 06:01:46 localhost kernel: Additional sense: Write append error
Nov  7 06:01:46 localhost kernel: Info fld=0x1
Nov  7 08:42:26 localhost kernel: st0: Error with sense data: <6>st0: 
Current: sense key: Unit Attention
Nov  7 08:42:26 localhost kernel: Additional sense: Not ready to 
ready change, medium may have changed

Nov  7 08:47:37 localhost kernel: st0: MTSETDRVBUFFER only allowed for root.

What happens is, it backs up perfectly fine for a while backup,
restoring from tape works too! Then all of a sudden it starts giving an 
error ...
I don't think it's tape related, the tapes are new and the problem 
occurs only randomly ...

I've checked the cable too

Any idea welcomed ...


--
Here's the output of /proc/scsi/scsi :

phoenix:/home/jcigar# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 01 Lun: 00
 Vendor: SONY Model: SDX-500C Rev: 0204
 Type:   Sequential-AccessANSI SCSI revision: 02

--
Here's the output of /proc/scsi/aic7xxx/0 :

phoenix:/home/jcigar# cat /proc/scsi/aic7xxx/0  
Adaptec AIC7xxx driver version: 6.2.36

Adaptec 2940 Ultra SCSI adapter
aic7880: Ultra Wide Channel A, SCSI Id=0, 16/253 SCBs
Allocated SCBs: 4, SG List Length: 128

Serial EEPROM:
0x0238 0x0238 0x0238 0x0238 0x0238 0x0238 0x0238 0x0238
0x0238 0x0238 0x0238 0x0238 0x0238 0x0238 0x0238 0x0238
0x18b6 0x005d 0x2800 0x0010 0xff00 0x 0x 0x
0x 0x 0x 0x 0x 0x 0x00ff 0x6499

Target 0 Negotiation Settings
   User: 20.000MB/s transfers (10.000MHz, offset 127, 16bit)
Target 1 Negotiation Settings
   User: 20.000MB/s transfers (10.000MHz, offset 127, 16bit)
   Goal: 40.000MB/s transfers (20.000MHz, offset 8, 16bit)
   Curr: 40.000MB/s transfers (20.000MHz, offset 8, 16bit)
   Channel A Target 1 Lun 0 Settings
   Commands Queued 3051621
   Commands Active 0
   Command Openings 1
   Max Tagged Openings 0
   Device Queue Frozen Count 0
Target 2 Negotiation Settings
   User: 20.000MB/s transfers (10.000MHz, offset 127, 16bit)
Target 3 Negotiation Settings
   User: 20.000MB/s transfers (10.000MHz, offset 127, 16bit)
Target 4 Negotiation Settings
   User: 20.000MB/s transfers (10.000MHz, offset 127, 16bit)
Target 5 Negotiation Settings
   User: 20.000MB/s transfers (10.000MHz, offset 127, 16bit)
Target 6 Negotiation Settings
   User: 20.000MB/s transfers (10.000MHz, offset 127, 16bit)
Target 7 Negotiation Settings
   User: 20.000MB/s transfers (10.000MHz, offset 127, 16bit)
Target 8 Negotiation Settings
   User: 20.000MB/s transfers (10.000MHz, offset 127, 16bit)
Target 9 Negotiation Settings
   User: 20.000MB/s transfers (10.000MHz, offset 127, 16bit)
Target 10 Negotiation Settings
   User: 20.000MB/s transfers (10.000MHz, offset 127, 16bit)
Target 11 Negotiation Settings
   User: 20.000MB/s transfers (10.000MHz, offset 127, 16bit)
Target 12 Negotiation Settings
   User: 20.000MB/s transfers (10.000MHz, offset 127, 16bit)
Target 13 Negotiation Settings
   User: 20.000MB/s transfers (10.000MHz, offset 127, 16bit)
Target 14 Negotiation Settings
   User: 20.000MB/s transfers (10.000MHz, offset 127, 16bit)
Target 15 Negotiation Settings
   User: 20.000MB/s transfers (10.000MHz, offset 127, 16bit)



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


Re: [Bacula-users] Still problems with my Sony tapes

2005-11-07 Thread Julien Cigar

You think I can ignore the problem ?
When I list media you can see that the tape Weekly-0003 has not been 
filled up completely (it was the tape with write errors ...)


*list media
Pool: WeeklyFullBackupPool
+-+-+---+-+--+--+-+--+---+---+-+
| MediaId | VolumeName  | VolStatus | VolBytes| VolFiles | 
VolRetention | Recycle | Slot | InChanger | MediaType | 
LastWritten |

+-+-+---+-+--+--+-+--+---+---+-+
| 1   | Weekly-0001 | Full  | 71563809646 | 73   | 
2592000  | 1   | 0| 0 | DAT   | 2005-10-28 
10:38:32 |
| 2   | Weekly-0002 | Full  | 79126531739 | 79   | 
2592000  | 1   | 0| 0 | DAT   | 2005-10-30 
11:28:16 |
| 3   | Weekly-0003 | Full  | 45914843881 | 47   | 
2592000  | 1   | 0| 0 | DAT   | 2005-11-07 
06:01:46 |
| 4   | Weekly-0004 | Full  | 81241762264 | 81   | 
2592000  | 1   | 0| 0 | DAT   | 2005-11-07 
12:17:00 |


However, the jobs terminate with a "Backup OK" termination ... strange

Kern Sibbald wrote:


On Monday 07 November 2005 09:04, Julien Cigar wrote:
 


Hello,

I writed a mail some weeks ago for a problem with my Sony drive (write
errors).
The drive is a Sony SDX-500C on a Adaptec 2940 Ultra SCSI.
Someone told me to upgrade the bios of the drive, which I did. It worked
fine for a week, but now I'm still having writing error messages :

Nov  7 06:01:46 localhost kernel: st0: Error with sense data: <6>st0:
Current: sense key: Medium Error
Nov  7 06:01:46 localhost kernel: Additional sense: Write append error
Nov  7 06:01:46 localhost kernel: Info fld=0xfc00
Nov  7 06:01:46 localhost kernel: st0: Error with sense data: <6>st0:
Current: sense key: Medium Error
Nov  7 06:01:46 localhost kernel: Additional sense: Write append error
Nov  7 06:01:46 localhost kernel: Info fld=0x1
Nov  7 08:42:26 localhost kernel: st0: Error with sense data: <6>st0:
Current: sense key: Unit Attention
Nov  7 08:42:26 localhost kernel: Additional sense: Not ready to
ready change, medium may have changed
Nov  7 08:47:37 localhost kernel: st0: MTSETDRVBUFFER only allowed for
root.

What happens is, it backs up perfectly fine for a while backup,
restoring from tape works too! Then all of a sudden it starts giving an
error ...
I don't think it's tape related, the tapes are new and the problem
occurs only randomly ...
I've checked the cable too

Any idea welcomed ...
   



All the errors at 06:01 appear to me to be typical write errors that one often 
gets on DDS tapes. From what I see, the drive recovered and continued. I 
doubt that Bacula was even aware of the problem -- though you can check in 
the Job report.


The errors are 8:42 are a bit worrysome. I would attempt to correlate them 
with what Bacula was doing.  It may only be that Bacula asked for a new tape 
and tried to read while there was nothing in the drive, or it may be some 
real failure.


The "error" at 8:47 is apparently after you restarted the FD. It attempts to 
set the tape to variable tape format, and your kernel forbids the request 
(ioctl) if the SD is not being run as root. This can be ignored if your tape 
drive mode is set properly before starting the SD.


 


--
Here's the output of /proc/scsi/scsi :

phoenix:/home/jcigar# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 01 Lun: 00
 Vendor: SONY Model: SDX-500C Rev: 0204
 Type:   Sequential-AccessANSI SCSI revision: 02

--
Here's the output of /proc/scsi/aic7xxx/0 :

phoenix:/home/jcigar# cat /proc/scsi/aic7xxx/0
Adaptec AIC7xxx driver version: 6.2.36
Adaptec 2940 Ultra SCSI adapter
aic7880: Ultra Wide Channel A, SCSI Id=0, 16/253 SCBs
Allocated SCBs: 4, SG List Length: 128

Serial EEPROM:
0x0238 0x0238 0x0238 0x0238 0x0238 0x0238 0x0238 0x0238
0x0238 0x0238 0x0238 0x0238 0x0238 0x0238 0x0238 0x0238
0x18b6 0x005d 0x2800 0x0010 0xff00 0x 0x 0x
0x 0x 0x 0x 0x 0x 0x00ff 0x6499

Target 0 Negotiation Settings
   User: 20.000MB/s transfers (10.000MHz, offset 127, 16bit)
Target 1 Negotiation Settings
   User: 20.000MB/s transfers (10.000MHz, offset 127, 16bit)
   Goal: 40.000MB/s transfers (20.000MHz, offset 8, 16bit)
   Curr: 40.000MB/s transfers (20.000MHz, offset 8, 16bit)
   Channel A Target 1 Lun 0 Settings
   Commands Queued 3051621
   Commands Active 0
   Command Openings 1
   Max Tagged Openings 0
   Device Queue Frozen Count 0
Target 2 Negotiation Settings
   User: 20.000MB/s transfers (10.000MHz, offset 127, 16bit)
Target 3 Negotiation Settings
   User: 20.0

[Bacula-users] restore with "warning file count mismatch" message

2005-11-14 Thread Julien Cigar

Hello,

I ran a restore job today, and the job ended with a "Restore OK -- 
warning file count mismatch" termination status :


14-Nov 16:28 phoenix-dir: Bacula 1.36.3 (22Apr05): 14-Nov-2005 16:28:46
 JobId:  9
 Job:CanisRestoreFull.2005-11-14_13.14.24
 Client: canis-fd
 Start time: 14-Nov-2005 13:14:26
 End time:   14-Nov-2005 16:28:46
 Files Expected: 512,336
 Files Restored: 479,908
 Bytes Restored: 81,629,886,956
 Rate:   7000.8 KB/s
 FD Errors:  0
 FD termination status:  OK
 SD termination status:  OK
 Termination:Restore OK -- warning file count mismatch

14-Nov 16:28 phoenix-dir: Begin pruning Jobs.
14-Nov 16:28 phoenix-dir: No Jobs found to prune.
14-Nov 16:28 phoenix-dir: Begin pruning Files.
14-Nov 16:28 phoenix-dir: No Files found to prune.
14-Nov 16:28 phoenix-dir: End auto prune.

I asked on the bacula irc channel on freenode and someone told me that 
it's a known bug (can someone confirm ?).
Does such a termination status mean that some of my files haven't been 
restored ... ? or is it just a bug in the file counter or so .. ?


In advance thanks


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


Re: [Bacula-users] Still problems with my Sony tapes

2005-11-17 Thread Julien Cigar

I think I found the problem.
I changed the scsi id of the tape drive from ID 0 to ID 6 and it *seems* 
to work better (I did a full backup and no problems occured yet). I read 
that apparently ID 0 and ID 1 should not be used for tape drives (it's 
for booting devices only ...)


Kern Sibbald wrote:


On Monday 07 November 2005 15:15, Julien Cigar wrote:
 


You think I can ignore the problem ?
When I list media you can see that the tape Weekly-0003 has not been
filled up completely (it was the tape with write errors ...)
   



Well, that answers the question I had: the drive could not recover from the 
error, and it *did* notify Bacula.  In principle, Bacula stopped writing when 
the tape/drive got the error, so your backup should be good, but personally, 
I would be very worried whether the data on the tape was readable or not. 

At a minimum, I would start doing Verifys of all my tape jobs to ensure that 
the tape can be read -- they are slow, but at least you will know.  I would 
also try doing a btape "fill" on the tape that got the errors (after ensuring 
that all the files are backed up elsewhere). If it fails, I would trash the 
tape.


The best solution is to get a DLT or SDLT drive.  

If you cannot, one thing that I noticed here with my HP drive is that tapes 
from some manufacturers fail all the time, and tapes from others last two 
years before failing (under heavy use).  For example, if I remember right, I 
have no problem with Sony tapes in my drive, but Imation tapes cause me 
problems (or vise-versa). I forget because I only use the drive for testing, 
and I frequently need to throw out tapes.  The only way you can know is to 
try tapes from different manufacturers in your drive, and the only thing I 
can say for sure, is that for my drive, there is a lot of difference between 
tapes from different manufacturers.


 


*list media
Pool: WeeklyFullBackupPool
+-+-+---+-+--+-
-+-+--+---+---+-+

| MediaId | VolumeName  | VolStatus | VolBytes| VolFiles |

VolRetention | Recycle | Slot | InChanger | MediaType |
LastWritten |
+-+-+---+-+--+-
-+-+--+---+---+-+

| 1   | Weekly-0001 | Full  | 71563809646 | 73   |

2592000  | 1   | 0| 0 | DAT   | 2005-10-28
10:38:32 |

| 2   | Weekly-0002 | Full  | 79126531739 | 79   |

2592000  | 1   | 0| 0 | DAT   | 2005-10-30
11:28:16 |

| 3   | Weekly-0003 | Full  | 45914843881 | 47   |

2592000  | 1   | 0| 0 | DAT   | 2005-11-07
06:01:46 |

| 4   | Weekly-0004 | Full  | 81241762264 | 81   |

2592000  | 1   | 0| 0 | DAT   | 2005-11-07
12:17:00 |

However, the jobs terminate with a "Backup OK" termination ... strange

Kern Sibbald wrote:
   


On Monday 07 November 2005 09:04, Julien Cigar wrote:
 


Hello,

I writed a mail some weeks ago for a problem with my Sony drive (write
errors).
The drive is a Sony SDX-500C on a Adaptec 2940 Ultra SCSI.
Someone told me to upgrade the bios of the drive, which I did. It worked
fine for a week, but now I'm still having writing error messages :

Nov  7 06:01:46 localhost kernel: st0: Error with sense data: <6>st0:
Current: sense key: Medium Error
Nov  7 06:01:46 localhost kernel: Additional sense: Write append
error Nov  7 06:01:46 localhost kernel: Info fld=0xfc00
Nov  7 06:01:46 localhost kernel: st0: Error with sense data: <6>st0:
Current: sense key: Medium Error
Nov  7 06:01:46 localhost kernel: Additional sense: Write append
error Nov  7 06:01:46 localhost kernel: Info fld=0x1
Nov  7 08:42:26 localhost kernel: st0: Error with sense data: <6>st0:
Current: sense key: Unit Attention
Nov  7 08:42:26 localhost kernel: Additional sense: Not ready to
ready change, medium may have changed
Nov  7 08:47:37 localhost kernel: st0: MTSETDRVBUFFER only allowed for
root.

What happens is, it backs up perfectly fine for a while backup,
restoring from tape works too! Then all of a sudden it starts giving an
error ...
I don't think it's tape related, the tapes are new and the problem
occurs only randomly ...
I've checked the cable too

Any idea welcomed ...
   


All the errors at 06:01 appear to me to be typical write errors that one
often gets on DDS tapes. From what I see, the drive recovered and
continued. I doubt that Bacula was even aware of the problem -- though
you can check in the Job report.

The errors are 8:42 are a bit worrysome. I would attempt to correlate them
with what Bacula was doing.  It may only be that Bacula asked for a new
tape and tried to read while there was nothing in the drive, or it may be
some real failure.

The "error" at 8:47 is apparently after 

Re: [Bacula-users] Still problems with my Sony tapes

2005-11-17 Thread Julien Cigar

John Stoffel wrote:


Julien> I think I found the problem.  I changed the scsi id of the
Julien> tape drive from ID 0 to ID 6 and it *seems* to work better (I
Julien> did a full backup and no problems occured yet). I read that
Julien> apparently ID 0 and ID 1 should not be used for tape drives
Julien> (it's for booting devices only ...)

Do you have any other SCSI devices on that chain?  Or is the tape
drive the only device?  Generally people do put the tape drives higher
up the SCSI number chain, but that's because they used to default to
SCSI ID 0 as the root disk.

Now, you might still have problems, because 6 or 7 could be the ID of
the SCSI controller itself.  In this case, I suspect it's 7, but it's
something for you to check.

John
 

I don't have any other scsi devices on that chain, the tape drive is the 
only device.
You're right, the scsi id of the controller is 7 (it was 1 before, I've 
also changed this)



---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Still problems with my Sony tapes

2005-11-17 Thread Julien Cigar

AltGrendel wrote:


John Stoffel wrote:


Julien> I think I found the problem.  I changed the scsi id of the
Julien> tape drive from ID 0 to ID 6 and it *seems* to work better (I
Julien> did a full backup and no problems occured yet). I read that
Julien> apparently ID 0 and ID 1 should not be used for tape drives
Julien> (it's for booting devices only ...)

Do you have any other SCSI devices on that chain?  Or is the tape
drive the only device?  Generally people do put the tape drives higher
up the SCSI number chain, but that's because they used to default to
SCSI ID 0 as the root disk.

Now, you might still have problems, because 6 or 7 could be the ID of
the SCSI controller itself.  In this case, I suspect it's 7, but it's
something for you to check.

John


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
 


Another issue might be the SCSI cable itself.



mmh no, I tried with 2 different cables


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users





---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Compression ?

2005-11-23 Thread Julien Cigar
Hello,

I wondered how I could activate or desactivate compression on the same fileset 
for
differents jobs and differents pools/medias ?
I explain my problem :
I do a full backup weekly on tape and a daily incremental backup on disk. 
The problem is that I would like to use the hardware compression of the
tape drive for the full backup and the software compression for the
incremental backup.
What can I do in this case ? I haven't found anything to override the
compression parameter (in a Schedule ressource for example) of the Fileset ...

Thanks,
Julien


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Compression ?

2005-11-25 Thread Julien Cigar
On my linux box it's on the same device name (/dev/st0). Compression is 
activated through a jumper or with th 'mt' program ...
What I would like to do is to enable/disable compression (GZIP6) for the 
same fileset for different devices (tape and file) ... too bad that I 
cannot overwrite this in a schedule { ... }


Ryan Novosielski wrote:

Keep in mind that hardware compression is often handled by using a 
particular device name (ie /dev/rmt/0c vs. /dev/rmt/0). I don't know 
if this helps (and you're probably already aware of this). As for 
using software compression in only some cases, that is another question.


Julien Cigar wrote:


Hello,

I wondered how I could activate or desactivate compression on the 
same fileset for

differents jobs and differents pools/medias ?
I explain my problem :
I do a full backup weekly on tape and a daily incremental backup on 
disk. The problem is that I would like to use the hardware 
compression of the

tape drive for the full backup and the software compression for the
incremental backup.
What can I do in this case ? I haven't found anything to override the
compression parameter (in a Schedule ressource for example) of the 
Fileset ...


Thanks,
Julien


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through 
log files

for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
 







---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Exclude / Include in a FileSet ressource

2005-11-25 Thread Julien Cigar

Hello,

Small question, is there a difference between :

Exclude {
 File = *.mp3
}

and :

Include {
 Options {
   Exclude = yes
 }
 wildfile = "*.mp3"
}

If there is no difference, why it the usefullness of Exclude {} ?

Thanks,
Julien


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Exclude / Include in a FileSet ressource

2005-11-25 Thread Julien Cigar

Kern Sibbald wrote:


On Friday 25 November 2005 13:40, Julien Cigar wrote:
 


Hello,

Small question, is there a difference between :

Exclude {
 File = *.mp3
}

and :

Include {
 Options {
   Exclude = yes
 }
 wildfile = "*.mp3"
}

If there is no difference, why it the usefullness of Exclude {} ?
   



As for nearly everything in life, there is more than one way to do it.

Exclude {} is simpler but more limited.

 

Thanks for answer... one last question : can I put the WildDir / 
WildFile directives in a file to use with @/foo/bar/myfile in an Include 
{ } ressource ? Something like:

Include {
   Options {
   IgnoreCase = yes
   Exclude = yes
   }
   @/foo/bar/myfile
}

/foo/bar/@myfile :

WildFile = "*.mp3"
WildFile = "*.mpc"
WildFile = "*.ogg"
WildFile = "*.wav"
WildFile = "*.bak"
WildFile = "*.tmp"
WildFile = "*.pyc"

In the documentation only File= is mentionned : "Any name preceded by an 
at-sign (@) is assumed to be the name of a file, which contains a list 
of files each preceded by a "File ="."


Thanks,
Julien


Thanks,
Julien


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
   



 





---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] RHEL3 - problem accessing Quantum SDLT Scsi tape

2005-11-25 Thread Julien Cigar
it seems that the bacula-sd daemon have no permission to write on your 
tape device.
You probably runned the ./btape test as root, and the bacula-sd daemon 
runs as another user (ex: tape).
You should either change the permission on /dev/nst0 (dirty) or add the 
bacula daemon to the correct group (look at /dev/nst0).


cmk innvo wrote:


 Hello,
I have installed bacula-1.38.1 from tarball on rhel3 kernel 
2.4.21-4.ELsmp.


./btape test executed without any problem.

Problem started only after starting the bacula service.

1) at ./bconsole, when i see the status for Storage, it give me the 
following error,

"Device "Super DLT320" (/dev/nst0) is not open or does not exist.

2) when i run the job, I get the following error,

25-Nov 18:56 bacula-sd: client7.2005-11-25_18.56.36 Fatal error: 
dev.c:387 dev.c:381 Unable to open device "Super DLT320" (/dev/nst0): 
ERR=Permission denied
25-Nov 18:56 bacula-sd: client7.2005-11-25_18.56.36 Fatal error: 
device.c:299 Unable to open device "Super DLT320" (/dev/nst0): 
ERR=dev.c:381 Unable to open device "Super DLT320" (/dev/nst0): 
ERR=Permission denied


What could be the problem, and how can this error be solved.
Thanks in advance,

Chinmaya Murthy
Bangalore.


Yahoo! Music Unlimited - Access over 1 million songs. Try it free. 
 






---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] exclude don't work

2005-12-27 Thread Julien Cigar

Hello,
I have some problems to exclude some files.
My fileset looks like this :

FileSet {
   Name = canis-fs

   Include {
   Options {
   #compression = GZIP6
   IgnoreCase = no
   signature = MD5
   recurse = yes
   onefs = yes
   }
   @/etc/bacula/includes/global
   @/etc/bacula/includes/canis
   }

   Include {
   Options {
   IgnoreCase = yes
   Exclude = yes
   @/etc/bacula/excludes/global
   }
   }
  
   Exclude {

   File = /home/sys_samba/shares/bebif/pictures
   File = core
   }
}

in /etc/bacule/excludes/global I have :
WildFile = "*.mp3"
WildFile = "*.mpc"
WildFile = "*.ogg"
WildFile = "*.wav"
WildFile = "*.bak"
WildFile = "*.tmp"
WildFile = "*.pyc"

but bacula backup continues to backup those files :

Enter Filename (no path): My Dying Bride - The Light At The End Of The 
World - 01 - She Is The Dark.mpc

+---+--+-+---+-+---+--+-+
| JobId | Client   | 
Path.Path   
| 
Filename.Name 
| StartTime   | Level | JobFiles | JobBytes|

+---+--+-+---+-+---+--+-+
| 9 | canis-fd | 
/home/jcigar/audio/My_Dying_Bride_-_The_Light_at_the_End_of_the_World/ | 
My Dying Bride - The Light At The End Of The World - 01 - She Is The 
Dark.mpc | 2005-12-19 03:00:02 | F | 500673   | 85791660261 |

...
what did i miss ?

Thanks


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] exclude don't work

2005-12-29 Thread Julien Cigar

Martin Simmons wrote:


On Tue, 27 Dec 2005 11:10:16 +0100, Julien Cigar <[EMAIL PROTECTED]> said:
   



 Julien> Hello,
 Julien> I have some problems to exclude some files.
 Julien> My fileset looks like this :

 Julien> FileSet {
 Julien> Name = canis-fs

 Julien> Include {
 Julien> Options {
 Julien> #compression = GZIP6
 Julien> IgnoreCase = no
 Julien> signature = MD5
 Julien> recurse = yes
 Julien> onefs = yes
 Julien> }
 Julien> @/etc/bacula/includes/global
 Julien> @/etc/bacula/includes/canis
 Julien> }

 Julien> Include {
 Julien> Options {
 Julien> IgnoreCase = yes
 Julien> Exclude = yes
 Julien> @/etc/bacula/excludes/global
 Julien> }
 Julien> }
  
 Julien> Exclude {

 Julien> File = /home/sys_samba/shares/bebif/pictures
 Julien> File = core
 Julien> }
 Julien> }

 Julien> in /etc/bacule/excludes/global I have :
 Julien> WildFile = "*.mp3"
 Julien> WildFile = "*.mpc"
 Julien> WildFile = "*.ogg"
 Julien> WildFile = "*.wav"
 Julien> WildFile = "*.bak"
 Julien> WildFile = "*.tmp"
 Julien> WildFile = "*.pyc"

 Julien> but bacula backup continues to backup those files :

 Julien> Enter Filename (no path): My Dying Bride - The Light At The End Of The 
 Julien> World - 01 - She Is The Dark.mpc

 Julien> 
+---+--+-+---+-+---+--+-+
 Julien> | JobId | Client   | 
 Julien> Path.Path   
 Julien> | 
 Julien> Filename.Name 
 Julien> | StartTime   | Level | JobFiles | JobBytes|

 Julien> 
+---+--+-+---+-+---+--+-+
 Julien> | 9 | canis-fd | 
 Julien> /home/jcigar/audio/My_Dying_Bride_-_The_Light_at_the_End_of_the_World/ | 
 Julien> My Dying Bride - The Light At The End Of The World - 01 - She Is The 
 Julien> Dark.mpc | 2005-12-19 03:00:02 | F | 500673   | 85791660261 |

 Julien> ...
 Julien> what did i miss ?

What is in /etc/bacula/includes/global and /etc/bacula/includes/canis?  If
they contain any Options clauses with wild/regex patterns then these might
match before the exclude.

__Martin
 


/etc/bacula/includes/global :
File = /etc

/etc/bacula/includes/canis :
File = /etc
File = /home/admin
File = /home/aheugheb
File = /home/andimuba
File = /home/fwautele
File = /home/gbottu
File = /home/jcigar
File = /home/jdelaet
File = /home/jduflost
File = /home/jnuytinc
File = /home/pmergen
File = /home/rherzog
File = /home/sys_ldap
File = /home/sys_postgresql/dumps
File = /home/sys_samba
File = /home/sys_svn
File = /home/sys_www
File = /home/vledent
File = /var/lib/trac


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] exclude don't work

2005-12-29 Thread Julien Cigar

Drew Tomlinson wrote:


On 12/28/2005 8:29 AM Martin Simmons wrote:

On Tue, 27 Dec 2005 11:10:16 +0100, Julien Cigar 
<[EMAIL PROTECTED]> said:
  




 Julien> Hello,
 Julien> I have some problems to exclude some files.
 Julien> My fileset looks like this :

 Julien> FileSet {
 Julien> Name = canis-fs

 Julien> Include {
 Julien> Options {
 Julien> #compression = GZIP6
 Julien> IgnoreCase = no
 Julien> signature = MD5
 Julien> recurse = yes
 Julien> onefs = yes
 Julien> }
 Julien> @/etc/bacula/includes/global
 Julien> @/etc/bacula/includes/canis
 Julien> }

 Julien> Include {
 Julien> Options {
 Julien> IgnoreCase = yes
 Julien> Exclude = yes
 Julien> @/etc/bacula/excludes/global
 Julien> }
 Julien> }
   Julien> Exclude {
 Julien> File = /home/sys_samba/shares/bebif/pictures
 Julien> File = core
 Julien> }
 Julien> }

 Julien> in /etc/bacule/excludes/global I have :
 Julien> WildFile = "*.mp3"
 Julien> WildFile = "*.mpc"
 Julien> WildFile = "*.ogg"
 Julien> WildFile = "*.wav"
 Julien> WildFile = "*.bak"
 Julien> WildFile = "*.tmp"
 Julien> WildFile = "*.pyc"

 Julien> but bacula backup continues to backup those files :

 Julien> Enter Filename (no path): My Dying Bride - The Light At The 
End Of The  Julien> World - 01 - She Is The Dark.mpc
 Julien> 
+---+--+-+---+-+---+--+-+ 

 Julien> | JobId | Client   |  Julien> 
Path.Path   
 Julien> |  Julien> 
Filename.Name 
 Julien> | StartTime   | Level | JobFiles | JobBytes|
 Julien> 
+---+--+-+---+-+---+--+-+ 

 Julien> | 9 | canis-fd |  Julien> 
/home/jcigar/audio/My_Dying_Bride_-_The_Light_at_the_End_of_the_World/ 
|  Julien> My Dying Bride - The Light At The End Of The World - 01 - 
She Is The  Julien> Dark.mpc | 2005-12-19 03:00:02 | F | 500673   
| 85791660261 |

 Julien> ...
 Julien> what did i miss ?

What is in /etc/bacula/includes/global and 
/etc/bacula/includes/canis?  If
they contain any Options clauses with wild/regex patterns then these 
might

match before the exclude.

__Martin



Please excuse me if this has already been discussed.  I have missed 
most of the thread.  However, there is some known issue regarding 
excludes and wildcard pattern matching with Bacula 1.36.x when it is 
running on FreeBSD.  It may persist in the newest version too.  I 
can't remember the details but if you're using FreeBSD, you might want 
to search the archives.


HTH,

Drew


I'm running Debian Linux with Bacula version 1.36.3-2


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] incremental upgraded to full ..

2006-01-09 Thread Julien Cigar

Hello,

I'm running Linux Debian with Bacula 1.36.3 and sqlite.

I have two clients (canis and bebif) to backup, three pools: one for 
full backup (for both client), and two for incremental backups (one for 
each client).
(In fact I have more clients, but those are not problematic because I do 
only a full backup of them once a week)

I do:
- FULL backup of CANIS every monday at 3:00 AM
- FULL backup of BEBIF every tuesday at 3:00 AM
- INCREMENTAL backup of BEBIF and CANIS every day at 20:00 PM

Here is the Pools definition:


# P O O L  #


# FULL

Pool { 
   Name = tape-pool-full

   PoolType = Backup
   LabelFormat = "Full-"
   Recycle = yes
   RecycleOldestVolume = yes
   MaximumVolumes = 18
   MaximumVolumeJobs = 0
   VolumeUseDuration = 0
   VolumeRetention = 30 days
   CatalogFiles = yes
   AutoPrune = yes
   AcceptAnyVolume = no
}

# INCREMENTAL

Pool { 
   Name = bebif-pool-incremental

   PoolType = Backup
   LabelFormat = "Bebif-Incremental-"
   Recycle = yes
   RecycleOldestVolume = yes
   MaximumVolumes = 15
   MaximumVolumeJobs = 1
   VolumeUseDuration = 0
   VolumeRetention = 10 days
   CatalogFiles = yes
   AutoPrune = yes
   AcceptAnyVolume = no
}

Pool { 
   Name = canis-pool-incremental

   PoolType = Backup
   LabelFormat = "Canis-Incremental-"
   Recycle = yes
   RecycleOldestVolume = yes
   MaximumVolumes = 15
   MaximumVolumeJobs = 1
   VolumeUseDuration = 0
   VolumeRetention = 10 days
   CatalogFiles = yes
   AutoPrune = yes
   AcceptAnyVolume = no
}

Everything works fine, except that sometimes an incremental backup is 
upgraded to a full backup without any reasons.


Here is the list jobs output (I hope it will be readable) :

*list jobs
+---+---+-+--+---+--+-+---+
| JobId | Name  | StartTime   | Type | Level | 
JobFiles | JobBytes| JobStatus |

+---+---+-+--+---+--+-+---+
| 9 | canis-job-full| 2005-12-19 03:00:02 | B| F | 
500673   | 85791660261 | T |
| 12| ben05-job-full| 2005-12-20 03:00:02 | B| F | 
2217 | 1135539991  | T |
| 13| ben05-job-restore | 2005-12-20 14:33:22 | R| F | 
1872 | 1135539991  | T |
| 16| bebif-job-full| 2005-12-21 03:00:02 | B| F | 
90823| 11019038205 | T |
| 19| phoenix-job-full  | 2005-12-22 03:00:02 | B| F | 
806  | 1277370 | T |
| 28| canis-job-full| 2005-12-26 03:00:02 | B| F | 
501186   | 86115606365 | T |
| 31| ben05-job-full| 2005-12-27 09:57:17 | B| F | 
2230 | 1139799163  | T |
| 34| bebif-job-full| 2005-12-28 03:00:02 | B| F | 
90934| 11033395792 | T |
| 37| phoenix-job-full  | 2005-12-29 03:00:02 | B| F | 
807  | 1278172 | T |
| 40| canis-job-incremental | 2005-12-30 20:00:01 | B| I | 
862  | 168963243   | T |
| 41| bebif-job-incremental | 2005-12-30 20:03:13 | B| I | 
18   | 301027322   | T |
| 42| canis-job-incremental | 2005-12-31 20:00:01 | B| I | 
6| 855769  | T |
| 43| bebif-job-incremental | 2005-12-31 20:02:23 | B| I | 
21   | 301536798   | T |
| 44| canis-job-incremental | 2006-01-01 20:00:02 | B| I | 
6| 624906803   | T |
| 45| bebif-job-incremental | 2006-01-01 20:03:20 | B| I | 
46   | 93279853| T |
| 46| canis-job-full| 2006-01-02 03:00:02 | B| F | 
499676   | 86322256828 | T |
| 47| canis-job-incremental | 2006-01-02 20:00:01 | B| I | 
340  | 4111092 | T |
| 48| bebif-job-incremental | 2006-01-02 20:02:35 | B| I | 
71   | 299090520   | T |
| 49| ben05-job-full| 2006-01-03 12:57:37 | B| F | 
2231 | 1139798820  | T |
| 50| bebif-job-restore | 2006-01-03 16:31:43 | R| F | 
2| 208631492   | T |
| 51| canis-job-incremental | 2006-01-03 20:00:01 | B| I | 
3208 | 66868358| T |
| 52| bebif-job-incremental | 2006-01-03 20:02:29 | B| I | 
53   | 323311291   | T |
| 53| bebif-job-full| 2006-01-04 03:00:02 | B| F | 
90963| 11062107765 | T |
| 54| canis-job-incremental | 2006-01-04 20:00:01 | B| I | 
7831 | 808986982   | T |
| 55| bebif-job-incremental | 2006-01-04 20:12:58 | B| I | 
103  | 92676648| T |
| 56| phoenix-job-full  | 2006-01-05 03:00:02 | B| F | 
807  | 1277891

Re: [Bacula-users] incremental upgraded to full ..

2006-01-10 Thread Julien Cigar

Martin Simmons wrote:


On Mon, 09 Jan 2006 23:53:14 +0100, Julien Cigar <[EMAIL PROTECTED]> said:
   



 Julien> | 65| canis-job-full| 2006-01-09 03:00:02 | B| F | 
500389   | 86335144294 | T |
 Julien> | 66| canis-job-incremental | 2006-01-09 20:00:01 | B| F | 
501015   | 86544091759 | T |
 Julien> 
+---+---+-+--+---+--+-+---+

 Julien> As you can see, we are today 2006-01-09. A full backup on tape of client 
 Julien> canis started at 3:00:02 and finished successfully (job id 65) at 08:51.


 Julien> Why on 2006-01-09 at 20:00 PM the incremental backup is upgraded to a 
 Julien> full backup (job id 66) ?
 Julien> As you can see, job id 62 has also been upgraded to a full backup 
 Julien> without any reasons because job id 53 was a full backup three days ago 
 Julien> ... I'm a bit confused ...


 Julien> Any ideas ?

It looks like you have two different jobs defined, called canis-job-full and
canis-job-incremental.  If so, that is not the correct way to run incremental
backups.  Instead, you want one job called canis-job which is scheduled with
different levels and pools.  See the "Automated Disk Backup" example in the
manual.

__Martin
 


You're right, I have two differents jobs for each client :

Job {  
   Name = canis-job-full

   Type = Backup
   Level = Full
   Client = canis-fd
   FileSet = canis-fs
   Messages = Standard
   Storage = tape-st
   Pool = tape-pool-full
   MaximumConcurrentJobs = 1
   Schedule = canis-sched-full
   RescheduleOnError = yes
   RescheduleInterval = 5 hours
   RescheduleTimes = 0
   WriteBootstrap = /var/lib/bacula/canisfullbackup.bsr
}

Job {  
   Name = bebif-job-full

   Type = Backup
   Level = Full
   Client = bebif-fd
   FileSet = bebif-fs
   Messages = Standard
   Storage = tape-st
   Pool = tape-pool-full
   MaximumConcurrentJobs = 1
   Schedule = bebif-sched-full
   RescheduleOnError = yes
   RescheduleInterval = 10 hours
   RescheduleTimes = 0
   WriteBootstrap = /var/lib/bacula/bebiffullbackup.bsr
}

Job {
   Name = canis-job-incremental
   Type = Backup
   Level = Incremental
   Client = canis-fd
   FileSet = canis-fs
   Messages = Standard
   Storage = disk-st
   Pool = canis-pool-incremental
   MaximumConcurrentJobs = 1
   Schedule = default-sched-incremental
   RescheduleOnError = no
   MaxStartDelay = 5 hours
}

Job {
   Name = bebif-job-incremental
   Type = Backup
   Level = Incremental
   Client = bebif-fd
   FileSet = bebif-fs
   Messages = Standard
   Storage = disk-st
   Pool = bebif-pool-incremental
   MaximumConcurrentJobs = 1
   Schedule = default-sched-incremental
   RescheduleOnError = no
   MaxStartDelay = 5 hours
}

I didn't know it doesn't work like this, thanks


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] I/O Error on tape, maintainance of DLT1 drives

2006-01-14 Thread Julien Cigar
I had exactly the same problem some months ago, full thread can be found 
here: http://www.nabble.com/Still-problems-with-my-Sony-tapes-t504270.html


Alexander Bergolth wrote:


Hi!

Tonight, I got the following I/O error for the first time:
The Drive is a DLT1 tape:
  Vendor: BNCHMARK  Model: DLT1  Rev: 5538
  Type:   Sequential-Access  ANSI SCSI revision: 02

 snipp! 
14-Jan 01:55 samba-sd: Writing spooled data to Volume. Despooling 
536,904,185 bytes ...
14-Jan 01:57 samba-sd: Samba-Homes.2006-01-14_01.05.00 Error: 
block.c:538 Write error at 6:3819 on device "DLT1" (/dev/nst0). 
ERR=Input/output error.
14-Jan 01:57 samba-sd: Samba-Homes.2006-01-14_01.05.00 Error: Error 
writing final EOF to tape. This Volume may not be readable.
dev.c:1553 ioctl MTWEOF error on "DLT1" (/dev/nst0). ERR=Input/output 
error.
14-Jan 01:57 samba-sd: End of medium on Volume "Weekly-2005-06-12_8" 
Bytes=6,245,922,599 Blocks=96,818 at 14-Jan-2006 01:57.

14-Jan 01:57 samba-dir: Recycled volume "Weekly-2005-04-22_2"
14-Jan 01:57 samba-sd: Please mount Volume "Weekly-2005-04-22_2" on 
Storage Device "DLT1" (/dev/nst0) for Job Samba-Homes.2006-01-14_01.05.00

 snipp! 

This is the dmesg output:
 snipp! 
st0: Error with sense data: <6>st0: Current: sense key: Not Ready
Additional sense: Logical unit not ready, initializing cmd. required
st0: Error 400f4 (sugg. bt 0x0, driver bt 0x0, host bt 0x4).
st0: Error 400f4 (sugg. bt 0x0, driver bt 0x0, host bt 0x4).
[...]
 snipp! 

As I don't have very much experience with DLT tapes:
Does this indicate a worn out tape or should I simply clean the drive 
with the cleaning tape?


How many backups should be possible with a DLT tape / at which 
intervals should a tape be changed?


At which intervals should the drive be cleaned?

In this case, the current job is still running and waiting for another 
tape. Is there an option to let bacula abort the job, if such an error 
occurs?


Cheers,
--leo





---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] automatic mount

2006-02-08 Thread Julien Cigar

Hello list !

I'm using bacula 1.36.3 under debian linux (testing) with a 2.4 kernel.
My tape drive is a Sony SDX-500C (SCSI).

The backup machine runs for several months now without problem. At the 
moment when Bacula wants another tape I manually eject the tape, put 
another one in the tape drive and enter a mount request in bconsole.


At the end of the month I take my holidays, and the people who are 
supposed to change the tapes should have nothing more to do than eject 
the tape and insert a new one, without having to enter a mount request 
in bconsole.


After reading the manual, I added this in the device ressource in 
bacula-sd.conf file:

VolumePollInterval = 1 hour
CloseOnPoll = yes
OfflineOnUnmount = yes

but it doesn't work as expected... The tape is correctly ejected, but 
when I put another one and try a *mount in the console (for testing) I 
got the "3001 Device /dev/st0 is mounted; doing acquire." message... but 
nothing is done.
After several minutes, I get a message : "08-Feb 17:13 phoenix-sd: 
phoenix-job.2006-02-08_17.06.49 Warning: Couldn't rewind device /dev/st0 
ERR=dev.c:406 Rewind error on /dev/st0. ERR=Input/output error."


(I runned the btape test sucessfully.)

Any idea what I did wrong ?

Thanks (and sorry for my english)



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Following the tutorial: "show filesets" weird output?

2006-02-19 Thread Julien Cigar

I have also some problems with filesets (bacula 1.36.3), I have :

*show filesets
FileSet: name=canis-fs
 O 0M00
 N
 I /etc
 I /home/admin
 I /home/aheugheb
 I /home/andimuba
 I /home/fwautele
 I /home/gbottu
 I /home/jcigar
 I /home/jdelaet
 I /home/jduflost
 I /home/jnuytinc
 I /home/pmergen
 I /home/rherzog
 I /home/sys_cvs
 I /home/sys_ldap
 I /home/sys_postgresql/dumps
 I /home/sys_samba
 I /home/sys_svn
 I /home/sys_www
 I /home/vledent
 I /var/lib/trac
 N
 O ie
 WF *.mp3
 WF *.mpc
 WF *.ogg
 WF *.wav
 WF *.bak
 WF *.tmp
 WF *.pyc
 N
 E /home/sys_samba/shares/bebif/pictures
 E core
 N

however WF files (*.mp3, *.mpc, ...) are still included in the backup ...
and I don't see what I'm doing wrong ...

Boniforti Flavio wrote:


Hello everybody.

When I enter in the console program and type "show filesets" I get
following output:

FileSet: name=Full Set
 O M
 N
 I /tmp/buildd/bacula-1.36.3
 N
 E /proc
 E /tmp
 E /.journal
 E /.fsck
 N
FileSet: name=Catalog
 O M
 N
 I /var/lib/bacula/bacula.sql
 N

I noticed that this differs from the output showed in the "A Brief
Tutorial" tutorial, where it states like:

FileSet: name=Full Set
 Inc: /home/kern/bacula/bacula-1.30
 Exc: /proc
 Exc: /tmp
 Exc: /.journal
 Exc: /.fsck
FileSet: name=Catalog
 Inc: /home/kern/bacula/testbin/working/bacula.sql

What's wrong in my configuration?

 





---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Following the tutorial: "show filesets" weird output?

2006-02-21 Thread Julien Cigar

Martin Simmons wrote:


On Sun, 19 Feb 2006 15:45:46 +0100, Julien Cigar <[EMAIL PROTECTED]> said:
   


I have also some problems with filesets (bacula 1.36.3), I have :

*show filesets
FileSet: name=canis-fs
 O 0M00
 N
 I /etc
 I /home/admin
 I /home/aheugheb
 I /home/andimuba
 I /home/fwautele
 I /home/gbottu
 I /home/jcigar
 I /home/jdelaet
 I /home/jduflost
 I /home/jnuytinc
 I /home/pmergen
 I /home/rherzog
 I /home/sys_cvs
 I /home/sys_ldap
 I /home/sys_postgresql/dumps
 I /home/sys_samba
 I /home/sys_svn
 I /home/sys_www
 I /home/vledent
 I /var/lib/trac
 N
 O ie
 WF *.mp3
 WF *.mpc
 WF *.ogg
 WF *.wav
 WF *.bak
 WF *.tmp
 WF *.pyc
 N
 E /home/sys_samba/shares/bebif/pictures
 E core
 N

however WF files (*.mp3, *.mpc, ...) are still included in the backup ...
and I don't see what I'm doing wrong ...
   



Can I suggest that you post the FileSet resource from the config file?

__Martin
 



Thanks for answer.

Here is the FileSet resource :

FileSet {
   Name = canis-fs
  
   Include {

   Options {
   #compression = GZIP6
   IgnoreCase = no
   signature = MD5
   recurse = yes
   onefs = yes
   }
   @/etc/bacula/includes/global
   @/etc/bacula/includes/canis
   }
  
   Include {

   Options {
   IgnoreCase = yes
   Exclude = yes
   @/etc/bacula/excludes/global
   }
   }

   Exclude {
   File = /home/sys_samba/shares/bebif/pictures
   File = core
   }
}

phoenix:/home/jcigar# cat /etc/bacula/includes/global
File = /etc

phoenix:/home/jcigar# cat /etc/bacula/includes/canis
File = /home/admin
File = /home/aheugheb
File = /home/andimuba
File = /home/fwautele
File = /home/gbottu
File = /home/jcigar
File = /home/jdelaet
File = /home/jduflost
File = /home/jnuytinc
File = /home/pmergen
File = /home/rherzog
File = /home/sys_cvs
File = /home/sys_ldap
File = /home/sys_postgresql/dumps
File = /home/sys_samba
File = /home/sys_svn
File = /home/sys_www
File = /home/vledent
File = /var/lib/trac

phoenix:/home/jcigar# cat /etc/bacula/excludes/global
wildfile = "*.mp3"
wildfile = "*.mpc"
wildfile = "*.ogg"
wildfile = "*.wav"
wildfile = "*.bak"
wildfile = "*.tmp"
wildfile = "*.pyc"


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] End-of-Volume errors

2006-03-24 Thread Julien Cigar
I have also this problem from time to time ... however, the tapes are 
readable (I did the test).. strange :)


Ian Levesque wrote:

Hi Wolfgang,

On Mar 23, 2006, at 4:06 AM, Wolfgang Denk wrote:



can somebody share some hint what the follwing error  messages  mean,
what the actual problem is and how these problems can be avoided?

...
23-Mar 09:56 hydra3-sd: End of Volume "K-I-4" at 57:775 on device 
"SLR100-2" (/dev/nst0). Write of 64512 bytes got -1.
23-Mar 09:57 hydra3-sd: Pollux-Other.2006-03-22_23.08.11 Error: 
Re-read of last block failed. Last block=606137 Current block=860778.
23-Mar 09:57 hydra3-sd: End of medium on Volume "K-I-4" 
Bytes=57,046,341,076 Blocks=884,275 at 23-Mar-2006 09:57.

...




I emailed this error to the list about a month ago, but Kern wasn't 
sure it was a bacula issue. Search in the archives for "End of Volume 
error" and you'll see my thread. What's your hardware setup? I'm 
wondering if we can find a common variable at fault here...


Best,
Ian



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting 
language
that extends applications into web and mobile media. Attend the live 
webcast
and join the prime developer group breaking into this new coding 
territory!

http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



--
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
Work: [EMAIL PROTECTED]
Personal: [EMAIL PROTECTED]



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


Re: [Bacula-users] When is a tape "Full"?

2006-04-09 Thread Julien Cigar

Wolfgang Denk wrote:

Dear Eric,

in message <[EMAIL PROTECTED]> you wrote:
  

Yes, I received following messages:

04-Apr 00:48 epohost-sd: epo-xp.2006-04-03_23.14.09 Error: block.c:538 Write 
error at 7:1119 on device "DDS-4" (/dev/nst0). ERR=Input/output error.
04-Apr 00:48 epohost-sd: epo-xp.2006-04-03_23.14.09 Error: Error writing final 
EOF to tape. This Volume may not be readable.

dev.c:1536 ioctl MTWEOF error on "DDS-4" (/dev/nst0). ERR=Input/output error.
04-Apr 00:48 epohost-sd: End of medium on Volume "EPOdata03" Bytes=6,445,884,582 
Blocks=99,918 at 04-Apr-2006 00:48.
04-Apr 00:49 epohost-sd: Please mount Volume "EPOdata04" on Storage Device 
"DDS-4" (/dev/nst0) for Job epo-xp.2006-04-03_23.14.09



I see. This is the very same problem I've been trying to  track  down
for some time. See the threads stared by these postings:

Subject: [Bacula-users] Strange SCSI problems
From: Wolfgang Denk <[EMAIL PROTECTED]>
Date: Mon, 13 Mar 2006 13:00:57 +0100
and
Subject: [Bacula-users] tape writing error in bacula
From: david robert <[EMAIL PROTECTED]>
Date: Fri, 17 Mar 2006 09:30:52 + (GMT)

  
No, I didn't find any of these messages. However, at the time of the tape full 
message the attached messages showed up in the syslog. Unfortunately I am not 
able to digest them into any correctional activity. But at least I understand 
that some hardware error may be involved.



No, this is most likely NOT a hardware issue;  I  have  this  problem
reproducable on several systems with different tape drives; it popped
up  suddenly  with  a software update, but that's not the only factor
that seems to play a role - the same software runs  fine  on  a  slow
system  (old  P  II 400 MHz box) but fails reliably on a fast machine
(Athlon 3000+). I see it with  different  SCSI  controllers,  and  at
least  with  bacula 1.38.5 and 1.38.6; my latest speculation was that
it had something to do with certain (pre 2.6.12) kernel versions, but
you mentioned that you're running FC5, i. e. a later kernel, so  this
does not fit.

  


I have those problems from time to time on a 2.4 kernel too (bacula 1.36.3)


Try running a plain kernel.org (i. e. non-FC)  kernel  -  and  please
report if this changes anything for you.

Best regards,

Wolfgang Denk

  




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


Re: [Bacula-users] Bacula for backing up postgres

2009-01-03 Thread Julien Cigar
Note that for LVM snapshots you need to stop PostgreSQL before

On Sat, 2009-01-03 at 14:36 -0500, Eduardo J. Ortega U. wrote:
> Thanks to all for your suggestions, I'll take a look at LVM snapshots
> and PITR, which seem pretty good options.
> 
> 


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


[Bacula-users] minimum volume retention period

2009-04-02 Thread Julien Cigar
Hello,

In the Bacula manual I read that :

"However, one must keep in mind that if your Volume Retention period is
too short, it may prune the last valid Full backup, and hence until the
next Full backup is done, you will not have a complete backup of your
system, and in addition, the next Incremental or Differential backup
will be promoted to a Full backup. As a consequence, the minimum Volume
Retention period should be at twice the interval of your Full backups.
This means that if you do a Full backup once a month, the minimum Volume
retention period should be two months."

I don't understand why the minimum volume retention should be at least
twice the interval of the full backups .. ?

In my configuration I do a full backup every month with a volume
retension period of 45 days, and a daily incremental backup with a
volume retension period of 35 days. I don't need archives on a long
term, 1 month is enough, but I need to be able to restore a file which
has been modified 20 days ago for example (on a daily basis, that's why
I make an incremental backup every day).
If I follow the Bacula manual, the minimum volume retension should be at
least 2 months, but I don't understand why ? In my case, an incremental
backup will never be promoted to a full, right ? For example :

1 may 0:00 am : Full backup -> volume "Full-0001"
1 may 8:00 pm : Incremental backup -> volume "Incr-0001"
2 may 8:00 pm : Incremental backup -> volume "Incr-0002"
3 may 8:00 pm : Incremental backup -> volume "Incr-0003"
...
31 may 8:00 pm : Incremental backup -> volume "Incr-0031"

1 june 0:00 am : Full backup -> volume "Full-0002"
1 june 8:00 pm : Incremental backup -> volume "Incr-0032"
2 june 8:00 pm : Incremental backup -> volume "Incr-0033"
3 june 8:00 pm : Incremental backup -> volume "Incr-0034"
...
(around 15 june Incr-0001 should be recycled)

1 july 0:00 am : Full backup -> volume "Full-0001" (recycled)

etc

So in this configuration I will always have a valid Full backup every
month and an incremental backup for every day of this month, and I don't
see any situation where an incremental backup would be promoted to a
full or that my last valid full backup would be pruned.. ?, so why
should the minimum volume retention be at least twice the interval of
the full backups (60 days in this example) ?

Thanks for your answers,
Julien


-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles (ULB)
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
Mail: jci...@ulb.ac.be
@biobel: http://biobel.biodiversity.be/person/show/471
Tel : 02 650 57 52


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


Re: [Bacula-users] minimum volume retention period

2009-04-02 Thread Julien Cigar
Sorry to insist .. but no one on this ? is it an error in the Bacula
manual ?

thanks

On Thu, 2009-04-02 at 12:40 +0200, Julien Cigar wrote:
> Hello,
> 
> In the Bacula manual I read that :
> 
> "However, one must keep in mind that if your Volume Retention period is
> too short, it may prune the last valid Full backup, and hence until the
> next Full backup is done, you will not have a complete backup of your
> system, and in addition, the next Incremental or Differential backup
> will be promoted to a Full backup. As a consequence, the minimum Volume
> Retention period should be at twice the interval of your Full backups.
> This means that if you do a Full backup once a month, the minimum Volume
> retention period should be two months."
> 
> I don't understand why the minimum volume retention should be at least
> twice the interval of the full backups .. ?
> 
> In my configuration I do a full backup every month with a volume
> retension period of 45 days, and a daily incremental backup with a
> volume retension period of 35 days. I don't need archives on a long
> term, 1 month is enough, but I need to be able to restore a file which
> has been modified 20 days ago for example (on a daily basis, that's why
> I make an incremental backup every day).
> If I follow the Bacula manual, the minimum volume retension should be at
> least 2 months, but I don't understand why ? In my case, an incremental
> backup will never be promoted to a full, right ? For example :
> 
> 1 may 0:00 am : Full backup -> volume "Full-0001"
> 1 may 8:00 pm : Incremental backup -> volume "Incr-0001"
> 2 may 8:00 pm : Incremental backup -> volume "Incr-0002"
> 3 may 8:00 pm : Incremental backup -> volume "Incr-0003"
> ...
> 31 may 8:00 pm : Incremental backup -> volume "Incr-0031"
> 
> 1 june 0:00 am : Full backup -> volume "Full-0002"
> 1 june 8:00 pm : Incremental backup -> volume "Incr-0032"
> 2 june 8:00 pm : Incremental backup -> volume "Incr-0033"
> 3 june 8:00 pm : Incremental backup -> volume "Incr-0034"
> ...
> (around 15 june Incr-0001 should be recycled)
> 
> 1 july 0:00 am : Full backup -> volume "Full-0001" (recycled)
> 
> etc
> 
> So in this configuration I will always have a valid Full backup every
> month and an incremental backup for every day of this month, and I don't
> see any situation where an incremental backup would be promoted to a
> full or that my last valid full backup would be pruned.. ?, so why
> should the minimum volume retention be at least twice the interval of
> the full backups (60 days in this example) ?
> 
> Thanks for your answers,
> Julien
> 
> 
-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles (ULB)
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
Mail: jci...@ulb.ac.be
@biobel: http://biobel.biodiversity.be/person/show/471
Tel : 02 650 57 52


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


Re: [Bacula-users] minimum volume retention period

2009-04-03 Thread Julien Cigar
On Thu, 2009-04-02 at 20:52 -0400, mo...@frakir.org wrote:
> On Thu, Apr 02, 2009 at 09:25:55PM +0200, Julien Cigar wrote:
> 
> > > 1 may 0:00 am : Full backup -> volume "Full-0001"
> > > 1 may 8:00 pm : Incremental backup -> volume "Incr-0001"
> > > 2 may 8:00 pm : Incremental backup -> volume "Incr-0002"
> > > 3 may 8:00 pm : Incremental backup -> volume "Incr-0003"
> > > ...
> > > 31 may 8:00 pm : Incremental backup -> volume "Incr-0031"
> > > 
> > > 1 june 0:00 am : Full backup -> volume "Full-0002"
> > > 1 june 8:00 pm : Incremental backup -> volume "Incr-0032"
> > > 2 june 8:00 pm : Incremental backup -> volume "Incr-0033"
> > > 3 june 8:00 pm : Incremental backup -> volume "Incr-0034"
> > > ...
> > > (around 15 june Incr-0001 should be recycled)
> > > 
> > > 1 july 0:00 am : Full backup -> volume "Full-0001" (recycled)
> 
> An incremental can be promoted to a full in the middle of a cycle.
> This can happen because of a fileset change or a rerun of a failed
> level.  If such an event happens on June 15, the volume Full-0001 will
> be overwritten.  At this point, you can't do a restore of the FS from
> May 31, even though it's only been 15 days.
> 

right.

thanks !

> - Morty
-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles (ULB)
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
Mail: jci...@ulb.ac.be
@biobel: http://biobel.biodiversity.be/person/show/471
Tel : 02 650 57 52


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


Re: [Bacula-users] restoreing from a concurrent backup

2009-04-16 Thread Julien Cigar
Hello,

Do you have the same problem as this one :
http://www.nabble.com/file-count-mismatch-tt19508099.html ?

(It's an old post of mine, but I never received any feedback)

Julien

On Thu, 2009-04-16 at 09:03 +0100, Graham Keeling wrote:
> On Wed, Apr 15, 2009 at 09:34:30PM +0200, Andreas Schuldei wrote:
> > tonight i ran my very first concurrent backup and the backup time went
> > down nicely. yay.
> > 
> > when trying to restore something from the backup i got this:
> ...
> >   Files Expected: 1
> >   Files Restored: 0
> 
> Hello,
> 
> I found a very serious bacula bug a few months ago that has only been fixed
> properly recently (I believe that 2.4.0 would have been affected), to do with
> overlapping jobs both trying to use a single volume at the same time.
> 
> Did you have two jobs write to a single volume at the same time?
> 
> 
> --
> Stay on top of everything new and different, both inside and 
> around Java (TM) technology - register by April 22, and save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today. 
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles (ULB)
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
Mail: jci...@ulb.ac.be
@biobel: http://biobel.biodiversity.be/person/show/471
Tel : 02 650 57 52


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Two questions concerning Bacula (Off Course)

2009-09-07 Thread Julien Cigar
On Mon, 2009-09-07 at 08:49 -0400, Reynier Pérez Mira wrote:
> Hi every:

Hello,

> I have two questions about Bacula.
> 
> 1) Recently my boss tell me that he need  to backup a Oracle 10g R2 
> installed on RedHat 4.5 AS. How I can do this?

http://wiki.bacula.org/doku.php?id=application_specific_backups:oracle_rdbms

> 2) I have one Debian Lenny with OSSIM and I need to backup this too. My 
> Bacula server is running Bacula 3.0.1 and Bacula FD on Debian 
> repositories is 2.4.4-1. Can I backup this client too or I need to build 
> Bacula FD 3.0.x client?
> 

The recommended setup is always to have the same version for both client
and servers, but 2.4.x FD should be compatible with 3.0.x DIR

> Cheers and thanks in advance

Regards,
Julien

-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles (ULB)
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
Mail: jci...@ulb.ac.be
@biobel: http://biobel.biodiversity.be/person/show/471
Tel : 02 650 57 52

No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] postgres tuning?

2010-06-07 Thread Julien Cigar

Stephen Thompson wrote:


Hello everyone,

We recently attempted a mysql to postgresql migration for our bacula 
5.0.2 server.  The data migration itself was successful, however we are 
disappointly either getting the same or significantly worse performance 
out of the postgres db.


I was hoping that someone might have some insight into this.

Here is some background:

software:
   centos 5.5 (64bit)
   bacula 5.0.2 (64bit)
   postgresql 8.1.21 (64bit)


Why 8.1 ..? 8.1 is more than 5 years old ...


   (previously... mysql-5.0.77 (64bit) MyISAM)

database:
   select count(*) from File --> 1,439,626,558
   du -sk /var/lib/pgsql/data --> 346,236,136 /var/lib/pgsql/data

hardware:
   1Tb EXT3 external fibre-RAID storage
   8Gb RAM
   2Gb SWAP
   2 dual-core [AMD Opteron(tm) Processor 2220] CPUs


Some of the postgres tuning that I've attempted thus far (comments are 
either default or alternatively settings I've tried without effect):


#shared_buffers = 1000# min 16 or max_connections*2, 8KB each
shared_buffers = 262144 # 2Gb


This is too large, set shared_buffers to something like 256-512 MB


#work_mem = 1024# min 64, size in KB
work_mem = 524288   # 512Mb


Don't forget that work_mem is allocated *per-operation* (maybe several 
times per query). 512 MB seems too large for me



#maintenance_work_mem = 16384   # min 1024, size in KB
maintenance_work_mem = 2097152  # 2Gb
#checkpoint_segments = 3  # in logfile segments, min 1, 16MB each
checkpoint_segments = 16
#checkpoint_warning = 30# in seconds, 0 is off
checkpoint_warning = 16
#effective_cache_size = 1000# typically 8KB each
#effective_cache_size = 262144  # 256Mb
effective_cache_size = 6291456  # 6Gb


6GB seems OK to me


#random_page_cost = 4 # units are one sequential page fetch cost
random_page_cost = 2



only reduce random_page_cost if you have fast disks (SAS, ...)

Now, as to what I'm 'seeing'.  Building restore trees are on par with my 
previous mysql db, but what I'm seeing as significantly worse are:


mysql   postgresql
Within Bat:
1) Version Browser (large sample job)3min 9min  
2) Restore Tree (average sample job)40sec25sec
3) Restore Tree (large sample job)  10min   8.5min
2) Jobs Run (1000 Records)  10sec 2min

Within psql/mysql:
1) select count(*) from File;1sec30min

Catalog dump:
1) mysqldump/pgdump  2hrs 3hrs


I get a win on building Restore trees, but everywhere else, it's 
painfully slow.  It makes the bat utility virtually unusable as an 
interface.  Why the win (albeit moderate) in some cases but terrible 
responses in others?


I admit that I am not familiar with postgres at all, but I tried to walk 
through some of the postgres tuning documents, including the notes in 
the bacula manual to arrive at the above settings.  Also note that I've 
tried several variants on the configuration above (including the 
postgres defaults), don't have a detailed play by play of the results, 
but the time results above seemed typical regardless of what settings I 
tweaked.


Any help would be greatly appreciated!
Stephen



--
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.
<>--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users