Once the VoltDB database is up and running, you can shut it down by stopping the VoltDB server processes on each cluster node. However, it is easier to stop the database as a whole with a single command. You do this with the voltadmin shutdown command, which pauses database activity, completes all current transactions, and empties any queued data (such as export or database replication) before shutting down. For example, entering the following command without specifying a host server will perform an orderly shut down the database cluster the current system is part of.
$ voltadmin shutdown
If you are not using command logging, which automatically saves all progress, be sure to add the --save argument to save a final snapshot before shutting down:
$ voltadmin shutdown --save
To shutdown a database running on another system, use the
--host argument to access the remote
database. For example, the following command shuts down the VoltDB database that includes the server zeus:
$ voltadmin shutdown --host=zeus
You can pause the database using the voltadmin pause command to restrict clients from accessing it while you perform changes in administration mode. You resume the database using the voltadmin resume command. See the VoltDB Administrator's Guide for more about modes of operation.