Data Repository (DR) Host
-----------------------------
The DR host only requires the DB be stopped and shut down prior to system restarts.
The Vertica processes that run the DB can be left as is during a restart. The key detail is
ensuring the DR DB is stopped.
Also, as noted above in the DA section, the dadaemon service for the DA MUST but shut down
before stopping the DR DB. If this is not done an error will be seen. When trying to stop
the DB via the adminTools utility, if the DA remains running a message will be seen that states:
"Error: NOTICE 2519: Cannot shut down while users are connected"
If that message is observed in a popup message in adminTools when trying to step the DB,
check to ensure the dadaemon service is shut down and not running.
To shut down the DR DB (can be done from any active node in a multi-node cluster):
Log into the DR DB host as the dradmin or equivalent DB admin user created during installation.
Go to the /opt/vertica/bin directory and run:
./adminTools
If the environment is configured properly you may alternatively run this from any location:
/opt/vertica/bin/adminTools
Choose option 4 "Stop the Database".
Choose the DB name to stop. Standard environments should only have one entry.
Enter the password and wait for the DB to stop.
When complete in the main menu for adminTools, select option 1 "View Database Cluster State"
to ensure all nodes show as down before they are rebooted.
To start the DB again after the host is rebooted, if not automatically restarted, choose option 3
"Start the Database", choose the DB to restart, enter the correct password and wait for the
restart to complete.
Once more to check status, choose option 1 "View Database Cluster State" to ensure all nodes
show as up post reboot.
Note that while the DB will not allow shut down while open connections from the dadaemon exist,
once that is shut down, we have seen instances where the DB didn't fully complete shut down
despite the status in adminTools showing as down. This is known as a 'dirty' DB shut down whereby
the DB appears to be down to the user and the system but isn't fully and truly down. Thus when
the restart is performed the DB won't restart without restoration using the last known good epoch.
While there is no **** way to check for the DB state outside of the adminTools UI,
the **** act of patience will often help avoid this problem.
--------------------------------------------------------------
When stopping the DB allow if possible an extra 20-40 minutes before restarting the DR host.
------------------------------
[JobTitle]
------------------------------
Original Message:
Sent: 12-02-2021 08:27 AM
From: Praveen Venkatesan
Subject: Stop Vertica Gracefully
Hi All,
How can i stop the vertica db on a single node gracefully during automatic patch update for a single node.