SlideShare a Scribd company logo
Bareos, ZFS and Puppet
Christian Reiß
Symgenius
2
About Me
● Christian Reiß
● 37 years old
● System Administrator at Symgenius
3
About Me
● Linux since 1995'ish (Kernel 1.3)
● B* evangelist
● Love Puppet
4
Agenda
● Motivation and a little(!) history,
● Bacula (Alternatives),
● ZFS Introduction,
● The Puppet Module.
5
A Promise
● I’ll try to do an ‘easy listening’,
● No code snippets.
6
About Symgenius
● Symgenius
● Brand ‘Power-Netz.de’
● Mid sized hosting company,
● Usual web-stack,
● Project hosting and housing
7
Motivation – The situation
● We do webhosting.
● Several hundred Servers,
● Several hundred Customers each,
● Thousands of files per webhost,
● Thousands of files per Maildir,
● And of course: mysql.
8
Motivation - History
● We used to backup with tar,
● Full backups of root into a tar located
on a nfs share,
● Incrementals with a “find -ctime 1”.
● Everything piped through
compression, ie. pigz or pbzip2.
9
Motivation - History
● It did it’s job.
● Compression on client-side,
● Monitoring was a nightmare,
● But Restoring was hell.
10
Motivation - Alternatives
We tried several alternatives:
● BackupPC
● Rsnapshot
● Rsnapshot + ZFS Snaps
● Bacula
11
Motivation - Alternatives
● BackupPC and rsnapshot failed.
● Backup times were 13+ hours due to
amount of files,
● Job deletion even took longer.
● Backup + Job deletion exceeded 24
hours → Daily jobs piled up.
12
Enter Bacula
Bacula solved several issues:
● Backups are blazing fast even with
high file counts,
● Backups are written inside a single
archive volume,
● Restoring is bliss.
13
Enter Bacula
… But also:
● No heavy CPU load on client side
(think compression)
● You could do Backups during work
hours without Clients noticing (Well,
except for MySQL Dumps…).
14
Enter Bacula
Client issue is solved,
but what about the server side?
15
Enter Bacula
The Server needs:
● Protection against Hardware faults:
- RAID(-alike)
- Bit-Rot
● Other things:
- Transparent compression
- Quotas per Server
16
Enter Bacula
Also:
● Should be hassle- and maintenance
free (mostly).
● Needs to perform fast on ‘normal’
Hardware.
17
ZFS - Overview
All is solved with ZFS
18
ZFS - Overview
All is solved with ZFS
and Bareos.
19
ZFS - Features
The features of ZFS include:
● […] protection against data
corruption,
● continuous integrity checking and
automatic repair [...]
20
ZFS - Features
The features of ZFS include:
● […] RAID-Z [...]
21
ZFS - Features
The features of ZFS include:
● […] support for high storage
capacities, [...]
22
ZFS - Features
The features of ZFS include:
● […] efficient data compression, [...]
23
ZFS - Features
The features of ZFS include:
● […] snapshots and copy-on-write
clones, [...]
24
ZFS - Availability
Apart from Sun OS ZFS is available
● In Ubuntu 16.04 and up,
● In (future) Debian releases,
● And for all other Distributions via
zfsonlinux.org.
● FreeNAS using ZFS as main storage
25
ZFS - Install
● You install the package for your OS,
● Reboot,
● You do a “zpool create”,
● You might want to “zfs set” some
stuff,
● Done.
This does not count as ‘code snippet’.
26
ZFS – Live Example
Our SD (also Dir) consists out of:
● Intel Xeon CPU L5420 @ 2.50GHz
● 8 total cores
● 32gb Memory
● SSD for System and MySQL Data,
● 22x 4TB ‘NAS Grade’ WD Reds.
● (currently) 1Gb NIC
27
ZFS – Live Example
We backup 35 servers simultaneously.
Both the CPU and NIC are maxed.
That’s ~900Mbit of data transparently
compressed, RAID’ed and
checksummed right there.
With 8 cores.
28
ZFS – System Load
29
ZFS – Live Example
[root@bertha d125.power­netz.de]# pwd
/bacula/storage/d125.power­netz.de
[root@bertha d125.power­netz.de]# df ­h . 
Filesystem               Size  Used Avail Use% Mounted on
bacula/d125.power­netz.de  4.0T  992G  3.1T  25%  
                          /bacula/storage/d125.power­netz.de
