gs_uninstall
Background
gs_uninstall, provided by , can be used to uninstall a cluster.
Syntax
Uninstall a cluster.
gs_uninstall [--delete-data] [-L] [-l LOGFILE]
Display help information.
gs_uninstall -? | --help
Display the version number.
gs_uninstall -V | --version
Parameter Description
--delete-data
Deletes the data file.
-L
Uninstalls the local host only. If a host in the cluster is uninstalled, the cluster cannot undergo full uninstallation.
-l
Specifies a log file name and an accessible absolute path. A timestamp will be added automatically to the log file name.
- When -l is not specified, and gaussdbLogPath is not set in the XML file, the default value of the -l parameter is $GAUSSLOG/om/gs_uninstall-YYYY-MM-DD_hhmmss.log.
- If -l is not specified and gaussdbLogPath is set in the XML file, the default value of the -l parameter is gaussdbLogPath/Username/om/gs_uninstall-YYYY-MM-DD_hhmmss.log.
NOTE: When executing gs_uninstall, the system will automatically delete the directories related to the cluster. You are advised to set the log file path to a path outside the database cluster.
-?, --help
Displays help information.
-V, --version
Displays version information.
Example
Use the gs_uninstall script to uninstall a cluster.
gs_uninstall --delete-data
Checking uninstallation.
Successfully checked uninstallation.
Stopping the cluster.
Successfully stopped the cluster.
Successfully deleted instances.
Uninstalling application.
Successfully uninstalled application.
Uninstallation succeeded.
Related Commands
Feedback