The tungsten_reset_manager assists with the graceful reset of the manager's dynamic state files on disk.
Table 9.72. tungsten_reset_manager Options
Option | Description |
---|---|
--debug , -d | Enable additional debug output. |
--force , -f | Bypass manager and policy checks |
--help , -h | Show help text |
--list , -l | Prints out path(s) to be cleared. One per line. |
--start , -s | Restarts the Manager process. |
--verbose , -v | Show verbose output |
--yes , -y | Bypass interactive confirmation prompt |
The tungsten_reset_manager command stops the manager and then deletes the manager's dynamic state files.
For a proper service-wide reset to work, this command needs to be run on every node within the local cluster to ensure all managers have been stopped at the same time. This prevents any manager from storing an old state in memory.
The dynamic state files are automatically rebuilt when the manager is started.
The
{TUNGSTEN_HOME}/tungsten/cluster-home/conf/cluster/{SERVICE_NAME}/datasource/
directory needs to be emptied, for example, given a service name of
alpha
and a TUNGSTEN_HOME of
/opt/continuent
, the full path would be
/opt/continuent/tungsten/cluster-home/conf/cluster/alpha/datasource/
.
The tungsten_reset_manager command requires the
cluster to be in MAINTENANCE
mode first.
shell> tungsten_reset_manager
Policy is not MAINTENANCE.
Please select one node only and execute `echo "set policy maintenance" | cctrl`
If you are sure the policy is maintenance you may proceed by using -f or --force
By default, the command expects the manager to be running so the policy
may be checked. If you are sure the policy is MAINTENANCE
you may
proceed by using ether the -f
or
--force
flags.
Below is a sample session.
First, set policy to MAINTENANCE
on a single node only:
shell> echo "set policy maintenance" | cctrl
Tungsten Clustering 7.0.3 build 141
north: session established, encryption=false, authentication=false
[LOGICAL] /alpha > set policy maintenance
policy mode is now MAINTENANCE
[LOGICAL] /alpha >
Exiting...
Enable MAINTENANCE
mode on a single host only.
On all nodes in the local cluster, execute the tungsten_reset_manager command:
shell> tungsten_reset_manager
About to stop the manager and empty directory:
/opt/continuent/tungsten/cluster-home/conf/cluster/north/datasource
Do you wish to continue? [y/N] y
Stopping Tungsten Manager Service...
Stopped Tungsten Manager Service.
Manager directory /opt/continuent/tungsten/cluster-home/conf/cluster/north/datasource cleared.
Done!
Make sure all nodes have been cleared first, then execute `manager start` on each node one-by-one, starting with the Primary.
When all managers are running, pick one node and execute `echo "set policy automatic" | cctrl`
Once the tungsten_reset_manager command has completed successfully on all nodes in the local cluster, execute the manager start command on all nodes:
shell> manager start
Starting Tungsten Manager Service...
Waiting for Tungsten Manager Service..........
running: PID:3562
Once themanager has started successfully on all nodes in
the local cluster, set policy to AUTOMATIC
on a single node only:
shell> echo "set policy automatic" | cctrl
Tungsten Clustering 7.0.3 build 141
north: session established, encryption=false, authentication=false
[LOGICAL] /alpha > set policy automatic
policy mode is now AUTOMATIC
[LOGICAL] /alpha >
Exiting...
Enable AUTOMATIC
mode on a single host only.
At this point, the manager state should be completely back to normal. Check it using the cctrl ls command.