Creating the 3-Site Administrator for Metro Mirror configurations
After you generate SSH keys for authentication, you must create a user with the 3-site administrator role on all systems in the 3-site configuration. This user must be the same across all the systems and use the public SSH key that was generated on the 3-Site Orchestrator for authentication.
The 3-Site Administrator role allows a user with those privileges to run specific commands to configure and manage 3-site replication between the systems that are defined in the 3-site configuration. After you create the user with 3-Site Administrator role, you must add the systems as known hosts on the 3-Site Orchestrator host.
Using the management GUI
- In the management GUI, select .
- On the Create User Group page, enter a name of the user group, and select 3-Site Administrator for the role.
- Click Create.
- In the list of user groups, select the user group that you created and select Create Users.
- On the Create Users page, enter the name of the user, and select Local.
- To connect to the management GUI with this user, enter and confirm a password.
- To add the SSH key, click Browse to locate the public SSH key that was generated for 3-Site Orchestrator and copied to the local workstation.
- Click Create.
- Repeat these steps on each system in the configuration. Ensure that you create the same user on each system.
After you create the user on each system in the 3 site configuration, log on to the 3-Site Orchestrator host and complete these steps:
- On the 3-Site Orchestrator host, enter the following commands to create passwordless Secure
Shell (SSH) connections to the
systems:
ssh-keyscan <Master system IP address> >> /root/.ssh/known_hosts
ssh-keyscan <Auxnear system IP address> >> /root/.ssh/known_hosts
ssh-keyscan <Auxfar system IP address> >> /root/.ssh/known_hosts
Note: If a operation was keyscan completed on the same IP address, old hostnames must be removed.
Verify the SSH authentication between the 3-Site Orchestrator host and each system by completing these steps:
- On the 3-Site Orchestrator host, open an SSH session to each of the systems in the 3-site
configuration and run a basic command. For
example,
where username is the name of the user and systemname is the system name for the system at one of the sites in the configuration.<root@ORCH-HOST>#ssh username@systemname svcinfo lssystem
- If results return from the command, use this command with the corresponding system names at the other sites to verify the SSH connections. If errors occur, the most likely cause for issues is that the systems were not included in the known host. Verify the known host list to ensure that the systems are included.
Using the command-line interface
To create the 3-Site Orchestrator user, complete these steps:
- In the command-line interface, enter the following command on the system at
the master site:
mkusergrp -name 3SiteAdmin -role 3SiteAdmin
This command creates the user group, 3SiteAdmin with the associated role, 3SiteAdmin, which gives the user in this group privileges to access and configure 3-Site Orchestrator objects.
- To create the 3-Site Administrator user and add it to the
3SiteAdmin user group, enter the following command:
where tsuser is the name of the user that you are creating in the 3SiteAdmin user group.mkuser -name tsuser -usergrp 3SiteAdmin -password xxxxxxx
- To update the user to include the SSH public key for authenticating this user
to the 3 Site Orchestrator, enter the following command:
chuser -keyfile /dumps/id_rsa_pub -gui tsuser
where
id_rsa_pub
key is public part of the key pair that is generated on the host by using sshkey-gen tool. - After you create the user on each system in the 3 site configuration, log on to the 3-Site
Orchestrator host and complete these steps:
- On the 3-Site Orchestrator host, enter the following commands to create passwordless Secure
Shell (SSH) connections to the
systems:
ssh-keyscan <Master system IP address> >> /root/.ssh/known_hosts
ssh-keyscan <Auxnear system IP address> >> /root/.ssh/known_hosts
ssh-keyscan <Auxfar system IP address> >> /root/.ssh/known_hosts
Note: If a operation was keyscan completed on the same IP address, old hostnames must be removed.
- On the 3-Site Orchestrator host, enter the following commands to create passwordless Secure
Shell (SSH) connections to the
systems:
- Verify the SSH authentication between the 3-Site Orchestrator host and each system by completing
these steps:
- On the 3-Site Orchestrator host, open an SSH session to each of the systems in the 3-site
configuration and run a basic command. For
example,
where username is the name of the user and systemname is the system name for the system at one of the sites in the configuration.<root@ORCH-HOST>#ssh username@systemname svcinfo lssystem
- If results return from the command, use this command with the corresponding system names at the other sites to verify the SSH connections. If errors occur, the most likely cause for issues is that the systems were not included in the known host. Verify the known host list to ensure that the systems are included.
- On the 3-Site Orchestrator host, open an SSH session to each of the systems in the 3-site
configuration and run a basic command. For
example,