You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since **Apache CloudStack 4.22**, users can create a new Instance from a Backup in another Zone.
203
+
i.e, the Instance being created can be on a different Zone from the Zone in which the Backup was created.
204
+
This can be used to implement Disaster Recovery capabilities with Instance Backups.
205
+
Currently, this capability is supported only by the **NAS Backup & Recovery plugin**.
206
+
207
+
When creating a Backup Repository, the administrator can enable the **Cross-Zone Instance Creation** option.
208
+
This allows the repository to be used for creating Instances in other Zones. The setting can be changed later as well
209
+
using the Edit Backup Repository action button.
210
+
211
+
|B&R-Cross-Zone-Enable-Add.png|
212
+
213
+
Once Cross-Zone Instance Creation is enabled for a Backup Repository, users will see the option to **select a Zone** while creating a new Instance from a Backup.
214
+
215
+
|B&R-Cross-Zone-Select-Zone.png|
216
+
217
+
The new Instance will be created in the selected Zone, with the configuration either inherited from the backup or chosen by the user.
218
+
Configurations stored in the backup are automatically selected if the same resources are present in the destination Zone.
219
+
220
+
For example, if the same template exists in both the source and destination Zones, it will be auto-selected.
221
+
Users will still need to manually select configurations that are unique to a single Zone, such as networks.
222
+
223
+
Points to Note
224
+
~~~~~~~~~~~~~~
225
+
226
+
- A Cross-Zone enabled Backup Repository can be used to create Instances in **all Zones** within the CloudStack environment.
227
+
- The Backups can be taken only from the original Zone.
228
+
- The administrator must ensure that the Backup Repository is **reachable and mountable** from hosts in other Zones.
229
+
- Restore operations are performed by mounting the Backup Repository over **NFS, CIFS, or CephFS** (depending on configuration),
230
+
and then copying the backup files to Primary Storage.
231
+
232
+
Extending the Functionality for DRaaS
233
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
234
+
235
+
Administrators can extend this feature to implement Disaster Recovery as a Service (DRaaS) by adding additional configuration and instrumentation.
236
+
Two common approaches are:
237
+
238
+
1. **Zone-Local Repository**
239
+
240
+
- Configure a Backup Repository that is local to the source Zone.
241
+
- Add this repository to the Zone and enable Cross-Zone Instance Creation.
242
+
- In other Zones, configure NAS servers and synchronize backup files in the background between the source repository and the NAS servers in those Zones.
243
+
- Use DNS to resolve the repository URL to the local NAS server in each Zone, ensuring Instance creation from Backup always use the closest copy.
244
+
245
+
2. **Global Repository with WAN Optimizations**
246
+
247
+
- Configure a single global Backup Repository accessible from all Zones.
248
+
- NFS performance over WAN may become a bottleneck for Cross-Zone Instance creation scenarios.
249
+
To improve NFS performance over WAN, the following NFS mount options are recommended:
250
+
251
+
- ``nconnect=16``: Open multiple TCP connections to the NFS server.
252
+
- ``rsize=1048576``: Use a larger chunk size for reads.
253
+
- ``wsize=1048576``: Use a larger chunk size for writes.
254
+
- The actual read and write chunk sizes may be increased further, depending on the NFS server’s capabilities.
255
+
199
256
Supported APIs:
200
-
~~~~~~~~~~~~~~~~
257
+
---------------
201
258
202
259
- **assignVirtualMachineToBackupOffering**: adds an Instance to a backup offering.
203
260
- **removeVirtualMachineFromBackupOffering**: removes an Instance from a backup offering, if forced `true` parameter is passed this may also
@@ -211,7 +268,7 @@ Supported APIs:
211
268
- **listBackups**: lists backups.
212
269
- **restoreBackup**: restore a previous Instance backup in-place of a stopped or destroyed Instance.
213
270
- **restoreVolumeFromBackupAndAttachToVM**: restore and attach a backed-up volume (of an Instance backup) to a specified Instance.
214
-
- **createInstanceFromBackup**: create a new Instance from a backup.
271
+
- **createVMFromBackup**: create a new Instance from a backup.
215
272
216
273
217
274
Configuring resource limits on Backups
@@ -253,3 +310,10 @@ the backup size, although the actual backup size may be less than the size use t
0 commit comments