Bareos, ZFS and Puppet: Christian Reiß Symgenius
Bareos, ZFS and Puppet: Christian Reiß Symgenius
Bareos, ZFS and Puppet: Christian Reiß Symgenius
Christian Reiß
Symgenius
About Me
● Christian Reiß
● 37 years old
● System Administrator at Symgenius
2
About Me
3
Agenda
4
A Promise
5
About Symgenius
● Symgenius
● Brand ‘Power-Netz.de’
● We do webhosting.
8
Motivation - History
● Compression on client-side,
● Monitoring was a nightmare,
● But Restoring was hell.
9
Motivation - Alternatives
● BackupPC
● Rsnapshot
● Rsnapshot + ZFS Snaps
● Bacula
10
Motivation - Alternatives
11
Enter Bacula
12
Enter Bacula
… But also:
13
Enter Bacula
14
Enter Bacula
Also:
16
ZFS - Overview
17
ZFS - Overview
18
ZFS - Features
19
ZFS - Features
20
ZFS - Features
21
ZFS - Features
22
ZFS - Features
23
ZFS - Availability
24
ZFS - Install
25
ZFS – Live Example
With 8 cores.
27
ZFS – System Load
28
ZFS – Live Example
[root@bertha d125.powernetz.de]# pwd
/bacula/storage/d125.powernetz.de
[root@bertha d125.powernetz.de]# df h .
Filesystem Size Used Avail Use% Mounted on
bacula/d125.powernetz.de 4.0T 992G 3.1T 25%
/bacula/storage/d125.powernetz.de
29
ZFS – Live Example
[root@bertha d125.powernetz.de]# ls lhat
total 992G
drwxrx 268 bacula bacula 268 Jul 27 15:05 ..
rwr 1 bacula bacula 12G Jul 27 01:43 d125daily1420
rwr 1 bacula bacula 13G Jul 26 01:20 d125daily1274
rwr 1 bacula bacula 11G Jul 25 01:56 d125daily1119
rwr 1 bacula bacula 44G Jul 24 02:17 d125weekly1932
rwr 1 bacula bacula 14G Jul 23 01:26 d125daily0980
[...]
rwr 1 bacula bacula 31G Jul 17 01:38 d125weekly0828
rwr 1 bacula bacula 13G Jul 16 01:09 d125daily0309
[...]
rwr 1 bacula bacula 362G Jul 11 05:10 d125monthly5778
rwr 1 bacula bacula 64G Jul 9 01:56 d125weekly4000
rwr 1 bacula bacula 56G Jul 2 01:33 d125weekly3312
rwr 1 bacula bacula 45G Jun 24 01:13 d125weekly2846
rwr 1 bacula tape 359G Jun 11 04:38 d125monthly3633
30
ZFS – Live Example
[root@bertha ~]# zfs get compressratio
NAME PROPERTY VALUE
[...]
bacula/d136.powernetz.de compressratio 1.79x
bacula/d137.powernetz.de compressratio 1.69x
bacula/d138.powernetz.de compressratio 2.10x
bacula/d139.powernetz.de compressratio 1.57x
[...]
31
ZFS – Live Example
[root@bertha d125.powernetz.de]# du h d125monthly3633 apparentsize
359G d125monthly3633
[root@bertha d125.powernetz.de]# du h d125monthly3633
264G d125monthly
Net Save of 95GB, that’s ~30%!
32
ZFS – Live Example
On a sidenote:
33
ZFS - Advantages
Puppet.
35
Puppet Module
→ Backups work :)
36
Puppet
37
Puppet
Each Server:
38
Puppet
● Non-destructive Installation
39
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.
40
Puppet Module
… Also:
41
Puppet Module
42
Puppet
43
Puppet Module
44
The End.
45
The End.
As promised:
Contact me via:
[email protected]
Questions?
46