30
ZFS – Live Example
[root@bertha d125.power­netz.de]# ls ­lhat
total 992G
drwxr­x­­­ 268 bacula bacula  268 Jul 27 15:05 ..
­rw­r­­­­­   1 bacula bacula  12G Jul 27 01:43 d125­daily­1420
­rw­r­­­­­   1 bacula bacula  13G Jul 26 01:20 d125­daily­1274
­rw­r­­­­­   1 bacula bacula  11G Jul 25 01:56 d125­daily­1119
­rw­r­­­­­   1 bacula bacula  44G Jul 24 02:17 d125­weekly­1932
­rw­r­­­­­   1 bacula bacula  14G Jul 23 01:26 d125­daily­0980
[...]
­rw­r­­­­­   1 bacula bacula  31G Jul 17 01:38 d125­weekly­0828
­rw­r­­­­­   1 bacula bacula  13G Jul 16 01:09 d125­daily­0309
[...]
­rw­r­­­­­   1 bacula bacula 362G Jul 11 05:10 d125­monthly­5778
­rw­r­­­­­   1 bacula bacula  64G Jul  9 01:56 d125­weekly­4000
­rw­r­­­­­   1 bacula bacula  56G Jul  2 01:33 d125­weekly­3312
­rw­r­­­­­   1 bacula bacula  45G Jun 24 01:13 d125­weekly­2846
­rw­r­­­­­   1 bacula tape   359G Jun 11 04:38 d125­monthly­3633
31
ZFS – Live Example
[root@bertha ~]# zfs get compressratio
NAME                       PROPERTY       VALUE
[...]
bacula/d136.power­netz.de    compressratio  1.79x  
bacula/d137.power­netz.de    compressratio  1.69x  
bacula/d138.power­netz.de    compressratio  2.10x  
bacula/d139.power­netz.de    compressratio  1.57x  
[...]
32
ZFS – Live Example
[root@bertha d125.power­netz.de]# du ­h d125­monthly­3633 ­­apparent­size
359G d125­monthly­3633
[root@bertha d125.power­netz.de]# du ­h d125­monthly­3633
264G d125­monthly­
Net Save of 95GB, that’s ~30%!
33
ZFS – Live Example
On a sidenote:
Deduplication does not work.
34
ZFS - Advantages
● No more RAID controllers,
● Defense against Bit-Rot,
● Defense against Drive Faults*,
● Compression is done on Server,
● Quotas are possible,
● No hacks or workarounds.
● Everything is done transparently!
35
ZFS / Puppet
Puppet.
36
Puppet Module
The module does the usual:
● It configures the director,
● The storage daemon
● And of course the FD’s.
→ Backups work :)
37
Puppet
Each Server has:
● An independent Pool for Full Backups,
● An independent Pool for Differentials,
● An independent Pool for Incrementals.
In its own ZFS-Dataset.
38
Puppet
Each Server:
● Has limited bconsole shell access
(using ACL's)
● Has its own device in bacula-sd
● Is fully monitored by Icinga/Nagios
39
Puppet
● We wanted a fully automated System
● Non-destructive Installation
● Managing new Servers, adding ZFS
● Soft removal of retired Servers
40
Puppet Module
In addition to that:
● One-File-per-Job (Volume)
● Monitor last Backup,
● Monitor MySQL Dumps,
● We check for a valid full-backup,
● We check for /bacula-restores dir.
41
Puppet Module
… Also:
● Random Passwords generated
● bareos-fd.conf copy saved on dir
● Option to override IPs
42
Puppet Module
Set & override by hiera:
● Accurate flag (default yes),
● Exclude of files,
● Include of files,
● Onefs flag (default yes).
43
Puppet
44
Puppet Module
… and of course it will install the webui!
45
The End.
Thank you for your attention! o/
46
The End.
As promised:
Bareos-Puppet Module available:
https://github.com/christianreiss/al_bareos
Contact me via:
email@christian-reiss.de
Questions?

More Related Content

What's hot (20)

PDF
LSA2 - PostgreSQL
Marian Marinov
 
PDF
Optimization_of_Virtual_Machines_for_High_Performance
StorPool Storage
 
PDF
Nvmfs benchmark
Louis liu
 
PDF
Micro Datacenter & Data Warehouse
mdcdwh
 
PPTX
Docker 1.9 release party - Docker Ha Noi
Van Phuc
 
PDF
RamDisk
Yashar Esmaildokht
 
PDF
Disaster Recovery Strategies Using oVirt's new Storage Connection Management ...
Allon Mureinik
 
PDF
MongoDB Shard Cluster
Anuchit Chalothorn
 
ODP
RAID, Replication, and You
Great Wide Open
 
PDF
Control your service resources with systemd
Marian Marinov
 
PPTX
了解IO协议栈
Feng Yu
 
PPTX
Cinder Live Migration and Replication - OpenStack Summit Austin
Ed Balduf
 
PPTX
了解网络
Feng Yu
 
PPTX
了解Cpu
Feng Yu
 
PDF
How to train your L3DSR with PBR - MEMO -
Naoto MATSUMOTO
 
PDF
Improve your storage with bcachefs
Marian Marinov
 
PDF
Feature rich BTRFS is Getting Richer with Encryption
LF Events
 
PDF
Stingray SG- solution for internet service providers
Liubov Belousova
 
ODP
Exploiting Your File System to Build Robust & Efficient Workflows
jasonajohnson
 
PDF
Keith Paskett - Postgres on ZFS @ Postgres Open
PostgresOpen
 
LSA2 - PostgreSQL
Marian Marinov
 
Optimization_of_Virtual_Machines_for_High_Performance
StorPool Storage
 
Nvmfs benchmark
Louis liu
 
Micro Datacenter & Data Warehouse
mdcdwh
 
Docker 1.9 release party - Docker Ha Noi
Van Phuc
 
Disaster Recovery Strategies Using oVirt's new Storage Connection Management ...
Allon Mureinik
 
MongoDB Shard Cluster
Anuchit Chalothorn
 
RAID, Replication, and You
Great Wide Open
 
Control your service resources with systemd
Marian Marinov
 
了解IO协议栈
Feng Yu
 
Cinder Live Migration and Replication - OpenStack Summit Austin
Ed Balduf
 
了解网络
Feng Yu
 
了解Cpu
Feng Yu
 
How to train your L3DSR with PBR - MEMO -
Naoto MATSUMOTO
 
Improve your storage with bcachefs
Marian Marinov
 
Feature rich BTRFS is Getting Richer with Encryption
LF Events
 
Stingray SG- solution for internet service providers
Liubov Belousova
 
Exploiting Your File System to Build Robust & Efficient Workflows
jasonajohnson
 
Keith Paskett - Postgres on ZFS @ Postgres Open
PostgresOpen
 

Viewers also liked (14)

PDF
OSBConf 2016: The Backup Report of the Friedrich Schiller University Jena - b...
NETWAYS
 
PDF
OSBConf 2016: The Database Backup is done - what next? - by Jörg Brühe
NETWAYS
 
PDF
OSBConf 2016: Backup of Scale - Bareos Active Clients and Puppet - Tobias Groß
NETWAYS
 
PDF
OSBConf 2016: Building a Business Continuity Plan with Bareos and Rear - by G...
NETWAYS
 
PDF
Automating backup provisioning with Bacula and Puppet
miouhpi
 
XLSX
R05 i mexico 3
Fernando Avalos Larrea
 
PDF
2nd congress Global Pharma Authentication 2011
Torben Haagh
 
ODP
Migration decision and power relations
Flora Lin
 
PDF
Certificato di Laurea_Benazzi
Silvia Benazzi
 
PDF
code of conduct whishtleblowing certificate
Kashif Khurram Malik
 
PPTX
Tsahim hicheel
Luvsandorj Khangal
 
PPT
نسخ من بشار مهم
ahmad1990hanoon
 
PDF
Drutensche Waarden Dag Van De Dijk 2008 09 25 Web
hsro
 
PPT
ND11: digital by default & social housing helen milner 12 may2011
Helen Milner
 
OSBConf 2016: The Backup Report of the Friedrich Schiller University Jena - b...
NETWAYS
 
OSBConf 2016: The Database Backup is done - what next? - by Jörg Brühe
NETWAYS
 
OSBConf 2016: Backup of Scale - Bareos Active Clients and Puppet - Tobias Groß
NETWAYS
 
OSBConf 2016: Building a Business Continuity Plan with Bareos and Rear - by G...
NETWAYS
 
Automating backup provisioning with Bacula and Puppet
miouhpi
 
R05 i mexico 3
Fernando Avalos Larrea
 
2nd congress Global Pharma Authentication 2011
Torben Haagh
 
Migration decision and power relations
Flora Lin
 
Certificato di Laurea_Benazzi
Silvia Benazzi
 
code of conduct whishtleblowing certificate
Kashif Khurram Malik
 
Tsahim hicheel
Luvsandorj Khangal
 
نسخ من بشار مهم
ahmad1990hanoon
 
Drutensche Waarden Dag Van De Dijk 2008 09 25 Web
hsro
 
ND11: digital by default & social housing helen milner 12 may2011
Helen Milner
 
Ad

Similar to Backup with Bareos and ZFS - by Christian Reiß (20)

PDF
OSDC 2016 - Interesting things you can do with ZFS by Allan Jude&Benedict Reu...
NETWAYS
 
PPTX
Vancouver bug enterprise storage and zfs
Rami Jebara
 
PDF
openbsd-as-nas.pdf
ssuserabc40f
 
PPTX
ZFS for Databases
ahl0003
 
ODP
An Overview of Next-Gen Filesystems
Great Wide Open
 
PDF
IT Assist - ZFS on linux
IDG Romania
 
KEY
Benefits of NexentaStor 3.0 in a Virtualized Enviroment
cloudcampghent
 
PDF
Kafka on ZFS: Better Living Through Filesystems
confluent
 
ODP
Nagios Conference 2012 - Dan Wittenberg - Case Study: Scaling Nagios Core at ...
Nagios
 
PDF
PostgreSQL on EXT4, XFS, BTRFS and ZFS
Tomas Vondra
 
PDF
Scale2014
Dru Lavigne
 
PDF
ZFS Talk Part 1
Steven Burgess
 
PPTX
Filesystem Showdown: What a Difference a Decade Makes
Perforce
 
ODP
Case study of BtrFS: A fault tolerant File system
Kumar Amit Mehta
 
PDF
Asiabsdcon14
Dru Lavigne
 
PDF
Tlf2014
Dru Lavigne
 
PDF
Btrfs by Chris Mason
Terry Wang
 
PDF
2007 Asiabsdcon Porting of ZFS File System to FreeBSD slides
ssuser36a70f
 
PDF
Nelf2012
Dru Lavigne
 
PDF
PostgreSQL + ZFS best practices
Sean Chittenden
 
OSDC 2016 - Interesting things you can do with ZFS by Allan Jude&Benedict Reu...
NETWAYS
 
Vancouver bug enterprise storage and zfs
Rami Jebara
 
openbsd-as-nas.pdf
ssuserabc40f
 
ZFS for Databases
ahl0003
 
An Overview of Next-Gen Filesystems
Great Wide Open
 
IT Assist - ZFS on linux
IDG Romania
 
Benefits of NexentaStor 3.0 in a Virtualized Enviroment
cloudcampghent
 
Kafka on ZFS: Better Living Through Filesystems
confluent
 
Nagios Conference 2012 - Dan Wittenberg - Case Study: Scaling Nagios Core at ...
Nagios
 
PostgreSQL on EXT4, XFS, BTRFS and ZFS
Tomas Vondra
 
Scale2014
Dru Lavigne
 
ZFS Talk Part 1
Steven Burgess
 
Filesystem Showdown: What a Difference a Decade Makes
Perforce
 
Case study of BtrFS: A fault tolerant File system
Kumar Amit Mehta
 
Asiabsdcon14
Dru Lavigne
 
Tlf2014
Dru Lavigne
 
Btrfs by Chris Mason
Terry Wang
 
2007 Asiabsdcon Porting of ZFS File System to FreeBSD slides
ssuser36a70f
 
Nelf2012
Dru Lavigne
 
PostgreSQL + ZFS best practices
Sean Chittenden
 
Ad

Recently uploaded (20)

PDF
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 
PDF
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
PPTX
Human Resources Information System (HRIS)
Amity University, Patna
 
PDF
Salesforce CRM Services.VALiNTRY360
VALiNTRY360
 
PDF
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
PPTX
Comprehensive Guide: Shoviv Exchange to Office 365 Migration Tool 2025
Shoviv Software
 
PDF
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
PPTX
Writing Better Code - Helping Developers make Decisions.pptx
Lorraine Steyn
 
PPTX
Revolutionizing Code Modernization with AI
KrzysztofKkol1
 
PPTX
Engineering the Java Web Application (MVC)
abhishekoza1981
 
PPTX
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
PPTX
MailsDaddy Outlook OST to PST converter.pptx
abhishekdutt366
 
PDF
Continouous failure - Why do we make our lives hard?
Papp Krisztián
 
PPTX
Java Native Memory Leaks: The Hidden Villain Behind JVM Performance Issues
Tier1 app
 
PDF
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
PDF
Streamline Contractor Lifecycle- TECH EHS Solution
TECH EHS Solution
 
PPTX
Tally software_Introduction_Presentation
AditiBansal54083
 
PDF
Executive Business Intelligence Dashboards
vandeslie24
 
PPTX
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
PDF
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
Human Resources Information System (HRIS)
Amity University, Patna
 
Salesforce CRM Services.VALiNTRY360
VALiNTRY360
 
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
Comprehensive Guide: Shoviv Exchange to Office 365 Migration Tool 2025
Shoviv Software
 
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
Writing Better Code - Helping Developers make Decisions.pptx
Lorraine Steyn
 
Revolutionizing Code Modernization with AI
KrzysztofKkol1
 
Engineering the Java Web Application (MVC)
abhishekoza1981
 
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
MailsDaddy Outlook OST to PST converter.pptx
abhishekdutt366
 
Continouous failure - Why do we make our lives hard?
Papp Krisztián
 
Java Native Memory Leaks: The Hidden Villain Behind JVM Performance Issues
Tier1 app
 
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
Streamline Contractor Lifecycle- TECH EHS Solution
TECH EHS Solution
 
Tally software_Introduction_Presentation
AditiBansal54083
 
Executive Business Intelligence Dashboards
vandeslie24
 
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 

Backup with Bareos and ZFS - by Christian Reiß

  • 1. Bareos, ZFS and Puppet Christian Reiß Symgenius
  • 2. 2 About Me ● Christian Reiß ● 37 years old ● System Administrator at Symgenius
  • 3. 3 About Me ● Linux since 1995'ish (Kernel 1.3) ● B* evangelist ● Love Puppet
  • 4. 4 Agenda ● Motivation and a little(!) history, ● Bacula (Alternatives), ● ZFS Introduction, ● The Puppet Module.
  • 5. 5 A Promise ● I’ll try to do an ‘easy listening’, ● No code snippets.
  • 6. 6 About Symgenius ● Symgenius ● Brand ‘Power-Netz.de’ ● Mid sized hosting company, ● Usual web-stack, ● Project hosting and housing
  • 7. 7 Motivation – The situation ● We do webhosting. ● Several hundred Servers, ● Several hundred Customers each, ● Thousands of files per webhost, ● Thousands of files per Maildir, ● And of course: mysql.
  • 8. 8 Motivation - History ● We used to backup with tar, ● Full backups of root into a tar located on a nfs share, ● Incrementals with a “find -ctime 1”. ● Everything piped through compression, ie. pigz or pbzip2.
  • 9. 9 Motivation - History ● It did it’s job. ● Compression on client-side, ● Monitoring was a nightmare, ● But Restoring was hell.
  • 10. 10 Motivation - Alternatives We tried several alternatives: ● BackupPC ● Rsnapshot ● Rsnapshot + ZFS Snaps ● Bacula
  • 11. 11 Motivation - Alternatives ● BackupPC and rsnapshot failed. ● Backup times were 13+ hours due to amount of files, ● Job deletion even took longer. ● Backup + Job deletion exceeded 24 hours → Daily jobs piled up.
  • 12. 12 Enter Bacula Bacula solved several issues: ● Backups are blazing fast even with high file counts, ● Backups are written inside a single archive volume, ● Restoring is bliss.
  • 13. 13 Enter Bacula … But also: ● No heavy CPU load on client side (think compression) ● You could do Backups during work hours without Clients noticing (Well, except for MySQL Dumps…).
  • 14. 14 Enter Bacula Client issue is solved, but what about the server side?
  • 15. 15 Enter Bacula The Server needs: ● Protection against Hardware faults: - RAID(-alike) - Bit-Rot ● Other things: - Transparent compression - Quotas per Server
  • 16. 16 Enter Bacula Also: ● Should be hassle- and maintenance free (mostly). ● Needs to perform fast on ‘normal’ Hardware.
  • 17. 17 ZFS - Overview All is solved with ZFS
  • 18. 18 ZFS - Overview All is solved with ZFS and Bareos.
  • 19. 19 ZFS - Features The features of ZFS include: ● […] protection against data corruption, ● continuous integrity checking and automatic repair [...]
  • 20. 20 ZFS - Features The features of ZFS include: ● […] RAID-Z [...]
  • 21. 21 ZFS - Features The features of ZFS include: ● […] support for high storage capacities, [...]
  • 22. 22 ZFS - Features The features of ZFS include: ● […] efficient data compression, [...]
  • 23. 23 ZFS - Features The features of ZFS include: ● […] snapshots and copy-on-write clones, [...]
  • 24. 24 ZFS - Availability Apart from Sun OS ZFS is available ● In Ubuntu 16.04 and up, ● In (future) Debian releases, ● And for all other Distributions via zfsonlinux.org. ● FreeNAS using ZFS as main storage
  • 25. 25 ZFS - Install ● You install the package for your OS, ● Reboot, ● You do a “zpool create”, ● You might want to “zfs set” some stuff, ● Done. This does not count as ‘code snippet’.
  • 26. 26 ZFS – Live Example Our SD (also Dir) consists out of: ● Intel Xeon CPU L5420 @ 2.50GHz ● 8 total cores ● 32gb Memory ● SSD for System and MySQL Data, ● 22x 4TB ‘NAS Grade’ WD Reds. ● (currently) 1Gb NIC
  • 27. 27 ZFS – Live Example We backup 35 servers simultaneously. Both the CPU and NIC are maxed. That’s ~900Mbit of data transparently compressed, RAID’ed and checksummed right there. With 8 cores.
  • 29. 29 ZFS – Live Example [root@bertha d125.power­netz.de]# pwd /bacula/storage/d125.power­netz.de [root@bertha d125.power­netz.de]# df ­h .  Filesystem               Size  Used Avail Use% Mounted on bacula/d125.power­netz.de  4.0T  992G  3.1T  25%                             /bacula/storage/d125.power­netz.de
  • 30. 30 ZFS – Live Example [root@bertha d125.power­netz.de]# ls ­lhat total 992G drwxr­x­­­ 268 bacula bacula  268 Jul 27 15:05 .. ­rw­r­­­­­   1 bacula bacula  12G Jul 27 01:43 d125­daily­1420 ­rw­r­­­­­   1 bacula bacula  13G Jul 26 01:20 d125­daily­1274 ­rw­r­­­­­   1 bacula bacula  11G Jul 25 01:56 d125­daily­1119 ­rw­r­­­­­   1 bacula bacula  44G Jul 24 02:17 d125­weekly­1932 ­rw­r­­­­­   1 bacula bacula  14G Jul 23 01:26 d125­daily­0980 [...] ­rw­r­­­­­   1 bacula bacula  31G Jul 17 01:38 d125­weekly­0828 ­rw­r­­­­­   1 bacula bacula  13G Jul 16 01:09 d125­daily­0309 [...] ­rw­r­­­­­   1 bacula bacula 362G Jul 11 05:10 d125­monthly­5778 ­rw­r­­­­­   1 bacula bacula  64G Jul  9 01:56 d125­weekly­4000 ­rw­r­­­­­   1 bacula bacula  56G Jul  2 01:33 d125­weekly­3312 ­rw­r­­­­­   1 bacula bacula  45G Jun 24 01:13 d125­weekly­2846 ­rw­r­­­­­   1 bacula tape   359G Jun 11 04:38 d125­monthly­3633
  • 31. 31 ZFS – Live Example [root@bertha ~]# zfs get compressratio NAME                       PROPERTY       VALUE [...] bacula/d136.power­netz.de    compressratio  1.79x   bacula/d137.power­netz.de    compressratio  1.69x   bacula/d138.power­netz.de    compressratio  2.10x   bacula/d139.power­netz.de    compressratio  1.57x   [...]
  • 32. 32 ZFS – Live Example [root@bertha d125.power­netz.de]# du ­h d125­monthly­3633 ­­apparent­size 359G d125­monthly­3633 [root@bertha d125.power­netz.de]# du ­h d125­monthly­3633 264G d125­monthly­ Net Save of 95GB, that’s ~30%!
  • 33. 33 ZFS – Live Example On a sidenote: Deduplication does not work.
  • 34. 34 ZFS - Advantages ● No more RAID controllers, ● Defense against Bit-Rot, ● Defense against Drive Faults*, ● Compression is done on Server, ● Quotas are possible, ● No hacks or workarounds. ● Everything is done transparently!
  • 36. 36 Puppet Module The module does the usual: ● It configures the director, ● The storage daemon ● And of course the FD’s. → Backups work :)
  • 37. 37 Puppet Each Server has: ● An independent Pool for Full Backups, ● An independent Pool for Differentials, ● An independent Pool for Incrementals. In its own ZFS-Dataset.
  • 38. 38 Puppet Each Server: ● Has limited bconsole shell access (using ACL's) ● Has its own device in bacula-sd ● Is fully monitored by Icinga/Nagios
  • 39. 39 Puppet ● We wanted a fully automated System ● Non-destructive Installation ● Managing new Servers, adding ZFS ● Soft removal of retired Servers
  • 40. 40 Puppet Module In addition to that: ● One-File-per-Job (Volume) ● Monitor last Backup, ● Monitor MySQL Dumps, ● We check for a valid full-backup, ● We check for /bacula-restores dir.
  • 41. 41 Puppet Module … Also: ● Random Passwords generated ● bareos-fd.conf copy saved on dir ● Option to override IPs
  • 42. 42 Puppet Module Set & override by hiera: ● Accurate flag (default yes), ● Exclude of files, ● Include of files, ● Onefs flag (default yes).
  • 44. 44 Puppet Module … and of course it will install the webui!
  • 45. 45 The End. Thank you for your attention! o/
  • 46. 46 The End. As promised: Bareos-Puppet Module available: https://github.com/christianreiss/al_bareos Contact me via: [email protected] Questions?