[Bacula-users] query for file sizes in a job

2014-12-04 Thread Silver Salonen
Hi.

Based on the PHP script in the ancient e-mail thread
https://sourceforge.net/p/bacula/mailman/message/28210999/ I tweaked
it a bit for using with MySQL (the original was for SQLite).

See it attached.

--
Silver
attachment: fileSizes.php
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] update slots reports Autochanger has 0 slots

2014-12-04 Thread Rainer Hackel
Hello Bacula users,
Have some problems with a Quantum SuperLoader 3 LTO-6, and try to break them 
down in small pieces... here is one:

update slots command in bconsole says:
Automatically selected Catalog: MyCatalog
Using Catalog MyCatalog
Automatically selected Storage: Autochanger
Connecting to Storage daemon Autochanger at 192.168.1.15:9103 ...
3306 Issuing autochanger slots command.
Device Autochanger has 0 slots.
No slots in changer to scan.

But:
/usr/libexec/bacula/mtx-changer /dev/changer slots reports 16

Of course the Autochanger has 16 slots.
Someone has  an idea?

Best regards
Rainer
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] update slots reports Autochanger has 0 slots

2014-12-04 Thread John Drescher
 But:

 “/usr/libexec/bacula/mtx-changer /dev/changer slots” reports 16



 Of course the Autochanger has 16 slots.

 Someone has  an idea?


Does user bacula have the permission to run mtx-changer, mtx and
access the device node for the autochanger?

John

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Prevent jobs to run or limit bandwidth in certain hours/days?

2014-12-04 Thread Rai Blue
Hi everyone,
I'm using Bacula 7.0 to backup a pack of servers. My schedules are all
starts in evening time. My problem is: some days jobs take longer so some
of them arent finished by morning and workhours bandwidth is a problem for
me.

I searched max bandwidth but it doesnt fit because i don't want to limit
bandwidth in evenings, just in workhours, but i cant seperate it in job
definition.

Then I came across Max Start Delay and Max Run Sched Time and they
don't fit either because i want to let the jobs run for example in weekends.

Is there a way to define a jobs behaviour according to its time? Or what
would you suggest doing in such situation?


*Thanks,*

*Begum Tuncer*
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] update slots reports Autochanger has 0 slots

2014-12-04 Thread Rainer Hackel
Hi John,
here the properties of the mentioned things:

[root@s3 sbin]# ll mtx
-rwxr-xr-x. 1 root root 49944 Aug 17  2010 mtx

[root@s3 bacula]# ll mtx-changer
-rwxr-xr-x. 1 root root 6681 Nov 21  2012 mtx-changer

[root@s3 dev]# ll changer
lrwxrwxrwx. 1 root root 3 Dec  2 09:38 changer - sg1

[root@s3 dev]# ll sg1
crwxrwxrwx. 1 root tape 21, 1 Dec  2 09:38 sg1

I think everyone has rights for execute and read. I was also looking for an 
access-rights problem, but have not found one. Any idea?

thanks in advance
Rainer
-Ursprüngliche Nachricht-
Von: John Drescher [mailto:dresche...@gmail.com] 
Gesendet: Donnerstag, 4. Dezember 2014 15:17
An: Rainer Hackel
Cc: bacula-users@lists.sourceforge.net
Betreff: Re: [Bacula-users] update slots reports Autochanger has 0 slots

 But:

 “/usr/libexec/bacula/mtx-changer /dev/changer slots” reports 16



 Of course the Autochanger has 16 slots.

 Someone has  an idea?


Does user bacula have the permission to run mtx-changer, mtx and access the 
device node for the autochanger?

John
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] update slots reports Autochanger has 0 slots

2014-12-04 Thread Can Şirin

 Hi,

Check this posts:

http://www.freebsddiary.org/tape-library.php
http://www.freebsddiary.org/tape-library-integration.php

Same issue were discussed before.
(http://sourceforge.net/p/bacula/mailman/bacula-users/thread/20130306100525.gd22...@nionex.net/)

Quoting Rainer Hackel rainer.hac...@degnerpartner.com:


Hello Bacula users,

   Have some problems with a Quantum SuperLoader 3 LTO-6, and try to
break them down in small pieces… here is one:

    

   “update slots“ command in bconsole says:

   Automatically selected Catalog: MyCatalog

   Using Catalog MyCatalog

   Automatically selected Storage: Autochanger

   Connecting to Storage daemon Autochanger at 192.168.1.15:9103 ...

   3306 Issuing autochanger slots command.

   Device Autochanger has 0 slots.

   No slots in changer to scan.

    

   But:

   “/usr/libexec/bacula/mtx-changer /dev/changer slots” reports 16

    

   Of course the Autochanger has 16 slots.

   Someone has  an idea?

    

   Best regards

   Rainer
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Handle files that have st_ctime changed often in bacula

2014-12-04 Thread Sieu Truc
Hello,

I have a problem when bacula tried to backup a folder that contains some
files changed often.

For example: i backup the folder /var/samba

And for some reason, some big files in this folder are accessed by other
programs and therefore their attribute chang (st_atime) is changed. As a
consequence of that, bacula backups that file in the following incremental
backup.


The final result is that those such files eat up all of my disk space.

In my opinion, i have 2 ways to solve that problem but i dont know if
they're feasible.
1) Do a full backup, but incremental backup don't include those files .  Is
it possible to create a fileset for a full backup and another fileset for
the incrementals.for that case ?

2) In the fileset, those files will be treated in a different way like the
configuation below:

