Incremental Backups
John Snow (yes, I know) Vladimir Sementsov-Ogievskiy Software Engineer, Red Hat Software Developer, Odin 2015-08-20 (Good things come in small packages!)
Incremental Backups ( Good things come in small packages !) John Snow - - PowerPoint PPT Presentation
Incremental Backups ( Good things come in small packages !) John Snow ( yes, I know ) Vladimir Sementsov-Ogievskiy Software Engineer, Red Hat Software Developer, Odin 2015-08-20 Acknowledgments (Because computers are awful and I need help
John Snow (yes, I know) Vladimir Sementsov-Ogievskiy Software Engineer, Red Hat Software Developer, Odin 2015-08-20 (Good things come in small packages!)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 2
(Because computers are awful and I need help sometimes)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 3
(Things I hope not to stammer through)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 4
(Things I hope not to stammer through)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 6
(I just wandered into this talk, what's it about?)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 7
(I just wandered into this talk, what's it about?)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 8
(Where did we come from; where did we go)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 9
(Where did we come from; where did we go)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 10
(What do we want?)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 11
(What do we want? Effjcient Backups!)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 12
(When do we want it?)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 13
(When do we want it? By 2.5 hopefully!)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 14
(Saving you time during the Q&A)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 16
(Nothing to do with your image search settings)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 17
(A bitmap by any other name would smell as sweet...?)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 18
(Backups from French Press to Turkish)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 19
(Tuned like the fjnest $4 ukulele)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 20
(Bitmap wrangling 101)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 21
(Let there be... bits!)
{ "execute": "block-dirty-bitmap-add", "arguments": { "node": "drive0", "name": "bitmap0", "granularity": 131072 } } { "execute": "block-dirty-bitmap-add", "arguments": { "node": "drive0", "name": "bitmap0", "granularity": 131072 } }
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 22
(For days when less is more)
{ "execute": "block-dirty-bitmap-remove", "arguments": { "node": "drive0", "name": "bitmap0" } } { "execute": "block-dirty-bitmap-remove", "arguments": { "node": "drive0", "name": "bitmap0" } }
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 23
(Sometimes we just want a second chance)
{ "execute": "block-dirty-bitmap-clear", "arguments": { "node": "drive0", "name": "bitmap0" } } { "execute": "block-dirty-bitmap-clear", "arguments": { "node": "drive0", "name": "bitmap0" } }
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 24
(Who are you? Who who, who who?)
{"execute": "query-block", "arguments": {}} {"return": [{ … “device”: “drive0”, "dirty-bitmaps": [{ "status": "active", "count": 296704, "name": "bitmap0", "granularity": 65536 }] … }]} {"execute": "query-block", "arguments": {}} {"return": [{ … “device”: “drive0”, "dirty-bitmaps": [{ "status": "active", "count": 296704, "name": "bitmap0", "granularity": 65536 }] … }]}
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 25
(Who are you? Who who, who who?)
{"execute": "query-block", "arguments": {}} {"return": [{ … “device”: “drive0”, "dirty-bitmaps": [{ "status": "active", (or “frozen”!) "count": 296704, "name": "bitmap0", "granularity": 65536 }] … }]} {"execute": "query-block", "arguments": {}} {"return": [{ … “device”: “drive0”, "dirty-bitmaps": [{ "status": "active", (or “frozen”!) "count": 296704, "name": "bitmap0", "granularity": 65536 }] … }]}
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 26
(Who are you? Who who, who who?)
{"execute": "query-block", "arguments": {}} {"return": [{ … “device”: “drive0”, "dirty-bitmaps": [{ "status": "active", "count": 296704, (sectors!) "name": "bitmap0", "granularity": 65536 }] (2318 clusters) … }]} {"execute": "query-block", "arguments": {}} {"return": [{ … “device”: “drive0”, "dirty-bitmaps": [{ "status": "active", "count": 296704, (sectors!) "name": "bitmap0", "granularity": 65536 }] (2318 clusters) … }]}
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 27
(Problem Statement 2: Electric Boogaloo)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 28
(Dissonance abated!)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 29
(Dissonance abated!)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 31
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 32
(There and backup again)
{ "execute": "transaction", "arguments": { "actions": [ {"type": "block-dirty-bitmap-add", "data": {"node": "drive0", "name": "bitmap0"} }, {"type": "drive-backup", "data": {"device": "drive0", "target": "/path/to/full.qcow2", "sync": "full", "format": "qcow2"} } ] } } { "execute": "transaction", "arguments": { "actions": [ {"type": "block-dirty-bitmap-add", "data": {"node": "drive0", "name": "bitmap0"} }, {"type": "drive-backup", "data": {"device": "drive0", "target": "/path/to/full.qcow2", "sync": "full", "format": "qcow2"} } ] } }
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 33
(There and backup again)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 34
(There and backup again)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 35
(Sunday night maintenance blues)
{ "execute": "transaction", "arguments": { "actions": [ {"type": "block-dirty-bitmap-clear", "data": {"node": "drive0", "name": "bitmap0"} }, {"type": "drive-backup", "data": {"device": "drive0", "target": "/path/to/new_full_backup.qcow2", "sync": "full", "format": "qcow2"} } ] } } { "execute": "transaction", "arguments": { "actions": [ {"type": "block-dirty-bitmap-clear", "data": {"node": "drive0", "name": "bitmap0"} }, {"type": "drive-backup", "data": {"device": "drive0", "target": "/path/to/new_full_backup.qcow2", "sync": "full", "format": "qcow2"} } ] } }
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 36
(Sunday night maintenance blues)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 37
(Sunday night maintenance blues)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 38
(The fjrst step of our journey)
{ "execute": "drive-backup", "arguments": { "device": "drive0", "bitmap": "bitmap0", "target": "inc.0.qcow2", "format": "qcow2", "sync": "incremental", "mode": "existing" } } { "execute": "drive-backup", "arguments": { "device": "drive0", "bitmap": "bitmap0", "target": "inc.0.qcow2", "format": "qcow2", "sync": "incremental", "mode": "existing" } } # qemu-img create -f qcow2 inc.0.qcow2 -b full.qcow2 -F qcow2 # qemu-img create -f qcow2 inc.0.qcow2 -b full.qcow2 -F qcow2
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 39
(The fjrst step of our journey)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 40
(The fjrst step of our journey)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 41
(To infjnity, and beyond!)
{ "execute": "drive-backup", "arguments": { "device": "drive0", "bitmap": "bitmap0", "target": "inc.<n>.qcow2", "format": "qcow2", "sync": "incremental", "mode": "existing" } } { "execute": "drive-backup", "arguments": { "device": "drive0", "bitmap": "bitmap0", "target": "inc.<n>.qcow2", "format": "qcow2", "sync": "incremental", "mode": "existing" } }
# qemu-img create -f qcow2 inc.<n>.qcow2 -b inc.<n-1>.qcow2 -F qcow2 # qemu-img create -f qcow2 inc.<n>.qcow2 -b inc.<n-1>.qcow2 -F qcow2
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 42
(To infjnity, and beyond!)
Incremental Backups: John Snow & Vladimir Sementsov-Ogievskiy; KVM Forum 2015 43
(To infjnity, and beyond!)
Incremental Backups: Vladimir Sementsov-Ogievskiy & John Snow; KVM Forum 2015 45
(Pack your data, we're moving to <target>)
Incremental Backups: Vladimir Sementsov-Ogievskiy & John Snow; KVM Forum 2015 46
(Pack your data, we're moving to <target>)
Incremental Backups: Vladimir Sementsov-Ogievskiy & John Snow; KVM Forum 2015 47
(Object permanence: not just for toddlers)
Incremental Backups: Vladimir Sementsov-Ogievskiy & John Snow; KVM Forum 2015 48
(Object permanence: not just for toddlers)
Incremental Backups: Vladimir Sementsov-Ogievskiy & John Snow; KVM Forum 2015 49
(<TODO: insert cheeky joke>)
Incremental Backups: Vladimir Sementsov-Ogievskiy & John Snow; KVM Forum 2015 51
(When do we get to use it!?)