addassociation
Use the addassociation command to associate one session to another.
The addassociation command is used to add or update an association. If the association does not exist, a new one gets created. If it already exists, it is updated.
Syntax
Parameters
- -help | -h | -?
- Lists help for the command. If you specify additional parameters and arguments, those parameters and arguments are ignored.
- -associated_session- assoc_session_name[;assoc_session_name]
- Specifies the name of another session that is defined on the server to associate with the specified session.
- -associated_role_pair- assoc_role_pair_name[;assoc_role_pair_name]
- Specifies the role pair, which in the associated session has a role that matches a role in the specified session.
- -matching_rolematching_role[;matching_role]
- The role in the other session that matches the H1 role in the specified session.
- -role_to_restorerole_name_to_restore[;role_name_to_restore]
- The role in the other session that would be restored from a backup in the Safeguarded Copy session.
- -session_namesession_name[;session_name]
- Specifies a name for the session. For sessions that contain an XIV system, the session name can have up to 58 alphanumeric characters. For sessions that contain other storage system types, the session name can have up to 250 alphanumeric characters. Session names must be unique.
Example: Associating a Metro Mirror Failover/Failback session to a Safeguarded copy session
csmcli> addassociation -associated_session 8kMM -associated_role_pair H1-H2 -matching_role H2 -role_to_restore H1 SGCsess
The following output is returned:
IWNR1293I Session SGCsess was successfully associated to session 8kMM and role pair H1-H2.