• No results found

DB & VM Backup and Recovery

N/A
N/A
Protected

Academic year: 2021

Share "DB & VM Backup and Recovery"

Copied!
29
0
0

Loading.... (view fulltext now)

Full text

(1)

DB & VM Backup and Recovery

mag. Sergej Rožman

; Abakus plus d.o.o.

The latest version of this document is available at:

(2)

Real men don't use backups, they post their stuff on a

public ftp server and let the rest of the world make

copies.

(3)

Sistemi

DB & VM

Backup and Recovery

mag. Sergej Rožman

sergej.rozman abakus.si

(4)
(5)

Abakus plus d.o.o.

History

from 1992, ~20 employees

Applications:

special (DB – Newspaper Distribution, FIS – Flight Information System)

ARBITER – the ultimate tool in audit trailing

APPM - Abakus Plus Performance Monitoring Tool

Services:

DBA, OS administration , programming (MediaWiki, Oracle)

networks (services, VPN, QoS, security)

open source, monitoring (Nagios, OCS, Wiki)

Hardware:

servers,

SAN storage

, firewalls,

Backup Server

Infrastructure:

from 1995 GNU/Linux

(20 years of experience !)

Oracle on GNU/Linux: since RDBMS 7.1.5 & Forms 3.0

(before Oracle !)

(6)

Backup and Recovery Best Practices

Backup takes no time!

no resources needed & no disk space;

Recover takes no time as well!

no resources needed;

Copies are without errors and consistent;

Data is always available & always in view.

(7)

Classic Full/Incremental Backup Model

backup takes long time

(especially full)

restore takes even longer

(full + n

×

incremental)

incremental backups not

suitable for large files

(DB, VMs)

I

I

I

I

I

I

F

I

>backup> <restore< Sat Fri Thu Wed Tue Mon SUN Sat

...

...

server

(8)

Status Board

Fact

DB

VM

Notes

BACKUP

in no time

no resources

no disk space

or no tape space

RECOVER

in no time

no resources

COPIES

without errors

consistent

if done right

DATA

always available

with autoloader

(9)

Tape vs. Disk drive

Tape

price:

n×1000€ (drive) + <100€ / (cartridge)

(LTO-6 native capacity 2.5 TB)

no future compatibility

(new drive needed)

Is your data really on that tape?

high throughput, slow access time

Disk

price: ~100€ / 3 TB SATA

guaranted future

compatibility

WYSIWYG (if you see

data, you can get data)

moderate througput, fast

access time

(10)

DB Backup Full/Incremental – Example

I

I

I

I

I

I

F

copy of DB now -1 -2 -3 -4 -5 -6 -7

I

incremental

backup

I

recover

copy of database

somewhat optimized

no Full backup except initial

incremental backup optimized

with Oracle Enterprise Edition

(block change tracking)

restore still takes long time

DB server

LAG

(history)

(11)

Backup in »no time«

DB server backup server

archive log transfer backup server backup server backup server production DB standby DB = »backup DB«

backup takes no additional

time

backup needs no

production resources

BUT, WHERE IS BACKUP

HISTORY ?

(12)

DB Backup in »no time«

DB server1 backup server

continuous

transaction log

transfer

backup server backup server backup server production DB1 standby DB = »backup DB« DB server2 production DB2

...

(13)

VM Backup in »no time«

backup server

asynchronous

remote disk

mirror

backup server backup server backup server mirrored disks

(14)
(15)

-24

-v

-23

-22

-12

-11

now

now

-14

backup server

-21

-w

-13

-x

-y

-1

-2

-3

-4

backup history SAVE

snapshot

save snapshot

Time and resources are

consumed exclusively on

backup server

Backup occupies a lot of

disk space !?

… and history

(16)

Deduplication

deduped

storage

current DB

a day old DB

+

1 2 3 4 5 6 7 8 9 10 11121 1 5 8 11 3 12 4 13 7 9 6 10 2 1 5 8 11 3 12 4 13 7 9 6 10 2 1 5 8 11 3 12 4 13 7 9 6 10 2

(17)

-24

-v

-23

-22

-12

-11

now

now

-14

backup server

-21

-w

-13

-x

-1

-2

-3

-4

backup history SAVE

… and (almost) no disk space

… by using data deduplication

snapshot

save snapshot

to deduplicated area

Example:

DB size 1 TB

1% changed/added data per day (~10 GB)

~200 days backup fits on 3 TB disk drive

...

(18)

Recovery in »no time« – scenario 1

»activated backup DB«

