[Bacula-users] Using smarctl to retrieve error counts

2007-03-04 Thread Stephen Kitt
Hi,

There was a discussion recently about retrieving tape error counts at the end
of a job; I actually do this already, using smartctl:

  Alert Command = sh -c 'smartctl -H -l error %c'

This retrieves any TapeAlert info and error counts from the tape drive:

smartctl version 5.36 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

TapeAlert: OK

Error counter log:
   Errors Corrected by   Total   Correction Gigabytes
Total
   ECC  rereads/errors   algorithm  processed
uncorrected
   fast | delayed   rewrites  corrected  invocations   [10^9 bytes]  
errors
read:  00 0 0  0  0.000 
  0
write: 00 0 0147  0.000 
  0

(Line wrapping might mess this up...)

Regards,

Stephen

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


Re: [Bacula-users] How to schedule Full backup 1st sun of Jan, apr, jul, oct?

2007-03-04 Thread Ralf Gross
Mike Hanby schrieb:
 
 I'm curious how I would set up a schedule to do:
 Full backups on the 1rst Sunday of Jan, Apr, Jul, Oct (i.e. quarterly)
 Differentials on all sundays in between
 incremental on mon-sat

I use this for my schedule.

Schedule {
  Name = Archiv
  Run = Level=Full Pool=Archiv 1st sat jan,may,sep at 6:00
}

Looking at the 'show jobs' output, this schedule seems to do what I want.

...
hour=6 
mday=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
28 29 30 
month=0 4 8 
wday=6 
wom=0 
woy=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 
mins=0
...

Ralf

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


Re: [Bacula-users] Using smarctl to retrieve error counts

2007-03-04 Thread Kern Sibbald
Hello,

Nice tip. smartctl has much better info than tapeinfo, so I have added it
to the default bacula-sd.conf file.

On Sunday 04 March 2007 09:20, Stephen Kitt wrote:
 Hi,

 There was a discussion recently about retrieving tape error counts at the
 end of a job; I actually do this already, using smartctl:

   Alert Command = sh -c 'smartctl -H -l error %c'

 This retrieves any TapeAlert info and error counts from the tape drive:

 smartctl version 5.36 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
 Home page is http://smartmontools.sourceforge.net/

 TapeAlert: OK

 Error counter log:
Errors Corrected by   Total   Correction Gigabytes  
  Total ECC  rereads/errors   algorithm  processed   
 uncorrected fast | delayed   rewrites  corrected  invocations   [10^9
 bytes]  errors read:  00 0 0  0
  0.000   0 write: 00 0 0   
 147  0.000   0

 (Line wrapping might mess this up...)

 Regards,

 Stephen

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

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


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

2007-03-04 Thread Arno Lehmann
Hello,

On 3/3/2007 12:24 PM, Christoph Litauer wrote:
 Hi,
 
 a few of my autochanger tapes have VolStatus: Error. This is because the
 number of files in the catalogue didn't match the number of files on the
 tape. I don't know why this happend, is it a known bug of version 1.38.9?

Not a known bug, I think.

Usually these errors happen in two situations:

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

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

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

 Nevertheless: I need to reuse these errored tapes. Are they
 automatically reused after alle jobs are purged? Is an errored tape
 still used in recovers? How can I list all jobs on an errored tape?

Most important things first: You can use the query command to list all 
jobs on any volume.

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

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

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

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

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

Arno


 Thanks a lot in advance!
 

-- 
IT-Service Lehmann[EMAIL PROTECTED]
Arno Lehmann  http://www.its-lehmann.de

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


Re: [Bacula-users] Bacula Variable for Client Address not Client Name

2007-03-04 Thread Arno Lehmann
Hi,