FileSet {
Name = fs_samba_system

File = /var/samba
Include {
Options {
signature = SHA1
onefs = no
Wildfile = *badFile.pdf
  Exclude = yes
}
}
Include {
File = /var/samba
Options {
WildFile = *badFile.pdf
Signature = SHA1
mtimeonly=yes
}
Options {
Exclude = yes
RegexFile = .*
}
}

} Is it right for what i described above ?

and is there another better solution ?

Thanks in advance,

Truc
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] query for file sizes in a job

2014-12-04 Thread Silver Salonen
Some more tweaks to the script.

BTW, I think it would be a useful feature for Bacula-Web too, but it
should have also some searching and pagination possibilities (should be
relatively easy to add to this script too actually).

--
Silver

On 12/04/2014 12:42 PM, Silver Salonen wrote:
 Hi.

 Based on the PHP script in the ancient e-mail thread
 https://sourceforge.net/p/bacula/mailman/message/28210999/ I tweaked
 it a bit for using with MySQL (the original was for SQLite).

 See it attached.

 --
 Silver
attachment: fileSizes_mysql.php
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Prevent jobs to run or limit bandwidth in certain hours/days?

2014-12-04 Thread John Lockard
Are you starting all your jobs at the same time?  Wondering if your having
issues with all of your jobs competing for bandwidth and slowing down.
Thinking a staggered start might help you.

On Thu, Dec 4, 2014 at 9:27 AM, Rai Blue raib...@gmail.com wrote:

 Hi everyone,
 I'm using Bacula 7.0 to backup a pack of servers. My schedules are all
 starts in evening time. My problem is: some days jobs take longer so some
 of them arent finished by morning and workhours bandwidth is a problem for
 me.

 I searched max bandwidth but it doesnt fit because i don't want to limit
 bandwidth in evenings, just in workhours, but i cant seperate it in job
 definition.

 Then I came across Max Start Delay and Max Run Sched Time and they
 don't fit either because i want to let the jobs run for example in weekends.

 Is there a way to define a jobs behaviour according to its time? Or what
 would you suggest doing in such situation?


 *Thanks,*

 *Begum Tuncer*


 --
 Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
 from Actuate! Instantly Supercharge Your Business Reports and Dashboards
 with Interactivity, Sharing, Native Excel Exports, App Integration  more
 Get technology previously reserved for billion-dollar corporations, FREE

 http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users




-- 
---
 John M. Lockard |  U of Michigan - School of Information
  Unix Sys Admin |  105 South State St. | 4325 North Quad
  jlock...@umich.edu |Ann Arbor, MI  48109-1285
 www.umich.edu/~jlockard http://www.umich.edu/%7Ejlockard |
734-936-7255 | 734-764-2475 FAX
---
- The University of Michigan will never ask you for your password -
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Prevent jobs to run or limit bandwidth in certain hours/days?

2014-12-04 Thread Rai Blue
John, yes, most of the jobs start at the same time. But they join the queue
because of max concurrent jobs setting. So they are not running at the same
time. My bandwidth issue is not related to this, i think i explained it
wrong. My bacula storage is in my office so in workhours it shouldn't
consume my bandwidth.

On Thu, Dec 4, 2014 at 6:07 PM, John Lockard jlock...@umich.edu wrote:

 Are you starting all your jobs at the same time?  Wondering if your having
 issues with all of your jobs competing for bandwidth and slowing down.
 Thinking a staggered start might help you.

 On Thu, Dec 4, 2014 at 9:27 AM, Rai Blue raib...@gmail.com wrote:

 Hi everyone,
 I'm using Bacula 7.0 to backup a pack of servers. My schedules are all
 starts in evening time. My problem is: some days jobs take longer so some
 of them arent finished by morning and workhours bandwidth is a problem for
 me.

 I searched max bandwidth but it doesnt fit because i don't want to
 limit bandwidth in evenings, just in workhours, but i cant seperate it in
 job definition.

 Then I came across Max Start Delay and Max Run Sched Time and they
 don't fit either because i want to let the jobs run for example in weekends.

 Is there a way to define a jobs behaviour according to its time? Or what
 would you suggest doing in such situation?


 *Thanks,*

 *Begum Tuncer*


 --
 Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
 from Actuate! Instantly Supercharge Your Business Reports and Dashboards
 with Interactivity, Sharing, Native Excel Exports, App Integration  more
 Get technology previously reserved for billion-dollar corporations, FREE

 http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users




 --
 ---
  John M. Lockard |  U of Michigan - School of Information
   Unix Sys Admin |  105 South State St. | 4325 North Quad
   jlock...@umich.edu |Ann Arbor, MI  48109-1285
  www.umich.edu/~jlockard http://www.umich.edu/%7Ejlockard |
 734-936-7255 | 734-764-2475 FAX
 ---
 - The University of Michigan will never ask you for your password -


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Dell powerVault 124T tape library

2014-12-04 Thread Ian Lord
Hi,

We are looking for a solution to backup freebsd machine with large ZFS pools 
(8TB)

We thought of purchasing a tape library with LTO6 drives which will gives us 
40TB of Retention

Everyone seems to indicate bacula as a good solution but when I look at the 
documentation, it seems 10 years outdated:
http://blog.bacula.org/general/supported-autochangers/

I can't complain because it's open source and I really respect the concept and 
know how documentation is hard to maintain, but I would like to know if I can 
be safe to purchase a 7000$ library, a new server running freebsd and that it 
will work. This is not the kind of things I have sitting in my lab :)