Recovery as a Service (RaaS)

services are offered directly from the

backup server

BACK IN BUSINESS

IN NO TIME!*

* real restore in more appropriate time

backup server backup server backup server backup server VMs directly from backup server

(19)

Recovery in »no time« – scenario 2

Recovery as an Infrastructure

(change role to SAN storage)

backup server works as a SAN storage

infrastructure to production servers

BACK IN BUSINESS

IN NO TIME!*

* real restore in more appropriate time

backup server backup server backup server backup server

SAN

production servers

(20)

Restore/Access to Historical Data

snapshot selected slot

stop standby database

switch active slot to

snapshot

start instance

recover database until

needed (optional)

open database

-24

-v

-23

-22

-12

-11

now

-14

backup server

-21

-w

-13

-13

-x

-y

-1

-2

-3

-4

(21)

Recover in »no time«

DB server backup serverbackup serverbackup serverbackup server

production DB standby DB =

»backup DB«

Lost or currupted datafile (or even whole DB)

make snaphot of backup DB

start SAN software – iSCSI, SRP, …

export LUN with backup of lost datafile

connect LUN to DB server

offline corrupted datafile

switch to backup datafile

recover backup datafile

online backup datafile

BACK IN BUSINESS IN NO TIME!*

* real restore in more appropriate time

connect to remote datafile

(22)

Alternative use

BI – business analysis

purposes

reporting

development & test

-24

-v

-23

-22

-12

-11

now

now

-14

backup server

-21

-w

-13

-x

-y

-1

-2

-3

-4

backup history SAVE

...

»activated backup DB«

(23)

Performance

test 1 (notebook with SSD, DB on VM):

max_iops =

9.983

, latency =

8

, max_mbps =

251

test 2 (test DB, 10x 600 GB 15k FC):

max_iops =

1.824

, latency =

11

, max_mbps =

280

test 3 (production DB, 30x 146 GB 15k FC):

max_iops =

6.498

, latency =

10

, max_mbps =

455

test 4 (

Abakus SAN

, 16x SSD, Infiniband 40G):

(24)

Performance example

The Bank

everyday backups

5

databases, largest

13 TB

total disk capacity

60 TB

total saved since 1/Aug/2014

300 TB

(25)

Status Board

Fact

DB

VM

Notes

BACKUP

in no time

no resources

no disk space

RECOVER

in no time

no resources

COPIES

without errors

consistent

DATA

always available

(26)

Work in Progress

general change block tracking at block device level

(asynchronous and buffered)

will copy ONLY changed disk blocks to backup

suitable for VMs

will make possible to back up to remote site over slow link

no active instance – no license fee

point in time recovery for VMs, (maybe)

graphical user interface, (maybe)

(27)

References

Husnu Sensoy;

How to Backup & Recovery Enormous Databases?

(28)

Invitation

Ask my colegue about user experience and an alternative use of a backup server.

HrOUG 2015

hall 5 apart.; Fri 16 Oct 2015; 11.30

Boris Oblak,

ABAKUS plus d.o.o.

Backup Server:

(29)

DB & VM Backup and Recovery

Questions

mag. Sergej Rožman

ABAKUS plus d.o.o.

Ljubljanska c. 24a

Kranj

e-mail: sergej.rozman abakus.si

phone: +386 4 287 11 14

References

Related documents

Besides the data, a backup copy contains information about the table spaces, containers, database configuration, log control file, and recovery history file.. Note that a backup

• Extends version recovery by using full database and table space backup in conjunction with the database log files.  Crash recovery and Version recovery are enabled in DB2

Existing Data center Front-end Server Application Server Database Server Storage Data Backup Bucket Data Backups “Real-time” Replication DB DB Replication Auto scaling

Biochemical analysis of selfed individual plants within the sub-lines showed significant increase of average tryptophan con- tent and quality index, as well as significant decrease

Host (DB Server) Host (User) User Agent Console Agent, with Oracle Plug-In Database Host (Vault) Console Configures DB Backup and Restore LAN / WAN Configures...

(“First, coverage rather than uncompensated care pools is the best way to secure affordable access to health care for low-income individuals. Second, Medicaid payments should

The sequences obtained from the NR database are indicated by 5 letters (3 from the genus and 2 from the species name) followed by the NCBI accession number. Remaining sequences

Jedem sein Geburtstagsstandchen TO EACH HIS OWN BIRTHDAY SERENADE Variationen uber das Lied "Happy Birthday" / Variations on the Song "Happy Birthday" Nach dem groBen Erfolg von