Site Recovery Manager tags datastores with replication status, consistency group, and protection group so Storage DRS can use the information to migrate the datastore correctly. When migrating datastores, Storage DRS considers the following conditions of the datastore:
Site Recovery Manager creates tags to identify the consistency group and protection group associated with a datastore. Site Recovery Manager creates these tags dynamically whenever it discovers new consistency groups or protection groups and destroys them when the consistency group or protection group no longer exists.
SRM-com.vmware.vcDr:::consistencyGroup tag category contains tag names in the format of SRM-CG-xxxxxSetting Name | Description and Default Value |
storage.enableSdrsStandardTagCategoryCreation | Enable this flag to allow Site Recovery Manager to automatically create static tag categories and replicatedtag needed for Storage DRS compatibility. The default value is true. |
storage.enableSdrsTagging | Enable this flag to allow Site Recovery Manager to automatically create and attach tags on replicated or protected datastores for Storage DRS compatibility. Disabling this flag deletes all dynamic consistency group and protection group tags and breaks Storage DRS compatibility. Enabling this flag after disabling it requires a server restart to take effect. The default value is true. |
storage.enableSdrsTaggingRepair | Enable this flag to allow Site Recovery Manager to repair missing or unwanted tags on replicated or protected datastores for Storage DRS compatibility. The default value is true. |
storage.sdrsTaggingPollInterval | Periodic interval Site Recovery Manager uses to identify any missing statically or dynamically created tags and statically created tag categories. The default value is 50 seconds. |
Note that the tag and tag category names are case-sensitive so you must create tags and tag categories using the exact names and cardinality.
If you manually create the static tags and tag categories, verify that Site Recovery Manager automatically created and attached the dynamically created tags and also attached the replicatedtag to datastores.
If you notice some tags are missing, the static tag and tag categories were created incorrectly. Delete the manually created tags and categories and follow the steps to verify that Site Recovery Manager automatically created and attached the dynamically created tags correctly.
Site Recovery Manager enables Storage DRS compatibility by tagging replicated and protected datastores. Site Recovery Manager creates tags automatically in vCenter Server or you can create tags manually. Depending on the topology, vCenter Servers can replicate tags and tag categories between servers in a datacenter. Tags are usually replicated in federated SSO vCenter Server setups.
Tag categories required for Site Recovery Manager-Storage DRS compatibility are static which means their names are fixed. Tags required for compatibility are generally dynamic, except for the replicatedtag. Dynamic tag names are randomly generated based on an algorithm to make them unique. Examples of dynamic tag names are SRM-CG-2e435836a1c568851c4a0fdc40700c01 and SRM-PG-1626ccad7332d859c6b1b059acf908f9. All tags under consistencyGroup and protectionGroup categories are dynamic.
Static tags and tag categories might become duplicated when two different vCenter Servers create them at the same time, or if a delay in replication interval or temporary network failure occurs in one or more nodes. Dynamic tags are unique and do not get duplicated.
Duplicate tags and tag categories might cause Storage DRS to provide incorrect recommendation or migrate datastores incorrectly so you must check for duplicates and remove them.
Site Recovery Manager does not support datastores spanning consistency groups and cannot protect them. If Site Recovery Manager detects a datastore across consistency groups, it attaches one consistency group tag and replicatedtag to the datastore because the consistency group tag category is of single cardinality and only one tag can be attached to a datastore.
If Storage DRS tagging repair is enabled, at the periodic repair interval the repair logic detects the datastore is missing the tag associated with the other consistency group and replaces the existing tag with the missing consistency group tag. As a result, the consistency group tag switches between the two consistency groups.
Since Storage DRS relies on the consistency group and replicated tags to calculate migration recommendations, it can potentially allow migration of virtual machines from a datastore belonging to a consistency group, CG1, to a datastore spanning multiple consistency groups, CG1 and CG2. The migration might result in loss of protection and data loss. Make sure that datastores spanning consistency groups are not part of the Site Recovery Manager inventory.
To ensure datstores have the appropriate tags to support Storage DRS compatibility, after you upgrade Site Recovery Manager servers and fix the array manager credentials as instructed in the topic Configure and Verify the Upgraded Site Recovery Manager Installation in VMware Site Recovery Manager Installation and Configuration, you must restart the Site Recovery Manager server.
Alternatively, run discover devices on all the array pairs the upgraded Site Recovery Manager Server manages.