blob: ca6304c3786c9c9fe3a9787f8dcaf5a4f38a785a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
Feature
-------
Clone of a Snapshot
Summary
-------
GlusterFS volume snapshot provides point-in-time copy of a GlusterFS
volume. When we take a volume snapshot, the newly created snap volume is
a read only volume.
By this feature, this snap volume can be later 'cloned' to create a new
regular volume which contains the same contents of snapshot bricks. This
is a space efficient clone therefore it will be created instantaneously
and will share the disk space in the back-end, just like a snapshot and
the origin volume.
Owners
------
Mohammed Rafi KC <rkavunga@redhat.com>
Current status
--------------
Requiremnt for openstack manila.
Detailed Description
--------------------
Snapshot create will take point-in-time snapshot of a volume. upon
successful completion, it will create a new read/only volume. But the
new volume is not considered as a regular volume, which prevents us to
perform any volume related operations on this snapshot volume. The
ultimate aim of this feature is creating a new regular volume out of
this snap.
For e.g.:
gluster snapshot create snap1 vol1
The above command will create a read-only snapshot "snap1" from volume
vol1.
gluster snapshot clone share1 snap1
The above command will create a regular gluster volume share1 from
snap1.
Benefit to GlusterFS
--------------------
We will have a writable snapshot.
Scope
-----
### Nature of proposed change
Modification to glusterd snapshot code.
### Implications on manageability
glusterd,gluster cli
### Implications on 'GlusterFS' backend
There will be performance degradation for the first write of a each
block of main volume.
### Modification to GlusterFS metadata
none
How To Test
-----------
create a volume Take snapshot create a clone. start the clone. cloned
volume should support all operation for a regular volume.
User Experience
---------------
there will an additional cli option for snapshot. gluster snapshot clone
```<clonename> <snapname> [<description> <description test>] [force]```
Dependencies
------------
Documentation
-------------
Status
------
In development
Comments and Discussion
-----------------------
|