Is anyone running such a setup and can assure me it can be done without too 
much customization and troubles. If I know it can be done for a normal 
poweruser (I'm not a programmer that can modify source code to fix things). 
I'll invest time in learning and reading documentation, but it will be a lot 
more reassuring to know people done it before

Thanks



~~
Ian Lord
MSD Informatique
143 Rue des Fauvettes
St-Colomban (Québec) J5K 0E2
Tél: (514) 776-6734 #201
Sans Frais: 1(877) 776-6734 #201
http://www.msdi.ca/

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Dell powerVault 124T tape library

2014-12-04 Thread Dmitri Maziuk
On 12/4/2014 9:33 AM, Ian Lord wrote:
 Hi,

 We are looking for a solution to backup freebsd machine with large ZFS
 pools (8TB)

 ... if I can be safe to purchase a 7000$ library, a new server
 running freebsd and that it will work. This is not the kind of things I
 have sitting in my lab J

Dunno about prices in .ca but south of your border $5K will buy you a 
36+2-bay chassis where you could keep a whole lot of zfs snapshots. 
Probably 72+2 even. What's your planned retention period?

Dima


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Dell powerVault 124T tape library

2014-12-04 Thread Dan Langille

 On Dec 4, 2014, at 10:33 AM, Ian Lord lo...@msdi.ca mailto:lo...@msdi.ca 
 wrote:
 
 Hi,
  
 We are looking for a solution to backup freebsd machine with large ZFS pools 
 (8TB)

So far, I like what you’re doing.

 We thought of purchasing a tape library with LTO6 drives which will gives us 
 40TB of Retention
  
 Everyone seems to indicate bacula as a good solution but when I look at the 
 documentation, it seems 10 years outdated:
 http://blog.bacula.org/general/supported-autochangers/ 
 http://blog.bacula.org/general/supported-autochangers/
That’s a blog entry.  By its nature, it is dated.

  I can’t complain because it’s open source and I really respect the concept 
 and know how documentation is hard to maintain, but I would like to know if I 
 can be safe to purchase a 7000$ library, a new server running freebsd and 
 that it will work. This is not the kind of things I have sitting in my lab J
 

I am sure others are using LTO-6.  You’ll see them pipe in here soon.

  
 Is anyone running such a setup and can assure me it can be done without too 
 much customization and troubles. If I know it can be done for a normal 
 poweruser (I’m not a programmer that can modify source code to fix things). 
 I’ll invest time in learning and reading documentation, but it will be a lot 
 more reassuring to know people done it before

Bacula talks to the SCSCI interface, not to the tape library itself.  If it 
talks SCSI to FreeBSD, it should just work.

Shameless plug: come to BSDCan 2015 and we can talk more about this. ;)

— 
Dan Langille
http://langille http://langille/.org/





--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Dell powerVault 124T tape library

2014-12-04 Thread Ian Lord
Dunno about prices in .ca but south of your border $5K will buy you a 
36+2-bay chassis where you could keep a whole lot of zfs snapshots. 
Probably 72+2 even. What's your planned retention period?

Dima

~~
I know I am going against the trend as everyone is talking about using HD as a 
backup device, but we are looking as something my life will depend on. If we 
were to loose data, we would end up with a multi-million dollars law suit and 
we'll just go bankrupt.

As we are a SAAS solution, everything is already redundant, we can drop a plane 
in one of our datacenter and customer won't even notice (technically speaking) 
as everything is load balanced and replicated live across the sites.

We have very high security with loadbalancers, IDS, DDOS protection, etc.

But let say a hacker would manage to get in and play around, or even an angry 
employee, or...
A simple rm -r / and all of our protection is gone. Our 2 distant copies and 
the zfs snapshots also...

It's kinda hard for a hacker to format all the tapes in a library furthermore, 
some tapes will be put in a safe...

I love the idea of using HD, so simple, cheap and fast, but if you need 
absolute peace of mind, I think a tape backup is much more reliable in this 
sense in my opinion.

That's why I'm trying to see if bacula could be a good solution in our scenario.

Thanks


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] spool disk filesystem, checksums

2014-12-04 Thread Kern Sibbald
On 12/03/2014 08:49 PM, Daniel Pocock wrote:

 Does Bacula checksum content on the spool disk before sending it to tape?

 To be more explicit, if there is a single bit error on the spool disk,
 will it be noticed before going onto tape or would it only be noticed in
 future when a file is taken off the tape?

Unless you are running ZFS for the spool disk, the error will only be
noticed when the data is read from the tape.

Best regards,
Kern



 --
 Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
 from Actuate! Instantly Supercharge Your Business Reports and Dashboards
 with Interactivity, Sharing, Native Excel Exports, App Integration  more
 Get technology previously reserved for billion-dollar corporations, FREE
 http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users



--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Dell powerVault 124T tape library

2014-12-04 Thread Dan Langille

 On Dec 4, 2014, at 12:18 PM, Ian Lord lo...@msdi.ca wrote:
 
 Dunno about prices in .ca but south of your border $5K will buy you a 
 36+2-bay chassis where you could keep a whole lot of zfs snapshots. 
 Probably 72+2 even. What's your planned retention period?
 
 Dima
 
 ~~
 I know I am going against the trend as everyone is talking about using HD as 
 a backup device, but we are looking as something my life will depend on. If 
 we were to loose data, we would end up with a multi-million dollars law suit 
 and we'll just go bankrupt.
 
 As we are a SAAS solution, everything is already redundant, we can drop a 
 plane in one of our datacenter and customer won't even notice (technically 
 speaking) as everything is load balanced and replicated live across the sites.
 
 We have very high security with loadbalancers, IDS, DDOS protection, etc.
 
 But let say a hacker would manage to get in and play around, or even an angry 
 employee, or...
 A simple rm -r / and all of our protection is gone. Our 2 distant copies 
 and the zfs snapshots also...
 
 It's kinda hard for a hacker to format all the tapes in a library 
 furthermore, some tapes will be put in a safe...
 
 I love the idea of using HD, so simple, cheap and fast, but if you need 
 absolute peace of mind, I think a tape backup is much more reliable in this 
 sense in my opinion.
 
 That's why I'm trying to see if bacula could be a good solution in our 
 scenario.
 
 Thanks