On 3/3/2007 10:46 AM, Holden Hao wrote:
 Hi all.
 
 I am using Phil Stracchino's checkhost script in my RunBeforeJob
 directive as follows:
 
 RunBeforeJOb =/path/to/script/checkhost %c
 
 %c is Bacula's variable for the client name but my client name is
 different from my client's host address as you can see from my example
 below:
 
 
 Client {
   Name = ws1-fd
   Address = ws1
   FDPort = 9102
   Catalog = MyCatalog
   Password = secret
   File Retention = 30 days
   Job Retention = 6 months
   AutoPrune = yes
 Maximum Concurrent Jobs = 4
 }
 
 %c translates into ws1-fd and not ws1 which is the clients hostname.
 
 Is there a variable in Bacula that I could use that will translate
 into the client's host address instead of just its name?  I can
 correct my problem by using aliases in my hosts file or my DNS server
 but I still would want to know if such a variable exists.  I looked in
 the manual and it seems not to be there.

There is no variable representing the address, as far as I know.

But, it your client names are always `hostname`-fd you might add a 
simple substitution to the script (which I did not even look at now :-)

Simply remove the trailing -fd or do nothing if there is no trailing 
-fd in bash:

  export NAME=elf-fdtest-fd
  echo ${NAME/%-fd/}
elf-fdtest

Something like this works here for me.

Arno

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

-- 
IT-Service Lehmann[EMAIL PROTECTED]
Arno Lehmann  http://www.its-lehmann.de

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


Re: [Bacula-users] backup tapes at home

2007-03-04 Thread Bill Moran
Alan Brown [EMAIL PROTECTED] wrote:

 On Fri, 2 Mar 2007, Bill Moran wrote:
 
  A fire safe might fit the bill here.
 
  I've always wondered about this.
 
  If I put _plastic_ tapes in a fire safe, how long does the safe actually
  insulate the tapes from the heat that will damage them.
 
 Not long.
 
 A standards-compliant data safe on the other hand will provide 
 protection agains at least 2 hours at 1500C and 24 hour coooling down 
 period. Most also provide protection against large drops (floor failure in 
 multistory buildings) and longer burn periods.
 
 Several data safes are simply firesafes fitted with inserts aimed at 
 keeping internal temperatures below 60C.
 
  Does anyone have any direct experience with how well a fire safe protects
  something like backup tapes?  If it's well insulated, it will protect them
  for a while, but long enough for the fire to be extinguished?
 
 Only once, and only a small safe on a customer site, but yes.
 
 Our current main fire/data safe is a Phoenx Data commander 4623, which is 
 capable of taking 720 LTO tapes in current configuration (39 per drawer, 
 cased, increasing to 45 uncased)
 
 See http://www.phoenixsafeusa.com/
 or http://www.phoenixsafeusa.com/us/viewproduct/4620_data_commander.html
 
 This cost a shade under US $10,000 with tax and delivery included.

Interesting, but I suspect that's a little out of the price range for
someone wanting to protect their data at home.  I know I wouldn't
even know where to put such a thing at my house.

It'd be cheaper to just rent a safe-deposit box.

-- 
Bill Moran
http://www.potentialtech.com

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


Re: [Bacula-users] Bacula upgrade from 1.38.9 - 2.0.2

2007-03-04 Thread Zakai Kinan
I have rebuilt from source twice and sure enough
certain things are not upgraded such as bcopy.  

Regards,

ZK


--- John Drescher [EMAIL PROTECTED] wrote:

 On 3/1/07, Zakai Kinan [EMAIL PROTECTED]
 wrote:
  Indeed, I had the old bacula-dir running.  I am
 not
  sure how that is possible because I did a make
 clean
  and a make distclean before doing a configure
 under
  the new source.  John was correct as well.
 
 I suspected this as a few times when I have built
 bacula from source
 (using a gentoo ebuild) if the build of the director
 failed the whole
 process continued and at the end it looked like
 everything was good
 but later I found out I was still using the old
 director. Since I
 write ebuilds I should actually check into that as
 it should not be
 that difficult to fix.. Only problem is that I do
 not have the time.
 
 John
 

-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get
 the chance to share your
 opinions on IT  business topics through brief
 surveys-and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/bacula-users
 



 

Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

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


Re: [Bacula-users] backup tapes at home

