~evilnick/clouddocs/trunk

« back to all changes in this revision

Viewing changes to Admin/Backup-and-Recovery-Ceph.md

  • Committer: Nick Veitch
  • Date: 2014-05-01 16:14:30 UTC
  • Revision ID: nick.veitch@canonical.com-20140501161430-lnu2v6dkkbhd5x9t
admin missing sections

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
images to be cloned (example: a VM image) quickly and easily. Ceph supports block device snapshots 
12
12
using the `rbd` command and many high-level interfaces to include OpenStack.
13
13
 
14
 
## Scope
15
 
 
16
 
**TODO**
17
 
 
18
14
## Backup
19
15
 
20
16
To create a snapshot with `rbd`, specify the `snap create` option, the pool name, and the 
49
45
rbd snap rollback rbd/foo@snapname
50
46
```
51
47
 
52
 
**Note:** Rolling back an image to a snapshot means overwriting the current version of the image 
 
48
!!!**Note:** Rolling back an image to a snapshot means overwriting the current version of the image 
53
49
with snapshot data. The time it takes to execute a rollback increases with the size of the 
54
 
image. It is faster to clone from a snapshot than to rollback an image to a snapshot. Cloning from a snapshot is the preferred method of returning to a pre-existing state.
 
50
image. It is faster to clone from a snapshot than to rollback an image to a snapshot. Cloning from a 
 
51
snapshot is the preferred method of returning to a pre-existing state.
55
52
 
56
53
## Maintenance
57
54
 
87
84
rbd snap rm rbd/foo@snapname
88
85
```
89
86
 
90
 
**Note:** Ceph OSDs delete data asynchronously, so deleting a snapshot doesn’t free up the 
 
87
!!!**Note:** Ceph OSDs delete data asynchronously, so deleting a snapshot doesn’t free up the 
91
88
disk space immediately.
92
89
 
93
90
To delete all snapshots for an image with `rbd`, specify the snap purge option and the