Re: [Bacula-users] Client side functions

2011-11-07 Thread Jeremy Maes
Op 4/11/2011 22:50, Dan Langille schreef:
 On Nov 4, 2011, at 5:46 PM, Christian Manal wrote:

 Am 04.11.2011 17:14, schrieb Christopher Geegan:
 For example, it would be beneficial in some cases to be able to initiate
 a restore from the client.
 Hi,

 why don't you just install bconsole on your clients for that?

 +1

 Additionally, you can create URLs, which if fetched, will initiate a job.

 It's a simple matter of scripting on the web server.
Or install BAT on the clients, ...
Or install bweb with brestore and set up user specific access policies ...
And probably a few other solutions aswell :)

Regards,
Jeremy

  DISCLAIMER 
http://www.schaubroeck.be/maildisclaimer.htm

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Director and resource

2011-11-07 Thread Craig Van Tassle
I have a Bacula Director and the Spool for my tape library on an older
Dell SC1425 with 8GB of ram. When I'm doing my normal differentials and
incremental I dont have any issues, however when I'm doing my monthly
full backups I get the attached in my dmesg output. It appears to be for
some reason the server's running out of memory. Is there any way I can limit or 
remove those messages.
There is nothing else on the server, just a bacula-fd, bacula-dir and a SD that 
is running my tape library. 

Thanks.









[7236115.492070] Mem-Info:
[7236115.492074] 53*8kB 20*16kB 0*32kB 0*64kB 0*128kB 1*256kB 0*512kB 0*1024kB 
0*2048kB 0*4096kB = 20052kB
[7236115.492089] Node 0 Normal: 245*4kB Node 0 DMA per-cpu:
[7236115.492100] CPU0: hi:0, btch:   1 usd:   0
[7236115.492104] 117*8kB 11*16kB 2*32kB 1*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 
0*2048kB 0*4096kB = 2348kB
[7236115.492120] 1872004 total pagecache pages
[7236115.492124] 1 pages in swap cache
[7236115.492128] Swap cache stats: add 2, delete 1, find 0/0
[7236115.492133] Free swap  = 8388596kB
[7236115.492137] Total swap = 8388600kB
[7236115.492142] CPU1: hi:0, btch:   1 usd:   0
[7236115.492144] Node 0 DMA32 per-cpu:
[7236115.492148] CPU0: hi:  186, btch:  31 usd: 169
[7236115.492151] CPU1: hi:  186, btch:  31 usd:  30
[7236115.492153] Node 0 Normal per-cpu:
[7236115.492157] CPU0: hi:  186, btch:  31 usd: 184
[7236115.492160] CPU1: hi:  186, btch:  31 usd:  56
[7236115.492167] active_anon:23156 inactive_anon:5717 isolated_anon:0
[7236115.492168]  active_file:933349 inactive_file:938441 isolated_file:101
[7236115.492170]  unevictable:0 dirty:231564 writeback:10936 unstable:0
[7236115.492171]  free:9561 slab_reclaimable:119179 slab_unreclaimable:7956
[7236115.492172]  mapped:1160 shmem:112 pagetables:643 bounce:0
[7236115.492175] Node 0 DMA free:15876kB min:20kB low:24kB high:28kB 
active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB 
unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15344kB 
mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:0kB 
slab_unreclaimable:16kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB 
writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes
[7236115.492189] lowmem_reserve[]: 0 3511 8056 8056
[7236115.492194] Node 0 DMA32 free:20052kB min:5000kB low:6248kB high:7500kB 
active_anon:21556kB inactive_anon:7000kB active_file:1544636kB 
inactive_file:1549956kB unevictable:0kB isolated(anon):0kB isolated(file):0kB 
present:3596256kB mlocked:0kB dirty:339504kB writeback:12216kB mapped:1172kB 
shmem:0kB slab_reclaimable:304660kB slab_unreclaimable:12216kB 
kernel_stack:112kB pagetables:56kB unstable:0kB bounce:0kB writeback_tmp:0kB 
pages_scanned:0 all_unreclaimable? no
[7236115.492209] lowmem_reserve[]: 0 0 4545 4545
[7236115.492214] Node 0 Normal free:2316kB min:6472kB low:8088kB high:9708kB 
active_anon:71068kB inactive_anon:15868kB active_file:2188760kB 
inactive_file:2203808kB unevictable:0kB isolated(anon):0kB isolated(file):404kB 
present:4654080kB mlocked:0kB dirty:586752kB writeback:31528kB mapped:3468kB 
shmem:448kB slab_reclaimable:172056kB slab_unreclaimable:19592kB 
kernel_stack:1088kB pagetables:2516kB unstable:0kB bounce:0kB writeback_tmp:0kB 
pages_scanned:0 all_unreclaimable? no
[7236115.492228] lowmem_reserve[]: 0 0 0 0
[7236115.492233] Node 0 DMA: 3*4kB 3*8kB 4*16kB 3*32kB 3*64kB 3*128kB 1*256kB 
1*512kB 2*1024kB 2*2048kB 2*4096kB = 15876kB
[7236115.492247] Node 0 DMA32: 4763*4kB 53*8kB 20*16kB 0*32kB 0*64kB 0*128kB 
1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 20052kB
[7236115.492260] Node 0 Normal: 245*4kB 117*8kB 11*16kB 2*32kB 1*64kB 1*128kB 
0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 2348kB
[7236115.492274] 1872004 total pagecache pages
[7236115.492277] 1 pages in swap cache
[7236115.492279] Swap cache stats: add 2, delete 1, find 0/0
[7236115.492282] Free swap  = 8388596kB
[7236115.492284] Total swap = 8388600kB
[7236115.495114] 2097152 pages RAM
[7236115.495114] 47595 pages reserved
[7236115.495114] 1203861 pages shared
[7236115.495114] 838144 pages non-shared
[7236115.544886] 2097152 pages RAM
[7236115.544886] 47595 pages reserved
[7236115.544886] 1203861 pages shared
[7236115.544886] 838144 pages non-shared