2007-03-04 Thread Steve Ellis
Bill Moran wrote:
 Alan Brown [EMAIL PROTECTED] wrote:

 Our current main fire/data safe is a Phoenx Data commander 4623, which is 
 capable of taking 720 LTO tapes in current configuration (39 per drawer, 
 cased, increasing to 45 uncased)

 See http://www.phoenixsafeusa.com/
 or http://www.phoenixsafeusa.com/us/viewproduct/4620_data_commander.html

 This cost a shade under US $10,000 with tax and delivery included.
 
 Interesting, but I suspect that's a little out of the price range for
 someone wanting to protect their data at home.  I know I wouldn't
 even know where to put such a thing at my house.
 
 It'd be cheaper to just rent a safe-deposit box.
 

It may not help very many people, but for anyone who already has a fire 
safe at home (not data grade), there are media cooler units (schwab 
makes the one that I found) that you can put inside, I recently 
discovered.  I've been using my fireproof gun  safe to store my backup 
media, hoping that by putting the media on the bottom, it might survive 
the internal temperatures of the safe in a fire.  However, with a media 
storage unit inside my safe (~$300, capacity for ~10 LTO carts) I could 
also store media safely.  Apparently, these can also fit into fireproof 
file cabinets that aren't data grade--something you might be able to 
pick up used.

-se

-se


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


Re: [Bacula-users] FD Not Sending OK Status to Dir

2007-03-04 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tim Schaab wrote:
 Howdy,
 
 What could be preventing a FD from sending the OK status to the Director
 after a backup?

I don't know how important this is, but I often almost forget to change
the Messages resource at the bottom of the -fd config file.

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

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

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


Re: [Bacula-users] FD Not Sending OK Status to Dir

2007-03-04 Thread Kern Sibbald
On Monday 05 March 2007 07:47, Ryan Novosielski wrote:
 Tim Schaab wrote:
  Howdy,
 
  What could be preventing a FD from sending the OK status to the Director
  after a backup?

 I don't know how important this is, but I often almost forget to change
 the Messages resource at the bottom of the -fd config file.

Modifying the messages resource is critical if you want to see error 
messages.  When the FD encounters a serious error, it typically sends the 
error message to where you have specified (or to the default) in the messages 
destination(s) then hangs up on the Director.

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


Re: [Bacula-users] Bacula upgrade from 1.38.9 - 2.0.2

2007-03-04 Thread Kern Sibbald
On Monday 05 March 2007 06:41, Zakai Kinan wrote:
 I have rebuilt from source twice and sure enough
 certain things are not upgraded such as bcopy.

I cannot say for sure if you are installing from a package, but 
bcopy *is* installed every time you do a make install.  

However, if you changed your ./configure from your previous install (possibly 
you didn't remember it or look at the old config.out file) then your files 
will install in a different location and you will experience the kinds 
problems you are seeing.

If you change any of the paths on the ./configure from one release to another, 
you should backup the files you want (conf files), then do a make uninstall 
with the old Bacula source before configuring, building, and installing the 
new source.  That will prevent having multiple copies of the same program in 
different locations and believing that the upgrade did not work.


 Regards,

 ZK

 --- John Drescher [EMAIL PROTECTED] wrote:
  On 3/1/07, Zakai Kinan [EMAIL PROTECTED]
 
  wrote:
   Indeed, I had the old bacula-dir running.  I am
 
  not
 
   sure how that is possible because I did a make
 
  clean
 
   and a make distclean before doing a configure
 
  under
 
   the new source.  John was correct as well.
 
  I suspected this as a few times when I have built
  bacula from source
  (using a gentoo ebuild) if the build of the director
  failed the whole
  process continued and at the end it looked like
  everything was good
  but later I found out I was still using the old
  director. Since I
  write ebuilds I should actually check into that as
  it should not be
  that difficult to fix.. Only problem is that I do
  not have the time.
 
  John

 -

  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get
  the chance to share your
  opinions on IT  business topics through brief
  surveys-and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

  ___
  Bacula-users mailing list
  Bacula-users@lists.sourceforge.net

 https://lists.sourceforge.net/lists/listinfo/bacula-users





 ___
_ Don't get soaked.  Take a quick peak at the forecast
 with the Yahoo! Search weather shortcut.
 http://tools.search.yahoo.com/shortcuts/#loc_weather

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

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