@@ -16,10 +16,7 @@ Generate Geo-replication SSH Keys
16
16
17
17
## create
18
18
``` python
19
- create(volname,
20
- slave_host,
21
- slave_vol,
22
- slave_user = ' root' ,
19
+ create(primary_volume, secondary_host, secondary_volume, secondary_user = ' root' ,
23
20
push_pem = True ,
24
21
no_verify = False ,
25
22
force = False ,
@@ -28,12 +25,12 @@ create(volname,
28
25
29
26
Create Geo-replication Session
30
27
31
- : param volname: Master Volume Name
32
- : param slave_host: Slave Hostname or IP
33
- : param slave_vol: Slave Volume
34
- : param slave_user: Slave User, default is "root"
35
- : param push_pem: True|False Push SSH keys to Slave
36
- : param no_verify: True|False Skip the Slave Verification
28
+ : param primary_volume: Primary Volume Name
29
+ : param secondary_host: Secondary Hostname or IP
30
+ : param secondary_volume: Secondary Volume
31
+ : param secondary_user: Secondary User, default is "root"
32
+ : param push_pem: True|False Push SSH keys to Secondary
33
+ : param no_verify: True|False Skip the Secondary Verification
37
34
process before create
38
35
: param force: True|False Force Create Session
39
36
: param ssh_port: SSH Port, Default is 22
@@ -43,120 +40,115 @@ Create Geo-replication Session
43
40
44
41
## start
45
42
``` python
46
- start(volname, slave_host, slave_vol, slave_user = ' root' , force = False )
43
+ start(primary_volume, secondary_host, secondary_volume, secondary_user = ' root' , force = False )
47
44
```
48
45
49
46
Start Geo-replication Session
50
47
51
- : param volname: Master Volume Name
52
- : param slave_host: Slave Hostname or IP
53
- : param slave_vol: Slave Volume
54
- : param slave_user: Slave User, default is "root"
48
+ : param primary_volume: Primary Volume Name
49
+ : param secondary_host: Secondary Hostname or IP
50
+ : param secondary_volume: Secondary Volume
51
+ : param secondary_user: Secondary User, default is "root"
55
52
: param force: True|False Force Start the Session
56
53
:returns: Output of Start command, raises
57
54
GlusterCmdException((rc, out, err)) on error
58
55
59
56
60
57
## stop
61
58
``` python
62
- stop(volname, slave_host, slave_vol, slave_user = ' root' , force = False )
59
+ stop(primary_volume, secondary_host, secondary_volume, secondary_user = ' root' , force = False )
63
60
```
64
61
65
62
Stop Geo-replication Session
66
63
67
- : param volname: Master Volume Name
68
- : param slave_host: Slave Hostname or IP
69
- : param slave_vol: Slave Volume
70
- : param slave_user: Slave User, default is "root"
64
+ : param primary_volume: Primary Volume Name
65
+ : param secondary_host: Secondary Hostname or IP
66
+ : param secondary_volume: Secondary Volume
67
+ : param secondary_user: Secondary User, default is "root"
71
68
: param force: True|False Force Stop the Session
72
69
:returns: Output of Stop command, raises
73
70
GlusterCmdException((rc, out, err)) on error
74
71
75
72
76
73
## restart
77
74
``` python
78
- restart(volname, slave_host, slave_vol, slave_user = ' root' , force = False )
75
+ restart(primary_volume, secondary_host, secondary_volume, secondary_user = ' root' , force = False )
79
76
```
80
77
81
78
Restart Geo-replication Session
82
79
83
- : param volname: Master Volume Name
84
- : param slave_host: Slave Hostname or IP
85
- : param slave_vol: Slave Volume
86
- : param slave_user: Slave User, default is "root"
80
+ : param primary_volume: Primary Volume Name
81
+ : param secondary_host: Secondary Hostname or IP
82
+ : param secondary_volume: Secondary Volume
83
+ : param secondary_user: Secondary User, default is "root"
87
84
: param force: True|False Force Start the Session
88
85
:returns: Output of Start command, raises
89
86
GlusterCmdException((rc, out, err)) on error
90
87
91
88
92
89
## delete
93
90
``` python
94
- delete(volname,
95
- slave_host,
96
- slave_vol,
97
- slave_user = ' root' ,
91
+ delete(primary_volume, secondary_host, secondary_volume, secondary_user = ' root' ,
98
92
reset_sync_time = None )
99
93
```
100
94
101
95
Delete Geo-replication Session
102
96
103
- : param volname: Master Volume Name
104
- : param slave_host: Slave Hostname or IP
105
- : param slave_vol: Slave Volume
106
- : param slave_user: Slave User, default is "root"
97
+ : param primary_volume: Primary Volume Name
98
+ : param secondary_host: Secondary Hostname or IP
99
+ : param secondary_volume: Secondary Volume
100
+ : param secondary_user: Secondary User, default is "root"
107
101
: param reset_sync_time: True|False Reset Sync time on delete
108
102
:returns: Output of Start command, raises
109
103
GlusterCmdException((rc, out, err)) on error
110
104
111
105
112
106
## pause
113
107
``` python
114
- pause(volname, slave_host, slave_vol, slave_user = ' root' , force = False )
108
+ pause(primary_volume, secondary_host, secondary_volume, secondary_user = ' root' , force = False )
115
109
```
116
110
117
111
Pause Geo-replication Session
118
112
119
- : param volname: Master Volume Name
120
- : param slave_host: Slave Hostname or IP
121
- : param slave_vol: Slave Volume
122
- : param slave_user: Slave User, default is "root"
113
+ : param primary_volume: Primary Volume Name
114
+ : param secondary_host: Secondary Hostname or IP
115
+ : param secondary_volume: Secondary Volume
116
+ : param secondary_user: Secondary User, default is "root"
123
117
: param force: True|False Force Pause Session
124
118
:returns: Output of Pause command, raises
125
119
GlusterCmdException((rc, out, err)) on error
126
120
127
121
128
122
## resume
129
123
``` python
130
- resume(volname, slave_host, slave_vol, slave_user = ' root' , force = False )
124
+ resume(primary_volume, secondary_host, secondary_volume, secondary_user = ' root' , force = False )
131
125
```
132
126
133
127
Resume Geo-replication Session
134
128
135
- : param volname: Master Volume Name
136
- : param slave_host: Slave Hostname or IP
137
- : param slave_vol: Slave Volume
138
- : param slave_user: Slave User, default is "root"
129
+ : param primary_volume: Primary Volume Name
130
+ : param secondary_host: Secondary Hostname or IP
131
+ : param secondary_volume: Secondary Volume
132
+ : param secondary_user: Secondary User, default is "root"
139
133
: param force: True|False Force Resume Session
140
134
:returns: Output of Resume command, raises
141
135
GlusterCmdException((rc, out, err)) on error
142
136
143
137
144
138
## config_set
145
139
``` python
146
- config_set(volname,
147
- slave_host,
148
- slave_vol,
140
+ config_set(primary_volume, secondary_host, secondary_volume,
149
141
key,
150
142
value,
151
- slave_user = ' root' )
143
+ secondary_user = ' root' )
152
144
```
153
145
154
146
Set Config of a Geo-replication Session
155
147
156
- : param volname: Master Volume Name
157
- : param slave_host: Slave Hostname or IP
158
- : param slave_vol: Slave Volume
159
- : param slave_user: Slave User, default is "root"
148
+ : param primary_volume: Primary Volume Name
149
+ : param secondary_host: Secondary Hostname or IP
150
+ : param secondary_volume: Secondary Volume
151
+ : param secondary_user: Secondary User, default is "root"
160
152
: param key: Config Key
161
153
: param value: Config Value
162
154
:returns: Output of Config set command, raises
@@ -165,47 +157,47 @@ Set Config of a Geo-replication Session
165
157
166
158
## config_reset
167
159
``` python
168
- config_reset(volname, slave_host, slave_vol , key, slave_user = ' root' )
160
+ config_reset(primary_volume, secondary_host, secondary_volume , key, secondary_user = ' root' )
169
161
```
170
162
171
163
Reset configuration of Geo-replication Session
172
164
173
- : param volname: Master Volume Name
174
- : param slave_host: Slave Hostname or IP
175
- : param slave_vol: Slave Volume
176
- : param slave_user: Slave User, default is "root"
165
+ : param primary_volume: Primary Volume Name
166
+ : param secondary_host: Secondary Hostname or IP
167
+ : param secondary_volume: Secondary Volume
168
+ : param secondary_user: Secondary User, default is "root"
177
169
: param key: Config Key
178
170
:returns: Output of Config reset command, raises
179
171
GlusterCmdException((rc, out, err)) on error
180
172
181
173
182
174
## config_get
183
175
``` python
184
- config_get(volname, slave_host, slave_vol , key = None , slave_user = ' root' )
176
+ config_get(primary_volume, secondary_host, secondary_volume , key = None , secondary_user = ' root' )
185
177
```
186
178
187
179
Get Configuration of Geo-replication Session
188
180
189
- : param volname: Master Volume Name
190
- : param slave_host: Slave Hostname or IP
191
- : param slave_vol: Slave Volume
192
- : param slave_user: Slave User, default is "root"
181
+ : param primary_volume: Primary Volume Name
182
+ : param secondary_host: Secondary Hostname or IP
183
+ : param secondary_volume: Secondary Volume
184
+ : param secondary_user: Secondary User, default is "root"
193
185
: param key: Config Key
194
186
:returns: Geo-rep session Config Values, raises
195
187
GlusterCmdException((rc, out, err)) on error
196
188
197
189
198
190
## status
199
191
``` python
200
- status(volname = None , slave_host = None , slave_vol = None , slave_user = ' root' )
192
+ status(primary_volume = None , secondary_host = None , secondary_volume = None , secondary_user = ' root' )
201
193
```
202
194
203
195
Status of Geo-replication Session
204
196
205
- : param volname: Master Volume Name
206
- : param slave_host: Slave Hostname or IP
207
- : param slave_vol: Slave Volume
208
- : param slave_user: Slave User, default is "root"
197
+ : param primary_volume: Primary Volume Name
198
+ : param secondary_host: Secondary Hostname or IP
199
+ : param secondary_volume: Secondary Volume
200
+ : param secondary_user: Secondary User, default is "root"
209
201
:returns: Geo-replication Status, raises
210
202
GlusterCmdException((rc, out, err)) on error
211
203
0 commit comments