I use both ZFS and tape for backups.  I back to disk, then copy to tape.

The disk backups are there and used first.  I only go to tape if there is a 
problem with the disk.

You’d want to do tape verifies each night I would suspect.

— 
Dan Langille
http://langille.org/






--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Dell powerVault 124T tape library

2014-12-04 Thread Dimitri Maziuk
On 12/04/2014 11:18 AM, Ian Lord wrote:

 I know I am going against the trend as everyone is talking about
 using HD as a backup device...

No, if tape's your requirement then tape is your requirement. I was just
asking if it really is.

 But let say a hacker would manage to get in and play around, or even
an angry employee, or...
 A simple rm -r / and all of our protection is gone. Our 2 distant
copies and the zfs snapshots also...

Well, if that's the case you might want to hire someone to look at your
computer security, but in general

 It's kinda hard for a hacker to format all the tapes in a library
furthermore, some tapes will be put in a safe...

indeed. It is also kinda hard for the disaster recovery team to restore
everything from the tapes locked up in a safe and between the financial
damage you take from that and from the original hit you might go out of
business anyway...

But if you have a legal requirement to archive data for X years then
tape it is.

-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu



signature.asc
Description: OpenPGP digital signature
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Dell powerVault 124T tape library

2014-12-04 Thread Bryn Hughes

On 2014-12-04 07:33 AM, Ian Lord wrote:


Hi,

We are looking for a solution to backup freebsd machine with large ZFS 
pools (8TB)


We thought of purchasing a tape library with LTO6 drives which will 
gives us 40TB of Retention


Everyone seems to indicate bacula as a good solution but when I look 
at the documentation, it seems 10 years outdated:


http://blog.bacula.org/general/supported-autochangers/

I can’t complain because it’s open source and I really respect the 
concept and know how documentation is hard to maintain, but I would 
like to know if I can be safe to purchase a 7000$ library, a new 
server running freebsd and that it will work. This is not the kind of 
things I have sitting in my lab J


Is anyone running such a setup and can assure me it can be done 
without too much customization and troubles. If I know it can be done 
for a normal poweruser (I’m not a programmer that can modify source 
code to fix things). I’ll invest time in learning and reading 
documentation, but it will be a lot more reassuring to know people 
done it before


Thanks


Bacula just talks to the command-line programs for your OS that deal 
with the library.  On Linux they are the mt-st programs.  There's an 
autochanger script which just calls the OS commands to query the library 
and make it 'do stuff' so really what you are looking for is whether the 
library is supported on FreeBSD - as long as you can script change 
tapes what tapes are in what slots etc you will be good to go.  The 
default scripts work with most changers, though I had to make a couple 
of tweaks for my IBM for instance.


Bryn
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Dell powerVault 124T tape library

2014-12-04 Thread Simone Caronni
On Dec 4, 2014 5:58 PM, Dan Langille d...@langille.org wrote:

 Bacula talks to the SCSCI interface, not to the tape library itself.  If
it talks SCSI to FreeBSD, it should just work.

Same in Linux. Also iSCSI libraries work.
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] update slots reports Autochanger has 0 slots

2014-12-04 Thread Süleyman Kuran


Merhaba Can, 

Maybe the Device directive in bacula-sd.conf, where the drives are defined, is 
missing AutoChanger = yes line. 

Regards, 


- Orijinal Mesaj -

Kimden: Can Şirin sirin...@itu.edu.tr 
Kime: bacula-users@lists.sourceforge.net 
Gönderilenler: 4 Aralık Perşembe 2014 17:01:37 
Konu: Re: [Bacula-users] update slots reports Autochanger has 0 slots 



Hi, 

Check this posts: 

http://www.freebsddiary.org/tape-library.php 
http://www.freebsddiary.org/tape-library-integration.php 

Same issue were discussed before. 
(http://sourceforge.net/p/bacula/mailman/bacula-users/thread/20130306100525.gd22...@nionex.net/)
 

Quoting Rainer Hackel  rainer.hac...@degnerpartner.com : 




Hello Bacula users, 

Have some problems with a Quantum SuperLoader 3 LTO-6, and try to break them 
down in small pieces… here is one: 



“update slots“ command in bconsole says: 

Automatically selected Catalog: MyCatalog 

Using Catalog MyCatalog 

Automatically selected Storage: Autochanger 

Connecting to Storage daemon Autochanger at 192.168.1.15:9103 ... 

3306 Issuing autochanger slots command. 

Device Autochanger has 0 slots. 

No slots in changer to scan. 



But: 

“/usr/libexec/bacula/mtx-changer /dev/changer slots” reports 16 



Of course the Autochanger has 16 slots. 

Someone has an idea? 



Best regards 

Rainer 







-- 
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server 
from Actuate! Instantly Supercharge Your Business Reports and Dashboards 
with Interactivity, Sharing, Native Excel Exports, App Integration  more 
Get technology previously reserved for billion-dollar corporations, FREE 
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk 
___ 
Bacula-users mailing list 
Bacula-users@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/bacula-users 

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] spool disk filesystem, checksums

