The cinder.volume.drivers.dell_emc.vnx.replication Module

The cinder.volume.drivers.dell_emc.vnx.replication Module

class ReplicationAdapter(client=None, config=None)

Bases: object

add_volumes_to_group_replication(group, volumes)
append_replication_stats(stats)
build_mirror_view(configuration, failover=True)

Builds a mirror view operation class.

Parameters:
  • configuration – driver configuration
  • failover – True if from primary to configured array, False if from configured array to primary.
cleanup_lun_replication(volume)
create_group_replication(group)
delete_group_replication(group)
disable_replication(context, group, volumes)

Disable the group replication.

Note: This will not disable the replication on individual LUNs.

do_setup()
enable_replication(context, group, volumes)

Enable the group replication.

Note: this will not interfere with the replication on individual LUNs.

failover_host(context, volumes, secondary_backend_id, groups)

Fails over the volume back and forth.

Driver needs to update following info for failed-over volume: 1. provider_location: update serial number and lun id 2. replication_status: new status for replication-enabled volume

failover_replication(context, group, volumes, secondary_backend_id)

“Fail-over the consistent mirror group.

Note:
VNX supports fail over all the mirrors in a group as a whole, no need to handle each mirror one by one.
get_replication_error_status(context, groups)

The failover only happens manually, no need to update the status.

remove_volumes_from_group_replication(group, volumes)
setup_lun_replication(volume, primary_lun_id)

Setup replication for LUN, this only happens in primary system.

validate_backend_id(backend_id)
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.