Restore Admin Node database when recovering primary Admin Node
If you want to retain the historical information about attributes, alarms, and alerts on a primary Admin Node that has failed, you can restore the Admin Node database. You can only restore this database if your StorageGRID system includes another Admin Node.
-
The recovered Admin Node is installed and running.
-
The StorageGRID system includes at least two Admin Nodes.
-
You have the
Passwords.txt
file. -
You have the provisioning passphrase.
If an Admin Node fails, the historical information stored in its Admin Node database is lost. This database includes the following information:
-
Alert history
-
Alarm history
-
Historical attribute data, which is used in the charts and text reports available from the SUPPORT > Tools > Grid topology page.
When you recover an Admin Node, the software installation process creates an empty Admin Node database on the recovered node. However, the new database only includes information for servers and services that are currently part of the system or added later.
If you restored a primary Admin Node and your StorageGRID system has another Admin Node, you can restore the historical information by copying the Admin Node database from a non-primary Admin Node (the source Admin Node) to the recovered primary Admin Node. If your system has only a primary Admin Node, you can't restore the Admin Node database.
Copying the Admin Node database might take several hours. Some Grid Manager features will be unavailable while services are stopped on the source Admin Node. |
-
Log in to the source Admin Node:
-
Enter the following command:
ssh admin@grid_node_IP
-
Enter the password listed in the
Passwords.txt
file. -
Enter the following command to switch to root:
su -
-
Enter the password listed in the
Passwords.txt
file.
-
-
From the source Admin Node, stop the MI service:
service mi stop
-
From the source Admin Node, stop the Management Application Program Interface (mgmt-api) service:
service mgmt-api stop
-
Complete the following steps on the recovered Admin Node:
-
Log in to the recovered Admin Node:
-
Enter the following command:
ssh admin@grid_node_IP
-
Enter the password listed in the
Passwords.txt
file. -
Enter the following command to switch to root:
su -
-
Enter the password listed in the
Passwords.txt
file.
-
-
Stop the MI service:
service mi stop
-
Stop the mgmt-api service:
service mgmt-api stop
-
Add the SSH private key to the SSH agent. Enter:
ssh-add
-
Enter the SSH Access Password listed in the
Passwords.txt
file. -
Copy the database from the source Admin Node to the recovered Admin Node:
/usr/local/mi/bin/mi-clone-db.sh Source_Admin_Node_IP
-
When prompted, confirm that you want to overwrite the MI database on the recovered Admin Node.
The database and its historical data are copied to the recovered Admin Node. When the copy operation is done, the script starts the recovered Admin Node.
-
When you no longer require passwordless access to other servers, remove the private key from the SSH agent. Enter:
ssh-add -D
-
-
Restart the services on the source Admin Node:
service servermanager start