2014-12-04 Thread Daniel Pocock


On 04/12/14 18:35, Kern Sibbald wrote:
 On 12/03/2014 08:49 PM, Daniel Pocock wrote:

 Does Bacula checksum content on the spool disk before sending it to tape?

 To be more explicit, if there is a single bit error on the spool disk,
 will it be noticed before going onto tape or would it only be noticed in
 future when a file is taken off the tape?
 
 Unless you are running ZFS for the spool disk, the error will only be
 noticed when the data is read from the tape.
 

In that case, it sounds like a good idea to use ZFS or Btrfs with
checksums enabled

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Prevent jobs to run or limit bandwidth in certain hours/days

2014-12-04 Thread Danixu86
A good idea is to have a dedicated network only for servers. For example, i've 
two networks in my work: one for users and other only for servers, then i can 
run a full backup between servers using about 500Mbits of bandwidth, and users 
don't notice anything.

All full backups are in the same day?, because another option is distribute 
full backups along week days (or month days), and the rest of backups 
Differentials and Incrementals.

(sorry for my english)

Greetings!!

---
---

John, yes, most of the jobs start at the same time. But they join the queue 
because of max concurrent jobs setting. So they are not running at the same 
time. My bandwidth issue is not related to this, i think i explained it wrong. 
My bacula storage is in my office so in workhours it shouldn't consume my 
bandwidth.

On Thu, Dec 4, 2014 at 6:07 PM, John Lockard jlockard  at  umich.edu 
(jlockard  at  umich.edu) wrote:
Are you starting all your jobs at the same time?  Wondering if your having 
issues with all of your jobs competing for bandwidth and slowing down.  
Thinking a staggered start might help you.


On Thu, Dec 4, 2014 at 9:27 AM, Rai Blue raiblue  at  gmail.com (raiblue  
at  gmail.com) wrote:


Hi everyone,

I'm using Bacula 7.0 to backup a pack of servers. My schedules are all starts 
in evening time. My problem is: some days jobs take longer so some of them 
arent finished by morning and workhours bandwidth is a problem for me.

I searched max bandwidth but it doesnt fit because i don't want to limit 
bandwidth in evenings, just in workhours, but i cant seperate it in job 
definition.

Then I came across Max Start Delay and Max Run Sched Time and they don't 
fit either because i want to let the jobs run for example in weekends.

Is there a way to define a jobs behaviour according to its time? Or what would 
you suggest doing in such situation?


Thanks,

Begum Tuncer

+--
|This was sent by danielmadri...@gmail.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Help pruning expired records using bconsole prune command

2014-12-04 Thread Romeo Theriault
Hi all,

(running bacula 7.0.5)

We currently, backup to disk and use 'Autoprune = True' in our Pool and
Client resources to remove expired records from the catalog. This works
great, but as our clients are growing I'm wanting to move away from having
the pruning done during the backup period.

My plan is to use 'prune expired' console command as a RunScript in the
catalog backup job. Something like this [1]:

Job {
   Name = CatalogBackup
...
RunScript {
Console = prune expired volume yes
RunsWhen = Before
}
}

My question though, is, since we rotate through our disk volumes, like so:

Pool {
Name = aim01
Storage = aim01
Pool Type = Backup
Recycle = True
Recycle Oldest Volume = True
AutoPrune = True
Volume Retention = 29 days
Maximum Volumes = 30
Volume Use Duration = 23h
Label Format = ${Client}-${JobId}-vol
}

will we ever have any volumes that are expired, and need to be pruned? In
my case should I change those Console commands to:

'prune expired files yes'
'prune expired jobs yes'

?

Thank you for any clarification.

[1]: Taken from the Bacula community disk backup whitepaper:
http://blog.bacula.org/whitepapers/CommunityDiskBackup.pdf
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] update slots reports Autochanger has 0 slots

2014-12-04 Thread Rainer Hackel
Hi Süleyman,
this is the current definition:

Autochanger {
  Name = Autochanger
  Device = LTO-5
  Changer Command = /usr/libexec/bacula/mtx-changer %c %o %S %a %d
  Changer Device = /dev/changer
}

Device {
  Name = LTO-5
  Drive Index = 0
  Media Type = LTO-5
  Archive Device = /dev/nst0
  AutomaticMount = yes;
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
  Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'
  Spool Directory = /data/bacula-spool
  Maximum File Size = 12GB
  Maximum Spool Size = 3200G
#  Maximum Block Size = 200
}

Do you have an other idea?
Rainer

Von: Süleyman Kuran [mailto:sku...@ayk.gov.tr]
Gesendet: Donnerstag, 4. Dezember 2014 19:23
An: Can Şirin
Cc: bacula-users@lists.sourceforge.net
Betreff: Re: [Bacula-users] update slots reports Autochanger has 0 slots



Merhaba Can,

Maybe the Device directive in bacula-sd.conf, where the drives are defined, is 
missing AutoChanger = yes line.

Regards,



Kimden: Can Şirin sirin...@itu.edu.trmailto:sirin...@itu.edu.tr
Kime: 
bacula-users@lists.sourceforge.netmailto:bacula-users@lists.sourceforge.net
Gönderilenler: 4 Aralık Perşembe 2014 17:01:37
Konu: Re: [Bacula-users] update slots reports Autochanger has 0 slots


Hi,

Check this posts:

http://www.freebsddiary.org/tape-library.php
http://www.freebsddiary.org/tape-library-integration.php

