Clearing the Cached IAM Database and Restart the Microservice
After ManageOne data is restored, you need to clear the cached IAM database and restart related microservices for the configuration to take effect after the switchover.
Procedure
- Perform the following substeps to clear the IAM Redis database:
- Use a browser to log in to the ManageOne deployment plane in the DR center.
- URL: https://Floating IP address of the ManageOne deployment plane in the DR center:31943, for example, https://192.168.0.5:31943
- Default account: admin; default password: Huawei12#$
- Choose Deployment > Database > Redis from the main menu.
- Enter iamcachedb in the search box on the right and click
.
Query and record the IP address and port number corresponding to the database instance whose role is Master.
- Use PuTTY to log in to the node with the IP address recorded in 1.c as the sopuser user.
The default password of user sopuser is D4I$awOD7k.
- Run the following command to switch to the root user:
su root
Enter the password of the root user as prompted.
The default password of the root user is Changeme_123.
- Run the following commands to log in to the Redis database and clear the Redis database:
cd /opt/redis/bin
./redis-cli -h IP address of the node where the database instance is deployed -p Port number of the node where the database instance is deployed -cipherdir /opt/redis/etc/cipher -a iamcachedb@Username@Password
flushall
Replace IP address of the node where the database instance is deployed and Port number of the node where the database instance is deployed with the actual values obtained in 1.c.
The default username of the database is ossdbuser, and the default password is Changeme_123.
- Use a browser to log in to the ManageOne deployment plane in the DR center.
- Restart IAMCacheProxyService, IAMAuthWebsite, and MOVDCService in the DR center. For details, see Restarting Microservices.