-- 
Craig Van Tassle
HUBzero.org
System Administrator
YONG 1006
Desk Phone : (765)496-6413

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] VSS reporting files corrupted or unreadable

2011-11-07 Thread Avery Ceo
We have been running Bacula on Windows with VSS disabled, but would like
to turn it on for disaster recovery purposes.  In our tests on a fully
patched version of Windows Server 2003, we are running into a problem
where files that can be backed up without VSS are being reported as
corrupted or unreadable when VSS is enabled.  I posted a sample log to
http://pastebin.com/NRYgmRQy

This does appear to be a Windows VSS problem rather than an issue with
the Bacula client, as the system logs report an ntfs error when it
occurs.  A chkdsk did not help.

Has anybody seen this issue before?  Any suggestions on how to resolve
it?

Client OS: Microsoft Windows Server 2003, Standard Edition (32 bit)
Bacula version: 5.0.3

-- 
Regards,

Avery Ceo
Systems Administrator
Enterprise Hosting


--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] VSS reporting files corrupted or unreadable

2011-11-07 Thread Konstantin Khomoutov
On Mon, 07 Nov 2011 11:40:18 -0500
Avery Ceo a...@enterprisehostinginc.com wrote:

 We have been running Bacula on Windows with VSS disabled, but would
 like to turn it on for disaster recovery purposes.  In our tests on a
 fully patched version of Windows Server 2003, we are running into a
 problem where files that can be backed up without VSS are being
 reported as corrupted or unreadable when VSS is enabled.  I posted
 a sample log to http://pastebin.com/NRYgmRQy
 
 This does appear to be a Windows VSS problem rather than an issue with
 the Bacula client, as the system logs report an ntfs error when it
 occurs.  A chkdsk did not help.
 
 Has anybody seen this issue before?  Any suggestions on how to resolve
 it?
 
 Client OS: Microsoft Windows Server 2003, Standard Edition (32 bit)
 Bacula version: 5.0.3