Same issue were discussed before. 
(http://sourceforge.net/p/bacula/mailman/bacula-users/thread/20130306100525.gd22...@nionex.net/)

Quoting Rainer Hackel 
rainer.hac...@degnerpartner.commailto:rainer.hac...@degnerpartner.com:
Hello Bacula users,
Have some problems with a Quantum SuperLoader 3 LTO-6, and try to break them 
down in small pieces… here is one:

“update slots“ command in bconsole says:
Automatically selected Catalog: MyCatalog
Using Catalog MyCatalog
Automatically selected Storage: Autochanger
Connecting to Storage daemon Autochanger at 192.168.1.15:9103 ...
3306 Issuing autochanger slots command.
Device Autochanger has 0 slots.
No slots in changer to scan.

But:
“/usr/libexec/bacula/mtx-changer /dev/changer slots” reports 16

Of course the Autochanger has 16 slots.
Someone has  an idea?

Best regards
Rainer



--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.netmailto:Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] update slots reports Autochanger has 0 slots

2014-12-04 Thread Ana Emília M . Arruda
Hello Rainer,

Can you try changing Device Name? You have Name and Media Type using the
same LTO-5. Bacula doesn´t work fine when you use the same name for
different things. If you could, I recommend you setting name with Drive-0
or something like this:

Autochanger {
  Name = Autochanger
  Device = Drive-0

Device {
  Name = Drive-0
  Drive Index = 0
  Media Type = LTO-5
...
}

Best regards,
Ana

On Thu, Dec 4, 2014 at 6:16 PM, Rainer Hackel 
rainer.hac...@degnerpartner.com wrote:

  Hi Süleyman,

 this is the current definition:



 Autochanger {

   Name = Autochanger

   Device = LTO-5

   Changer Command = /usr/libexec/bacula/mtx-changer %c %o %S %a %d

   Changer Device = /dev/changer

 }



 Device {

   Name = LTO-5

   Drive Index = 0

   Media Type = LTO-5

   Archive Device = /dev/nst0

   AutomaticMount = yes;

   AlwaysOpen = yes;

   RemovableMedia = yes;

   RandomAccess = no;

   AutoChanger = yes

   Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'

   Spool Directory = /data/bacula-spool

   Maximum File Size = 12GB

   Maximum Spool Size = 3200G

 #  Maximum Block Size = 200

 }



 Do you have an other idea?

 Rainer



 *Von:* Süleyman Kuran [mailto:sku...@ayk.gov.tr]
 *Gesendet:* Donnerstag, 4. Dezember 2014 19:23
 *An:* Can Şirin
 *Cc:* bacula-users@lists.sourceforge.net
 *Betreff:* Re: [Bacula-users] update slots reports Autochanger has 0 slots







 Merhaba Can,



 Maybe the Device directive in bacula-sd.conf, where the drives are
 defined, is missing AutoChanger = yes line.



 Regards,




  --

 *Kimden: *Can Şirin sirin...@itu.edu.tr
 *Kime: *bacula-users@lists.sourceforge.net
 *Gönderilenler: *4 Aralık Perşembe 2014 17:01:37
 *Konu: *Re: [Bacula-users] update slots reports Autochanger has 0 slots



 Hi,

 Check this posts:

 http://www.freebsddiary.org/tape-library.php
 http://www.freebsddiary.org/tape-library-integration.php

 Same issue were discussed before. (
 http://sourceforge.net/p/bacula/mailman/bacula-users/thread/20130306100525.gd22...@nionex.net/
 )

 Quoting Rainer Hackel rainer.hac...@degnerpartner.com:

  Hello Bacula users,

 Have some problems with a Quantum SuperLoader 3 LTO-6, and try to break
 them down in small pieces… here is one:



 “update slots“ command in bconsole says:

 Automatically selected Catalog: MyCatalog

 Using Catalog MyCatalog

 Automatically selected Storage: Autochanger

 Connecting to Storage daemon Autochanger at 192.168.1.15:9103 ...

 3306 Issuing autochanger slots command.

 Device Autochanger has 0 slots.

 No slots in changer to scan.



 But:

 “/usr/libexec/bacula/mtx-changer /dev/changer slots” reports 16



 Of course the Autochanger has 16 slots.

 Someone has  an idea?



 Best regards

 Rainer





 --
 Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
 from Actuate! Instantly Supercharge Your Business Reports and Dashboards
 with Interactivity, Sharing, Native Excel Exports, App Integration  more
 Get technology previously reserved for billion-dollar corporations, FREE

 http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users




 --
 Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
 from Actuate! Instantly Supercharge Your Business Reports and Dashboards
 with Interactivity, Sharing, Native Excel Exports, App Integration  more
 Get technology previously reserved for billion-dollar corporations, FREE

 http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] update slots reports Autochanger has 0 slots

2014-12-04 Thread Rainer Hackel
All Problems seem to come from SELINUX (CentOS 6.6)

The following modification in file /etc/sysconfig/selinux looks like a solution 
for the problems.
changed SELINUX=enforcing
to SELINUX=permissive

There must have come any changes in SELINUX during the last yum update. 
Unfortunately I dont understand the SELINUX thing, so I can't refine the 
problem, but somehow it prevented the Bacula-Director to connect to the 
database as well as getting the slot information of the autochanger.

THX @ Ana, Süleyman, Can and John
Rainer

Von: Ana Emília M. Arruda [mailto:emiliaarr...@gmail.com]
Gesendet: Donnerstag, 4. Dezember 2014 22:36
An: Rainer Hackel
Cc: Süleyman Kuran; Can Şirin; bacula-users@lists.sourceforge.net
Betreff: Re: [Bacula-users] update slots reports Autochanger has 0 slots

