Creating Replication Groups
Replication groups cannot use deletion protection. You can only use deletion protection on individual replications.
The vStor Group Replication feature allows you to create a replication group between multiple vStor servers. This keeps data synchronized across all the vStor servers in the group by replicating snapshots of the volumes.
Group replication provides a simple way to set up and manage replication for multiple volumes. Instead of creating individual replication relationships between volumes on different vStor servers, you can add volumes to a group and efficiently schedule and replicate them together.
Creating a Replication Group​
The vStor servers must already have partnerships established before creating a group replication.
To create a new replication group:
- Select Replication from the sidebar.
- Click Create a group in the Replication Relationships section to open the Create a Group dialog.
![[image expected here]](/assets/images/replication - add replication group-495b9da53d64d608c05289689a9de92f.png)
- In the popup dialog, enter the following information:
- Name: Enter a name for the replication group.
- Partner: Select the IP address of the partner vStor server.
- Replication Relationship Priority: Select the replication priority.
- (Optional) Remote Pool ID: Enter the Remote Pool ID of the partner server.
- Select Volumes: Select volumes from the dropdown list to add to the group. Only compatible volumes will be listed.
![[image expected here]](/assets/images/replication - add replication group dialog-b5f1f6f8fe637fe6ad524a7897e0ee6f.png)
- Click Save to create the replication group.
You can group only volumes connected to the same Partner IP address.
The selected volumes will be replicated as a group according to the configured schedule and settings.
Scheduling Group Replication​
After creating a replication group, you can configure a schedule for replicating the volumes in the group.
To schedule group replication:
- In the Replication Relationships section, hover over a replication group and click Schedule.
![[image expected here]](/assets/images/group_replication_3-lm-d12844d79f3fff5230d4dfdcf9551280.png)
- Follow the steps as in Scheduling a Replication using vStor Web Interface.
- Click Save to save the schedule.
The volumes in the group will now replicate according to the configured schedule.
You can also manually trigger replication for a replication group by hovering over the group and clicking Synchronize.
Additional Group Replication Options​
To use additional options, Hover over a replication group and click More Actions (...). It gives you access to the following options:
- Edit: Modify the group name or volumes in the group.
- Ungroup: Remove the group but keep the replication relationships intact.
- Delete: Delete the group and all replication relationships within it.
vStor CLI for Group Replication​
To create a new replication group using the vStor CLI, use the following command:
vstor relationship group create --name <name> --partner_id <partner_id> --bandwidth_priority <priority> --remote_pool_id <pool_id> --local_vol_ids <vol_ids>
To update an existing replication group using the vStor CLI, use the following command:
vstor relationship group update --id <id> --name <name> --bandwidth_priority <priority> --remote_pool_id <pool_id> --local_vol_ids <vol_ids>