Do you run any sort of antivirus software on the server?
I have identical setup for a bunch of servers and did not ever seen
anything like what you described.

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] VSS reporting files corrupted or unreadable

2011-11-07 Thread Avery Ceo
On Mon, 2011-11-07 at 21:59 +0400, Konstantin Khomoutov wrote:
 On Mon, 07 Nov 2011 11:40:18 -0500
 Avery Ceo a...@enterprisehostinginc.com wrote:
 
  We have been running Bacula on Windows with VSS disabled, but would
  like to turn it on for disaster recovery purposes.  In our tests on a
  fully patched version of Windows Server 2003, we are running into a
  problem where files that can be backed up without VSS are being
  reported as corrupted or unreadable when VSS is enabled.  I posted
  a sample log to http://pastebin.com/NRYgmRQy
  
  This does appear to be a Windows VSS problem rather than an issue with
  the Bacula client, as the system logs report an ntfs error when it
  occurs.  A chkdsk did not help.
  
  Has anybody seen this issue before?  Any suggestions on how to resolve
  it?
  
  Client OS: Microsoft Windows Server 2003, Standard Edition (32 bit)
  Bacula version: 5.0.3
 Do you run any sort of antivirus software on the server?
 I have identical setup for a bunch of servers and did not ever seen
 anything like what you described.

This server is not running antivirus.  vssadmin also showed no shadow
copies other than Bacula's when I ran the test that generated that
sample log.

It does seem to be an unusual issue.  Searching online, I was only able
to find references to anything similar on pre-SP1 machines.

-- 
Regards,

Avery Ceo
Systems Administrator
Enterprise Hosting


--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] VSS reporting files corrupted or unreadable

2011-11-07 Thread Joseph L. Casale
Has anybody seen this issue before?  Any suggestions on how to resolve
it?

So, when you enable a writer in VSS, if for example you only manually snapshot
one drive while components under the control of that writer exist on another, 
VSS
will exclude the writer.

I see you're trying to backup db's for sql? I dont have a lot of experience 
with bacula's
VSS implementation but you might need to set inclusions on all drives that have 
*ANY*
sql data on them, even its an empty file.

HTH,
jlc
--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] VSS reporting files corrupted or unreadable

2011-11-07 Thread Avery Ceo
On Mon, 2011-11-07 at 18:52 +, Joseph L. Casale wrote:
 Has anybody seen this issue before?  Any suggestions on how to resolve
 it?
 
 So, when you enable a writer in VSS, if for example you only manually snapshot
 one drive while components under the control of that writer exist on another, 
 VSS
 will exclude the writer.
 
 I see you're trying to backup db's for sql? I dont have a lot of experience 
 with bacula's
 VSS implementation but you might need to set inclusions on all drives that 
 have *ANY*
 sql data on them, even its an empty file.
 
 HTH,
 jlc

Yes, MySQL is running on this server.  To the best of my knowledge, no
VSS writer exists for MySQL.   The current table state may not have been
flushed to disk, but attempts to back up the files should not cause
errors.  Also, the first error file is actually a RAR archive and not
one of the tables, so I think there is something else going on here.

In my initial tests I was snapshotting and backing up all drives, and
seeing the same errors.  The errors are only on the second (data) drive,
and I thought it might be related to the time lag from when the snapshot
was taken to when those files were hit.  The log I linked to was
generated from the test I ran on just the problem drive to decrease the
time between snapshot and read.  The errors started with the same file
on both tests.

-- 
Regards,

Avery Ceo
Systems Administrator
Enterprise Hosting


--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] VSS reporting files corrupted or unreadable

2011-11-07 Thread James Harper
 
 We have been running Bacula on Windows with VSS disabled, but would