Hello Rainer,

Can you try changing Device Name? You have Name and Media Type using the same 
LTO-5. Bacula doesn´t work fine when you use the same name for different 
things. If you could, I recommend you setting name with Drive-0 or something 
like this:

Autochanger {
  Name = Autochanger
  Device = Drive-0

Device {
  Name = Drive-0
  Drive Index = 0
  Media Type = LTO-5
...
}

Best regards,
Ana

On Thu, Dec 4, 2014 at 6:16 PM, Rainer Hackel 
rainer.hac...@degnerpartner.commailto:rainer.hac...@degnerpartner.com wrote:
Hi Süleyman,
this is the current definition:

Autochanger {
  Name = Autochanger
  Device = LTO-5
  Changer Command = /usr/libexec/bacula/mtx-changer %c %o %S %a %d
  Changer Device = /dev/changer
}

Device {
  Name = LTO-5
  Drive Index = 0
  Media Type = LTO-5
  Archive Device = /dev/nst0
  AutomaticMount = yes;
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
  Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'
  Spool Directory = /data/bacula-spool
  Maximum File Size = 12GB
  Maximum Spool Size = 3200G
#  Maximum Block Size = 200
}

Do you have an other idea?
Rainer

Von: Süleyman Kuran [mailto:sku...@ayk.gov.trmailto:sku...@ayk.gov.tr]
Gesendet: Donnerstag, 4. Dezember 2014 19:23
An: Can Şirin
Cc: 
bacula-users@lists.sourceforge.netmailto:bacula-users@lists.sourceforge.net
Betreff: Re: [Bacula-users] update slots reports Autochanger has 0 slots



Merhaba Can,

Maybe the Device directive in bacula-sd.conf, where the drives are defined, is 
missing AutoChanger = yes line.

Regards,



Kimden: Can Şirin sirin...@itu.edu.trmailto:sirin...@itu.edu.tr
Kime: 
bacula-users@lists.sourceforge.netmailto:bacula-users@lists.sourceforge.net
Gönderilenler: 4 Aralık Perşembe 2014 17:01:37
Konu: Re: [Bacula-users] update slots reports Autochanger has 0 slots


Hi,

Check this posts:

http://www.freebsddiary.org/tape-library.php
http://www.freebsddiary.org/tape-library-integration.php

Same issue were discussed before. 
(http://sourceforge.net/p/bacula/mailman/bacula-users/thread/20130306100525.gd22...@nionex.net/)

Quoting Rainer Hackel 
rainer.hac...@degnerpartner.commailto:rainer.hac...@degnerpartner.com:
Hello Bacula users,
Have some problems with a Quantum SuperLoader 3 LTO-6, and try to break them 
down in small pieces… here is one:

“update slots“ command in bconsole says:
Automatically selected Catalog: MyCatalog
Using Catalog MyCatalog
Automatically selected Storage: Autochanger
Connecting to Storage daemon Autochanger at 
192.168.1.15:9103http://192.168.1.15:9103 ...
3306 Issuing autochanger slots command.
Device Autochanger has 0 slots.
No slots in changer to scan.

But:
“/usr/libexec/bacula/mtx-changer /dev/changer slots” reports 16

Of course the Autochanger has 16 slots.
Someone has  an idea?

Best regards
Rainer



--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.netmailto:Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.netmailto:Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problems with Quantum SuperLoader 3 LTO-6

2014-12-04 Thread Rainer Hackel
All Problems seem to come from SELINUX (CentOS 6.6)

The following modification in file /etc/sysconfig/selinux looks like a solution 
for the problems.
changed SELINUX=enforcing
to SELINUX=permissive

There must have come any changes in SELINUX during the last yum update. 
Unfortunately I dont understand the SELINUX thing, so I can't refine the 
problem, but somehow it prevented the Bacula-Director to connect to the 
database as well as getting the slot information of the autochanger.

THX @ Ana, Heitor and Ben

Rainer

Von: Ana Emília M. Arruda [mailto:emiliaarr...@gmail.com]
Gesendet: Mittwoch, 3. Dezember 2014 13:12
An: Rainer Hackel
Cc: bacula-users@lists.sourceforge.net
Betreff: Re: [Bacula-users] Problems with Quantum SuperLoader 3 LTO-6

Hello Rainer,

Could you tell us which version are you using? Have you upgraded?

Could you post the results of the /usr/libexec/bacula/mtx-changer /dev/sg1 
listall command?

Best regards,
Ana

On Wed, Dec 3, 2014 at 7:45 AM, Rainer Hackel 
rainer.hac...@degnerpartner.commailto:rainer.hac...@degnerpartner.com wrote:
Hello Bacula users,
we run bacula backup for a while now. We had to replace our Tandberg 
Tape-Library (StorageLoader LTO-5) by a Quantum device (Superloader LTO-6) and 
have some problems now. Maybe someone can help.

First problem:
Starting Bacula this way doesn’t work anymore:
cd /etc/init.d
./bacula-dir start

Starting this way works fine:
cd /etc/init.d
bacula-dir /etc/bacula/bacula-dir.conf

I could live with that, but I wonder why this happened…


Next problem:
bconsole
update slots
Result:
…
3306 Issuing autochanger slots command.
Device Autochanger has 0 slots.
No slots in changer to scan.

But:
/usr/libexec/bacula/mtx-changer /dev/sg1 list 0 /dev/nst0 0
Or
/usr/libexec/bacula/mtx-changer /dev/sg1 slots
Or
/usr/libexec/bacula/mtx-changer /dev/sg1 load 3 /dev/nst0 0
All works fine, shows amount of slots and also the labels of stored tapes.


Entry in bacula-sd.conf:
Autochanger {
  Name = Autochanger
  Device = LTO-5
  Changer Command = /usr/libexec/bacula/mtx-changer %c %o %S %a %d
  Changer Device = /dev/changer
}


Rights on /dev:
lrwxrwxrwx. 1 root root 3 Dec  2 09:38 changer - sg1
crwxrwxrwx. 1 root tape 21, 1 Dec  2 09:38 sg1

It would be great if someone could help.
Rainer

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.netmailto:Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problems with Quantum SuperLoader 3 LTO-6

2014-12-04 Thread mark . bergman
In the message dated: Wed, 03 Dec 2014 10:45:51 +,
The pithy ruminations from Rainer Hackel on 
[Bacula-users] Problems with Quantum SuperLoader 3 LTO-6 were:
= Hello Bacula users, we run bacula backup for a while now. We had to
= replace our Tandberg Tape-Library (StorageLoader LTO-5) by a Quantum
= device (Superloader LTO-6) and have some problems now. Maybe someone can
= help.
= 
= First problem: Starting Bacula this way doesn't work anymore:
=  cd /etc/init.d
=  ./bacula-dir start

What's the error message? Does the init script (/etc/init.d/bacula-dir) run,
but fail to find the proper configuration file? Does the init script point to
a different config file (/opt/bacula/etc/bacula-dir.conf, for example)? 

You don't give many details about your environment, but it's possible that,
over time:

there was a working install of bacula, with /etc/init.d/bacula-dir
pointing to a config file outside of /etc/bacula.

the init script was modified at some point

the bacula package was later updated

the updater recognized that /etc/init.d/bacula-dir had been
modified, and [rightly] refused to overwrite the init script
(often creating an alternative, such as 'bacula-dir.rpmnew')

this would leave you with an init script that doesn't correspond to the paths
used for the config file of the current version of bacula.

= 
= Starting this way works fine:
=  cd /etc/init.d
=  bacula-dir /etc/bacula/bacula-dir.conf
= 
= I could live with that, but I wonder why this happened...

Um, if the commands shown above are accurate, you shouldn't 
'live with' that.

If you are running bacula as root (the most common method), then the above
commands imply that:

1. The PATH variable for root contains . (the current dir),
   which is a seriously insecure misconfiguration.

   Can you start the bacula director from any directory with
   bacula-dir /etc/bacula/bacula-dir.conf, or only when you
   are in /etc/init.d?

-or-

2. The bacula-dir executable that's being run is not in
   /etc/init.d

What's the result of the command:

which bacula-dir


= 
= 

[SNIP!]

= 
= It would be great if someone could help. Rainer

-- 
Mark Bergman   voice: 215-662-7310
mark.berg...@uphs.upenn.edu  fax: 215-614-0266
http://www.cbica.upenn.edu/
IT Technical Director, Center for Biomedical Image Computing and Analytics
Department of Radiology University of Pennsylvania
  PGP Key: http://www.cbica.upenn.edu/sbia/bergman 

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] spool disk filesystem, checksums

2014-12-04 Thread Cejka Rudolf
Daniel Pocock wrote (2014/12/04):
 On 04/12/14 18:35, Kern Sibbald wrote:
  On 12/03/2014 08:49 PM, Daniel Pocock wrote:
 
  Does Bacula checksum content on the spool disk before sending it to tape?
 
  To be more explicit, if there is a single bit error on the spool disk,
  will it be noticed before going onto tape or would it only be noticed in
  future when a file is taken off the tape?
  
  Unless you are running ZFS for the spool disk, the error will only be
  noticed when the data is read from the tape.
  
 
 In that case, it sounds like a good idea to use ZFS or Btrfs with
 checksums enabled

Hard drives use error correction/detection codes, so single bit error
without any error indication is unlikely. Especially in case of spool
disks, where datas are read shortly after write.

-- 
Rudolf Cejka cejkar at fit.vutbr.cz http://www.fit.vutbr.cz/~cejkar
Brno University of Technology, Faculty of Information Technology
Bozetechova 2, 612 66  Brno, Czech Republic

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] spool disk filesystem, checksums

