Skip to content

Commit 3fad248

Browse files
Merge pull request #556 from shapeblue/draas-doc
Create Instance from Backup on another Zone
2 parents 7b488a9 + a031d8c commit 3fad248

File tree

3 files changed

+67
-3
lines changed

3 files changed

+67
-3
lines changed
115 KB
Loading
87.5 KB
Loading

source/adminguide/backup_and_recovery.rst

Lines changed: 67 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ that volume to a specified Instance.
164164
Creating a new Instance from Backup
165165
-----------------------------------
166166

167-
Since CloudStack 4.21, users can now remove the backup offering and expunge or unmanage an instance
167+
Since CloudStack 4.21, users can remove the backup offering and expunge or unmanage an instance
168168
that has existing backups, for the supported backup providers — Dummy, NAS, and Veeam.
169169
Additionally, users can create a new instance from a backup using any of these providers.
170170

@@ -196,8 +196,65 @@ in the system, the user will be prompted to reconfigure the Instance before crea
196196
If the backup was created in a release prior to 4.21, the backup metadata won't contain the instance configuration details,
197197
so users would have to fill in the required details by clicking on the Configure Instance button.
198198

199+
Creating a New Instance from Backup in Another Zone
200+
---------------------------------------------------
201+
202+
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+
199256
Supported APIs:
200-
~~~~~~~~~~~~~~~~
257+
---------------
201258

202259
- **assignVirtualMachineToBackupOffering**: adds an Instance to a backup offering.
203260
- **removeVirtualMachineFromBackupOffering**: removes an Instance from a backup offering, if forced `true` parameter is passed this may also
@@ -211,7 +268,7 @@ Supported APIs:
211268
- **listBackups**: lists backups.
212269
- **restoreBackup**: restore a previous Instance backup in-place of a stopped or destroyed Instance.
213270
- **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.
215272

216273

217274
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
253310
.. |B&R-ConfigureInstance.png| image:: /_static/images/B&R-ConfigureInstance.png
254311
:alt: Configure Instance parameters before creating it from backup.
255312
:width: 700px
313+
.. |B&R-Cross-Zone-Enable-Add.png| image:: /_static/images/B&R-Cross-Zone-Enable-Add.png
314+
:alt: Enable Cross-Zone Instance Creation on Backup Repository
315+
:width: 400px
316+
.. |B&R-Cross-Zone-Select-Zone.png| image:: /_static/images/B&R-Cross-Zone-Select-Zone.png
317+
:alt: Select Zone when creating Instance from Backup
318+
:width: 700px
319+

0 commit comments

Comments
 (0)