like
 to turn it on for disaster recovery purposes.  In our tests on a fully
patched
 version of Windows Server 2003, we are running into a problem where
files
 that can be backed up without VSS are being reported as corrupted or
 unreadable when VSS is enabled.  I posted a sample log to
 http://pastebin.com/NRYgmRQy
 
 This does appear to be a Windows VSS problem rather than an issue with
the
 Bacula client, as the system logs report an ntfs error when it occurs.
A chkdsk
 did not help.
 

Are there any other messages in the event logs about the vss snapshot
process?

What you describe would indicate that the problem is Windows rather than
Bacula. Can you try the following suggestions, in no particular order:

While the backup is running, does the command 'vssadmin list writers'
show any writers with errors? The way Bacula uses VSS is fairly
simplistic and doesn't involve the writers, but it does give a 'crash
consistent' copy of the drive. A writer in an error status would be an
indication of a problem though.

Is the MySQL very heavily used? VSS likes to try and find a period of
'idle time' to do its work. Whatever happens, the outcome should never
be a corrupt snapshot but maybe you've discovered a bug. Is it possible
to make MySQL idle (or stop it altogether but ideally you'd test with
the files still in use) and see if the problem persists?

Do a chkdsk /f on the drive where the database is. Probably best to do
it on reboot rather than force a dismount of the drive. Obviously the
volume is working well enough but there could be some latent corruption
or something that only comes out in the snapshot.

Create a snapshot manually. This guy blogs about how to do it
http://blogs.msdn.com/b/adioltean/archive/2005/01/20/357836.aspx and map
it to a drive letter. The vshadow tool that he talks about is part of
the VSS SDK... newer versions are available but I assume this version
http://www.microsoft.com/download/en/details.aspx?displaylang=enid=2349
0 might do the trick on 2003. Once you've created the snapshot, see if
you can access the files just by copying them to somewhere else. At
least then you'll know if you have a general VSS problem or if it is
specific to Bacula.

Good luck!

James

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] RE : HELP : MySQL database lost - how best to restore data

2011-11-07 Thread Win Htin
 Message: 12
 Date: Sun, 06 Nov 2011 14:04:08 -0500
 From: Phil Stracchino ala...@metrocast.net
 Subject: Re: [Bacula-users] HELP : MySQL database lost - how best to
        restore data
 To: bacula-users@lists.sourceforge.net
 Message-ID: 4eb6da28.8010...@metrocast.net
 Content-Type: text/plain; charset=ISO-8859-1

 On 11/06/11 13:55, Win Htin wrote:
 Hi folks,

 If the bacula database is completely blown away but I still have the
 bootstrap file (*.bsr) what is the best method to re-install the
 bacula database? I think bscan is the way to go but am a bit
 confused with the explanations in the howto guide. The bare database
 has been re-created and I can get to the bconsole but of course
 commands like update or list will come back empty.

 Win,
 What were you doing for MySQL catalog backup?

I believe the catalog was backed up on a daily basis but both
partitions where the actual databases reside and the db dumps are kept
got blown away. Don't ask me how since I do not know the details
either.

 To make matters worse, the MySQL database is running on a none default
 port. Since bscan doesn't have an option to set the port number

 It doesn't...?

 Network backup, recovery and verification                BSCAN(8)

 NAME
      bscan - Bacula's 'Scan tape'

 ...
     -t port
          Specify database port (default: 0)

Perhaps version 5.0.2 is missing that option or I overlooked in my haste.

Thanks everyone. Need to get back to the bscan now.

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] VSS reporting files corrupted or unreadable

2011-11-07 Thread Joseph L. Casale
Yes, MySQL is running on this server.  To the best of my knowledge, no
VSS writer exists for MySQL.

MySQL? How the heck is windows VSS supposed to quiesce MySQL?

Methinks you are sol with that approach, you'd probably have better luck
using a run before script and a mysql supported method...
--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users