2014-12-04 Thread Daniel Pocock


On 05/12/14 00:43, Cejka Rudolf wrote:
 Daniel Pocock wrote (2014/12/04):
 On 04/12/14 18:35, Kern Sibbald wrote:
 On 12/03/2014 08:49 PM, Daniel Pocock wrote:

 Does Bacula checksum content on the spool disk before sending it to tape?

 To be more explicit, if there is a single bit error on the spool disk,
 will it be noticed before going onto tape or would it only be noticed in
 future when a file is taken off the tape?

 Unless you are running ZFS for the spool disk, the error will only be
 noticed when the data is read from the tape.


 In that case, it sounds like a good idea to use ZFS or Btrfs with
 checksums enabled
 
 Hard drives use error correction/detection codes, so single bit error
 without any error indication is unlikely. Especially in case of spool
 disks, where datas are read shortly after write.
 

Unfortunately, that is completely untrue.  Disks and IO subsystems do
not provide any guarantees that they will return the exact data that was
written.  That is why modern filesystems have checksums.

The actual corruption of data often occurs in the writing phase, so
whether you read back the sector in 5 minutes or 5 weeks, it will always
come back with some bit changed.  I've seen this more than once
unfortunately.

This looks at some of the issues;

https://blogs.oracle.com/bonwick/entry/zfs_end_to_end_data



--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users